/* =========================================================
   Mahbub · portfolio
   Font: Geist · Accent: deep yellow
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fafaf9;
  --card: #ffffff;
  --line: #ececea;
  --line-soft: #f3f3f1;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;

  --brand: #684bd2;
  --brand-300: #cfc5f3;
  --brand-200: #e6e0fa;
  --brand-600: #5d41bf;
  --brand-700: #5d41bf;
  --brand-ink: #ffffff;
  --brand-text: #5a3dc4;
  --brand-soft: #efebfc;
  --brand-softer: #f6f4fe;
  --g1: #4b30a6;
  --g2: #5d41bf;
  --g3: #684bd2;
  --g4: #9b85ea;
  --grad: linear-gradient(135deg, #7a5fe0 0%, var(--g3) 50%, var(--g2) 100%);
  --grad-btn: linear-gradient(180deg, #7a5fe0 0%, #684bd2 55%, #5d41bf 100%);

  --ok: #16a34a;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .05);
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 0.5rem 1.5rem -12px rgba(24, 24, 27, .12);
  --shadow-glow: 0 1.125rem 2.5rem -18px rgba(104, 75, 210, .45);
  --radius: 1.125rem;
  --radius-sm: 0.75rem;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e0d;
    --surface: #141413;
    --card: #171716;
    --line: #262624;
    --line-soft: #1e1e1c;
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #71717a;
    --brand-300: #3c3270;
    --brand-200: #241f45;
    --brand-600: #8a72e0;
    --brand-700: #b3a3f2;
    --brand-text: #b3a3f2;
    --brand-soft: rgba(104, 75, 210, .18);
    --brand-softer: rgba(104, 75, 210, .09);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 0.5rem 1.5rem -12px rgba(0, 0, 0, .6);
    --shadow-glow: 0 1.125rem 2.5rem -18px rgba(104, 75, 210, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0d;
  --surface: #141413;
  --card: #171716;
  --line: #262624;
  --line-soft: #1e1e1c;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --brand-300: #3c3270;
  --brand-200: #241f45;
  --brand-600: #8a72e0;
  --brand-700: #b3a3f2;
  --brand-text: #b3a3f2;
  --brand-soft: rgba(104, 75, 210, .18);
  --brand-softer: rgba(104, 75, 210, .09);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 0.5rem 1.5rem -12px rgba(0, 0, 0, .6);
  --shadow-glow: 0 1.125rem 2.5rem -18px rgba(104, 75, 210, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 100%; }
@media (min-width: 1280px) { html { font-size: 106.25%; } }
@media (min-width: 1536px) { html { font-size: 112.5%; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 0.5rem; }
::selection { background: var(--brand); color: var(--brand-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 0.75rem; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 0.5rem 0.875rem; border-radius: 0.625rem; font-weight: 600; }
.skip:focus { top: 0.75rem; }

.ico { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.ico-sm { width: 0.875rem; height: 0.875rem; }
.ico-xs { width: 0.75rem; height: 0.75rem; }
.ico-lg { width: 1.375rem; height: 1.375rem; }
.muted { color: var(--muted); }
.brand-text { color: var(--brand-text); }

/* ---------- shell ---------- */
.shell {
  max-width: 87.5rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 16.25rem minmax(0, 1fr) 22.5rem;
  min-height: 100vh;
}
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 1.125rem 1.125rem 1.375rem;
}
.main { border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; padding: 0 1.5rem 2rem; }
.rail::-webkit-scrollbar { display: none; }

/* left sidebar */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.25rem 0.5rem; font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.nav-close { width: 2.5rem; height: 2.5rem; }
.nav-close .ico { width: 1.125rem; height: 1.125rem; }
.logo-mark {
  width: 2.125rem; height: 2.125rem; border-radius: 0.625rem;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff; font-size: 1rem; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0.375rem 1rem -6px rgba(104,75,210,.8);
}
.logo small { font-size: inherit; font-weight: 500; color: var(--faint); }
.nav { margin-top: 1.625rem; display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 0.75rem;
  color: var(--ink-2); font-size: 1rem; font-weight: 450;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.nav a > .ico:not(.ext) { width: 1.25rem; height: 1.25rem; stroke-width: 2.2; }
.nav a[aria-current="page"] .ico { color: var(--brand-700); }
.nav .ext { margin-left: auto; color: var(--faint); }
.nav-sep { height: 1px; background: var(--line); margin: 0.875rem 0.75rem; }
.side-foot { margin-top: auto; padding: 0 0.5rem; }
.side-tools { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.icon-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 62.4375rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn .ico { width: 1rem; height: 1rem; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.copy { font-size: 0.7812rem; color: var(--muted); }
.scrim { position: fixed; inset: 0; display: none; }

/* topbar in main */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 4.375rem; padding: 0 2rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(0.75rem) saturate(1.2);
  -webkit-backdrop-filter: blur(0.75rem) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar h1, .topbar .title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.topbar .who { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.topbar .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.topbar .who b .verified { display: inline-block; vertical-align: -0.125rem; margin-left: 0.25rem; }
.topbar .who > div { min-width: 0; overflow: hidden; }
.topbar .who div > span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.menu-btn { display: none; }
.mini-avatar {
  width: 2.125rem; height: 2.125rem; border-radius: 62.4375rem; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  background: var(--grad); color: #fff;
}
img.mini-avatar { object-fit: cover; box-shadow: 0 0 0 2px var(--brand); }
.verified { color: var(--brand-600); width: 0.9375rem; height: 0.9375rem; }

/* rail */
.rail-top { height: 4.375rem; display: flex; align-items: center; justify-content: flex-end; }
.rail section + section { margin-top: 1.375rem; }
.rail-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.dot { width: 0.4375rem; height: 0.4375rem; border-radius: 62.4375rem; background: var(--brand-600); flex: 0 0 auto; }
.dot-live { position: relative; background: var(--ok); }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; background: var(--ok); opacity: .25; animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.1); opacity: 0; } }

.mini-list { display: grid; gap: 0.25rem; }
.mini-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem; margin: 0 -0.5rem; border-radius: 0.75rem;
  transition: background .15s;
}
a.mini-item:hover { background: var(--surface); }
.mini-item .meta { min-width: 0; flex: 1; }
.mini-item b { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item small { display: block; font-size: 0.7812rem; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .go { color: var(--faint); }
.round-ico {
  width: 2.25rem; height: 2.25rem; border-radius: 62.4375rem; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.round-ico .ico { width: 1rem; height: 1rem; }
.more-link { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.625rem; font-size: 0.8125rem; font-weight: 600; color: var(--brand-text); }
.more-link:hover { text-decoration: underline; text-underline-offset: 0.1875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.875rem; border-radius: 0.625rem;
  font-size: 0.8438rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  border-color: var(--brand-600);
  background: var(--grad-btn);
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0.375rem 1rem -8px rgba(93,65,191,.9);
}
.btn-primary:hover { background: linear-gradient(180deg, #8569e6 0%, #7356da 55%, #684bd2 100%); }
.btn-dark {
  border-color: #000; background: linear-gradient(180deg, #3a3a3a, #111); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0.375rem 0.875rem -6px rgba(0,0,0,.6);
}
.btn-dark:hover { background: linear-gradient(180deg, #444, #1a1a1a); }
.btn-sm { height: 1.875rem; padding: 0 0.6875rem; font-size: 0.7812rem; border-radius: 0.5625rem; }
.btn-icon { width: 2.25rem; padding: 0; }

/* ---------- content ---------- */
.content { padding: 2.5rem 2rem 3.5rem; }
.intro { color: var(--ink-2); font-size: 0.9688rem; margin-bottom: 1.625rem; }
.section { margin-top: 2.75rem; }
.section:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.125rem; }
.sec-head h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.sec-head .ico { color: var(--ink); }
.sec-head .aside { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.prose p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.7; }
.prose p + p { margin-top: 0.875rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brand-300); text-underline-offset: 0.1875rem; }

.collapsible:not(.open) .more { display: none; }
.read-toggle { margin-top: 0.625rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-text); }
.read-toggle .ico { transition: transform .2s; }
.collapsible.open + .read-toggle .ico { transform: rotate(180deg); }
.no-js .collapsible .more { display: block; }
.no-js .read-toggle { display: none; }

/* chips + tags */
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 1.625rem; padding: 0 0.625rem; border-radius: 0.5rem;
  font-size: 0.7812rem; font-weight: 500; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.chip .ico { width: 0.8125rem; height: 0.8125rem; }
.chip.pill {
  height: 1.625rem; padding: 0 0.625rem 0 0.5rem; border-radius: 999px; gap: 0.375rem;
  font-size: 0.775rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--surface) 70%, var(--card)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(24,24,27,.06);
}
.chip.pill.tint {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--card)), color-mix(in srgb, var(--c) 13%, var(--card)));
  border-color: color-mix(in srgb, var(--c) 32%, var(--line));
}
.chip .mark { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }
.chip.pill .ico { width: 0.8125rem; height: 0.8125rem; color: var(--brand-600); }
:root[data-theme="dark"] .chip.pill { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.pill { box-shadow: none; } }
.chip.hl { background: var(--brand-softer); border-color: var(--brand-300); color: var(--ink); }
.chip-dot::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 62.4375rem; background: var(--brand-600); }
.pill {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  padding: 0.25rem 0.75rem; border-radius: 62.4375rem;
  font-size: 0.7812rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-text);
  border: 1px solid color-mix(in srgb, var(--brand-600) 25%, transparent);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag {
  display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5rem;
  border-radius: 0.4375rem; font-size: 0.75rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--card);
}

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 1.125rem 1.25rem; }
.glow {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-600) 28%, var(--line));
  background:
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--g4) 45%, transparent) 0%, transparent 60%),
    radial-gradient(70% 70% at 70% 110%, color-mix(in srgb, var(--g3) 35%, transparent) 0%, transparent 65%),
    radial-gradient(80% 70% at 0% 0%, var(--brand-softer) 0%, transparent 70%),
    var(--card);
  box-shadow: var(--shadow-glow);
}
.label { display: flex; align-items: center; gap: 0.4375rem; font-size: 0.7812rem; font-weight: 500; color: var(--muted); }
.label .ico { width: 0.875rem; height: 0.875rem; }

/* ---------- profile ---------- */
.banner {
  height: 13rem;
  background-color: var(--brand-200);
  background-image:
    linear-gradient(90deg, var(--bg) 2px, transparent 2px),
    linear-gradient(0deg, var(--bg) 0.1875rem, transparent 0.1875rem),
    radial-gradient(60% 120% at 20% 30%, var(--brand) 0%, transparent 70%),
    radial-gradient(50% 120% at 85% 70%, var(--brand-600) 0%, transparent 70%),
    linear-gradient(90deg, var(--brand-300), var(--brand-200));
  background-size: 0.5625rem 0.9375rem, 0.5625rem 0.9375rem, 100% 100%, 100% 100%, 100% 100%;
  opacity: .95;
}
.banner.hive-on { position: relative; overflow: hidden; background: var(--bg); opacity: 1; touch-action: pan-y; }
.hive { position: absolute; inset: 0; display: block; }
.hero { position: relative; text-align: center; padding: 0 1.5rem 0.375rem; margin-top: -3.75rem; }
.avatar {
  width: 7rem; height: 7rem; margin: 0 auto; border-radius: 62.4375rem;
  border: 0.3125rem solid var(--bg); position: relative; overflow: hidden;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--brand-ink); font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em;
  box-shadow: 0 0.625rem 1.875rem -12px rgba(104,75,210,.8);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-top: 0.875rem; font-size: 1.625rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.hero h1 .verified { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: -0.1875rem; margin-left: 0.25rem; }
.hero .tagline { margin-top: 2px; font-size: 1rem; color: var(--ink-2); }
.hero > .pill { margin-top: 0.75rem; }
.hero .facts {
  margin-top: 0.875rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.375rem 1rem;
  font-size: 0.8438rem; color: var(--muted);
}
.hero .facts span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero .facts b { color: var(--ink); font-weight: 600; }
.hero .chips { margin-top: 1rem; max-width: 42rem; margin-left: auto; margin-right: auto; }

.tabs { display: flex; justify-content: center; gap: 1.75rem; border-bottom: 1px solid var(--line); margin-top: 1.875rem; }
.tab {
  padding: 0.75rem 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--brand-600); }
.tab:hover { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.375rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.stat { padding: 1rem 1.125rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat b sup { color: var(--brand-600); font-size: .6em; margin-left: 1px; }
.stat span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin-top: 1.375rem; }
.clock { font-size: 2.125rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 0.625rem; font-variant-numeric: tabular-nums; }
.clock small { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-left: 0.375rem; letter-spacing: 0; }
.place { margin-top: 0.375rem; font-size: 1rem; font-weight: 600; }
.sub { margin-top: 0.5rem; font-size: 0.7812rem; color: var(--muted); display: flex; align-items: center; gap: 0.375rem; }
.card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.card .desc { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.55; }
.checks { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.checks span { display: inline-flex; align-items: center; gap: 0.3125rem; font-size: 0.75rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.1875rem 0.5rem; background: var(--card); }
.checks .ico { width: 0.75rem; height: 0.75rem; color: var(--brand-700); }

.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; margin-top: 0.75rem; }
.langs b { font-size: 0.9375rem; font-weight: 600; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; margin: 0.625rem 0; }
.bar i { height: 0.25rem; border-radius: 0.5625rem; background: var(--line); }
.bar i.on { background: var(--brand-600); }

/* experience */
.xp { display: grid; gap: 1.875rem; }
.job { display: grid; grid-template-columns: 2.875rem minmax(0, 1fr); gap: 0.875rem; }
.logo-sq {
  width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; position: relative;
  display: grid; place-items: center; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.03em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--line);
}
.logo-sq.y { background: var(--grad); color: #fff; border-color: transparent; }
.logo-sq.s { background: var(--surface); color: var(--ink); }
/* timeline connector between jobs */
.job { position: relative; }
.xp > .job:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0;
  left: calc(2.875rem / 2); width: 1px; transform: translateX(-0.5px);
  top: calc(2.875rem + 0.5rem); bottom: calc(-1.875rem + 0.5rem);
  background: var(--line);
}
.logo-sq.co-logo { background: #fff; border-color: var(--line); padding: 0.25rem; }
.logo-sq.co-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-sq .live { position: absolute; right: -3px; bottom: -3px; width: 0.75rem; height: 0.75rem; border-radius: 6.1875rem; background: var(--ok); border: 2px solid var(--bg); }
.job-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.job-head h3 { font-size: 0.9688rem; font-weight: 600; letter-spacing: -.01em; }
.job-head time, .job-head .when { font-size: 0.7812rem; color: var(--muted); white-space: nowrap; }
.job .org { font-size: 0.8438rem; color: var(--muted); }
.job .lead { margin-top: 0.625rem; font-size: 0.9062rem; color: var(--ink-2); line-height: 1.65; }
.job .lead strong { color: var(--ink); font-weight: 600; }
.bul { margin-top: 0.75rem; display: grid; gap: 0.4375rem; }
.bul li { position: relative; padding-left: 1rem; font-size: 0.875rem; color: var(--ink-2); line-height: 1.6; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 0.3125rem; height: 0.3125rem; border-radius: 0.5625rem; background: var(--ink-2); }
.bul li strong { color: var(--ink); font-weight: 600; }
.job .tags { margin-top: 0.75rem; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0.875rem; }
.metric { padding: 0.875rem 1rem; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric .m-ico { width: 1.875rem; height: 1.875rem; border-radius: 0.5625rem; display: grid; place-items: center; border: 1px solid var(--line); color: var(--brand-700); background: var(--brand-softer); }
.metric .m-ico .ico { width: 0.9375rem; height: 0.9375rem; }
.metric b { display: block; margin-top: 0.75rem; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; }
.metric span { font-size: 0.75rem; color: var(--muted); }

.roles { margin-top: 0.875rem; display: grid; gap: 1rem; position: relative; }
.role { position: relative; padding-left: 1.375rem; }
.role::before { content: ""; position: absolute; left: 0.1875rem; top: 0.5rem; width: 0.5625rem; height: 0.5625rem; border-radius: 6.1875rem; border: 2px solid var(--brand-600); background: var(--bg); z-index: 1; }
.role:not(:last-child)::after { content: ""; position: absolute; left: 0.4375rem; top: 1.125rem; bottom: -18px; width: 1px; background: var(--line); }
.role h4 { font-size: 0.9062rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; }
.role h4 small { font-size: 0.7812rem; font-weight: 400; color: var(--muted); }
.role p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-2); }

/* product list (work tab) */
.plist { display: grid; gap: 0.625rem; }
.prow { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; }
.prow .meta { flex: 1; min-width: 0; }
.prow b { font-size: 0.9375rem; font-weight: 600; }
.prow p { font-size: 0.8125rem; color: var(--muted); }
.prow .num { text-align: right; font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }
.prow .num small { display: block; font-size: 0.7188rem; font-weight: 500; color: var(--muted); }
a.prow:hover { border-color: var(--brand-300); }

.note {
  margin-top: 2.5rem; display: flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1rem; border: 1px dashed var(--line); border-radius: 0.875rem;
  font-size: 0.8438rem; color: var(--muted);
}
.note a { color: var(--brand-text); font-weight: 600; }

.socials-row { display: flex; justify-content: center; gap: 1.375rem; padding: 1.75rem 0 0.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.socials-row a { color: var(--ink-2); }
.socials-row a:hover { color: var(--ink); }

/* ---------- projects ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.proj { display: flex; flex-direction: column; padding: 0.375rem; border-radius: 1.375rem; transition: transform .2s, box-shadow .2s; }
.proj:hover { transform: translateY(-2px); box-shadow: 0 2px 0.25rem rgba(0,0,0,.04), 0 1.25rem 2.5rem -20px rgba(24,24,27,.3); }
.art {
  --x1: 20%; --y1: 30%; --x2: 80%; --y2: 75%;
  position: relative; height: 12.25rem; border-radius: 1.0625rem; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(40% 55% at var(--x1) var(--y1), #684bd2 0%, transparent 70%),
    radial-gradient(45% 60% at var(--x2) var(--y2), #9b85ea 0%, transparent 70%),
    radial-gradient(50% 50% at 70% 15%, #c4b6f6 0%, transparent 70%),
    radial-gradient(45% 55% at 15% 90%, #7a5fe0 0%, transparent 70%),
    linear-gradient(135deg, #4b30a6, #7a5fe0 55%, #b9a8f2);
}
.art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 0.875rem 0.875rem; mix-blend-mode: soft-light; }
.art.v2 { --x1: 75%; --y1: 25%; --x2: 25%; --y2: 80%; }
.art.v3 { --x1: 50%; --y1: 85%; --x2: 85%; --y2: 20%; }
.art.v4 { --x1: 15%; --y1: 70%; --x2: 60%; --y2: 30%; }
.tile {
  position: relative; z-index: 1;
  min-width: 6rem; height: 4.75rem; padding: 0 1.25rem; border-radius: 1.125rem;
  display: grid; place-items: center;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 0.625rem 1.875rem -12px rgba(50,30,120,.45), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(0.375rem); -webkit-backdrop-filter: blur(0.375rem);
  color: #fff; font-weight: 800; font-size: 1.625rem; letter-spacing: -.04em;
}
.tile .ico { width: 2.25rem; height: 2.25rem; stroke-width: 1.6; }
.badge {
  position: absolute; z-index: 2; left: 0.75rem; top: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 1.75rem; padding: 0 0.6875rem; border-radius: 0.5625rem;
  background: rgba(28,18,64,.85); color: #fff; font-size: 0.7812rem; font-weight: 600;
}
.badge .ico { width: 0.8125rem; height: 0.8125rem; color: #c3bdf2; }
.badge em { font-style: normal; color: #c3bdf2; }
.proj-body { padding: 0.875rem 0.875rem 0.75rem; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.proj-body p { font-size: 0.8438rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.55; }
.proj-foot { margin-top: auto; padding-top: 0.875rem; display: flex; align-items: center; gap: 0.625rem; }
.proj-foot .tags { flex: 1; }
.proj-foot .links { display: flex; gap: 0.625rem; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; align-items: center; }
.proj-foot .links a { display: inline-flex; align-items: center; gap: 0.25rem; }
.proj-foot .links a:hover { color: var(--ink); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.proj { position: relative; }
.proj .links a { position: relative; z-index: 4; }

.repo { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; transition: border-color .15s; }
.repo:hover { border-color: var(--brand-300); }
.repo h3 { font-size: 0.9375rem; font-weight: 400; }
.repo h3 b { font-weight: 600; }
.repo p { margin-top: 0.375rem; font-size: 0.8438rem; color: var(--ink-2); line-height: 1.55; }
.repo .foot { margin-top: auto; padding-top: 0.75rem; display: flex; gap: 0.875rem; font-size: 0.7812rem; color: var(--muted); align-items: center; }
.lang-dot { width: 0.5625rem; height: 0.5625rem; border-radius: 6.1875rem; display: inline-block; margin-right: 0.3125rem; }

/* ---------- stack ---------- */
.hero-card { padding: 1.625rem 1.625rem 1.375rem; }
.hero-card h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.hero-card p { margin-top: 0.5rem; color: var(--ink-2); max-width: 35rem; }
.hero-card .row { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.hero-card .row span { display: inline-flex; gap: 0.375rem; align-items: center; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin: 1.375rem 0 0.375rem; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 0.375rem; flex: 0 0 auto;
  height: 2.125rem; padding: 0 0.8125rem; border-radius: 62.4375rem;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
}
.filter small { color: var(--faint); font-weight: 500; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter[aria-pressed="true"] small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.count { font-size: 0.7812rem; color: var(--muted); margin: 0.5rem 0 0.75rem; }
.lanes { display: grid; gap: 0.75rem; }
.lane { padding: 1.125rem 1.25rem; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.875rem; }
.lane[hidden] { display: none; }
.lane .l-ico { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--brand-softer); border: 1px solid var(--brand-300); color: var(--brand-700); }
.lane .eyebrow { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.lane h3 { font-size: 1.0312rem; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.lane h3 span { color: var(--muted); font-weight: 500; }
.lane p { margin-top: 0.375rem; font-size: 0.875rem; color: var(--ink-2); }
.lane .quote { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted); display: flex; gap: 0.375rem; }
.lane .quote .ico { color: var(--brand-600); width: 0.875rem; height: 0.875rem; margin-top: 0.1875rem; }
.lane .tags { margin-top: 0.75rem; }

/* ---------- contact ---------- */
.cta-card { padding: 1.375rem; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.sq-ico { width: 3rem; height: 3rem; border-radius: 0.8125rem; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--brand-700); }
.offer { padding: 1.125rem; display: flex; flex-direction: column; }
.offer h3 { margin-top: 1rem; }
.offer .desc { flex: 1; }
.offer .btn { margin-top: 1.125rem; align-self: flex-start; }
.link-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--brand-300); transform: translateY(-1px); }
.link-card .meta { flex: 1; min-width: 0; }
.link-card b { display: block; font-size: 0.9375rem; font-weight: 600; }
.link-card small { display: block; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card .go { color: var(--faint); }
.link-card .sq-ico { width: 2.75rem; height: 2.75rem; color: var(--ink); }

/* ---------- footer (main) ---------- */
.foot-main { padding: 1.375rem 2rem; border-top: 1px solid var(--line); font-size: 0.7812rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; }
.foot-main a:hover { color: var(--ink); }

/* ---------- share dialog ---------- */
.share-dlg {
  width: min(31rem, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 1.5rem;
  background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(20, 10, 60, .45);
}
.share-dlg[open] { animation: dlg-in .22s ease-out; }
.share-dlg::backdrop { background: rgba(14, 10, 30, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.share-inner { padding: 1.5rem; }
.share-head { display: flex; align-items: center; justify-content: space-between; }
.share-head h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.share-x { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.share-x:hover { background: var(--surface); }
.share-x svg { width: 1.125rem; height: 1.125rem; }
.share-card { margin-top: 1.25rem; display: flex; gap: 0.875rem; padding: 1rem 1.125rem; border: 1px solid var(--line); border-radius: 1.125rem; background: var(--surface); }
.share-card img { width: 3.5rem; height: 3.5rem; border-radius: 999px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--brand); }
.share-card b { display: flex; align-items: center; gap: 0.375rem; font-size: 1.0625rem; font-weight: 600; }
.share-card b .verified { width: 1rem; height: 1rem; }
.share-card p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.share-grid { margin-top: 1.375rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem; }
.share-grid a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--ink-2); padding: 0.25rem 0; border-radius: 0.75rem; }
.share-grid a span { width: 3.25rem; height: 3.25rem; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); transition: transform .15s, background .15s; }
.share-grid a:hover span { transform: translateY(-2px); background: var(--surface); }
.share-grid a:hover { color: var(--ink); }
.share-grid svg { width: 1.375rem; height: 1.375rem; }
:root[data-theme="dark"] .share-grid .s-x { color: var(--ink) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .share-grid .s-x { color: var(--ink) !important; } }
.share-link { margin-top: 1.375rem; display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.375rem 0.375rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--muted); }
.share-link svg { width: 1.125rem; height: 1.125rem; flex: 0 0 auto; }
.share-link input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; color: var(--ink); outline: none; }
.share-link .btn { height: 2.375rem; padding: 0 1rem; font-size: 0.875rem; border-radius: 0.75rem; }
.share-more { display: block; margin: 1rem auto 0; font-size: 0.875rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.share-more:hover { color: var(--ink); }
@media (max-width: 480px) {
  .share-grid { grid-template-columns: repeat(3, 1fr); row-gap: 0.875rem; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(0.625rem); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* company links */
a.co { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a.co:hover { color: var(--brand-text); text-decoration-color: currentColor; }

/* ---------- mobile chrome (hidden on desktop) ---------- */
.show-sm { display: none !important; }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .shell { grid-template-columns: 15rem minmax(0, 1fr) 20rem; }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: 15rem minmax(0, 1fr); }
  .main { border-right: 0; }
  .rail { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 0.9062rem; }
  .shell { grid-template-columns: 1fr; }
  .main { border-left: 0; }
  .side {
    position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 17.5rem; height: auto;
    background: var(--bg); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .25s ease;
    box-shadow: 1.25rem 0 3.125rem -20px rgba(0,0,0,.25);
  }
  .side.open { transform: none; }
  .scrim { display: block; z-index: 55; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1.375rem 1rem 2.75rem; }
  .foot-main { padding: 1.25rem 1rem; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .icon-btn.show-sm { display: grid !important; }
  html, body { overflow-x: clip; }

  /* top bar: menu left, theme + CTA right */
  .topbar { height: 3.75rem; gap: 0.5rem; padding: 0 0.875rem; }
  .topbar .icon-btn { width: 2.5rem; height: 2.5rem; }
  .topbar .icon-btn .ico { width: 1.125rem; height: 1.125rem; }
  .topbar .actions { gap: 0.5rem; }
  .topbar .actions .btn { height: 2.5rem; }
  .topbar .actions .btn-icon { width: 2.5rem; border-radius: 999px; }
  .topbar .actions .btn-primary { padding: 0 1.125rem; border-radius: 999px; font-size: 0.9375rem; }
  .topbar h1, .topbar .title { font-size: 1rem; }

  /* bottom tab bar */
  .main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
    min-height: 3.25rem; border-radius: 0.875rem;
    font-size: 0.75rem; font-weight: 500; color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar a .ico { width: 1.5rem; height: 1.5rem; stroke-width: 1.9; }
  .tabbar a:active { background: var(--surface); }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .tabbar a[aria-current="page"] .ico { color: var(--brand); stroke-width: 2.2; }
}
@media (max-width: 680px) {
  .grid2, .grid3, .duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .langs { grid-template-columns: 1fr; }
  .job { grid-template-columns: 2.375rem minmax(0, 1fr); gap: 0.75rem; }
  .logo-sq { width: 2.375rem; height: 2.375rem; font-size: 0.875rem; border-radius: 0.625rem; }
  .xp > .job:not(:last-child)::before { left: calc(2.375rem / 2); top: calc(2.375rem + 0.5rem); }
  .job-head { flex-direction: column; gap: 0; }
  .hero h1 { font-size: 1.375rem; }
  .banner { height: 9rem; }
  .cta-card { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr; }
  .tabs { gap: 1.375rem; }
  .hero { padding: 0 1rem 0.375rem; }
  .hero .facts { flex-direction: column; align-items: center; gap: 0.375rem; font-size: 0.875rem; }
  .hero .tagline { font-size: 0.9375rem; }
  .sec-head h2 { font-size: 1.0625rem; }
  .card-pad { padding: 1rem 1.125rem; }
  .hero-card { padding: 1.25rem 1.125rem; }
  .hero-card h2 { font-size: 1.375rem; }
  .art { height: 11rem; }
  .filters { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .prow { padding: 0.75rem 0.875rem; gap: 0.75rem; }
  .prow .sq-ico { width: 2.5rem; height: 2.5rem; }
  .foot-main { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- print (all pages) ---------- */
@media print {
  .side, .rail, .topbar, .scrim, .foot-main, .tabs, .read-toggle, .no-print { display: none !important; }
  .shell { display: block; }
  .main { border: 0; }
  .collapsible .more { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
