/* A dark, cinematic page. Motion is decoration only: with no JavaScript, or with reduced motion
   turned on, everything is simply shown. */
:root {
  --bg: #05070c;
  --bg2: #0a0e16;
  --ink: #f2f4f8;
  --muted: #8f98a8;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --card: rgba(255, 255, 255, .025);
  --accent: #7aa7ff;
  --accent2: #b58cff;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #05070c; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Progress bar */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 25; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.top.scrolled { background: rgba(5, 7, 12, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; letter-spacing: -.01em; }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; color: var(--muted); }
.top nav a { position: relative; transition: color .2s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.top nav a:hover { color: var(--ink); }
.top nav a:hover::after { transform: scaleX(1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .3s; }
.btn-light { background: var(--ink); color: #05070c; box-shadow: 0 8px 30px rgba(122, 167, 255, .18); }
.btn-light:hover { box-shadow: 0 10px 40px rgba(122, 167, 255, .35); }
.btn-outline { border: 1px solid var(--line2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-outline:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.btn-small { padding: 8px 15px; font-size: .85rem; background: var(--ink); color: #05070c; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 110px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; transform: translateY(calc(var(--hero-shift, 0px) * .25)); }
.grid { position: absolute; inset: -2px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); }
.beam { position: absolute; width: 900px; height: 900px; right: -200px; top: -300px; background: conic-gradient(from 200deg, transparent, rgba(122, 167, 255, .22), rgba(181, 140, 255, .18), transparent 40%); filter: blur(80px); border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(-120px, 80px) rotate(25deg); } }

.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 64px; align-items: center; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: .85rem; color: var(--muted); background: rgba(255, 255, 255, .03); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .95; letter-spacing: -.045em; margin: 0; font-weight: 800; }
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
h1 .line:last-child .ch { color: color-mix(in oklab, var(--accent2) var(--k, 0%), var(--accent)); }
.ch { display: inline-block; }
.bn { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--muted); margin: 14px 0 0; }
.headline { font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.4; font-weight: 600; margin: 26px 0 10px; letter-spacing: -.01em; max-width: 30ch; }
.tagline { color: var(--muted); margin: 0 0 32px; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.profiles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 34px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.profiles a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 2px; }
.profiles a:hover { color: var(--ink); background-size: 100% 1px; }

.portrait { margin: 0; position: relative; perspective: 900px; }
.portrait-inner { position: relative; border-radius: 34px; overflow: hidden; transition: transform .5s var(--ease); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line2); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: soft-light; pointer-events: none; }
.portrait-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 12, .55)); pointer-events: none; }
.tag { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; font-size: .82rem; font-weight: 600; border-radius: 999px; background: rgba(5, 7, 12, .55); border: 1px solid var(--line2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.portrait::before { content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(122, 167, 255, .25), transparent 65%); filter: blur(30px); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Opening sequence (only when JavaScript is on and motion is welcome). The photo only zooms,
   never fades, so it is painted at once and the page still counts as fast. */
@media (prefers-reduced-motion: no-preference) {
  .js .ch { transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .035s); }
  .js .fade { opacity: 0; transform: translateY(14px); animation: fadeup .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
  .js .portrait-inner img { animation: zoomin 1.8s var(--ease) both; }
  @keyframes rise { to { transform: none; } }
  @keyframes fadeup { to { opacity: 1; transform: none; } }
  @keyframes zoomin { from { transform: scale(1.12); } }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .beam, .dot, .scroll-cue span, .marquee-track { animation: none !important; }
}

/* Skills strip */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: slide 40s linear infinite; }
.marquee-track span { font-size: 1.05rem; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; font-size: .7rem; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 24px)); } }

/* Sections */
.sec { padding: 120px 0; position: relative; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin: 0 0 12px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 40px; font-weight: 750; }
h3 { font-size: 1.08rem; margin: 0; letter-spacing: -.01em; }
.prose p { margin: 0 0 18px; font-size: 1.08rem; color: #c3c9d4; max-width: 62ch; }

.about-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 12px; margin: 0; padding-top: 60px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line); }
.stats li { padding: 32px 24px 0 0; }
.stats strong { display: block; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(180deg, var(--ink), #6b7486); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Cards and panels with a light that follows the pointer */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c, #7aa7ff) 18%, transparent), transparent 60%); }
[data-spot]:hover::before { opacity: 1; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; height: 100%; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.num { position: absolute; top: 24px; right: 26px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mark { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .5s var(--ease); }
.card:hover .mark { transform: rotate(-8deg) scale(1.08); }
.card p { color: var(--muted); margin: 10px 0 22px; font-size: .95rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; color: color-mix(in srgb, var(--c) 70%, #fff); }
.more svg { transition: transform .3s var(--ease); }
.card:hover .more svg { transform: translate(3px, -3px); }

/* Timeline that draws itself */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 780px; }
.timeline::before { content: ""; position: absolute; left: 75px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), var(--accent2)); transform-origin: top; }
.js .timeline::before { transform: scaleY(0); transition: transform 1.4s var(--ease); }
.js .timeline.in::before { transform: scaleY(1); }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 40px; padding: 0 0 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 70px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.year { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-body h3 { font-size: 1.15rem; }
.t-body h3 a:hover { color: var(--accent); }
.t-body p { color: var(--muted); margin: 6px 0 0; }
.t-body img { margin-top: 16px; border-radius: 18px; max-height: 380px; object-fit: cover; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.skill-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips li { border: 1px solid var(--line2); border-radius: 999px; padding: 5px 13px; font-size: .88rem; color: #c3c9d4; transition: background .2s, color .2s, border-color .2s; }
.chips li:hover { background: var(--ink); color: #05070c; border-color: var(--ink); }

/* Photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding: 10px 2px 0; }

/* Call to action */
.cta { padding: 0 0 120px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 56px; border-radius: 32px; border: 1px solid var(--line2); background: radial-gradient(120% 140% at 0% 0%, rgba(122, 167, 255, .16), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(181, 140, 255, .14), transparent 50%), var(--bg2); }
.cta-box h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-box p { margin: 0; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0; font-size: .88rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: 96px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; order: -1; }
  .facts { padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .sec { padding: 84px 0; }
  .cards, .stats { grid-template-columns: 1fr; }
  .stats li { padding-top: 24px; }
  .cta-box { padding: 34px 26px; }
  .timeline::before { left: 59px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 28px; }
  .timeline li::before { left: 54px; }
}
