/* ============================================================
   Carlo Vinci — Portfolio
   Design tokens + components. Light-first, dark via [data-theme].
   ============================================================ */

:root {
  /* type */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* accent (tweakable) */
  --accent: #2a5bd7;
  --accent-press: oklch(from var(--accent) calc(l - 0.07) c h);
  --accent-fg: #ffffff;
  --accent-soft: color-mix(in oklch, var(--accent) 11%, transparent);
  --accent-line: color-mix(in oklch, var(--accent) 28%, transparent);

  /* neutrals — cool-warm balanced */
  --bg: oklch(0.985 0.0015 250);
  --bg-2: oklch(0.965 0.002 250);
  --surface: #ffffff;
  --surface-2: oklch(0.985 0.0015 250);
  --text: oklch(0.21 0.012 260);
  --text-2: oklch(0.46 0.012 260);
  --text-3: oklch(0.60 0.01 260);
  --border: oklch(0.916 0.004 260);
  --border-2: oklch(0.86 0.006 260);
  --ring: color-mix(in oklch, var(--accent) 38%, transparent);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 260 / 0.05), 0 1px 1px oklch(0.2 0.02 260 / 0.04);
  --shadow-md: 0 1px 3px oklch(0.2 0.02 260 / 0.06), 0 8px 24px oklch(0.2 0.02 260 / 0.07);
  --shadow-lg: 0 2px 6px oklch(0.2 0.02 260 / 0.07), 0 18px 48px oklch(0.2 0.02 260 / 0.10);

  /* shape + rhythm (tweakable) */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: 28px;
  --section-y: 120px;

  color-scheme: light;
}

[data-theme="dark"] {
  --accent-fg: #ffffff;
  --accent-soft: color-mix(in oklch, var(--accent) 20%, transparent);
  --accent-line: color-mix(in oklch, var(--accent) 42%, transparent);

  --bg: oklch(0.165 0.006 265);
  --bg-2: oklch(0.195 0.007 265);
  --surface: oklch(0.205 0.008 265);
  --surface-2: oklch(0.235 0.009 265);
  --text: oklch(0.965 0.003 260);
  --text-2: oklch(0.74 0.012 260);
  --text-3: oklch(0.60 0.012 260);
  --border: oklch(0.30 0.01 265);
  --border-2: oklch(0.37 0.012 265);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.30);
  --shadow-md: 0 1px 3px oklch(0 0 0 / 0.36), 0 10px 30px oklch(0 0 0 / 0.34);
  --shadow-lg: 0 2px 8px oklch(0 0 0 / 0.40), 0 24px 56px oklch(0 0 0 / 0.46);

  color-scheme: dark;
}

/* density (tweakable) */
[data-density="compact"] { --section-y: 86px; }
[data-density="comfy"]   { --section-y: 156px; }

/* ---------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
  transition: background-color .4s ease, color .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * 0.62) 0; }

/* mono kicker / eyebrow */
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.kicker::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent-line);
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 18px 0 14px; }
.section-head p { color: var(--text-2); font-size: 18px; }
.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------------------------------------------------------- buttons */
.btn {
  --bg-btn: var(--surface);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-btn);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent); color: var(--accent-fg); border-color: transparent;
  box-shadow: 0 1px 2px color-mix(in oklch, var(--accent) 40%, transparent);
}
.btn--primary:hover { background: var(--accent-press); box-shadow: 0 6px 20px color-mix(in oklch, var(--accent) 32%, transparent); }
.btn--ghost { background: transparent; border-color: var(--border-2); }
.btn--sm { padding: 8px 13px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0;
}
.nav__links { display: flex; gap: 4px; margin-left: 14px; }
.nav__links a {
  font-size: 14.5px; color: var(--text-2); font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color .18s, background-color .18s;
}
.nav__links a:hover { color: var(--text); background: var(--bg-2); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle-menu { display: none; }

/* ---------------------------------------------------------- hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 calc(var(--section-y) * 0.7); position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
}
.avail {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 13px 6px 11px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.avail .dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.72 0.17 150); box-shadow: 0 0 0 3px oklch(0.72 0.17 150 / 0.18); }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  margin: 26px 0 0; letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  font-family: var(--font-mono); font-size: clamp(13px, 1.5vw, 15.5px);
  color: var(--text-2); letter-spacing: 0.01em; margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.hero__sub span { display: inline-flex; align-items: center; gap: 8px; }
.hero__sub span:not(:last-child)::after { content: "/"; color: var(--border-2); margin-left: 6px; }
.hero__lede { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--text-2); max-width: 540px; margin-top: 24px; }
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 36px; margin-top: 44px; }
.hero__meta .n { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.hero__meta .l { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.portrait { position: relative; }
.portrait image-slot {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.portrait__badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
}
.portrait__badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.portrait__badge .ic svg { width: 18px; height: 18px; }
.portrait__badge .t { font-size: 13px; font-weight: 600; }
.portrait__badge .s { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }

/* logo strip */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.logos__inner { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; justify-content: center; }
.logos__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-right: 8px; }
.logos__item { font-weight: 600; font-size: 16px; color: var(--text-3); letter-spacing: -0.01em; transition: color .2s; }
.logos__item:hover { color: var(--text-2); }

/* ---------------------------------------------------------- skills */
.skill-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s; }
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-card__head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.skill-card__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.skill-card__ic svg { width: 19px; height: 19px; }
.skill-card h3 { font-size: 16px; letter-spacing: -0.01em; }
.skill-card__n { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px;
  transition: color .18s, border-color .18s, background-color .18s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }

/* ---------------------------------------------------------- projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--text-2); background: transparent;
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 100px;
  cursor: pointer; transition: all .18s;
}
.filter:hover { border-color: var(--text-3); color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.proj {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease, opacity .35s ease;
}
.proj:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-2); }
.proj.is-hidden { display: none; }
.proj__media { position: relative; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--border); }
.proj__media image-slot { width: 100%; height: 100%; border-radius: 0; }
.proj__cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: color-mix(in oklch, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-2); padding: 5px 10px; border-radius: 7px;
}
.proj__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.proj__title { display: flex; align-items: center; gap: 10px; }
.proj__title h3 { font-size: 21px; letter-spacing: -0.02em; }
.proj__desc { color: var(--text-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 9px; border-radius: 6px;
}
.caps { display: flex; flex-wrap: wrap; gap: 7px 16px; padding-top: 2px; }
.cap { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.cap::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.proj__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.proj__tagline { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em; color: var(--text-3); }

/* ---------------------------------------------------------- experience timeline */
.tl { position: relative; max-width: 820px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl__item { position: relative; padding: 0 0 38px 42px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); }
.tl__item--now .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl__role { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tl__co { color: var(--accent); font-weight: 600; }
.tl__date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.tl__desc { color: var(--text-2); font-size: 15px; margin-top: 7px; }

/* ---------------------------------------------------------- certs */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.cert:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cert__badge {
  width: 46px; height: 46px; flex: none; border-radius: 11px;
  background: linear-gradient(150deg, color-mix(in oklch, var(--accent) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent);
}
.cert__badge svg { width: 22px; height: 22px; }
.cert h3 { font-size: 15.5px; letter-spacing: -0.01em; }
.cert .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 5px; }
.cert--ghost { border-style: dashed; background: transparent; box-shadow: none; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; min-height: 92px; }
.cert--ghost:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------- github dashboard */
.gh { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel__head h3 { font-size: 16px; letter-spacing: -0.01em; }
.panel__head .sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.contrib { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.contrib i { width: 100%; aspect-ratio: 1; border-radius: 2.5px; background: var(--bg-2); }
.contrib i[data-l="1"] { background: color-mix(in oklch, var(--accent) 26%, var(--bg-2)); }
.contrib i[data-l="2"] { background: color-mix(in oklch, var(--accent) 50%, var(--bg-2)); }
.contrib i[data-l="3"] { background: color-mix(in oklch, var(--accent) 74%, var(--bg-2)); }
.contrib i[data-l="4"] { background: var(--accent); }
.contrib-legend { display: flex; align-items: center; gap: 7px; justify-content: flex-end; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.contrib-legend i { width: 11px; height: 11px; border-radius: 2.5px; display: inline-block; }
.gh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
.gh-stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.gh-stat .n { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.gh-stat .l { font-size: 12.5px; color: var(--text-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.repo { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--border); }
.repo:first-of-type { border-top: 0; }
.repo__ic { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; color: var(--text-2); }
.repo__ic svg { width: 16px; height: 16px; }
.repo__name { font-weight: 600; font-size: 14.5px; }
.repo__desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.repo__meta { display: flex; gap: 16px; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.repo__meta span { display: inline-flex; align-items: center; gap: 5px; }
.repo__lang { display: inline-flex; align-items: center; gap: 6px; }
.repo__lang::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: start; }
.about__lede { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.02em; line-height: 1.4; }
.about__lede b { color: var(--accent); font-weight: 700; }
.about p + p { margin-top: 18px; color: var(--text-2); font-size: 16px; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about__stats .cell { background: var(--surface); padding: 22px; }
.about__stats .n { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.about__stats .l { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------------------------------------------------------- contact */
.contact { text-align: center; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -20%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.contact-card h2 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.03em; position: relative; }
.contact-card p { color: var(--text-2); font-size: 18px; max-width: 520px; margin: 18px auto 0; position: relative; }
.contact-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; position: relative; }

/* ---------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.footer__social { display: flex; gap: 8px; }

/* ---------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  :root { --section-y: 92px; --gutter: 22px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 380px; }
  .gh { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 38px; }
  .skill-cols { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle-menu { display: inline-grid; }
  .proj-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 26px; }
  .resume-text-full { display: none; }
  .mobile-menu { display: block; }
}
@media (min-width: 721px) { .mobile-menu { display: none; } }

/* ============================================================
   COMING SOON PAGE
   ============================================================ */
.cs-page { min-height: 100svh; display: flex; flex-direction: column; }
.cs-avatar { margin-bottom: 22px; }
.cs-avatar img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--surface); box-shadow: var(--shadow-md), 0 0 0 1px var(--border); }
.cs-top { padding: 26px 0; }
.cs-top__inner { display: flex; align-items: center; gap: 16px; }
.cs-top .nav__right { margin-left: auto; }

.cs-body { flex: 1; display: flex; align-items: center; padding: clamp(24px, 5vw, 64px) 0; position: relative; overflow: hidden; }
.cs-body::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none; z-index: 0;
}
.cs-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; width: 100%; }

.cs-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 7px 14px; border-radius: 100px; font-weight: 500;
}
.cs-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: cs-pulse 2.4s infinite; }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cs-badge .pulse { animation: none; } }

.cs-name { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.04em; margin: 26px 0 0; line-height: 0.98; }
.cs-role { font-family: var(--font-mono); font-size: clamp(13px, 1.6vw, 16px); color: var(--accent); margin-top: 16px; letter-spacing: 0.01em; }
.cs-about { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--text-2); max-width: 540px; margin-top: 22px; }
.cs-about + .cs-about { margin-top: 14px; font-size: 16px; }

.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cs-stats { display: flex; gap: 34px; margin-top: 32px; }
.cs-stats .n { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.cs-stats .l { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.cs-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* right column card */
.cs-card { position: relative; }
.cs-portrait { position: relative; }

/* official certification badges */
.cs-badges { display: flex; gap: clamp(20px, 4vw, 40px); justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.cs-cert { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cs-cert img { width: clamp(96px, 11vw, 130px); height: auto; filter: drop-shadow(0 12px 28px oklch(0.2 0.02 260 / 0.16)); }
.cs-cert__pill {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 100px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.cs-card image-slot { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.cs-card__badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
}
.cs-card__badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cs-card__badge .ic svg { width: 18px; height: 18px; }
.cs-card__badge .t { font-size: 13px; font-weight: 600; }
.cs-card__badge .s { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }

/* continuous tech marquee */
.cs-marquee {
  margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cs-marquee__track { display: flex; gap: 12px; width: max-content; animation: cs-scroll 42s linear infinite; }
.cs-marquee:hover .cs-marquee__track { animation-play-state: paused; }
@keyframes cs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cs-marquee__track { animation: none; } }
.mq-pill {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.mq-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* services */
.cs-services-wrap { padding: clamp(46px, 7vw, 84px) 0; }
.cs-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.cs-svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.cs-svc:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-2); }
.cs-svc__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.cs-svc__ic svg { width: 23px; height: 23px; }
.cs-svc h3 { font-size: 19px; letter-spacing: -0.02em; }
.cs-svc p { color: var(--text-2); font-size: 15px; margin-top: 10px; }
@media (max-width: 880px) { .cs-services { grid-template-columns: 1fr; } }

.cs-foot { padding: 26px 0; border-top: 1px solid var(--border); }
.cs-foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cs-foot__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }

@media (max-width: 880px) {
  .cs-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-card { max-width: 360px; order: -1; }
}
@media (max-width: 720px) {
  .cs-stats { gap: 24px; }
}

/* mobile slide-down menu */
.mobile-menu { border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.mobile-menu.open { max-height: 320px; }
.mobile-menu__inner { padding: 12px var(--gutter) 20px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { padding: 12px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; }
.mobile-menu a:hover { background: var(--bg-2); color: var(--text); }
