:root {
  --bg: #0a0c11; --surface: #12151d; --chip: #191d28; --line: #242a38;
  --fg: #f5f6f8; --muted: #98a1b3;
  --violet: #7c5cff; --coral: #ff5c7a; --lime: #c8f135; --cyan: #38d5f2;
  --lime-t: #c8f135;
  --on-lime: #0a0c11;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafafb; --surface: #ffffff; --chip: #f0f2f7; --line: #e2e6ee;
  --fg: #10131c; --muted: #566079;
  --lime-t: #5f7d00;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1200px, 100% - 240px); margin-inline: auto; }
svg.ic { width: 16px; height: 16px; flex: none; }
svg.ic18 { width: 18px; height: 18px; flex: none; }
svg.ic20 { width: 20px; height: 20px; }
svg.ic24 { width: 24px; height: 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; gap: 12px; height: 99px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.brand-mark { display: block; width: 46px; height: 48px; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 36px; color: var(--muted); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--fg); }
.nav-cta { margin-left: auto; }
.nav-in .icon-btn:not(.burger) { margin-left: auto; }
.nav-in .icon-btn:not(.burger) + .nav-cta { margin-left: 0; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--violet); }
.burger { display: none; border: 0; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, border-color .15s, opacity .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); color: var(--on-lime); }
.btn.secondary { border-color: var(--line); color: var(--fg); }
.btn.secondary:hover { border-color: var(--violet); }
.btn.inverse { background: #fff; color: #0a0c11; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* glows */
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.g-violet { left: 680px; top: -300px; width: 900px; height: 900px; background: radial-gradient(circle, rgba(124,92,255,.35), rgba(124,92,255,0) 70%); }
.g-coral { left: -260px; top: 260px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,92,122,.18), rgba(255,92,122,0) 70%); }
.g-lime { right: -80px; top: -320px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(200,241,53,.35), rgba(200,241,53,0) 70%); }
:root[data-theme="light"] .g-violet { background: radial-gradient(circle, rgba(124,92,255,.18), rgba(124,92,255,0) 70%); }
:root[data-theme="light"] .g-coral { background: radial-gradient(circle, rgba(255,92,122,.1), rgba(255,92,122,0) 70%); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; }
.hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 80px; }
.intro { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-t); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime-t) 25%, transparent); }
h1 { font-size: 76px; line-height: 1.02; font-weight: 800; letter-spacing: -3.04px; }
.grad { background: linear-gradient(90deg, var(--violet), var(--coral) 50%, var(--lime-t)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; }
.round { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .15s; }
.round:hover { border-color: var(--violet); }
.portrait { position: relative; flex: none; width: 440px; height: 540px; color: #fff; }
/* A soft violet and coral glow sits behind the person; there is no card, the photo is a transparent cut-out. */
.portrait::before { content: ""; position: absolute; inset: 6% -12% -4%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 52%, rgba(124, 92, 255, .42), transparent 100%),
    radial-gradient(closest-side at 22% 88%, rgba(255, 92, 122, .28), transparent 100%); }
.photo-clip { position: absolute; inset: 0; z-index: 1; }
/* Bigger than the box, anchored at the bottom, and faded out at the waist so it melts into the page. */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; transform: scale(1.32); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); mask-image: linear-gradient(to bottom, #000 74%, transparent 99%); }
.badge { position: absolute; z-index: 2; background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.b-exp { left: -36px; top: 412px; display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 20px; white-space: nowrap; }
.b-exp b { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.6px; color: var(--lime-t); }
.b-exp span { font-size: 13px; color: var(--muted); }
.b-role { right: -27px; top: 40px; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* stats */
.stats { padding-bottom: 96px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.stat { padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 48px; line-height: 1.2; font-weight: 800; letter-spacing: -1.44px; }
.stat span { font-size: 14px; color: var(--muted); }

/* sections */
.sec { padding: 96px 0; }
.heading { display: flex; flex-direction: column; gap: 16px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 1.82px; color: var(--lime-t); }
.label.muted { color: var(--muted); }
h2 { font-size: 56px; line-height: 1.08; font-weight: 800; letter-spacing: -1.68px; }
.sub { font-size: 18px; color: var(--muted); }
.about-row { display: flex; gap: 96px; align-items: flex-start; }
.about-left { width: 480px; flex: none; }
.about-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.a1 { font-size: 19px; line-height: 1.7; }
.a2 { font-size: 18px; line-height: 1.7; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.svc { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.svc h3, .pcard h3 { font-size: 22px; font-weight: 700; letter-spacing: -.22px; line-height: 1.2; }
.svc p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent); }

/* work */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.work-head .heading { max-width: 1020px; }
.demos-head { margin-top: 112px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; transition: transform .2s, border-color .2s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--c1); }
.cover { position: relative; height: 240px; overflow: hidden; background: linear-gradient(148deg, var(--c1) 8%, var(--c2) 92%); }
.cover img { position: absolute; left: 50%; top: 40px; width: 280px; height: 172px; transform: translateX(-50%); }
.pcard .body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .52px; color: var(--lime-t); }
.desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: 14px; font-weight: 600; width: fit-content; }
.link:hover { color: var(--violet); }

/* experience */
.timeline { margin-top: 56px; }
.role { display: flex; gap: 48px; align-items: flex-start; padding: 36px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.period { width: 220px; flex: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.info h3 { font-size: 26px; font-weight: 700; letter-spacing: -.26px; line-height: 1.2; }
.info p { font-size: 15px; font-weight: 500; color: var(--lime-t); }
.summ { width: 440px; flex: none; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* contact */
.contact-sec { padding: 40px 0 96px; }
.cta-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 96px 80px; border-radius: 40px; text-align: center; color: #fff; background: linear-gradient(155deg, #7c5cff 8%, #ff5c7a 92%); }
.cta-card > :not(.glow) { position: relative; z-index: 1; }
.cta-card .glow { z-index: 0; }
.label.light { color: #fff; }
.cta-card h2 { font-size: 64px; line-height: 1.05; letter-spacing: -1.92px; max-width: 900px; }
.csub { font-size: 20px; opacity: .85; max-width: 640px; }
.mail { font-size: 17px; font-weight: 600; text-decoration: underline; }

/* footer */
.foot { padding: 33px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.flinks { display: flex; gap: 24px; }
.flinks a:hover { color: var(--fg); }

/* tablet */
@media (max-width: 1280px) {
  .wrap { width: min(1200px, 100% - 96px); }
  .about-row { gap: 56px; }
  .about-left { width: 400px; }
  h1 { font-size: 64px; letter-spacing: -2.4px; }
  h2 { font-size: 48px; }
  .role { gap: 32px; }
  .summ { width: 360px; }
}
@media (max-width: 1024px) {
  .hero-in { flex-direction: column; align-items: flex-start; gap: 64px; }
  .portrait { align-self: center; }
  .b-exp { left: -16px; }
  .b-role { right: -16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .about-row { flex-direction: column; gap: 40px; }
  .about-left { width: 100%; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .role { flex-wrap: wrap; }
  .period { width: 100%; }
  .summ { width: 100%; }
  .links { display: none; }
  .burger { display: grid; margin-left: 0; }
  .nav-cta { display: none; }
  .nav-in .icon-btn:not(.burger) { margin-left: auto; }
  .links.open { display: flex; position: absolute; top: 99px; left: 0; right: 0; transform: none; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .links.open a { padding: 14px 0; font-size: 17px; }
}

/* mobile (Figma 390) */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 48px); }
  .nav-in { height: 61px; }
  .links.open { top: 61px; padding-inline: 24px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding: 40px 0 56px; }
  .hero-in { gap: 40px; }
  .intro { gap: 20px; }
  .status { font-size: 13px; }
  h1 { font-size: 46px; line-height: 1.04; letter-spacing: -1.84px; }
  .lead { font-size: 17px; }
  .ctas { flex-direction: column; width: 100%; }
  .ctas .btn { width: 100%; }
  .portrait { width: 100%; height: 400px; }
  .b-exp { left: 16px; top: 296px; }
  .b-role { right: 14px; left: auto; transform: none; top: -22px; }
  .photo { transform: scale(1.12); }
  .stats { padding-bottom: 48px; }
  .stats-grid { gap: 12px; }
  .stat { padding: 20px; border-radius: 20px; }
  .stat b { font-size: 34px; letter-spacing: -1px; }
  .sec { padding: 56px 0; }
  h2 { font-size: 34px; letter-spacing: -1px; line-height: 1.1; }
  .sub { font-size: 16px; }
  .a1 { font-size: 17px; }
  .a2 { font-size: 16px; }
  .grid3 { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .svc { padding: 24px; }
  .demos-head { margin-top: 72px; }
  .role { padding: 28px 0; gap: 8px; }
  .info h3 { font-size: 22px; }
  .contact-sec { padding: 24px 0 48px; }
  .cta-card { padding: 48px 24px; border-radius: 32px; gap: 20px; }
  .cta-card h2 { font-size: 36px; letter-spacing: -1px; }
  .csub { font-size: 17px; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
