/* =========================================================
   Amit Kumar Banerjee — Portfolio
   Design system: dark-first, glass + aurora, editorial type
   ========================================================= */

:root {
  --bg: #07080d;
  --bg-2: #0c0e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --text-2: #a4a9ba;
  --text-3: #6b7085;

  --violet: #8b6cff;
  --cyan: #2fd3f0;
  --lime: #b6f36a;
  --amber: #ffb547;
  --pink: #ff6bb3;

  --grad: linear-gradient(120deg, #8b6cff 0%, #2fd3f0 55%, #b6f36a 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,108,255,.18), rgba(47,211,240,.12));

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  --nav-h: 72px;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #efede7;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(10, 12, 20, 0.08);
  --border-strong: rgba(10, 12, 20, 0.16);
  --text: #0d0f17;
  --text-2: #4a4f61;
  --text-3: #8a8e9c;
  --violet: #6a4cf5;
  --cyan: #0aa5c4;
  --lime: #5aa516;
  --amber: #e08a00;
  --grad: linear-gradient(120deg, #6a4cf5 0%, #0aa5c4 60%, #5aa516 100%);
  --shadow: 0 30px 60px -30px rgba(20, 20, 40, .25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill, svg .fill { fill: currentColor; stroke: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Ambient layers ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
[data-theme="light"] .grain { opacity: .035; }
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-10%) } 30% { transform: translate(3%,-15%) }
  50% { transform: translate(12%,9%) } 70% { transform: translate(9%,4%) } 90% { transform: translate(-1%,7%) }
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 0; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,108,255,.13), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(106,76,245,.10), transparent 62%); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
  will-change: transform;
}
.btn svg { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(139,108,255,.6); }
.btn--primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .4s;
}
.btn--primary:hover::before { opacity: .7; }
.btn--ghost { border: 1px solid var(--border-strong); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 58px; padding: 0 28px; font-size: 16px; }

.icon-btn {
  display: inline-grid; place-items: center; height: 38px; min-width: 38px; padding: 0 10px; gap: 6px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: color .25s, border-color .25s, background .25s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { font-size: 17px; }
.kbd-btn { display: inline-flex; align-items: center; }
kbd {
  font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-3); background: var(--surface);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, calc(100% - 28px)); height: 60px; padding: 0 10px 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s, top .4s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.5);
}
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-weight: 700; font-size: 14px; letter-spacing: -.02em; color: #fff;
  background: var(--grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 24px -8px rgba(139,108,255,.7);
  transition: transform .5s var(--ease);
}
.nav__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav__links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav__links a {
  position: relative; z-index: 1; padding: 8px 16px; font-size: 14px; color: var(--text-2);
  border-radius: 999px; transition: color .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__indicator {
  position: absolute; top: 4px; height: calc(100% - 8px); left: 0; width: 0; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

.burger { display: none; position: relative; width: 38px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: 110px 28px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-size: clamp(36px, 11vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease), color .2s;
}
.mobile-menu nav a:hover { color: var(--violet); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu__foot { display: flex; gap: 24px; color: var(--text-2); font-family: var(--mono); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 100px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 18s ease-in-out infinite; }
.aurora span:nth-child(1) { width: 560px; height: 560px; background: #6a4cf5; top: -160px; right: -80px; }
.aurora span:nth-child(2) { width: 460px; height: 460px; background: #0aa5c4; bottom: -180px; left: -120px; animation-delay: -6s; opacity: .3; }
.aurora span:nth-child(3) { width: 320px; height: 320px; background: #b6f36a; top: 40%; left: 45%; animation-delay: -12s; opacity: .12; }
[data-theme="light"] .aurora span { opacity: .22; }
[data-theme="light"] .aurora span:nth-child(3) { opacity: .1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 70%, var(--bg)),
    radial-gradient(ellipse at center, transparent 40%, color-mix(in srgb, var(--bg) 60%, transparent));
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(.95); }
}

.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; color: var(--text-2); transition: border-color .3s, transform .3s var(--ease);
}
.pill:hover { border-color: var(--violet); transform: translateY(-1px); }
.pill strong { color: var(--text); font-weight: 600; }
.pill__sep { width: 1px; height: 12px; background: var(--border-strong); margin: 0 4px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #34d399; opacity: .5; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7 } 100% { transform: scale(2); opacity: 0 } }

.hero__title {
  margin: 26px 0 18px; font-size: clamp(52px, 8.6vw, 124px); font-weight: 650;
  line-height: .92; letter-spacing: -.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) > span {
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 45%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__rotator {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em;
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.025em; color: var(--text-2);
}
.rotator { position: relative; display: inline-grid; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.12em; line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.rotator__word.is-active { transform: translateY(0); opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero__lede { margin-top: 22px; max-width: 540px; font-size: 18px; color: var(--text-2); }
.hero__lede em { color: var(--text); font-size: 1.1em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__social { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.hero__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
  transition: color .25s, border-color .25s, transform .35s var(--ease);
}
.hero__social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-3px); }
.hero__social svg { font-size: 17px; }
.hero__social-label { margin-left: 8px; font-size: 13px; color: var(--text-3); font-family: var(--mono); }

/* Portrait */
.hero__visual { display: flex; justify-content: center; perspective: 1200px; }
.portrait { position: relative; width: min(420px, 100%); aspect-ratio: 630 / 800; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.portrait__ring {
  position: absolute; inset: -2px; border-radius: 32px; padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg), #8b6cff, #2fd3f0, #b6f36a, #ffb547, #8b6cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.portrait__ring::after {
  content: ""; position: absolute; inset: 10%; z-index: -1; border-radius: 50%;
  background: var(--grad); filter: blur(60px); opacity: .35;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.portrait__frame { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.95) contrast(1.03); transform: scale(1.04); transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.08); }
.portrait__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,13,.85) 0%, rgba(7,8,13,0) 45%); }
.portrait__caption { position: absolute; left: 22px; bottom: 20px; display: flex; flex-direction: column; color: #fff; }
.portrait__caption .mono { font-size: 12px; opacity: .65; }
.portrait__caption strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 65%, transparent); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  transform: translateZ(50px); animation: bob 6s ease-in-out infinite;
}
.chip { padding: 8px 16px 8px 8px; gap: 10px; border-radius: 16px; }
.chip__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 17px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); }
.chip__txt { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.chip__txt small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.chip__dot.g { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.chip__dot.v { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.chip__dot.c { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip--a { top: 10%; left: -20%; }
.chip--b { top: 38%; right: -14%; animation-delay: -1.5s; }
.chip--c { bottom: 30%; left: -16%; animation-delay: -3s; }
.chip--d { bottom: -4%; right: 8%; animation-delay: -4.5s; color: var(--lime); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); opacity: .6; transition: opacity .3s; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue__mouse { display: block; width: 24px; height: 38px; border: 1.5px solid var(--text-3); border-radius: 14px; position: relative; }
.scroll-cue__mouse span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(12px) } }

/* ---------- Logo strip ---------- */
.strip { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 0; flex-wrap: wrap; }
.strip__label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); }
.strip__logos { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.wordmark { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); opacity: .75; transition: opacity .3s, color .3s; }
.wordmark:hover { opacity: 1; color: var(--text); }
.wordmark--google b { font-weight: 600; filter: grayscale(1) brightness(1.6); transition: filter .4s; }
[data-theme="light"] .wordmark--google b { filter: grayscale(1) brightness(.4); }
.wordmark--google:hover b { filter: none; }
.wordmark--samsung { font-weight: 800; letter-spacing: .12em; font-size: 18px; }
.wordmark--samsung small { font-weight: 500; letter-spacing: 0; font-size: 12px; opacity: .7; }
.wordmark--skool { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; }
.wordmark--nit { font-family: var(--mono); font-size: 16px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section__head { margin-bottom: clamp(48px, 6vw, 72px); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.section__title { font-size: clamp(40px, 6vw, 80px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.section__title em, .contact__title em {
  font-size: 1.08em; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}

/* Spotlight cards (mouse-follow highlight) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,108,255,.14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(139,108,255,.65), rgba(47,211,240,.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

/* ---------- Impact ---------- */
.impact { padding-top: clamp(70px, 9vw, 110px); padding-bottom: 0; }
.impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 30px; border-right: 1px solid var(--border); transition: background .3s; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--surface-2); }
.stat__num { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.stat__num i { font-style: normal; font-size: .55em; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.stat p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about__text p { color: var(--text-2); margin-bottom: 18px; font-size: 17px; }
.about__text p.lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--text); letter-spacing: -.02em; font-weight: 450; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border); }
.about__meta div { display: flex; flex-direction: column; gap: 4px; }
.about__meta span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.about__meta strong { font-size: 15px; font-weight: 500; }

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento__card {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .3s;
}
.bento__card:hover { transform: translateY(-4px); }
.bento__card--lg { grid-column: span 2; }
.bento__card--wide { grid-column: span 2; display: flex; gap: 18px; align-items: flex-start; }
.bento__card--wide .bento__icon { margin-bottom: 0; flex-shrink: 0; }
.bento__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--text);
}
.bento__icon svg { font-size: 22px; }
.bento__card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.bento__card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.agent-flow { display: flex; align-items: center; margin-top: 22px; flex-wrap: nowrap; overflow: hidden; }
.agent-flow .node {
  flex-shrink: 0; padding: 7px 12px; border-radius: 10px; font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);
}
.agent-flow .node--hl { color: var(--text); border-color: color-mix(in srgb, var(--violet) 60%, transparent); box-shadow: 0 0 20px -6px var(--violet); }
.agent-flow .edge { position: relative; flex: 1; min-width: 14px; height: 1px; background: var(--border-strong); overflow: hidden; }
.agent-flow .edge::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--grad); animation: flow 2.2s linear infinite; }
.agent-flow .edge:nth-of-type(4)::after { animation-delay: .5s; }
.agent-flow .edge:nth-of-type(6)::after { animation-delay: 1s; }
@keyframes flow { to { left: 100%; } }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 22px; padding-left: 52px; }
.timeline__rail { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.job { position: relative; }
.job__marker { position: absolute; left: -52px; top: 30px; width: 32px; height: 32px; display: grid; place-items: center; }
.job__marker span { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-3); transition: border-color .4s, box-shadow .4s, background .4s; }
.job.is-lit .job__marker span { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 5px color-mix(in srgb, var(--violet) 20%, transparent), 0 0 20px var(--violet); }
.job__card { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.job__top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.job__logo {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  font-weight: 700; font-size: 20px; color: #fff; flex-shrink: 0; overflow: hidden;
}
.job__logo svg { font-size: 24px; }
.job__logo--google, .job__logo--skool, .job__logo--edu {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 16px -6px rgba(0,0,0,.35);
}
.job__logo--google img { width: 28px; height: 28px; object-fit: contain; }
.job__logo--samsung {
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px -6px rgba(0,0,0,.45);
}
.job__logo--samsung img { width: 100%; height: 100%; object-fit: cover; }
.job__logo--skool img { width: 42px; height: 42px; object-fit: contain; }
.job__logo--edu img { width: 40px; height: 40px; object-fit: contain; }
.job__heading h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.job__heading .at { color: var(--text-2); font-weight: 450; }
.job__sub { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.job__date { font-size: 12.5px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.job__phases { margin-top: 22px; display: flex; flex-direction: column; gap: 24px; }
.job__phase { padding-top: 20px; border-top: 1px solid var(--border); }
.job__phase-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.job__phase-head h4 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.job__phase-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job__phase-meta .badge { margin-top: 0; }
.job__phase-date { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.job__phase .job__list { margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 5px 12px;
  border-radius: 999px; font-size: 12.5px; color: var(--text-2);
  background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
}
.badge--live { background: color-mix(in srgb, #34d399 10%, transparent); border-color: color-mix(in srgb, #34d399 30%, transparent); }
.job__list { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.job__list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.job__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1.5px; background: var(--grad); }
.job__list strong { color: var(--text); font-weight: 550; }
mark {
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--violet) 35%, transparent) 60%);
  color: var(--text); font-weight: 650; padding: 0 2px;
}
.job--edu .job__card { background: transparent; border-style: dashed; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span {
  font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 8px;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.tags span:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.tags--lg span { font-size: 13px; padding: 7px 12px; border-radius: 10px; }

/* ---------- Skills ---------- */
.skills { overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 10px 0; user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; gap: 14px; animation: marquee 40s linear infinite; padding-right: 14px; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  flex-shrink: 0; font-size: clamp(28px, 4vw, 54px); font-weight: 600; letter-spacing: -.04em; line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1px var(--text-3); transition: color .3s, -webkit-text-stroke-color .3s;
}
.marquee span:nth-child(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee span:hover { color: var(--violet); -webkit-text-stroke-color: transparent; }
.marquee span::after { content: "✦"; margin-left: 14px; font-size: .4em; vertical-align: middle; color: var(--text-3); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 60px; }
.skill-group { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.skill-group h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sg-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }

/* ---------- Projects ---------- */
.projects__filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.filter {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface); transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, opacity .45s var(--ease), transform .45s var(--ease);
  transform-style: preserve-3d;
}
.project:hover { border-color: var(--border-strong); }
.project.is-hidden { display: none; }
.project--feature { grid-column: span 2; flex-direction: row; }
.project--feature .project__cover { flex: 1; aspect-ratio: auto; min-height: 100%; }
.project--feature .project__body { flex: 1.1; justify-content: center; padding: 34px; }
.project--feature .project__links { margin-top: 0; padding-top: 22px; }
.project--feature h3 { font-size: 26px; }
.project__cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.project__cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; -webkit-mask: radial-gradient(circle at center, #000, transparent 75%); mask: radial-gradient(circle at center, #000, transparent 75%); }
.cover-art { position: relative; width: 42%; height: auto; max-width: 150px; color: rgba(255,255,255,.95); stroke-width: 3; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); transition: transform .8s var(--ease); }
.project:hover .cover-art { transform: scale(1.1) rotate(-4deg); }
.cover--arti { background: radial-gradient(circle at 30% 20%, #a78bfa, #5b21b6 60%, #1e1b4b); }
.cover--covid { background: radial-gradient(circle at 70% 30%, #fb7185, #be123c 55%, #3f0a1a); }
.cover--trip { background: radial-gradient(circle at 30% 70%, #5eead4, #0f766e 55%, #052e2b); }
.cover--learn { background: radial-gradient(circle at 70% 70%, #fcd34d, #d97706 55%, #431407); }
.cover--bank { background: radial-gradient(circle at 30% 30%, #7dd3fc, #1d4ed8 55%, #0b1440); }
.cover--overdrive { background: radial-gradient(circle at 60% 30%, #f0abfc, #a21caf 55%, #2e0a35); }
.project__year { position: absolute; top: 14px; right: 14px; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.project p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.project .tags { margin-top: 16px; }
.project__links { display: flex; gap: 16px; margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 500; }
.project__links a { color: var(--text); position: relative; }
.project__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.project__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Credentials ---------- */
.creds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cred-col__title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); font-weight: 500; margin-bottom: 16px; }
.cred {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center;
  padding: 20px 22px; margin-bottom: 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease);
}
.cred:hover { transform: translateX(6px); }
.cred__year { font-size: 13px; color: var(--text-3); }
.cred strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cred span:not(.cred__year) { font-size: 14px; color: var(--text-2); }
.cred--award { background: linear-gradient(120deg, color-mix(in srgb, var(--amber) 12%, transparent), var(--surface)); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.cred--award .cred__year { font-size: 22px; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact__card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(56px, 9vw, 110px) clamp(24px, 5vw, 60px); border-radius: 36px;
  background: var(--surface); border: 1px solid var(--border);
}
.contact__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at 50% 120%, rgba(139,108,255,.35), transparent 60%), radial-gradient(400px circle at 10% -10%, rgba(47,211,240,.2), transparent 60%); }
.contact__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.contact__title { font-size: clamp(42px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: .98; margin-bottom: 22px; }
.contact__card > p { max-width: 520px; margin: 0 auto; color: var(--text-2); font-size: 17px; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.contact__actions .btn--ghost .mono { font-size: 14px; }
.contact__links { display: flex; justify-content: center; gap: 28px; margin-top: 34px; font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.contact__links a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 50px; color: var(--text-3); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
.footer__top:hover { color: var(--text); }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding-top: 14vh; visibility: hidden; }
.cmdk.is-open { visibility: visible; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.cmdk.is-open .cmdk__backdrop { opacity: 1; }
.cmdk__panel {
  position: relative; width: min(600px, calc(100% - 32px)); border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateY(-10px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .25s;
}
.cmdk.is-open .cmdk__panel { transform: none; opacity: 1; }
.cmdk__search { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cmdk__search svg { font-size: 18px; color: var(--text-3); }
.cmdk__search input { flex: 1; background: none; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--text); }
.cmdk__search input::placeholder { color: var(--text-3); }
.cmdk__list { list-style: none; max-height: 360px; overflow-y: auto; padding: 8px; }
.cmdk__group { padding: 10px 12px 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.cmdk__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 14.5px; color: var(--text-2); cursor: pointer; }
.cmdk__item .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.cmdk__item .hint { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.cmdk__item.is-active { background: var(--surface-2); color: var(--text); }
.cmdk__empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--text); color: var(--bg); box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line.reveal { opacity: 1; transform: none; }
.hero__title .line.reveal > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.hero__title .line.reveal.is-in > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 12px; }
  .chip--a { left: -6%; } .chip--b { right: -6%; } .chip--c { left: -4%; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta, .kbd-btn kbd { display: none; }
  .burger { display: inline-grid; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { order: -1; }
  .portrait { width: min(340px, 78%); }
  .chip--a { left: -14%; } .chip--b { right: -14%; } .chip--c { left: -12%; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .about__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project--feature { grid-column: span 2; }
  .creds__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { width: min(var(--container), 100% - 36px); }
  .hero__visual { order: 0; }
  .hero__copy { text-align: left; }
  .hero__lede { font-size: 16.5px; }
  .hero__social-label { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .portrait { width: min(320px, 82%); }
  .chip { padding: 6px 12px 6px 6px; gap: 8px; } .chip__ic { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; } .chip__txt { font-size: 12.5px; } .chip__txt small { font-size: 9.5px; }
  .chip--a { left: -10%; } .chip--b { right: -10%; } .chip--c { left: -8%; }
  .scroll-cue { display: none; }
  .strip__inner { justify-content: center; text-align: center; }
  .strip__logos { justify-content: center; gap: 24px 32px; }
  .wordmark { font-size: 19px; }
  .stat { padding: 26px 20px; }
  .about__meta { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--lg, .bento__card--wide { grid-column: auto; }
  .bento__card--wide { flex-direction: column; }
  .bento__card--wide .bento__icon { margin-bottom: 4px; }
  .timeline { padding-left: 30px; }
  .timeline__rail { left: 7px; }
  .job__marker { left: -39px; top: 26px; }
  .job__top { grid-template-columns: auto 1fr; }
  .job__date { grid-column: 1 / -1; justify-self: start; }
  .job__logo { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .job__logo--google img { width: 24px; height: 24px; }
  .job__logo--skool img, .job__logo--edu img { width: 36px; height: 36px; }
  .job__list li { font-size: 14.5px; }
  .skills__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .skill-group { padding: 22px; }
  .projects__grid { grid-template-columns: 1fr; }
  .project--feature { grid-column: auto; flex-direction: column; }
  .project--feature .project__cover { aspect-ratio: 16 / 10; }
  .project--feature .project__body { padding: 24px; }
  .project--feature h3 { font-size: 20px; }
  .cred { grid-template-columns: 70px 1fr; padding: 18px; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .contact__actions .btn--ghost .mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .impact__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .about__meta { grid-template-columns: 1fr; }
  .pill { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Snappy tilt while hovering, smooth settle on leave */
.project.is-in:hover, .portrait:hover { transition: transform .18s ease-out, border-color .3s, opacity .9s; }

/* GitHub CTA tile */
.project--cta { grid-column: span 2; position: relative; overflow: hidden; border-style: dashed; background:
  radial-gradient(500px circle at 100% 100%, rgba(139,108,255,.18), transparent 60%), var(--surface); }
.project--cta .project__body { justify-content: center; padding: 34px; }
.project--cta .eyebrow { margin-bottom: 10px; }
.project--cta h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; }
.project--cta p { max-width: 420px; }
.cta-arrow { position: absolute; right: 28px; top: 28px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-size: 22px; transition: transform .5s var(--ease); }
.project--cta:hover .cta-arrow { transform: rotate(45deg) scale(1.08); }
.project--cta:hover { border-color: var(--violet); }
@media (max-width: 960px) { .project--cta { grid-column: auto; } .project--cta .project__body { padding: 26px; } .cta-arrow { position: static; margin-top: 20px; } }

@media (max-width: 720px) {
  .hero__visual { order: -1; }
  .portrait { width: min(250px, 64%); }
  .hero__grid { gap: 36px; }
  .chip--c { display: none; }
  .chip--a { top: 50%; left: -24%; } .chip--b { top: 31%; bottom: auto; right: -24%; }
  .hero__title { margin-top: 20px; }
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 18px; }
  .stat__num { font-size: 38px; margin-bottom: 10px; }
  .stat p { font-size: 13px; }
}
@media (max-width: 420px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--border) !important; border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 340px) { .impact__grid { grid-template-columns: 1fr; } .stat { border-right: 0 !important; border-bottom: 1px solid var(--border); } }
