/* ASHITOSH BHARTI — personal portfolio v2
   Plain CSS, no frameworks. Responsive, accessible, and happy on static hosting. */

:root {
  color-scheme: dark;
  --bg: #0c0915;
  --bg-2: #110c20;
  --panel: rgba(24, 17, 43, .78);
  --panel-solid: #18112b;
  --panel-2: #201536;
  --border: rgba(174, 111, 255, .20);
  --border-strong: rgba(187, 126, 255, .42);
  --text: #f7f2ff;
  --muted: #a89bbd;
  --muted-2: #746985;
  --purple: #b66cff;
  --purple-2: #8f43ff;
  --pink: #ed77cf;
  --cyan: #6ae5ed;
  --green: #6cf4a2;
  --amber: #ffc779;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 52% -22%, rgba(108, 46, 180, .19), transparent 52%),
    radial-gradient(ellipse at 6% 42%, rgba(70, 28, 125, .13), transparent 38%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
::selection { color: #fff; background: rgba(153, 84, 255, .55); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 4px;
}
img, svg { max-width: 100%; }
button:disabled { cursor: not-allowed; opacity: .45; }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .72; }
.ambient-glow { position: fixed; width: 440px; height: 440px; left: -220px; top: 22%; pointer-events: none; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgba(112, 48, 205, .13), transparent 68%); filter: blur(15px); }
.cursor-glow { position: fixed; top: 0; left: 0; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(156, 80, 255, .085), transparent 68%); transition: opacity .3s ease; }
@media (hover:hover) and (pointer:fine) { .cursor-glow { opacity: 1; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(190, 142, 255, .12);
  background: rgba(12, 9, 21, .78);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.nav-wrap { width: min(var(--page-width), calc(100% - 44px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; position: relative; isolation: isolate; overflow: hidden; font-size: .78rem; font-weight: 800; background: linear-gradient(145deg, #cc8bff, #7734ed 62%, #351b76); box-shadow: 0 0 24px rgba(157, 77, 255, .22); }
.brand-mark::after { content: ''; position: absolute; inset: -50%; z-index: -1; background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,.55), transparent 58%); transform: translateX(-70%) rotate(22deg); animation: mark-shine 5.5s ease-in-out infinite; }
.brand-name { font-size: .92rem; }
.brand-name span { display: block; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-link { padding: 10px 13px; color: var(--muted); border-radius: 999px; font-size: .82rem; font-weight: 700; transition: color .22s ease, background .22s ease, border-color .22s ease; border: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: rgba(166, 101, 255, .10); border-color: rgba(176, 118, 255, .15); }
.nav-link[aria-current="page"]::before { content: '•'; color: var(--purple); margin-right: 6px; }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); color: #d9c9ef; background: rgba(255,255,255,.025); border-radius: 13px; cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.icon-button:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(170, 108, 255, .12); }
.menu-toggle { display: none; }

.page { position: relative; z-index: 1; width: min(var(--page-width), calc(100% - 44px)); margin: 0 auto; padding: 64px 0 90px; }
.page-compact { max-width: 900px; }
.page-head { max-width: 780px; margin: 10px 0 46px; }
.kicker { display: inline-flex; gap: 9px; align-items: center; color: #c39bff; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ''; width: 24px; height: 1px; background: linear-gradient(90deg, var(--purple), transparent); }
.page-title { margin: 17px 0 16px; font-size: clamp(2.7rem, 6.1vw, 5.4rem); line-height: .99; letter-spacing: -.075em; font-weight: 800; }
.page-title .gradient, .gradient-text { color: transparent; background: linear-gradient(100deg, #fff 0%, #d7b7ff 34%, #b477ff 65%, #ee93d8 100%); -webkit-background-clip: text; background-clip: text; }
.page-intro { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.13rem); max-width: 680px; margin: 0; }

.eyebrow, .mono-label { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section { margin-top: 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(1.65rem, 3.5vw, 2.55rem); line-height: 1.12; letter-spacing: -.06em; }
.section-heading p { max-width: 420px; color: var(--muted); margin: 0; font-size: .9rem; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; color: #d3b1ff; font-size: .84rem; font-weight: 800; transition: gap .2s ease, color .2s ease; white-space: nowrap; }
.inline-link:hover { gap: 13px; color: #fff; }

.hero { min-height: min(720px, calc(100svh - 76px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: clamp(34px, 6vw, 82px); padding: 50px 0 60px; }
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); background: rgba(23, 15, 39, .72); border-radius: 999px; color: #d3c4e6; font: 10px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--green); box-shadow: 0 0 0 4px rgba(108, 244, 162, .09), 0 0 15px rgba(108,244,162,.55); animation: pulse-dot 2.2s infinite; }
.hero h1 { margin: 27px 0 24px; max-width: 720px; font-size: clamp(3.25rem, 5.5vw, 5.4rem); line-height: .94; letter-spacing: -.09em; font-weight: 800; }
.hero h1 .line { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1px rgba(221, 196, 255, .73); text-stroke: 1px rgba(221, 196, 255, .73); }
.hero h1 .gradient-text { display: inline-block; padding-right: .08em; }
.hero-lede { max-width: 550px; margin: 0; color: #b9abc9; font-size: clamp(1rem, 1.55vw, 1.12rem); }
.hero-lede strong { color: #eee3ff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--text); font-size: .84rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(156, 86, 255, .1); }
.button-primary { color: #fff; border-color: rgba(191, 129, 255, .54); background: linear-gradient(115deg, #9a4ef5, #7026cf); box-shadow: 0 10px 26px rgba(116, 45, 211, .23), inset 0 1px rgba(255,255,255,.17); }
.button-primary:hover { background: linear-gradient(115deg, #ac69ff, #8038e5); box-shadow: 0 14px 34px rgba(116,45,211,.32); }
.button-text { color: #d7c4ef; border-color: transparent; background: transparent; }
.button .arrow { transition: transform .2s ease; }
.button:hover .arrow { transform: translateX(3px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 31px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(179, 125, 255, .16); background: rgba(129, 72, 190, .085); border-radius: 10px; color: #c6b8d7; font-size: .72rem; }

.hero-visual { position: relative; perspective: 1100px; isolation: isolate; }
.hero-visual::before { content: ''; position: absolute; inset: 6% -7% -6% 4%; z-index: -1; border: 1px solid rgba(167, 98, 255, .12); border-radius: 40px; transform: rotate(5deg); }
.identity-card { position: relative; padding: 25px; border: 1px solid rgba(177, 119, 255, .28); border-radius: 25px; background: linear-gradient(145deg, rgba(35, 23, 59, .92), rgba(17, 12, 30, .91)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.055); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease, border-color .25s ease; }
.identity-card::before { content: ''; position: absolute; width: 280px; height: 280px; top: -160px; right: -120px; border-radius: 50%; background: rgba(151, 64, 255, .18); filter: blur(35px); pointer-events: none; }
.identity-top { display: flex; align-items: center; gap: 16px; position: relative; }
.profile-avatar { flex-shrink: 0; width: 82px; height: 82px; display: grid; place-items: center; position: relative; border: 2px solid rgba(213, 180, 255, .62); border-radius: 27px; background: radial-gradient(circle at 28% 25%, #f2a4ff, transparent 26%), radial-gradient(circle at 75% 76%, #49d0ff, transparent 27%), conic-gradient(from 30deg, #6620be, #d14fdd, #4e31d5, #902bda, #6620be); box-shadow: 0 0 28px rgba(163, 78, 255, .22); transform: translateZ(22px); }
.profile-avatar::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; }
.profile-avatar span { font-size: 1.5rem; font-weight: 800; letter-spacing: -.09em; text-shadow: 0 2px 15px rgba(23,6,48,.65); }
.avatar-status { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border: 3px solid #1b1230; border-radius: 50%; background: var(--green); }
.identity-name { font-size: 1.16rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.identity-sub { margin-top: 7px; color: #c4a0fa; font-size: .76rem; }
.card-divider { height: 1px; margin: 23px 0 19px; background: linear-gradient(90deg, rgba(183, 116, 255, .28), rgba(183,116,255,.035)); }
.status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status-title { font-size: .88rem; font-weight: 800; }
.status-description { margin-top: 3px; color: var(--muted); font-size: .77rem; }
.status-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: #9effc2; background: rgba(42, 183, 109, .09); border: 1px solid rgba(85, 223, 143, .18); border-radius: 9px; font: 9px var(--mono); text-transform: uppercase; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #cfc0e2; background: rgba(255,255,255,.035); border: 1px solid rgba(190, 140, 255, .13); border-radius: 999px; font-size: .69rem; }
.mini-tag b { color: #e0c2ff; font-size: .75rem; }
.music-card { margin-top: 15px; padding: 17px 18px 15px; border: 1px solid rgba(177, 119, 255, .19); background: rgba(23, 16, 39, .8); border-radius: 19px; }
.music-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.music-meta { display: flex; align-items: center; gap: 11px; min-width: 0; }
.music-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 13px; background: linear-gradient(140deg, #bb73ff, #772ee1); color: white; }
.music-title { font-size: .81rem; font-weight: 800; }
.music-artist { font-size: .69rem; color: var(--muted); }
.music-note { color: #a99abc; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.music-controls { margin-top: 14px; display: flex; gap: 6px; align-items: center; }
.play-button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(179, 106, 255, .17); color: #f3e5ff; cursor: pointer; }
.visualizer { display: flex; align-items: center; justify-content: center; height: 28px; flex: 1; gap: 3px; overflow: hidden; }
.visualizer i { display: block; width: 3px; height: var(--h, 10px); border-radius: 9px; background: linear-gradient(180deg, #efa5ff, #884dff); opacity: .55; transform-origin: center; }
.visualizer.is-playing i { animation: equalize .72s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); opacity: .95; }
.music-time { color: var(--muted-2); font: 9px var(--mono); }
.floating-note { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 10px 13px; border: 1px solid rgba(181, 130, 255, .23); background: rgba(23, 14, 40, .88); backdrop-filter: blur(16px); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.22); color: #d4c2e9; font-size: .7rem; animation: floaty 6s ease-in-out infinite; }
.floating-note .note-icon { color: var(--cyan); font-size: 1rem; }
.note-one { top: 15%; right: -36px; }
.note-two { left: -34px; bottom: 11%; animation-delay: -3s; }

.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(28, 19, 47, .76), rgba(16, 12, 27, .86)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.interest-card { min-height: 146px; padding: 21px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.interest-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: linear-gradient(145deg, rgba(50, 29, 78, .79), rgba(17, 12, 29, .9)); }
.interest-symbol { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid rgba(179, 124, 255, .21); border-radius: 13px; background: rgba(173, 99, 255, .09); font-size: 1.05rem; }
.interest-card h3 { margin: 0 0 4px; font-size: .9rem; letter-spacing: -.025em; }
.interest-card p { margin: 0; color: var(--muted); font-size: .76rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { position: relative; display: flex; min-height: 300px; flex-direction: column; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(190, 127, 255, .45); box-shadow: 0 24px 50px rgba(0,0,0,.21); }
.project-art { position: relative; min-height: 154px; overflow: hidden; border-bottom: 1px solid rgba(179, 124, 255, .13); background: #171025; }
.project-art::before, .project-art::after { content: ''; position: absolute; pointer-events: none; }
.art-chill { background: radial-gradient(ellipse at 72% 20%, rgba(98, 231, 248, .3), transparent 24%), radial-gradient(ellipse at 30% 75%, rgba(105, 72, 245, .38), transparent 36%), linear-gradient(135deg, #15223c, #201033 72%); }
.art-chill::before { inset: 22px 25px; border: 1px solid rgba(157, 239, 255, .38); transform: rotate(-8deg); border-radius: 12px; box-shadow: 0 0 40px rgba(78, 137, 255, .1); }
.art-chill::after { content: 'CHILL SMP'; left: 35px; bottom: 34px; color: rgba(217, 252, 255, .8); font: 10px var(--mono); letter-spacing: .3em; }
.art-world { background: radial-gradient(circle at 50% 58%, rgba(201, 87, 255, .32), transparent 33%), linear-gradient(145deg, #151126, #0d172c); }
.art-world::before { width: 145px; height: 145px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(28deg); border: 1px solid rgba(203, 161, 255, .58); border-radius: 34%; box-shadow: 0 0 0 13px rgba(164, 94, 255, .05), 0 0 0 30px rgba(164, 94, 255, .04); }
.art-world::after { width: 55px; height: 55px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(135deg, #b66cff, #4f9eff); box-shadow: 0 0 42px #9253fa; }
.art-web { background: radial-gradient(ellipse at 70% 15%, rgba(255, 117, 212, .2), transparent 35%), linear-gradient(145deg, #1a112d, #111525); }
.art-web::before { inset: 25px 34px; border: 1px solid rgba(227, 192, 255, .35); border-radius: 10px; box-shadow: 0 8px 35px rgba(0,0,0,.25); }
.art-web::after { inset: 36px 46px auto; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #e5a3ff 0 18%, transparent 18% 25%, #6f587e 25% 43%, transparent 43% 100%); box-shadow: 0 22px 0 rgba(196, 158, 229, .35), 0 42px 0 rgba(196, 158, 229, .22); }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 19px 20px 20px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 11px; }
.project-type { color: #c5a0fa; font: 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.project-status { color: var(--muted-2); font: 9px var(--mono); }
.project-body h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.04em; }
.project-body p { margin: 0; color: var(--muted); font-size: .78rem; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 19px; color: #d5b8ff; font-size: .75rem; font-weight: 800; }
.project-arrow { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.project-card:hover .project-arrow { transform: rotate(-45deg); background: rgba(165, 90, 255, .16); }

.about-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: stretch; }
.about-preview { padding: 29px; }
.about-preview p { margin: 13px 0 22px; color: var(--muted); max-width: 610px; }
.fact-stack { display: grid; gap: 12px; }
.fact-card { display: flex; align-items: center; gap: 15px; padding: 19px 21px; }
.fact-number { color: #cc9cff; font: 11px var(--mono); }
.fact-card h3 { margin: 0; font-size: .84rem; }
.fact-card p { color: var(--muted); margin: 1px 0 0; font-size: .73rem; }

.art-preview { display: grid; grid-template-columns: 1.3fr .7fr; min-height: 275px; overflow: hidden; }
.art-preview-large { min-height: 270px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 48%, rgba(232, 118, 248, .32), transparent 33%), radial-gradient(ellipse at 30% 15%, rgba(87, 114, 255, .28), transparent 42%), linear-gradient(135deg, #151126, #241039); }
.art-preview-large::before { content: ''; position: absolute; width: 175px; height: 245px; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(19deg); border: 1px solid rgba(242,204,255,.55); border-radius: 49% 51% 44% 56% / 59% 41% 59% 41%; box-shadow: 0 0 0 16px rgba(206, 120, 255, .05), 0 0 75px rgba(179, 85, 255, .12); }
.art-preview-large::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(118deg, transparent 0 20px, rgba(255,255,255,.025) 21px 22px); }
.art-preview-side { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.art-preview-side h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.055em; }
.art-preview-side p { color: var(--muted); font-size: .82rem; margin: 10px 0 22px; }

.contact-panel { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: clamp(24px, 4vw, 44px); overflow: hidden; }
.contact-panel::after { content: ''; position: absolute; width: 300px; height: 300px; right: -90px; top: -200px; background: rgba(144, 66, 255, .2); border-radius: 50%; filter: blur(25px); pointer-events: none; }
.contact-panel h2 { margin: 6px 0 8px; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.06em; line-height: 1.05; }
.contact-panel p { margin: 0; color: var(--muted); font-size: .88rem; }
.contact-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(190, 142, 255, .12); }
.footer-inner { width: min(var(--page-width), calc(100% - 44px)); min-height: 91px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: .72rem; }
.footer-signature { display: flex; align-items: center; gap: 9px; }
.footer-spark { color: #bb82ff; }
.back-top { display: inline-flex; align-items: center; gap: 7px; color: #c6a1f3; font-weight: 700; }

/* About page */
.journey-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; align-items: start; }
.journey-sidebar { position: sticky; top: 108px; padding: 26px; }
.journey-sidebar .profile-avatar { width: 67px; height: 67px; border-radius: 22px; }
.journey-sidebar .profile-avatar::before { border-radius: 17px; }
.journey-sidebar h2 { margin: 17px 0 4px; font-size: 1.2rem; letter-spacing: -.04em; }
.journey-sidebar p { color: var(--muted); font-size: .81rem; margin: 0; }
.sidebar-line { display: flex; gap: 10px; align-items: center; margin-top: 19px; font-size: .75rem; color: #cdb7e4; }
.sidebar-line span:first-child { color: var(--purple); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--purple), rgba(184, 120, 255, .05)); }
.timeline-item { position: relative; margin-bottom: 15px; padding: 21px 22px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 28px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid #b87cff; box-shadow: 0 0 14px rgba(184,124,255,.42); }
.timeline-meta { display: flex; align-items: center; gap: 10px; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c69bff; }
.timeline-item h3 { margin: 9px 0 8px; font-size: 1.02rem; letter-spacing: -.03em; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .82rem; }
.timeline-item details { margin-top: 12px; color: #d0bddf; font-size: .77rem; }
.timeline-item summary { cursor: pointer; font-weight: 800; color: #d8b9ff; }
.timeline-item details p { padding: 10px 0 0; }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skill-tile { padding: 18px; }
.skill-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.skill-top strong { font-size: .82rem; }
.skill-top span { color: var(--muted-2); font: 9px var(--mono); }
.skill-tile p { margin: 8px 0 0; color: var(--muted); font-size: .73rem; }
.skill-rail { height: 4px; margin-top: 16px; background: rgba(255,255,255,.065); border-radius: 99px; overflow: hidden; }
.skill-rail span { display: block; height: 100%; width: var(--w, 45%); border-radius: inherit; background: linear-gradient(90deg, #8747e6, #d589ff); transform-origin: left; animation: grow-rail 1.2s cubic-bezier(.2,.8,.2,1) both; }
.disclaimer { color: var(--muted-2); font-size: .74rem; margin-top: 15px; }

/* Projects page */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.filter-button { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.02); font-size: .75rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.filter-button:hover, .filter-button[aria-pressed="true"] { color: #fff; border-color: var(--border-strong); background: rgba(155, 84, 255, .17); }
.project-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid-wide .project-art { min-height: 190px; }
.project-grid-wide .project-card { min-height: 370px; }
.project-grid-wide .project-body { padding: 22px 24px 23px; }
.project-grid-wide .project-body p { max-width: 520px; }
.project-feature { grid-column: span 2; display: grid; grid-template-columns: .88fr 1.12fr; min-height: 300px; }
.project-feature .project-art { border-bottom: 0; border-right: 1px solid var(--border); min-height: 100%; }
.project-feature .project-body { padding: clamp(22px, 4vw, 40px); justify-content: center; }
.project-feature .project-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.project-feature .project-body p { font-size: .88rem; }

/* Art gallery */
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.gallery-hint { color: var(--muted); font-size: .76rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.art-card { min-width: 0; overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease; }
.art-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.art-thumb { width: 100%; aspect-ratio: 4 / 4.7; position: relative; overflow: hidden; background: #171025; }
.art-thumb::before, .art-thumb::after { content: ''; position: absolute; pointer-events: none; }
.slot-one { background: radial-gradient(ellipse at 47% 34%, rgba(233, 114, 236, .4), transparent 30%), radial-gradient(ellipse at 70% 70%, rgba(92, 103, 255, .45), transparent 35%), linear-gradient(145deg, #111527, #251035); }
.slot-one::before { width: 52%; height: 76%; left: 24%; top: 10%; transform: rotate(11deg); border-radius: 45% 55% 53% 47% / 56% 38% 62% 44%; border: 1px solid rgba(255, 196, 255, .55); box-shadow: 0 0 0 14px rgba(220, 112, 247, .06), inset 0 0 35px rgba(181, 94, 255, .18); }
.slot-two { background: repeating-linear-gradient(132deg, rgba(255,255,255,.018) 0 1px, transparent 1px 15px), radial-gradient(ellipse at 55% 48%, rgba(71, 225, 215, .29), transparent 31%), linear-gradient(135deg, #09282e, #19112b 68%); }
.slot-two::before { width: 65%; height: 65%; left: 18%; top: 17%; border: 1px solid rgba(129, 249, 229, .52); border-radius: 50%; box-shadow: 0 0 0 12px rgba(105,240,222,.045), 0 0 0 27px rgba(105,240,222,.03); }
.slot-two::after { inset: 0; background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(111, 250, 235, .04) 11px 12px); }
.slot-three { background: radial-gradient(ellipse at 32% 36%, rgba(255, 158, 91, .3), transparent 35%), radial-gradient(ellipse at 75% 80%, rgba(176, 88, 255, .25), transparent 33%), linear-gradient(145deg, #211322, #10101e); }
.slot-three::before { width: 57%; height: 57%; left: 21%; top: 22%; transform: rotate(45deg); border: 1px solid rgba(255, 204, 148, .62); border-radius: 6px; box-shadow: 0 0 40px rgba(255, 134, 98, .12); }
.art-placeholder-label { position: absolute; inset: auto 15px 14px; display: flex; justify-content: space-between; gap: 10px; color: rgba(238, 224, 255, .63); font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.art-card-body { padding: 15px 16px 17px; }
.art-card-body h3 { margin: 0; font-size: .89rem; }
.art-card-body p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.gallery-drop { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px; border: 1px dashed rgba(183, 126, 255, .42); border-radius: var(--radius-lg); background: rgba(134, 78, 204, .055); margin-top: 23px; }
.drop-copy { display: flex; align-items: center; gap: 15px; }
.drop-icon { width: 45px; height: 45px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--border); border-radius: 15px; background: rgba(169, 97, 255, .1); font-size: 1.25rem; }
.drop-copy h3 { margin: 0; font-size: .91rem; }
.drop-copy p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
#artwork-input { display: none; }
.upload-preview-note { display: none; margin-top: 12px; color: var(--cyan); font-size: .75rem; }
.upload-preview-note.is-visible { display: block; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(7, 5, 13, .88); backdrop-filter: blur(18px); }
.lightbox.is-open { display: flex; animation: fade-in .2s ease both; }
.lightbox-dialog { position: relative; width: min(920px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--border-strong); border-radius: 22px; background: #130d22; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.lightbox-image { display: block; width: 100%; max-height: 68vh; object-fit: contain; background: #0b0912; }
.lightbox-placeholder { min-height: 350px; display: grid; place-items: center; padding: 50px; background: radial-gradient(circle at 50% 50%, rgba(171, 84, 255, .2), transparent 45%), #130d22; color: #cfb5f4; text-align: center; }
.lightbox-info { padding: 20px 24px 23px; }
.lightbox-info h2 { margin: 0; font-size: 1.18rem; }
.lightbox-info p { margin: 5px 0 0; color: var(--muted); font-size: .83rem; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; }

/* Lab */
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 17px; align-items: stretch; }
.lab-card { padding: 22px; min-width: 0; }
.lab-card-header { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.lab-card-header h3 { margin: 0; font-size: 1rem; letter-spacing: -.04em; }
.lab-card-header p { margin: 4px 0 0; color: var(--muted); font-size: .74rem; }
.lab-chip { font: 9px var(--mono); color: #ceabff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 7px; white-space: nowrap; }
#particle-canvas { display: block; width: 100%; height: 340px; background: radial-gradient(ellipse at center, rgba(90, 43, 145, .16), rgba(8, 8, 17, .62)); border: 1px solid rgba(179, 124, 255, .14); border-radius: 15px; touch-action: pan-y; }
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.lab-controls .button { min-height: 38px; padding: 0 12px; font-size: .73rem; }
.reaction-panel { display: flex; flex-direction: column; min-height: 100%; }
.reaction-box { flex: 1; min-height: 210px; display: grid; place-items: center; padding: 20px; border: 1px solid rgba(179,124,255,.14); border-radius: 15px; background: rgba(5, 5, 12, .32); text-align: center; transition: background .2s ease; }
.reaction-box.is-waiting { background: rgba(123, 67, 36, .2); }
.reaction-box.is-ready { background: rgba(33, 155, 98, .19); border-color: rgba(108,244,162,.37); }
.reaction-box h4 { margin: 0 0 7px; font-size: 1.08rem; letter-spacing: -.04em; }
.reaction-box p { margin: 0; color: var(--muted); font-size: .76rem; }
.reaction-result { font: 500 2.4rem var(--mono); letter-spacing: -.08em; color: #d5b5ff; }
.reaction-actions { margin-top: 13px; }
.color-lab { margin-top: 17px; padding: 22px; }
.color-lab-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(220px, 1.1fr); gap: 24px; align-items: center; }
.control-row { display: grid; grid-template-columns: 85px minmax(0, 1fr) 42px; gap: 12px; align-items: center; margin: 14px 0; color: var(--muted); font-size: .76rem; }
.control-row input[type="range"] { width: 100%; accent-color: #b66cff; }
.control-value { text-align: right; color: #dcc4fb; font: 10px var(--mono); }
.color-preview { position: relative; min-height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(207, 162, 255, .24); border-radius: 17px; background: linear-gradient(130deg, hsl(var(--lab-hue, 273) 67% 22%), hsl(calc(var(--lab-hue, 273) + 54) 62% 13%)); transition: background .2s ease; }
.color-preview::before { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: hsl(var(--lab-hue, 273) 92% 65% / .43); filter: blur(var(--lab-blur, 30px)); transform: translate(var(--lab-x, 0px), var(--lab-y, 0px)); transition: filter .15s ease, transform .15s ease, background .2s ease; }
.color-preview::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(133deg, transparent 0 15px, rgba(255,255,255,.06) 16px 17px); }
.color-preview span { position: relative; z-index: 1; color: rgba(255,255,255,.9); font: 10px var(--mono); letter-spacing: .2em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* Project detail */
.project-hero { min-height: 280px; display: flex; flex-direction: column; justify-content: end; padding: clamp(25px, 5vw, 52px); position: relative; overflow: hidden; margin: 27px 0 28px; }
.project-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 85% 10%, rgba(103, 210, 255, .12), transparent 34%), radial-gradient(ellipse at 10% 90%, rgba(159, 79, 255, .18), transparent 40%); }
.project-hero > * { position: relative; z-index: 1; }
.project-hero h2 { max-width: 720px; margin: 14px 0 11px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.075em; }
.project-hero p { max-width: 670px; margin: 0; color: #bcaecc; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: 18px; align-items: start; }
.detail-content { padding: 27px; }
.detail-content h3 { margin: 0 0 12px; font-size: 1.15rem; letter-spacing: -.04em; }
.detail-content p { color: var(--muted); font-size: .85rem; }
.detail-content p:first-of-type { margin-top: 0; }
.detail-content ul { padding-left: 19px; color: var(--muted); font-size: .83rem; }
.detail-content li { padding: 4px 0; }
.detail-sidebar { padding: 22px; }
.detail-sidebar h3 { margin: 0 0 15px; font-size: .92rem; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(190,142,255,.1); font-size: .74rem; }
.detail-row:last-child { border: 0; }
.detail-row span:first-child { color: var(--muted-2); }
.detail-row span:last-child { color: #d7c2ed; text-align: right; }

/* Toasts, command palette, motion */
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 9px; width: min(360px, calc(100% - 40px)); pointer-events: none; }
.toast { padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 14px; background: rgba(28, 19, 44, .96); box-shadow: 0 15px 40px rgba(0,0,0,.35); color: #e8ddf8; font-size: .78rem; animation: toast-in .25s ease both; pointer-events: auto; }
.toast small { display: block; margin-top: 3px; color: var(--muted); }
.command-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: min(18vh, 130px) 20px 25px; background: rgba(6,4,11,.76); backdrop-filter: blur(15px); }
.command-overlay.is-open { display: flex; animation: fade-in .16s ease both; }
.command-dialog { width: min(560px, 100%); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 20px; background: #171025; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.command-input-wrap { display: flex; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--border); }
.command-input-wrap span { color: #b987f4; }
#command-input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font-size: .91rem; }
.command-list { padding: 8px; }
.command-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 12px 13px; border: 0; border-radius: 12px; background: transparent; color: #ddd0ed; text-align: left; cursor: pointer; font-size: .82rem; }
.command-item:hover, .command-item:focus-visible { background: rgba(156, 86, 255, .14); }
.command-item small { color: var(--muted-2); font: 9px var(--mono); }
.command-foot { padding: 11px 16px; border-top: 1px solid var(--border); color: var(--muted-2); font: 9px var(--mono); display: flex; justify-content: space-between; }
.js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
body.is-leaving main { opacity: .45; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
body main { transition: opacity .15s ease, transform .15s ease; }

/* Reduced motion is a first-class setting. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal { opacity: 1; transform: none; }
}

@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(108,244,162,.07), 0 0 15px rgba(108,244,162,.4); } 50% { box-shadow: 0 0 0 7px rgba(108,244,162,.025), 0 0 20px rgba(108,244,162,.68); } }
@keyframes mark-shine { 0%,72%,100% { transform: translateX(-70%) rotate(22deg); } 86% { transform: translateX(70%) rotate(22deg); } }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes equalize { from { transform: scaleY(.34); } to { transform: scaleY(1.25); } }
@keyframes grow-rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive layout */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 36px; }
  .hero h1 { font-size: clamp(3.2rem, 7vw, 5.2rem); }
  .note-one { right: -18px; }
  .note-two { left: -18px; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .nav-wrap { width: min(var(--page-width), calc(100% - 30px)); min-height: 68px; gap: 12px; }
  .menu-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 12px 15px 17px; background: rgba(12,9,21,.97); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 4px; backdrop-filter: blur(20px); }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 12px 14px; border-radius: 12px; }
  .nav-link[aria-current="page"]::before { margin-right: 8px; }
  .page { width: calc(100% - 30px); padding: 44px 0 70px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 50px; padding: 54px 0 30px; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: clamp(3.6rem, 12vw, 6.1rem); }
  .hero-visual { width: min(100%, 500px); margin: 0 auto; }
  .hero-visual::before { inset: 5% 0 -5% 0; transform: rotate(2deg); }
  .note-one { right: -8px; }
  .note-two { left: -8px; }
  .section { margin-top: 75px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-feature { grid-column: span 2; }
  .about-strip { grid-template-columns: 1fr; }
  .art-preview { grid-template-columns: 1fr .9fr; }
  .journey-layout { grid-template-columns: 1fr; }
  .journey-sidebar { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: 1fr; }
  .reaction-panel { min-height: 300px; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 30px); }
}
@media (max-width: 520px) {
  .brand-name { font-size: .84rem; }
  .brand-name span { font-size: 9px; }
  .nav-tools { gap: 5px; }
  .icon-button { width: 37px; height: 37px; border-radius: 12px; }
  .page-title { font-size: clamp(2.55rem, 13vw, 4rem); }
  .page-head { margin-bottom: 34px; }
  .hero { padding-top: 38px; gap: 43px; }
  .hero h1 { font-size: clamp(2.65rem, 10.7vw, 4.2rem); }
  .hero-kicker { font-size: 9px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1; }
  .identity-card { padding: 19px; border-radius: 22px; }
  .profile-avatar { width: 68px; height: 68px; border-radius: 22px; }
  .profile-avatar::before { border-radius: 17px; }
  .identity-name { font-size: 1.04rem; }
  .floating-note { padding: 8px 10px; font-size: .62rem; }
  .note-one { top: -22px; right: 5px; }
  .note-two { bottom: -20px; left: 5px; }
  .status-row { flex-direction: column; }
  .status-pill { align-self: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .interest-grid { gap: 9px; }
  .interest-card { min-height: 132px; padding: 15px; }
  .interest-symbol { margin-bottom: 12px; }
  .project-grid, .project-grid-wide { grid-template-columns: 1fr; }
  .project-feature { grid-column: auto; display: flex; }
  .project-feature .project-art { min-height: 175px; border-right: 0; border-bottom: 1px solid var(--border); }
  .project-grid-wide .project-card { min-height: 320px; }
  .art-preview { grid-template-columns: 1fr; }
  .art-preview-large { min-height: 230px; }
  .art-preview-side { padding: 22px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 19px 0; gap: 8px; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .skill-tile { padding: 14px; }
  .skill-top { flex-wrap: wrap; }
  .timeline { padding-left: 20px; }
  .timeline-item { padding: 17px; }
  .timeline-item::before { left: -20px; }
  .gallery-grid { gap: 10px; }
  .art-card-body { padding: 12px; }
  .art-card-body h3 { font-size: .8rem; }
  .gallery-drop { align-items: flex-start; flex-direction: column; padding: 19px; }
  .drop-copy { align-items: flex-start; }
  .drop-copy p { overflow-wrap: anywhere; }
  .gallery-drop .button { width: 100%; }
  .color-lab-grid { grid-template-columns: 1fr; }
  #particle-canvas { height: 280px; }
  .control-row { grid-template-columns: 70px minmax(0,1fr) 36px; gap: 7px; }
  .project-hero { min-height: 250px; }
  .detail-content { padding: 21px; }
}

.profile-avatar.secret-found { animation: secret-pop .65s cubic-bezier(.2,.8,.2,1); }
@keyframes secret-pop { 0%,100% { transform: scale(1) rotate(0); } 45% { transform: scale(1.15) rotate(12deg); filter: hue-rotate(65deg); } }


/* =========================================
   ASHITOSH PORTFOLIO — FOUR-THEME SYSTEM
   Append this block to the END of styles.css
   ========================================= */

/* Default: Purple */
:root {
  --theme-glow-a: rgba(108, 46, 180, .19);
  --theme-glow-b: rgba(70, 28, 125, .13);
  --theme-header: rgba(12, 9, 21, .78);
  --theme-mobile-nav: rgba(12, 9, 21, .97);

  --theme-surface: linear-gradient(
    145deg, rgba(28, 19, 47, .94), rgba(16, 12, 27, .96)
  );
  --theme-surface-hover: linear-gradient(
    145deg, rgba(50, 29, 78, .96), rgba(17, 12, 29, .98)
  );
  --theme-identity: linear-gradient(
    145deg, rgba(35, 23, 59, .98), rgba(17, 12, 30, .98)
  );
  --theme-orb: rgba(151, 64, 255, .18);

  --theme-accent-soft: rgba(166, 101, 255, .10);
  --theme-title: linear-gradient(
    100deg, #fff 0%, #d7b7ff 34%, #b477ff 65%, #ee93d8 100%
  );
  --theme-button: linear-gradient(115deg, #9a4ef5, #7026cf);
  --theme-button-hover: linear-gradient(115deg, #ac69ff, #8038e5);
  --theme-accent-text: #d7c4ef;

  --theme-tag-bg: rgba(129, 72, 190, .085);
  --theme-tag-border: rgba(179, 125, 255, .20);
  --theme-control-bg: rgba(255, 255, 255, .025);

  --theme-dialog-bg: #130d22;
  --theme-overlay: rgba(7, 5, 13, .88);
  --theme-brand: linear-gradient(145deg, #cc8bff, #7734ed 62%, #351b76);
}

/* 1. BLACK — clean monochrome */
:root[data-theme="black"] {
  color-scheme: dark;

  --bg: #050505;
  --bg-2: #0c0c0d;
  --panel: rgba(18, 18, 20, .88);
  --panel-solid: #111112;
  --panel-2: #1b1b1d;
  --border: rgba(235, 235, 235, .13);
  --border-strong: rgba(235, 235, 235, .30);

  --text: #f4f4f4;
  --muted: #b2b2b2;
  --muted-2: #858585;

  --purple: #e0e0e0;
  --purple-2: #a7a7a7;
  --pink: #c9c9c9;
  --cyan: #bdc8d5;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);

  --theme-glow-a: rgba(255, 255, 255, .035);
  --theme-glow-b: rgba(170, 170, 170, .025);
  --theme-header: rgba(5, 5, 5, .88);
  --theme-mobile-nav: rgba(8, 8, 8, .98);

  --theme-surface: linear-gradient(145deg, #181819, #101011);
  --theme-surface-hover: linear-gradient(145deg, #272729, #151516);
  --theme-identity: linear-gradient(145deg, #202022, #111112);
  --theme-orb: rgba(230, 230, 230, .06);

  --theme-accent-soft: rgba(255, 255, 255, .075);
  --theme-title: linear-gradient(100deg, #fff, #cecece, #929292);
  --theme-button: linear-gradient(115deg, #4a4a4a, #202020);
  --theme-button-hover: linear-gradient(115deg, #666, #303030);
  --theme-accent-text: #e2e2e2;

  --theme-tag-bg: rgba(255, 255, 255, .045);
  --theme-tag-border: rgba(255, 255, 255, .15);
  --theme-control-bg: rgba(255, 255, 255, .035);

  --theme-dialog-bg: #101010;
  --theme-overlay: rgba(0, 0, 0, .88);
  --theme-brand: linear-gradient(145deg, #dedede, #777 62%, #292929);
}

/* 2. WHITE — bright and minimal */
:root[data-theme="white"] {
  color-scheme: light;

  --bg: #f7f7fb;
  --bg-2: #eeedf4;
  --panel: rgba(255, 255, 255, .92);
  --panel-solid: #ffffff;
  --panel-2: #f0eef7;
  --border: rgba(60, 44, 82, .13);
  --border-strong: rgba(91, 60, 143, .30);

  --text: #211a2c;
  --muted: #62596f;
  --muted-2: #81788d;

  --purple: #7044bb;
  --purple-2: #51319a;
  --pink: #a94493;
  --cyan: #226e82;
  --green: #16834b;
  --amber: #95600e;
  --shadow: 0 24px 80px rgba(41, 27, 65, .12);

  --theme-glow-a: rgba(135, 91, 200, .11);
  --theme-glow-b: rgba(105, 85, 165, .055);
  --theme-header: rgba(250, 249, 253, .88);
  --theme-mobile-nav: rgba(250, 249, 253, .99);

  --theme-surface: linear-gradient(145deg, #ffffff, #f0eef7);
  --theme-surface-hover: linear-gradient(145deg, #f4efff, #eae5f5);
  --theme-identity: linear-gradient(145deg, #ffffff, #eee9f8);
  --theme-orb: rgba(124, 76, 196, .10);

  --theme-accent-soft: rgba(112, 68, 187, .10);
  --theme-title: linear-gradient(100deg, #302044, #6846a7, #9b478e);
  --theme-button: linear-gradient(115deg, #7650c6, #4c2c90);
  --theme-button-hover: linear-gradient(115deg, #875ed5, #6040a7);
  --theme-accent-text: #6540a8;

  --theme-tag-bg: rgba(112, 68, 187, .06);
  --theme-tag-border: rgba(112, 68, 187, .19);
  --theme-control-bg: rgba(70, 45, 100, .035);

  --theme-dialog-bg: #ffffff;
  --theme-overlay: rgba(24, 16, 36, .60);
  --theme-brand: linear-gradient(145deg, #bda3ef, #7950c7 62%, #493078);
}

/* 3. DARK BLUE — midnight / electric blue */
:root[data-theme="blue"] {
  color-scheme: dark;

  --bg: #050b18;
  --bg-2: #081327;
  --panel: rgba(10, 23, 45, .88);
  --panel-solid: #0b1830;
  --panel-2: #10213e;
  --border: rgba(83, 154, 255, .18);
  --border-strong: rgba(89, 169, 255, .42);

  --text: #edf5ff;
  --muted: #a0b4d0;
  --muted-2: #7187a8;

  --purple: #76b7ff;
  --purple-2: #397ee8;
  --pink: #7daeff;
  --cyan: #53dfff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);

  --theme-glow-a: rgba(30, 100, 220, .20);
  --theme-glow-b: rgba(25, 70, 155, .13);
  --theme-header: rgba(5, 11, 24, .88);
  --theme-mobile-nav: rgba(5, 11, 24, .98);

  --theme-surface: linear-gradient(145deg, #10203b, #081327);
  --theme-surface-hover: linear-gradient(145deg, #17345c, #0b1931);
  --theme-identity: linear-gradient(145deg, #132747, #09152a);
  --theme-orb: rgba(54, 133, 255, .16);

  --theme-accent-soft: rgba(78, 153, 255, .12);
  --theme-title: linear-gradient(100deg, #ffffff, #a9d5ff, #64aaff);
  --theme-button: linear-gradient(115deg, #287fe8, #1645a2);
  --theme-button-hover: linear-gradient(115deg, #4297ff, #2058c4);
  --theme-accent-text: #a9d1ff;

  --theme-tag-bg: rgba(63, 132, 230, .09);
  --theme-tag-border: rgba(83, 154, 255, .24);
  --theme-control-bg: rgba(115, 173, 255, .04);

  --theme-dialog-bg: #0b1830;
  --theme-overlay: rgba(2, 6, 16, .88);
  --theme-brand: linear-gradient(145deg, #8ed5ff, #397ee8 62%, #142b68);
}

/* Connect the palette variables to the existing components. */
body {
  background:
    radial-gradient(ellipse at 52% -22%, var(--theme-glow-a), transparent 52%),
    radial-gradient(ellipse at 6% 42%, var(--theme-glow-b), transparent 38%),
    var(--bg);
}

.site-header {
  background: var(--theme-header);
  border-bottom-color: var(--border);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--theme-accent-soft);
  border-color: var(--border);
}

.icon-button {
  color: var(--text);
  background: var(--theme-control-bg);
}

.icon-button:hover {
  background: var(--theme-accent-soft);
}

.brand-mark {
  color: #fff;
  background: var(--theme-brand);
}

.kicker,
.lab-chip,
.timeline-item summary {
  color: var(--purple);
}

.page-title .gradient,
.gradient-text {
  background: var(--theme-title);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h1 .outline {
  -webkit-text-stroke: 1px var(--purple);
}

.hero-kicker {
  color: var(--text);
  background: var(--panel);
}

.hero-lede,
.timeline-item details {
  color: var(--muted);
}

.hero-lede strong {
  color: var(--text);
}

.inline-link,
.button-text,
.project-foot,
.project-type,
.fact-number,
.reaction-result,
.control-value,
.detail-row span:last-child {
  color: var(--theme-accent-text);
}

.button:hover {
  background: var(--theme-accent-soft);
}

.button-primary {
  color: #fff;
  border-color: var(--border-strong);
  background: var(--theme-button);
}

.button-primary:hover {
  background: var(--theme-button-hover);
}

.tag {
  color: var(--muted);
  background: var(--theme-tag-bg);
  border-color: var(--theme-tag-border);
}

.identity-card {
  background: var(--theme-identity);
  border-color: var(--border-strong);
}

.identity-card::before {
  background: var(--theme-orb);
}

.identity-sub {
  color: var(--purple);
}

.panel {
  background: var(--theme-surface);
}

.interest-card:hover {
  background: var(--theme-surface-hover);
}

.mini-tag,
.floating-note,
.music-card {
  color: var(--text);
  background: var(--theme-surface);
  border-color: var(--border);
}

.project-card:hover {
  border-color: var(--border-strong);
}

.project-arrow:hover,
.project-card:hover .project-arrow,
.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--text);
  background: var(--theme-accent-soft);
}

.timeline::before {
  background: linear-gradient(var(--purple), transparent);
}

.timeline-item::before {
  border-color: var(--purple);
  box-shadow: 0 0 14px var(--theme-accent-soft);
}

.gallery-drop {
  background: var(--theme-tag-bg);
  border-color: var(--border-strong);
}

.drop-icon {
  background: var(--theme-accent-soft);
}

.lightbox {
  background: var(--theme-overlay);
}

.lightbox-dialog,
.command-dialog {
  color: var(--text);
  background: var(--theme-dialog-bg);
}

.lightbox-placeholder {
  color: var(--muted);
  background: radial-gradient(circle, var(--theme-accent-soft), transparent 50%),
              var(--theme-dialog-bg);
}

.toast {
  color: var(--text);
  background: var(--theme-dialog-bg);
}

.command-overlay {
  background: var(--theme-overlay);
}

.command-item {
  color: var(--text);
}

.command-item:hover,
.command-item:focus-visible {
  background: var(--theme-accent-soft);
}

/* Theme picker dropdown */
.theme-picker {
  position: relative;
  flex: 0 0 auto;
}

.theme-trigger {
  font-size: 1.05rem;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 160;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.theme-menu[hidden] {
  display: none !important;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: .82rem;
  cursor: pointer;
}

.theme-option:hover,
.theme-option[aria-pressed="true"] {
  background: var(--theme-accent-soft);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--swatch);
}

.theme-check {
  margin-left: auto;
  color: var(--purple);
  opacity: 0;
}

.theme-option[aria-pressed="true"] .theme-check {
  opacity: 1;
}

/* Keep the extra navbar control mobile-friendly. */
@media (max-width: 780px) {
  .nav-links {
    background: var(--theme-mobile-nav);
  }
}

@media (max-width: 520px) {
  .nav-wrap {
    gap: 6px;
  }

  .nav-tools {
    gap: 4px;
  }

  .nav-tools .icon-button:not(.theme-trigger) {
    width: 34px;
  }

  .theme-trigger {
    width: 32px;
  }

  .brand-name span {
    display: none;
  }
}
