/* Manan Shah — portfolio. A point cloud on a quiet page. */

@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url("fonts/mona-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url("fonts/mona-sans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0c1626;
  --night-2: #12203a;
  --glacier: #e8eef5;
  --snowline: #b9c7d8;
  --mist: #8495ab;
  --sky: #5aa2ff;
  --gold: #f4c35a;
  --rule: rgba(185, 199, 216, .18);
  --c-ai: #5aa2ff; --c-data: #e8eef5; --c-bi: #f4c35a; --c-cloud: #7fd1b9; --c-int: #f29bb2;
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gx: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); overflow-x: clip; }
html:not(.motion) { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--glacier); font: 400 17px/1.6 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--sky); color: var(--night); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; left: -999px; top: 12px; z-index: 50; background: var(--glacier); color: var(--night); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ───── the field ───── */
.cloud { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.has-gl .cloud { opacity: 1; }

/* ───── header + tracker ───── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gx) 34px; background: linear-gradient(var(--night) 62%, rgba(12, 22, 38, 0)); }
.top .name { font-weight: 700; font-stretch: 112%; text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.top nav a { text-decoration: none; color: var(--snowline); font-size: 15px; transition: color .25s; }
.top nav a:hover { color: var(--glacier); }

.tracker { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 14px; }
.tracker a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; height: 14px; }
.tracker a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mist); transition: transform .3s var(--ease), background .3s; }
.tracker span { font-size: 13px; color: var(--snowline); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.tracker a:hover span, .tracker a:focus-visible span, .tracker a[aria-current="true"] span { opacity: 1; transform: none; }
.tracker a[aria-current="true"]::after { background: var(--sky); transform: scale(1.7); }
@media (max-width: 900px) { .tracker { display: none; } }
@media (max-width: 480px) { .top { padding-top: 16px; } .top nav { gap: 14px; } .top nav a { font-size: 14px; } }

/* ───── scenes ───── */
main { position: relative; z-index: 1; }
.scene { position: relative; min-height: 100svh; display: flex; align-items: center; padding: clamp(110px, 16vh, 180px) var(--gx); }
.col { width: 100%; max-width: 540px; position: relative; }
.col.wide { max-width: 640px; }
.col.full { max-width: 1240px; margin: 0 auto; }
h2 { font-weight: 700; font-stretch: 118%; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 28px; text-wrap: balance; }
.scene p + p { margin-top: 16px; }
.scene .col > p { color: var(--snowline); max-width: 60ch; }

/* text over the point cloud needs a little help on small screens */
@media (max-width: 900px) {
  .scene:not(.hero) .col { background: rgba(12, 22, 38, .72); border-radius: 18px; padding: 22px; margin: 0 -6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .scene .col.full { background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ───── hero ───── */
.hero { align-items: flex-end; padding-bottom: clamp(70px, 12vh, 130px); }
.display { font-weight: 800; font-stretch: 125%; font-size: clamp(56px, 8.4vw, 150px); line-height: .9; letter-spacing: -.04em; margin-bottom: 26px; }
.lede { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; max-width: 24ch; }
.where { margin-top: 18px !important; color: var(--snowline); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 99px; background: var(--glacier); color: var(--night); text-decoration: none; font-weight: 650; transition: background .25s, transform .3s var(--ease); }
.btn:hover { background: var(--sky); transform: translateY(-2px); }
.btn:disabled { opacity: .6; }
.text-link { color: var(--glacier); text-decoration-color: var(--sky); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--sky); }
.hint { position: absolute; right: var(--gx); bottom: 36px; font-size: 13px; color: var(--mist); }
.still { display: none; }
html:not(.has-gl) .hero .still { display: block; position: absolute; right: var(--gx); top: 50%; transform: translateY(-50%); width: min(46vw, 640px); border-radius: 20px; opacity: .9; }
html:not(.has-gl) .hint { display: none; }
.motion .hero .col > * { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.motion.ready .hero .col > * { opacity: 1; transform: none; }
.motion.ready .hero .col > :nth-child(2) { transition-delay: .12s; }
.motion.ready .hero .col > :nth-child(3) { transition-delay: .22s; }
.motion.ready .hero .col > :nth-child(4) { transition-delay: .32s; }
@media (max-width: 900px) {
  .hero { min-height: 100svh; }
  .hint { display: none; }
  html:not(.has-gl) .hero .still { position: static; transform: none; width: 100%; margin-bottom: 28px; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
}

/* ───── about ───── */
.focus { margin-top: 36px; border-top: 1px solid var(--rule); }
.focus div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.focus dt { font-weight: 650; }
.focus dd { color: var(--mist); font-size: 15.5px; margin-top: 2px; }

/* ───── experience ───── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--sky), var(--rule) 30%); }
.timeline > li { position: relative; padding-bottom: 44px; }
.timeline > li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 2px var(--sky); }
.timeline > li:first-child::before { background: var(--sky); }
.when { font-size: 14px; color: var(--mist); }
.timeline h3, .schools h3 { font-weight: 700; font-stretch: 110%; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.015em; margin: 4px 0 4px; }
.org { color: var(--snowline); font-size: 15.5px; }
.org a { text-decoration-color: var(--rule); text-underline-offset: 4px; }
.org a:hover { text-decoration-color: var(--sky); }
.timeline ul { margin-top: 14px; display: grid; gap: 9px; }
.timeline ul li { position: relative; padding-left: 18px; color: #d3dce7; font-size: 15.5px; line-height: 1.55; }
.timeline ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--mist); }
.stack { margin-top: 14px !important; font-size: 14px; color: var(--mist); }

/* ───── work ───── */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2vw, 28px); }
.projects a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: rgba(18, 32, 58, .82); border-radius: 18px; overflow: hidden; outline-offset: 4px; transition: transform .5s var(--ease), background .3s; }
.projects a:hover { transform: translateY(-6px); background: rgba(24, 42, 74, .95); }
.projects img { width: 100%; aspect-ratio: 700 / 336; object-fit: cover; transition: transform .8s var(--ease); }
.projects a:hover img { transform: scale(1.04); }
.projects h3 { font-weight: 700; font-stretch: 110%; font-size: 21px; letter-spacing: -.01em; margin: 20px 22px 6px; }
.projects p { color: var(--snowline); font-size: 15px; margin: 0 22px; }
.projects span { margin: auto 22px 20px; padding-top: 16px; font-size: 14.5px; color: var(--sky); }
.projects a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ───── education ───── */
.schools { border-top: 1px solid var(--rule); }
.schools li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.schools li p:last-child { color: var(--snowline); font-size: 15.5px; }
.schools .now .when { color: var(--gold); }
.caption { margin-top: 22px !important; font-size: 14px; color: var(--mist) !important; }

/* ───── tools ───── */
.sub { color: var(--snowline); margin: -12px 0 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.legend button { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(18, 32, 58, .85); font-size: 14.5px; transition: background .25s, color .25s; }
.legend button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend button:hover { background: rgba(32, 54, 92, .95); }
.legend button[aria-pressed="true"] { background: var(--c); color: var(--night); }
.legend button[aria-pressed="true"]::before { background: var(--night); }
[data-cat="ai"] { --c: var(--c-ai); } [data-cat="data"] { --c: var(--c-data); } [data-cat="bi"] { --c: var(--c-bi); }
[data-cat="cloud"] { --c: var(--c-cloud); } [data-cat="int"] { --c: var(--c-int); }
.bubbles { display: flex; flex-wrap: wrap; gap: 10px; }
.bubbles li {
  --d: 108px; width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 10px;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, white), var(--c) 60%, color-mix(in srgb, var(--c) 70%, black));
  color: var(--night); font-weight: 650; font-size: calc(var(--d) * .135); line-height: 1.08; user-select: none; transition: opacity .35s, filter .35s;
}
.bubbles li[data-s="1"] { --d: 82px; font-size: 12px; } .bubbles li[data-s="2"] { --d: 104px; } .bubbles li[data-s="3"] { --d: 128px; } .bubbles li[data-s="4"] { --d: 158px; }
.bubbles.dim li:not(.hi) { opacity: .18; filter: saturate(0); }
.jar.physics { position: relative; height: clamp(460px, 64vh, 640px); border-radius: 28px; overflow: hidden; background: rgba(18, 32, 58, .55); touch-action: pan-y; }
.jar.physics .bubbles { display: block; }
.jar.physics .bubbles li { position: absolute; left: 0; top: 0; cursor: grab; will-change: transform; touch-action: none; }
.jar.physics .bubbles li.grab { cursor: grabbing; }
@media (max-width: 700px) { .bubbles li[data-s="1"] { --d: 58px; font-size: 9.5px; } .bubbles li[data-s="2"] { --d: 72px; } .bubbles li[data-s="3"] { --d: 88px; } .bubbles li[data-s="4"] { --d: 106px; } .jar.physics { height: 540px; } }

/* ───── certifications ───── */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.certs li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(18, 32, 58, .82); transition: background .3s; }
.certs li:hover { background: rgba(24, 42, 74, .95); }
.certs img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); transition: transform .6s var(--ease); }
.certs li:hover img { transform: scale(1.08) rotate(-4deg); }
.certs h3 { font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.certs p { font-size: 13.5px; color: var(--mist); margin-top: 3px !important; }
.certs .links { display: flex; gap: 14px; margin-top: 8px !important; }
.certs .links a { color: var(--snowline); text-underline-offset: 3px; text-decoration-color: var(--rule); }
.certs .links a:hover { color: var(--sky); text-decoration-color: var(--sky); }

/* ───── contact ───── */
.display-2 { font-weight: 800; font-stretch: 122%; font-size: clamp(40px, 5.4vw, 84px); line-height: .98; letter-spacing: -.035em; }
.mail { display: inline-block; margin-top: 30px; font-weight: 650; font-stretch: 108%; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.015em; text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 4px; word-break: break-all; transition: color .25s; }
.mail:hover { color: var(--sky); }
.copy { display: block; margin-top: 12px; font-size: 14px; color: var(--mist); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.copy:hover { color: var(--glacier); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.socials a { color: var(--snowline); text-underline-offset: 4px; text-decoration-color: var(--rule); }
.socials a:hover { color: var(--glacier); text-decoration-color: var(--sky); }
.form { display: grid; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--snowline); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--glacier); background: rgba(18, 32, 58, .7); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; resize: vertical; transition: border-color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.hp { position: absolute; left: -9999px; }
.captcha:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 14.5px; color: var(--mist); }
.form-status.ok { color: var(--c-cloud); }
.form-status.err { color: var(--c-int); }

.foot { position: relative; z-index: 1; padding: 40px var(--gx) 48px; color: var(--mist); font-size: 14px; border-top: 1px solid var(--rule); background: var(--night); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
