/* sultonbek.uz: one design system for every page. Pages are built by tools/site/build.py. */
:root {
  --bg: #060a12;
  --bg2: #0b111d;
  --surface: rgba(13, 19, 32, .78);
  --surface2: rgba(19, 27, 44, .86);
  --glass: rgba(255, 255, 255, .04);
  --glass2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .085);
  --border2: rgba(255, 255, 255, .16);
  --text: #e8edf5;
  --soft: #c3cede;
  --muted: #8796ab;
  --accent: #00d0d8;
  --accent2: #7b6cf6;
  --accent-a: rgba(0, 208, 216, .14);
  --ok: #3ddc97;
  --ff-head: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 5vw, 64px);
  --r: 18px;
}

/* Page switches: header, tab bar and background stay put; only the content cross-fades. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .28s; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease) both; }
::view-transition-old(site-nav), ::view-transition-old(site-tabbar) { display: none; }
::view-transition-new(site-nav), ::view-transition-new(site-tabbar), ::view-transition-group(site-nav), ::view-transition-group(site-tabbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 84px; }
body {
  min-height: 100svh; overflow-x: clip; color: var(--text); font-family: var(--ff-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(0, 208, 216, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(123, 108, 246, .05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='.045'/%3E%3C/svg%3E"),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(0, 208, 216, .3); }

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; view-transition-name: site-bg; }
#bg.on { opacity: 1; }
::view-transition-old(site-bg) { display: none; }
::view-transition-new(site-bg), ::view-transition-group(site-bg) { animation: none; }
main, footer { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut); background: rgba(6, 10, 18, .62); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); view-transition-name: site-nav;
}
.logo { font-family: var(--ff-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--glass2); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); }
.langs button { font-family: var(--ff-mono); font-size: 11px; padding: 5px 9px; border-radius: 7px; color: var(--muted); letter-spacing: .05em; transition: color .2s, background .2s; }
.langs button.on { background: var(--accent); color: #031014; font-weight: 600; }
.hire { font-family: var(--ff-mono); font-size: 13px; padding: 8px 15px; border-radius: 10px; color: var(--accent); border: 1px solid rgba(0, 208, 216, .55); transition: background .2s, color .2s; }
.hire:hover { background: var(--accent); color: #031014; }

.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { height: 56px; }
  .nav-links, .hire { display: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around; padding: 6px; border-radius: 20px; background: rgba(12, 18, 30, .82); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
    view-transition-name: site-tabbar;
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 14px; font-size: 10.5px; font-weight: 500; color: var(--muted); -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-a); }
}

/* ── type & shared pieces ───────────────────────── */
.label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ph { padding-top: 128px; padding-bottom: 40px; }
.ph h1 { margin-top: 14px; font-family: var(--ff-head); font-weight: 600; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; max-width: 15em; }
.ph .lede { margin-top: 18px; max-width: 38em; font-size: clamp(16px, 1.5vw, 18px); color: var(--soft); }
.sec { padding-top: 28px; padding-bottom: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.h2 { font-family: var(--ff-head); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.more { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.more:hover { color: var(--text); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 14px;
  font-family: var(--ff-head); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn.primary { background: var(--accent); color: #031014; box-shadow: 0 10px 30px -12px rgba(0, 208, 216, .8); }
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(0, 208, 216, 1); transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--border); background: var(--surface); }
.btn.ghost:hover { border-color: var(--border2); background: var(--surface2); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 10px rgba(0, 208, 216, .5); }
.btn svg { width: 18px; height: 18px; }

.card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); padding: 24px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .35s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 208, 216, .12), transparent 60%);
}
.card:hover { border-color: rgba(0, 208, 216, .35); }
.card:hover::before { opacity: 1; }
a.card:hover { transform: translateY(-3px); }
.kick { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin-top: 8px; font-family: var(--ff-head); font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { font-family: var(--ff-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 208, 216, .07); border: 1px solid rgba(0, 208, 216, .18); color: #a9e9ec; }
.pts { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.pts li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--soft); line-height: 1.5; }
.pts li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 2px; border-radius: 2px; background: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.links a { font-size: 14px; font-weight: 600; color: var(--accent); }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll: only for what starts below the fold (set by site.js), so nothing on screen ever blinks */
.rv-wait { opacity: 0; transform: translateY(14px); }
.rv-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ── footer ─────────────────────────────────────── */
footer { margin-top: 24px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; }
.now { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.now b { color: var(--accent); font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color .2s, border-color .2s, transform .25s var(--ease); }
.socials a:hover { color: var(--accent); border-color: rgba(0, 208, 216, .45); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.fine { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fine span { opacity: .65; }
.replay { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); opacity: .85; }
.replay:hover { opacity: 1; }
@media (max-width: 760px) {
  footer .wrap, .now, .fine { justify-content: center; text-align: center; }
}

/* ── home ───────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 72px); min-height: min(100svh, 980px); padding-top: 104px; padding-bottom: 48px; }
.greet { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
.name { font-family: var(--ff-head); font-weight: 700; letter-spacing: -.045em; line-height: .92; font-size: clamp(54px, 8.6vw, 124px); margin-bottom: 26px; }
.name > span { display: block; padding-bottom: .05em; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent2) 60%, var(--accent) 110%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: -220% 0; } }
.statement { font-family: var(--ff-head); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; font-size: clamp(21px, 2.2vw, 30px); max-width: 21em; color: #cfd8e6; }
.statement em { font-style: normal; color: var(--text); background: linear-gradient(transparent 62%, rgba(0, 208, 216, .28) 62%); }
.role { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.role span { font-family: var(--ff-mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--soft); }
.role span:first-child { color: var(--accent); border-color: rgba(0, 208, 216, .45); }
.proof { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(18px, 3vw, 40px); margin-top: 34px; }
.proof b { display: block; font-family: var(--ff-head); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.proof b small { color: var(--accent); font-size: .7em; }
.proof > div > span { display: block; margin-top: 6px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stage-wrap { position: relative; width: min(100%, 460px); justify-self: center; }
.stage { position: relative; aspect-ratio: 1; width: 100%; perspective: 900px; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from var(--a, 0deg), var(--accent), transparent 30%, var(--accent2) 55%, transparent 75%, var(--accent)); animation: spin 9s linear infinite; filter: drop-shadow(0 0 26px rgba(0, 208, 216, .3)); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.photo { position: absolute; inset: 3px; border-radius: 50%; overflow: hidden; background: #dfe3e8; box-shadow: inset 0 0 0 6px var(--bg); transform: translateZ(30px); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.glare { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .26), transparent 45%); mix-blend-mode: soft-light; }
.orbit { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .09); animation: spin2 60s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.core { position: absolute; right: 6%; bottom: 6%; z-index: 4; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--ease); }
.core:hover { transform: scale(1.08); }
.core::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(from var(--a, 0deg), transparent, var(--accent) 25%, transparent 50%, var(--accent2) 75%, transparent); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); animation: spin 3.2s linear infinite; }
.core img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px #04070d, 0 0 22px 4px rgba(0, 208, 216, .45), 0 0 50px 12px rgba(242, 184, 60, .12); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 2px #04070d, 0 0 12px 2px rgba(0, 208, 216, .3), 0 0 30px 6px rgba(242, 184, 60, .2); } }
.core-hint { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; white-space: nowrap; pointer-events: none; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--accent); opacity: .85; }
.core-hint kbd { font: inherit; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(0, 208, 216, .5); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards3 .card { display: flex; flex-direction: column; min-height: 200px; }
.card .go { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; }
.card .go b { color: var(--accent); transition: transform .25s var(--ease); }
a.card:hover .go b { transform: translateX(4px); }
.glyph { position: absolute; right: -4px; top: -12px; z-index: -1; font-family: var(--ff-head); font-weight: 700; font-size: 96px; line-height: 1; color: rgba(255, 255, 255, .035); pointer-events: none; }

/* landing entrance: only on the first page of a visit (html.enter), never on page switches */
.enter .e { animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 92px; gap: 36px; }
  .stage-wrap { order: -1; width: min(70vw, 320px); margin-bottom: 56px; }
  .cards3 { grid-template-columns: 1fr; }
  .cards3 .card { min-height: 0; }
}
@media (max-width: 760px) {
  .hero { padding-top: 80px; padding-bottom: 28px; gap: 30px; }
  .greet { font-size: 10.5px; letter-spacing: .08em; gap: 10px; }
  .stage-wrap { display: contents; }
  .stage { order: -1; width: 112px; margin: 0 0 -12px; }
  .orbit, .core-hint { display: none; }
  .ring { padding: 2px; }
  .photo { inset: 2px; box-shadow: inset 0 0 0 4px var(--bg); }
  .core { width: 40px; height: 40px; right: -8px; bottom: 2px; }
  .core::before { inset: -3px; }
  .name { margin-bottom: 18px; }
  .proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 26px; }
  .ctas { margin-top: 26px; }
  .ctas .btn { flex: 1 1 auto; }
  .ctas .btn.primary { flex-basis: 100%; }
}

/* ── Jarvis panel ───────────────────────────────── */
.jp { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.jp.open { visibility: visible; }
.jp-back { position: absolute; inset: 0; background: rgba(3, 6, 12, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.jp.open .jp-back { opacity: 1; }
.jp-box { position: relative; width: min(560px, 100%); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(16, 24, 40, .97), rgba(9, 14, 24, .98)); border: 1px solid rgba(0, 208, 216, .28); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(0, 208, 216, .5); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.jp.open .jp-box { opacity: 1; transform: none; }
.jp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.jp-head .core { position: relative; right: auto; bottom: auto; width: 36px; height: 36px; pointer-events: none; }
.jp-head .core::before { inset: -3px; }
.jp-title { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .22em; font-weight: 500; }
.jp-title small { display: block; letter-spacing: .04em; font-size: 10.5px; color: var(--ok); }
.jp-x { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); font-size: 18px; }
.jp-x:hover { background: var(--glass2); color: var(--text); }
.jp-body { padding: 18px 18px 8px; }
.jp-say { font-family: var(--ff-head); font-size: 19px; line-height: 1.45; min-height: 2.9em; color: #e3eaf4; }
.jp-say .cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.jp-say a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.jp-list { list-style: none; padding: 8px 10px 10px; display: grid; gap: 4px; }
.jp-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-align: left; font-size: 15px; color: #cdd6e3; transition: background .2s, color .2s; }
.jp-list button:focus-visible { outline: none; }
.jp-list button:hover, .jp-list button.sel { background: rgba(0, 208, 216, .1); color: var(--text); }
.jp-list button.done { color: var(--muted); }
.jp-list kbd { font-family: var(--ff-mono); font-size: 11px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); flex: none; }
.jp-list button.sel kbd { border-color: var(--accent); color: var(--accent); }
.jp-list .tg { color: var(--accent); }
.jp-foot { padding: 10px 18px 14px; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .jp { place-items: end center; padding: 0; }
  .jp-box { border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
  .jp-foot { display: none; }
  .jp-say { font-size: 17px; }
}

/* ── work ───────────────────────────────────────── */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.projects .card { padding: 28px; }
.feat { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; border-color: rgba(0, 208, 216, .3); background: linear-gradient(160deg, rgba(0, 208, 216, .07), transparent 50%), var(--surface); }
.feat h3 { font-size: clamp(30px, 3.6vw, 42px); }
.feat .pts { margin-top: 0; align-content: start; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 11px; color: var(--ok); margin-left: 10px; letter-spacing: .04em; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.wide .links { margin-top: 0; }
@media (max-width: 860px) {
  .projects, .feat { grid-template-columns: 1fr; }
  .projects .card { padding: 22px; }
}

/* ── about ──────────────────────────────────────── */
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.intro p { font-size: clamp(16px, 1.45vw, 18px); color: var(--soft); }
.intro p + p { margin-top: 14px; }
.intro strong { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.fact b { display: block; font-family: var(--ff-head); font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.fact b small { color: var(--accent); font-size: .7em; }
.fact span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.fact.full { grid-column: 1 / -1; }
.stack { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.groups { display: grid; gap: 12px; }
.group { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.group h3 { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.group .tags { margin-top: 10px; }
.ide { border-radius: var(--r); overflow: hidden; background: #0a0f1a; border: 1px solid var(--border); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 208, 216, .06); position: sticky; top: 88px; }
.ide-bar { display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 44px; background: #0d1320; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ide-dots { display: flex; gap: 6px; margin-right: 10px; flex: none; }
.ide-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ide-dots i:nth-child(2) { background: #febc2e; } .ide-dots i:nth-child(3) { background: #28c840; }
.ide-tab { position: relative; flex: none; height: 44px; padding: 0 12px; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); transition: color .2s; }
.ide-tab[aria-selected="true"] { color: var(--text); }
.ide-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.ide-code { position: relative; display: grid; }
.ide-code pre { grid-area: 1 / 1; margin: 0; padding: 18px 18px 18px 0; font-family: var(--ff-mono); font-size: 13px; line-height: 1.75; color: #c9d4e3; overflow-x: auto; counter-reset: ln; opacity: 0; visibility: hidden; transition: opacity .3s; tab-size: 2; }
.ide-code pre.on { opacity: 1; visibility: visible; }
.ide-code pre span.l { display: block; padding-left: 52px; position: relative; white-space: pre; }
.ide-code pre span.l::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 36px; text-align: right; color: #3c4a60; }
.c-k { color: #c792ea; } .c-t { color: #82aaff; } .c-s { color: #c3e88d; } .c-c { color: #56657d; font-style: italic; } .c-a { color: #f2b83c; } .c-p { color: #7fdbca; }
.ide-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); background: #0d1320; border-top: 1px solid var(--border); }
.ide-status b { color: var(--ok); font-weight: 500; }
@media (max-width: 900px) {
  .intro, .stack { grid-template-columns: 1fr; gap: 24px; }
  .ide { position: static; }
}
@media (max-width: 480px) { .ide-code pre { font-size: 12px; } .ide-code pre span.l { padding-left: 42px; } .ide-code pre span.l::before { width: 28px; } }

/* ── experience ─────────────────────────────────── */
.tl { position: relative; display: grid; gap: 16px; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--accent), rgba(0, 208, 216, .15) 30%, var(--border)); }
.job { position: relative; overflow: visible; }
.job::before { border-radius: inherit; }
.job::after { content: ''; position: absolute; left: -28px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border2); }
.job.cur::after { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 208, 216, .15); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.job h2 { font-family: var(--ff-head); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.job .when { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); }
.job .now-tag { margin-left: 8px; font-family: var(--ff-mono); font-size: 11px; color: var(--ok); }
.job .role-t { margin-top: 2px; color: var(--accent); font-size: 15px; font-weight: 500; }
.job details { margin-top: 12px; }
.job summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: '+'; font-family: var(--ff-mono); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border); }
.job details[open] summary::after { content: '−'; }
.job summary:hover { color: var(--text); }
.job details .pts { margin-top: 12px; }
.job .links { margin-top: 14px; }

/* ── contact ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mail { display: grid; gap: 14px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-addr { font-family: var(--ff-head); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; word-break: break-all; }
.mail-addr:hover { color: var(--accent); }
.copy { font-family: var(--ff-mono); font-size: 11px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border2); color: var(--soft); transition: color .2s, border-color .2s; }
.copy:hover, .copy.ok { color: var(--accent); border-color: var(--accent); }
.status { display: flex; flex-wrap: wrap; gap: 8px; }
.status span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); color: var(--soft); }
.status .live { width: 6px; height: 6px; }
.mail .ctas { margin-top: 4px; }
.chan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.chan a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .25s var(--ease); min-width: 0; }
.chan a:hover { border-color: rgba(0, 208, 216, .4); transform: translateY(-2px); }
.chan svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.chan b { display: block; font-size: 14px; font-weight: 600; }
.chan small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan div { min-width: 0; }
.form { display: grid; gap: 12px; }
.form h2 { font-family: var(--ff-head); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.form p.sub { margin-top: -6px; font-size: 13.5px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field span { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border-radius: 12px; background: rgba(4, 8, 14, .6); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 208, 216, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: 14px; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: #ff7a7a; }
.resume { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 16px; }
.resume img { height: auto; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.resume .ctas { margin-top: 16px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .resume { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 420px) { .chan { grid-template-columns: 1fr; } }

/* ── "Jarvis builds the page" (home, first visit) ── */
.building [data-b] { opacity: 0; }
[data-b].b-done { opacity: 1; transition: opacity .35s ease, clip-path .45s var(--ease); }
.bx { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.bx-sk { position: absolute; border-radius: 10px; background: rgba(148, 163, 184, .07); outline: 1px dashed rgba(148, 163, 184, .22); outline-offset: -1px; transition: opacity .35s, outline-color .2s; }
.bx-sk.sel { outline: 1px solid #4f8cff; background: rgba(79, 140, 255, .08); }
.bx-sk.sel::before, .bx-sk.sel::after { content: ''; position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid #4f8cff; }
.bx-sk.sel::before { left: -4px; top: -4px; } .bx-sk.sel::after { right: -4px; bottom: -4px; }
.bx-sk em { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 5px); font: 500 10px/1 var(--ff-mono); font-style: normal; color: #fff; background: #4f8cff; padding: 3px 5px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.bx-sk.sel em { opacity: 1; }
.bx-sk.gone { opacity: 0; }
.bx-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; opacity: .7; }
.bx-agent { position: absolute; left: 0; top: 0; transition: transform .42s cubic-bezier(.3, .7, .2, 1); will-change: transform; }
.bx-agent svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.bx-agent b { position: absolute; left: 14px; top: 16px; font: 600 10px/1 var(--ff-mono); color: #031014; padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.bx-dot { position: absolute; width: 5px; height: 5px; border-radius: 1px; }
.bx-pill {
  position: fixed; left: 50%; bottom: 24px; z-index: 75; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(13, 19, 32, .94); border: 1px solid rgba(0, 208, 216, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); font-size: 13.5px; white-space: nowrap; transition: opacity .4s, transform .5s var(--ease);
}
.bx-pill.on { opacity: 1; transform: translate(-50%, 0); }
.bx-pill i { font-style: normal; color: var(--ok); }
.bx-pill b { color: var(--accent); }
.bx-pill .bar { width: 64px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.bx-pill .bar::after { content: ''; display: block; height: 100%; width: 100%; background: var(--accent); }
.bx-pill button { padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #031014; font-weight: 600; font-size: 12.5px; }
@media (max-width: 760px) { .bx-pill { bottom: calc(96px + env(safe-area-inset-bottom)); font-size: 12.5px; gap: 10px; } .bx-pill .bar { display: none; } }

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