/* vikash.party
   Same family as the CV: Lora headings, Instrument Sans body,
   burgundy on a faintly pink paper, blush tints for emphasis. */

:root {
  color-scheme: light;
  --paper: #fffafb;
  --card: #ffffff;
  --ink: #2a2328;
  --ink-strong: #1d171b;
  --muted: #6b6168;
  --accent: #7a1f45;
  --accent-deep: #5e1534;
  --rose: #c4577f;
  --blush: #f7eef2;
  --blush-strong: #efd9e2;
  --rule: #ecdfe5;
  --shadow: 0 1px 2px rgba(122, 31, 69, .05), 0 12px 32px -12px rgba(122, 31, 69, .16);
  --shadow-lift: 0 2px 4px rgba(122, 31, 69, .06), 0 24px 48px -16px rgba(122, 31, 69, .24);
  --serif: "Lora", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --page: 1140px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 600; color: var(--ink-strong); }
ul { list-style: none; }
::selection { background: var(--blush-strong); color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
main, footer { position: relative; z-index: 1; }

/* ---------- Drifting blush background ---------- */
.wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wash i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.wash i:nth-child(1) { width: 620px; height: 620px; background: #f6d7e3; top: -220px; right: -160px; animation: drift1 26s ease-in-out infinite alternate; }
.wash i:nth-child(2) { width: 520px; height: 520px; background: #f3e1ea; top: 40%; left: -220px; animation: drift2 32s ease-in-out infinite alternate; }
.wash i:nth-child(3) { width: 420px; height: 420px; background: #f9e4d9; bottom: -160px; right: 18%; opacity: .45; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-140px, 160px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(160px, -120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-120px, -140px) scale(1.15); } }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(calc(100% - 24px), 760px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 250, 251, .62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(236, 223, 229, .7);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.scrolled { background: rgba(255, 250, 251, .86); box-shadow: var(--shadow); border-color: var(--rule); }
.nav .brand { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a.item { display: block; white-space: nowrap; text-decoration: none; font-size: 15px; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.item:hover { color: var(--accent); background: rgba(247, 238, 242, .9); }
.nav a.item[aria-current="page"] { color: var(--accent); background: var(--blush); }
.nav a.cv { margin-left: 4px; }
.ext { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
.nav a.page { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
a:hover > .ext { transform: translate(2px, -2px); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { padding-left: 16px; } }
@media (max-width: 420px) { .nav .hide-xs { display: none; } .nav a.item { padding: 8px 10px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 15px/1 var(--sans); text-decoration: none; border: 0;
  padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px -10px rgba(122, 31, 69, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(122, 31, 69, .7); }
.btn.small { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.btn.small:hover { transform: none; box-shadow: none; }
.btn.quiet { background: rgba(255, 255, 255, .7); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--blush-strong); }
.btn.quiet:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rose), 0 10px 24px -14px rgba(122, 31, 69, .5); }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--accent); text-decoration: underline; text-decoration-color: var(--blush-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(80px, 11vw, 140px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.015em; color: var(--accent); }
.section-head p { color: var(--muted); max-width: 36em; }
h3, h4 { color: var(--ink-strong); }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 920px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-top: 110px; padding-bottom: 40px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; color: var(--accent);
  font-size: clamp(52px, 8.6vw, 112px); line-height: .98; letter-spacing: -.025em;
  position: relative; isolation: isolate; width: fit-content;
}
.hero h1 .swipe { position: absolute; left: -3%; bottom: -.02em; width: 82%; height: .4em; z-index: -1; color: var(--blush-strong); overflow: visible; }
.hero h1 .swipe path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: swipe 1.1s .5s var(--ease) forwards; }
@keyframes swipe { to { stroke-dashoffset: 0; } }
.hero .role { font-size: clamp(20px, 2.1vw, 24px); margin-top: 22px; color: var(--ink-strong); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-strong); background: rgba(255, 255, 255, .75); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px 5px 11px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.hero .intro { max-width: 33em; margin-top: 14px; font-size: 18px; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.portrait { position: relative; justify-self: end; width: min(100%, 380px); }
.portrait .frame {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--blush); box-shadow: var(--shadow-lift);
  outline: 1.5px solid rgba(255, 255, 255, .8); outline-offset: -10px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.portrait:hover img { transform: scale(1.08); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-8px) rotate(var(--r)); } }

.scroll-cue { display: flex; justify-content: center; padding-bottom: 8px; }
.scroll-cue span { width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid var(--blush-strong); position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--rose); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 112px; }
  .portrait { justify-self: start; width: min(78%, 300px); order: -1; margin-left: 20px; }
      .scroll-cue { display: none; }
}

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num {
  background: rgba(255, 255, 255, .78); border: 1px solid var(--rule); border-radius: 22px;
  padding: 24px 22px 22px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.num:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.num b { display: block; white-space: nowrap; font: 600 clamp(26px, 2.9vw, 36px)/1 var(--serif); color: var(--accent); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) { .num { padding: 18px 16px; } .num b { font-size: 25px; white-space: normal; } .num span { font-size: 14px; } }

/* ---------- About ---------- */
.about-intro { max-width: 46em; margin-bottom: clamp(28px, 4vw, 40px); }
.about-intro .big { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.32; color: var(--ink-strong); letter-spacing: -.005em; }
.about-intro p + p { margin-top: 16px; font-size: 18px; color: var(--ink); }

/* ---------- Path (first, then, now) ---------- */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; background: rgba(255, 255, 255, .78); border: 1px solid var(--rule); border-radius: 26px;
  padding: 28px 26px 30px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step .when { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--blush); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.step p { font-size: 16px; }
.step::after { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--blush) 0%, transparent 70%); }
@media (max-width: 860px) { .path { grid-template-columns: 1fr; } }

/* ---------- Experience ---------- */
.company { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.company .mark { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 15px var(--sans); letter-spacing: .02em; }
.company h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.company span { color: var(--muted); font-size: 15px; }
.jobs { position: relative; padding-left: 34px; }
.jobs::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--blush-strong)); }
.job {
  position: relative; background: rgba(255, 255, 255, .8); border: 1px solid var(--rule); border-radius: 22px;
  padding: 22px 26px 24px; margin-bottom: 14px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.job:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); border-color: var(--blush-strong); }
.job::before { content: ""; position: absolute; left: -34px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--accent); }
.job.current::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(122, 31, 69, .12); }
.job header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.job h4 { font-size: 18.5px; font-weight: 700; color: var(--accent); }
.job .team { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.job time { font-size: 14.5px; color: var(--muted); white-space: nowrap; background: var(--blush); border-radius: 999px; padding: 3px 12px; }
.job ul { margin-top: 12px; }
.job li { position: relative; padding-left: 18px; margin-top: 7px; font-size: 16px; }
.job li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); opacity: .7; }
@media (max-width: 560px) { .jobs { padding-left: 24px; } .jobs::before { left: 4px; } .job::before { left: -26px; width: 13px; height: 13px; } .job { padding: 18px 18px 20px; } }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill { background: rgba(255, 255, 255, .78); border: 1px solid var(--rule); border-radius: 22px; padding: 22px 24px 24px; box-shadow: var(--shadow); }
.skill h3 { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14.5px; padding: 6px 13px; border-radius: 999px; background: var(--blush); color: var(--ink-strong); transition: background .2s, color .2s; }
.chips li:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Education and side projects ---------- */
.pair { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.panel { background: rgba(255, 255, 255, .78); border: 1px solid var(--rule); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--accent); margin-bottom: 18px; }
.panel h3 { font-size: 18px; font-weight: 700; }
.panel p { color: var(--muted); margin-top: 4px; }
.panel .grade { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--blush); padding: 5px 12px; border-radius: 999px; }
.mini { display: grid; gap: 10px; }
.mini a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 8px; margin: -8px; border-radius: 16px; transition: background .25s; }
.mini a:hover { background: var(--blush); }
.mini img { width: 76px; height: 56px; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.mini strong { display: block; color: var(--accent); }
.mini span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.panel .more { margin-top: 20px; }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(80px, 11vw, 140px);
  background: var(--accent); color: #fff; border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px 48px; align-items: end;
}
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); z-index: -1; }
.contact::before { width: 360px; height: 360px; background: #a23866; right: -80px; top: -120px; animation: drift3 18s ease-in-out infinite alternate; }
.contact::after { width: 260px; height: 260px; background: #5e1534; left: 20%; bottom: -140px; }
.contact h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -.02em; }
.contact p { margin-top: 14px; max-width: 30em; color: rgba(255, 255, 255, .82); }
.contact .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.contact .btn { background: #fff; color: var(--accent); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }
.contact .btn:hover { background: var(--blush); }
.contact .btn.quiet { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.contact .btn.quiet:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .contact .actions { justify-content: flex-start; } }

footer.site { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-top: 32px; padding-bottom: 40px; }

/* ---------- Projects page ---------- */
.page-head { padding-top: clamp(120px, 16vw, 170px); max-width: 780px; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 7.4vw, 88px); line-height: 1; letter-spacing: -.025em; color: var(--accent); }
.page-head p { margin-top: 20px; max-width: 36em; font-size: 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { text-decoration: none; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--rule); color: var(--ink-strong); transition: background .2s, border-color .2s, color .2s; }
.jump a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.project {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-top: clamp(80px, 10vw, 130px);
}
.project.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project.flip .media { order: -1; }
.project h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.015em; color: var(--accent); }
.project .kind { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--blush); padding: 5px 12px; border-radius: 999px; }
.project .body > p { margin-top: 16px; }
.project h3 { font-size: 15.5px; font-weight: 700; margin-top: 24px; }
.points { margin-top: 4px; }
.points li { position: relative; padding-left: 18px; margin-top: 9px; font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); opacity: .7; }
.points b { font-weight: 600; color: var(--ink-strong); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stack li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--rule); }
.project .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.media { position: relative; }
.media .window {
  position: relative; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 6px rgba(122, 31, 69, .06), 0 40px 80px -30px rgba(122, 31, 69, .35);
  outline: 1px solid rgba(122, 31, 69, .06);
  transform: perspective(1400px) rotateY(var(--tilt, -4deg)) rotateX(2deg) scale(.97);
  transition: transform 1.2s var(--ease);
}
.project.flip .media .window { --tilt: 4deg; }
.media.in .window, .media:hover .window { transform: perspective(1400px) rotateY(0) rotateX(0) scale(1); }
.media video, .media img { width: 100%; height: auto; }
.media .glow { position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, var(--blush-strong), transparent); filter: blur(30px); }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px 8px 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-strong); box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite; --r: 0deg;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px var(--blush); margin-left: 4px; }
.chip.tl { top: -16px; left: 24px; }
.chip.br { bottom: -16px; right: 24px; animation-delay: -3.5s; }
.chip.bl { bottom: -16px; left: 24px; animation-delay: -2s; }
@media (max-width: 860px) {
  .project, .project.flip { grid-template-columns: 1fr; padding-top: 72px; }
  .project .media, .project.flip .media { order: -1; margin-bottom: 8px; }
  .chip { font-size: 13px; }
  .chip.tl { left: 12px; } .chip.br { right: 12px; } .chip.bl { left: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 .swipe path { stroke-dashoffset: 0; }
  .media .window { transform: none; }
}
