/* work.niramind.com: professional portfolio. Dark, sleek, SaaS-product feel. */
:root {
  --bg: #05070f;
  --bg-2: #0a0f1f;
  --panel: rgb(255 255 255 / 0.035);
  --fg: #eef2ff;
  --muted: #9aa4c4;
  --line: rgb(160 178 255 / 0.14);
  --blue: #7c9cff;
  --teal: #3ee6c4;
  --violet: #b18cff;
  --nm-fg: var(--fg);
  --nm-muted: var(--muted);
  --nm-line: var(--line);
  --nm-bar-bg: rgb(5 7 15 / 0.72);
  --nm-accent: var(--teal);
}
body { background: var(--bg); color: var(--fg); font: 400 1rem/1.65 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
::selection { background: rgb(124 156 255 / 0.35); }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.9rem; padding: 0 1.25rem; border-radius: 0.8rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.2s var(--nm-ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s; }
.btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn--primary { color: #04101c; background: linear-gradient(120deg, var(--teal), var(--blue)); box-shadow: 0 10px 30px -10px rgb(62 230 196 / 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgb(62 230 196 / 0.75); }
.btn--ghost { color: var(--fg); background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgb(124 156 255 / 0.55); background: rgb(124 156 255 / 0.08); }
.btn--link { color: var(--muted); padding-inline: 0.5rem; }
.btn--link:hover { color: var(--fg); }
.btn--link span { transition: transform 0.2s; }
.btn--link:hover span { transform: translateX(3px); }

/* ── Hero ── */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 56rem); display: grid; align-items: center; padding: 7.5rem var(--nm-gutter) 4rem; overflow: hidden; }
.hero__sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.orb--a { width: 38rem; height: 38rem; top: -14rem; left: -10rem; background: radial-gradient(closest-side, rgb(124 156 255 / 0.55), transparent); }
.orb--b { width: 30rem; height: 30rem; top: 10%; right: -10rem; background: radial-gradient(closest-side, rgb(62 230 196 / 0.4), transparent); animation-duration: 28s; animation-delay: -8s; }
.orb--c { width: 26rem; height: 26rem; bottom: -12rem; left: 35%; background: radial-gradient(closest-side, rgb(177 140 255 / 0.4), transparent); animation-duration: 32s; animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(4rem, 2.5rem, 0) scale(1.12); } }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: 0.5; }
.mesh { position: absolute; inset: auto 0 0; width: 100%; height: 70%; }
.stream { fill: none; stroke: url(#wire); stroke-width: 1.4; stroke-dasharray: 6 18; animation: flow 6s linear infinite; }
.stream--2 { animation-duration: 9s; opacity: 0.7; }
.stream--3 { animation-duration: 7.5s; animation-direction: reverse; opacity: 0.6; }
@keyframes flow { to { stroke-dashoffset: -480; } }

.hero__inner { width: 100%; max-width: calc(72rem - 2 * var(--nm-gutter)); margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
@media (max-width: 59.99rem) { .portrait { order: -1; } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem; padding: 0.35rem 0.85rem 0.35rem 0.6rem; border-radius: 999px; font: 500 0.82rem/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--teal); background: rgb(62 230 196 / 0.08); border: 1px solid rgb(62 230 196 / 0.25); }
.pulse { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgb(62 230 196 / 0.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6rem rgb(62 230 196 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 230 196 / 0); } }
.hero__title { margin: 0; max-width: 16ch; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.02; font-weight: 700;
  background: linear-gradient(180deg, #fff 30%, #b9c4ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__phd { color: var(--teal); -webkit-text-fill-color: var(--teal); }
.hero__lead { max-width: 40rem; margin: 1.4rem 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.hero__lead strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 0.5rem 3rem; margin: 3rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.stats dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; }
@media (max-width: 36rem) { .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; } .stats div:last-child { grid-column: 1 / -1; } }

/* ── Sections ── */
.focus, .experience, .closing { max-width: 72rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--nm-gutter) 0; }
.section-head { margin-bottom: 2rem; }
.kicker { margin: 0 0 0.5rem; font: 500 0.8rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.section-head h2, .closing h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; }

.focus__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.tile { position: relative; padding: 1.5rem; border-radius: 1.1rem; background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015)); border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--nm-ease), border-color 0.35s; }
.tile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgb(62 230 196 / 0.6), transparent 40%, rgb(124 156 255 / 0.6)); opacity: 0; transition: opacity 0.35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.tile:hover { transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 0.8rem; background: rgb(124 156 255 / 0.1); margin-bottom: 1rem; }
.tile__icon svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon .tick { stroke: var(--teal); fill: var(--teal); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.tile h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0.75rem; }
.timeline::before { content: ""; position: absolute; inset-block: 1.5rem; inset-inline-start: 1.6rem; width: 2px; background: linear-gradient(var(--teal), var(--blue) 40%, rgb(124 156 255 / 0.1)); }
.role { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem 1rem 0; border-radius: 1rem; transition: background-color 0.25s; }
.role:hover { background: var(--panel); }
.role__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 0.9rem; font: 700 0.78rem/1 "JetBrains Mono", ui-monospace, monospace; color: #fff;
  background: color-mix(in srgb, var(--c) 30%, #0b1124); border: 1px solid color-mix(in srgb, var(--c) 65%, transparent); box-shadow: 0 0 22px -6px var(--c); }
.role__mark--intuit { --c: #2ca01c; } .role__mark--capone { --c: #d03027; } .role__mark--aws { --c: #ff9900; }
.role__mark--jpm { --c: #6f8fb8; } .role__mark--ibm { --c: #4589ff; } .role__mark--ge { --c: #5e8fd6; }
.role__body h3 { margin: 0; font-size: 1.08rem; }
.role__org { margin: 0.1rem 0 0; color: var(--fg); opacity: 0.85; }
.role__dates { margin: 0.15rem 0 0; color: var(--muted); font: 400 0.84rem/1.4 "JetBrains Mono", ui-monospace, monospace; }
.role__dur { color: var(--muted); opacity: 0.8; }
.role__now { align-self: start; margin-top: 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px; font: 600 0.72rem/1.4 "JetBrains Mono", monospace; color: var(--teal); background: rgb(62 230 196 / 0.1); border: 1px solid rgb(62 230 196 / 0.3); }

.closing { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.closing__card { position: relative; padding: clamp(1.75rem, 5vw, 3rem); border-radius: 1.4rem; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(40rem 20rem at 100% 0%, rgb(124 156 255 / 0.18), transparent 60%), radial-gradient(30rem 20rem at 0% 100%, rgb(62 230 196 / 0.12), transparent 60%), var(--bg-2); }
.closing__card p:not(.kicker) { color: var(--muted); max-width: 36rem; margin: 0.8rem 0 1.5rem; }

.nm-footer { margin-top: 0; }

/* ── Premium motion ─────────────────────────────────────────────────────── */
/* Pointer spotlight across the hero (position from site.js). */
.hero__spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(28rem 28rem at var(--sx, 50%) var(--sy, 40%), rgb(124 156 255 / 0.16), transparent 60%); }
.hero:hover .hero__spot { opacity: 1; }

/* Portrait: rotating light ring, glass frame, a passing shine, orbiting focus chips, 3-D tilt. */
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 21rem); perspective: 900px; }
@media (max-width: 59.99rem) { .portrait { width: min(62vw, 15rem); margin-top: 0.5rem; } }
.portrait__ring { position: absolute; inset: -0.6rem; border-radius: 2.2rem; background: conic-gradient(from var(--a, 0deg), var(--teal), var(--blue), var(--violet), transparent 60%, var(--teal)); filter: blur(10px); opacity: 0.75; animation: ring-spin 7s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ring-spin { to { --a: 360deg; } }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 1.8rem; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.18); background: var(--bg-2);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.25s var(--nm-ease); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 60px -20px rgb(62 230 196 / 0.4); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.04); animation: portrait-in 1.6s var(--nm-ease) both; }
@keyframes portrait-in { from { transform: scale(1.18); filter: saturate(0.4) brightness(0.7); } }
.portrait__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 7 15 / 0.65)); }
.portrait__shine { position: absolute; inset: -30%; z-index: 1; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.16) 50%, transparent 60%); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.portrait__tag { position: absolute; z-index: 2; left: 50%; bottom: 1rem; translate: -50% 0; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap;
  font: 500 0.78rem/1 "JetBrains Mono", monospace; color: var(--fg); background: rgb(5 7 15 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgb(62 230 196 / 0.35); }
.chips { list-style: none; margin: 0; padding: 0; }
.chip { position: absolute; z-index: 3; padding: 0.4rem 0.75rem; border-radius: 0.7rem; font: 500 0.76rem/1 "JetBrains Mono", monospace; color: var(--fg); white-space: nowrap;
  background: rgb(10 15 31 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.7); animation: bob 5s ease-in-out infinite; }
.chip::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-inline-end: 0.45rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.chip--1 { top: 9%; left: -18%; } .chip--2 { top: 30%; right: -14%; animation-delay: -1.2s; } .chip--2::before { background: #ff9900; box-shadow: 0 0 8px #ff9900; }
.chip--3 { bottom: 30%; left: -22%; animation-delay: -2.4s; } .chip--3::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.chip--4 { bottom: 12%; right: -18%; animation-delay: -3.6s; } .chip--4::before { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 59.99rem) { .chip { font-size: 0.68rem; padding: 0.32rem 0.6rem; } .chip--1, .chip--3 { left: -30%; } .chip--2, .chip--4 { right: -30%; } }
@media (max-width: 26rem) { .chip--1, .chip--3 { left: -18%; } .chip--2, .chip--4 { right: -18%; } }

/* Focus tiles tilt toward the pointer. */
.tile { transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift, 0)); }
.tile:hover { --lift: -4px; transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift)); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(16rem 16rem at var(--gx, 50%) var(--gy, 0%), rgb(62 230 196 / 0.12), transparent 60%); }
.tile:hover::after { opacity: 1; }

/* The timeline draws itself as it scrolls into view. */
.timeline::before { opacity: 0.25; }
.timeline__progress { position: absolute; inset-block-start: 1.5rem; inset-inline-start: 1.6rem; width: 2px; height: calc((100% - 3rem) * var(--p, 0)); background: linear-gradient(var(--teal), var(--blue)); box-shadow: 0 0 12px var(--teal); list-style: none; pointer-events: none; }
.role__mark { transition: transform 0.4s var(--nm-ease), box-shadow 0.4s; }
.role:hover .role__mark { transform: scale(1.08) rotate(-3deg); box-shadow: 0 0 30px -4px var(--c); }

/* Magnetic buttons (offset from site.js). */
[data-magnetic] { transform: translate(var(--mx, 0), var(--my, 0)); }
[data-magnetic]:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 2px)); }

@media (prefers-reduced-motion: reduce) { .portrait__ring, .portrait__shine, .chip { animation: none; } .timeline__progress { height: calc(100% - 3rem); } }
