/* ─────────────────────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #f4f4f6;
  --surface-2: #ececf0;
  --ink: #0f0f10;
  --ink-2: #2a2a30;
  --muted: #5d5d68;
  --line: #e3e3e8;
  --lime: #d4ff6a;
  --lime-deep: #b8ef3a;
  --dark: #0b0b0c;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 20px 50px -24px rgba(15, 15, 16, .22);
  --shadow-sm: 0 8px 24px -14px rgba(15, 15, 16, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: 24px;
  --font-head: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--lime); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ─────────────────────────────────────────────────────────────
   Type & primitives
   ───────────────────────────────────────────────────────────── */
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}
.h2--light { color: #fff; }
.body { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow--light { color: #fff; }
.squiggle {
  display: inline-block; width: 28px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M1 7c3-6 6-6 9 0s6 6 9 0 6-6 8-2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M1 7c3-6 6-6 9 0s6 6 9 0 6-6 8-2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--ink); color: var(--lime); }
.btn--outline { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); height: 44px; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.link-underline { position: relative; font-weight: 600; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--lime); color: var(--ink); font-size: 22px;
}
.icon-badge--dark { background: transparent; border: 1.5px solid var(--ink); border-radius: 50%; width: 46px; height: 46px; font-size: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-size: 12.5px; font-weight: 500; line-height: 1;
  padding: 7px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
}

.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.section-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.section-head--split .h2 { max-width: 16ch; margin-bottom: 0; }
.section-head--split .body { margin: 0; }

.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow--center { width: 520px; height: 360px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: var(--lime); opacity: .35; }
.glow--corner { width: 520px; height: 420px; right: -120px; top: -140px; background: #6dbb1c; opacity: .45; }

/* line-mask wrapper produced by JS */
.line-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ─────────────────────────────────────────────────────────────
   Loader
   ───────────────────────────────────────────────────────────── */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #111113;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.loader__word {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(56px, 9vw, 120px); letter-spacing: -.03em;
  color: #2b2b30;
}
.loader__word span { display: inline-block; }

/* ─────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .4s; }
.is-scrolled .site-header__inner { height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo__mark { width: 18px; height: 18px; background: var(--lime); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(-12deg); }
.logo__dot { color: var(--lime-deep); }
.logo--light { color: #fff; }

.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a {
  position: relative; font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime-deep); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #fff; }
.hero__stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(15,15,16,.025) 140px 220px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 110px; padding-bottom: 60px; }
.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 5vw, 74px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 24px;
}
.hero__hello {
  font-family: var(--font-head); font-weight: 600; color: var(--ink-2);
  font-size: clamp(24px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero__hello strong {
  font-weight: 800; color: var(--ink); padding: 0 .1em;
  background: linear-gradient(transparent 58%, var(--lime) 58% 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
}
.hero__lead { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; justify-self: end; }
.shape { position: absolute; border-radius: 50%; background: var(--lime); }
.shape--ring { inset: 18% 8% 0 4%; background: none; border: 1.5px solid var(--line); }
.shape--dot-lg { width: 17%; aspect-ratio: 1; left: 2%; top: 22%; }
.shape--dot-sm { width: 8%; aspect-ratio: 1; right: 2%; top: 58%; }
.shape--dot-xs { width: 3.4%; aspect-ratio: 1; left: 18%; top: 8%; }
.shape--half { width: 36%; aspect-ratio: 2 / 1; right: 0; top: 18%; border-radius: 999px 999px 0 0; }

.portrait {
  position: absolute; left: 12%; bottom: 3%; width: 76%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: #8f8f8f;
  border: 8px solid #fff; box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.1); }
.portrait--fallback { background: none; border: 0; box-shadow: none; overflow: visible; display: grid; place-items: center; }
.portrait__monogram { display: none; }
.portrait--fallback .portrait__monogram {
  display: grid; place-items: center;
  width: 78%; aspect-ratio: 1; margin-bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2b2b31, var(--ink) 70%);
  color: var(--lime);
  font-family: var(--font-head); font-weight: 800; font-size: clamp(64px, 9vw, 140px); letter-spacing: -.04em;
  box-shadow: var(--shadow);
}
.hero__bar { position: absolute; left: 0; bottom: 0; height: 8px; width: 34%; background: var(--lime); transform-origin: left; }

/* ─────────────────────────────────────────────────────────────
   Panels (cards that slide over the previous section)
   ───────────────────────────────────────────────────────────── */
.panel {
  position: relative; z-index: 2;
  margin: 0 var(--gutter);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.panel--dark { background: var(--dark); color: #fff; overflow: hidden; }

/* ─────────────────────────────────────────────────────────────
   About
   ───────────────────────────────────────────────────────────── */
.about { padding: 110px 0; box-shadow: 0 -30px 60px -40px rgba(0,0,0,.25); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 28px; font-weight: 500; font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); }
.checklist li::after { content: ""; position: absolute; left: 5.5px; top: 8px; width: 7px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

.about__visual { position: relative; min-height: 460px; }
.code-card {
  position: absolute; left: 0; top: 0; width: 82%;
  background: var(--ink); color: #d7d7de; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.code-card__bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #222228; font-size: 12px; color: #8a8a94; }
.code-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.code-card__bar i:first-child { background: var(--lime); }
.code-card__bar span { margin-left: 8px; }
.code-card pre { margin: 0; padding: 20px 22px 26px; font: 13.5px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; }
.code-card .k { color: #c39bff; } .code-card .s { color: var(--lime); } .code-card .f { color: #7cc7ff; }
.code-card .d { color: #ffb86b; } .code-card .n { color: #ff8f8f; } .code-card .c { color: #6b6b75; }

.stat-card {
  position: absolute; right: 0; bottom: 40px; width: 220px;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
}
.stat-card__num { font-family: var(--font-head); font-weight: 800; font-size: 52px; line-height: 1; }
.stat-card__label { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tag-card {
  position: absolute; left: 8%; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 300px;
  padding: 14px; border-radius: var(--radius-md); background: var(--lime); box-shadow: var(--shadow-sm);
}
.tag-card span { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.55); }

/* ─────────────────────────────────────────────────────────────
   Skills
   ───────────────────────────────────────────────────────────── */
.skills { position: relative; padding: 130px 0 110px; overflow: hidden; }
.skill-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.skill-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.skill-card:nth-child(even) { margin-top: -24px; }
.skill-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -28px rgba(15,15,16,.3); }
.skill-card h3 { font-family: var(--font-head); font-size: 20px; margin: 18px 0 14px; letter-spacing: -.01em; }

/* ─────────────────────────────────────────────────────────────
   Projects
   ───────────────────────────────────────────────────────────── */
.projects { padding: 90px 0 110px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.filter {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter sup { font-size: 10px; color: var(--muted); margin-left: 2px; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active sup { color: var(--lime); }

/* Horizontal scroll stage — vertical scroll drives the track sideways (JS pins it).
   Without JS / with reduced motion it falls back to a native swipeable row. */
.h-stage { position: relative; }
.h-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-viewport::-webkit-scrollbar { display: none; }
.anim .h-viewport { overflow: hidden; scroll-snap-type: none; }
.h-track {
  position: relative; display: flex; gap: 24px; width: max-content;
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2));
  will-change: transform;
}
.h-card { flex: none; scroll-snap-align: start; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.anim .h-card:not(.is-active) { opacity: .45; }
.anim .h-card:not(.is-active):hover { opacity: .8; }

.h-ui { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.h-progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.h-progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.h-count { font-family: var(--font-head); font-size: 14px; color: var(--muted); min-width: 64px; }
.h-count b { color: var(--ink); }
.h-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.h-hint svg { animation: bob 1.6s var(--ease) infinite; }
.h-ui--light .h-progress { background: rgba(255,255,255,.15); }
.h-ui--light .h-progress span { background: var(--lime); }
.h-ui--light .h-count, .h-ui--light .h-hint { color: #8d8d97; }
.h-ui--light .h-count b { color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.project {
  width: min(880px, 86vw);
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  overflow: hidden;
}

.project__visual {
  position: relative; min-height: 320px; overflow: hidden; color: var(--ink);
  background: var(--surface);
}
.project__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,15,16,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,15,16,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project__visual[data-cat="enterprise"] { background: linear-gradient(150deg, #f6ffe0, #e3f7b0); }
.project__visual[data-cat="research"] { background: linear-gradient(150deg, #17171b, #0b0b0c); color: #fff; }
.project__visual[data-cat="research"]::before { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); }
.project__visual[data-cat="genai"] { background: linear-gradient(150deg, #f4f4f6, #e6e6ec); }
.project__inner { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.project__glyph { width: 46%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 64px; box-shadow: 0 0 0 18px rgba(212,255,106,.25), 0 0 0 40px rgba(212,255,106,.12); }
.project__glyph svg { stroke-width: 1.5; }
.project__num { position: absolute; left: 22px; top: 18px; font-family: var(--font-head); font-weight: 800; font-size: 44px; letter-spacing: -.04em; opacity: .9; }
.project__org { position: absolute; left: 22px; bottom: 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink); }
.project__body { padding: 30px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.project__body h3 { font-family: var(--font-head); font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; }
.project__body .chips { margin-bottom: 18px; }
.project__points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.project__points li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.project__points li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.project__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14px; align-self: flex-start; }
.project__link svg { transition: transform .4s var(--ease); }
.project__link:hover svg { transform: translate(3px, -3px); }

.projects__more { text-align: center; color: var(--muted); margin: 56px 0 0; font-size: 15px; }
.projects__more a { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   Experience (dark)
   ───────────────────────────────────────────────────────────── */
.experience { padding: 100px 0 80px; }
.experience .section-head { margin-bottom: 36px; }
.body--light { color: #a5a5b0; }
.exp-card {
  width: min(460px, 84vw);
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px 28px 24px;
}
.anim .experience .h-card:not(.is-active) { opacity: .4; transform: scale(.95); }
.exp-card--feature { width: min(600px, 88vw); }
.exp-card--feature .exp-card__logo { background: var(--lime); color: var(--ink); }
.exp-card__impact { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.exp-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.exp-card__logo { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-family: var(--font-head); font-weight: 800; }
.exp-card h3 { font-family: var(--font-head); font-size: 19px; margin: 0; line-height: 1.25; }
.exp-card__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.exp-card__date { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--lime); margin-bottom: 16px; }
.exp-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 8px; }
.exp-card b { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   Counters
   ───────────────────────────────────────────────────────────── */
.counters { padding: 110px 0 0; }
.counter-band { background: var(--lime); padding: 40px 0; }
.counter-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter { display: flex; align-items: center; gap: 16px; }
.counter b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; letter-spacing: -.02em; }
.counter small { display: block; font-size: 13.5px; font-weight: 500; margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────
   Education
   ───────────────────────────────────────────────────────────── */
.education { padding: 110px 0; }
.edu-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.edu-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); transition: transform .5s var(--ease); }
.edu-card:hover { transform: translateY(-6px); }
.edu-card--feature { background: var(--ink); color: #fff; }
.edu-card--feature p { color: #a5a5b0; }
.edu-card__tag { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--ink); margin-bottom: 22px; }
.edu-card--feature .edu-card__tag { background: var(--lime); }
.edu-card h3 { font-family: var(--font-head); font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.edu-card p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.edu-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 500; opacity: .85; }
.certs { margin-top: 80px; }
.certs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.certs__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; margin: 0; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
  overflow: hidden; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.cert-card::after {
  content: ""; position: absolute; right: -28px; top: -28px; width: 80px; height: 80px; border-radius: 50%;
  background: var(--lime); opacity: .35; transition: transform .6s var(--ease), opacity .4s;
}
.cert-card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: var(--shadow); }
.cert-card:hover::after { transform: scale(1.6); opacity: .6; }
.cert-card__issuer { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.cert-card h4 { position: relative; z-index: 1; font-family: var(--font-head); font-size: 17px; line-height: 1.3; margin: 0; }
.pill {padding: 5px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; }

/* ─────────────────────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────────────────────── */
.contact { padding: 60px 0 120px; }
.contact__card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  background: var(--surface); border-radius: var(--radius-xl); padding: 0 56px 56px; margin-top: 100px;
}
.contact__info { padding-top: 80px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; }
.contact__list li { display: flex; align-items: center; gap: 10px; }
.contact__list a:hover { text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-size: 18px; transition: background-color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--lime); transform: translateY(-3px); }

.contact__form {
  margin-top: -100px;
  background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(212,255,106,.6); }
.contact__form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-note.is-success { color: #3d7a00; font-weight: 600; }
.form-note.is-error { color: #c0392b; }
.contact__form .btn[disabled] { opacity: .6; pointer-events: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ─────────────────────────────────────────────────────────────
   Footer & back-to-top
   ───────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: #a5a5b0; padding: 32px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: #fff; font-weight: 500; transition: color .3s; }
.footer__links a:hover { color: var(--lime); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-size: 20px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s, color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--lime); }

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card:nth-child(even) { margin-top: 0; }
  .skill-card:nth-child(2n) { transform: translateY(24px); }
  .skill-card:nth-child(2n):hover { transform: translateY(16px); }
  .counter-band__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .header-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: 70px 12px auto; flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
    opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
  }
  .nav a { padding: 14px 16px; font-size: 15px; }
  .nav a::after { display: none; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header__inner, .is-scrolled .site-header__inner { height: 70px; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 100px; gap: 24px; }
  .hero__visual { justify-self: center; max-width: 380px; }

  .panel { margin: 0 8px; border-radius: 24px; }
  .about { padding: 80px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { min-height: 440px; }
  .code-card { width: 100%; }

  .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .project { grid-template-columns: 1fr; }
  .project__visual { min-height: 200px; }
  .project__body { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .project__glyph { width: 30%; font-size: 44px; }

  .edu-grid { grid-template-columns: 1fr; }
  .contact__card { grid-template-columns: 1fr; padding: 0 20px 20px; margin-top: 0; gap: 24px; }
  .contact__info { padding-top: 48px; }
  .contact__form { margin-top: 0; padding: 24px; }
}

@media (max-width: 560px) {
  .checklist { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card:nth-child(2n), .skill-card:nth-child(2n):hover { transform: none; }
  .counter-band__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .counter { flex-direction: column; align-items: flex-start; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .certs { margin-top: 56px; }
  .h-ui { gap: 14px; }
  .h-hint { display: none; }
  .stat-card { width: 190px; bottom: 70px; }
  .stat-card__num { font-size: 42px; }
  .tag-card { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
