/* basharsubh.me — public site */
:root {
  --accent: #c8f560;
  --bg: #0b0d10; --bg2: #101318; --surface: #14181e; --surface2: #1a1f27;
  --line: #232a33; --text: #e8ecef; --muted: #8b95a1; --ink: #0b0d10;
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1180px;
}
[data-theme="light"] {
  --bg: #f6f5f1; --bg2: #efede7; --surface: #ffffff; --surface2: #f3f2ee;
  --line: #e2dfd7; --text: #14171c; --muted: #5f6772;
  --shadow: 0 20px 50px -24px rgba(20,23,28,.25);
}
[data-theme="light"] .accent-text, [data-theme="light"] .accent { color: color-mix(in oklab, var(--accent) 45%, #1a2a00); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
[data-theme="light"] a:hover { color: color-mix(in oklab, var(--accent) 40%, #1a2a00); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent { color: var(--accent); }
.center { text-align: center; }
.pt0 { padding-top: 0 !important; }

/* buttons */
.btn { --b: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; border: 1px solid var(--b); background: transparent; color: var(--text); font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); color: var(--text); border-color: var(--muted); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink) !important; }
.btn-accent:hover { box-shadow: 0 10px 30px -10px var(--accent); border-color: var(--accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.btn-ghost { background: color-mix(in oklab, var(--surface) 60%, transparent); }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.linkish { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: .95rem; letter-spacing: 0; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.menu a:hover, .menu a[aria-current] { color: var(--text); background: var(--surface); }
.menu a.btn-accent { color: var(--ink); margin-left: 8px; }
.nav-tools { display: flex; gap: 8px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.admin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--text); color: var(--bg) !important; padding: 8px 14px; border-radius: 999px; font-size: .85rem; text-decoration: none; font-weight: 600; }

/* hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 85% 10%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); opacity: .55; pointer-events: none; }
.hero-grid > *, .about-grid > *, .resume-grid > *, .contact-grid > *, .work-layout > *, .faq-grid > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8488; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }
.display { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.display-sm { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-cta.center { justify-content: center; }
.stats { display: flex; gap: 40px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .85rem; order: 2; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font: 800 2.2rem/1 var(--display); }
.hero-visual { position: relative; }
.hero-avatar { width: 78%; margin-left: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.code-card { background: #0f1318; color: #d7dde4; border: 1px solid #252c35; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1.5deg); }
.hero-avatar + .code-card { position: absolute; left: -10%; bottom: -12%; width: 82%; font-size: .78rem; }
.code-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #252c35; }
.code-top i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-top i:nth-child(2) { background: #febc2e; } .code-top i:nth-child(3) { background: #28c840; }
.code-top span { margin-left: 8px; font: 500 .78rem var(--mono); color: #8b95a1; }
.code-card pre { margin: 0; padding: 18px 20px 22px; font: 400 .86rem/1.7 var(--mono); overflow-x: auto; }
.code-card .k { color: #c792ea; } .code-card .s { color: var(--accent); } .code-card .c { color: #5f6b78; } .code-card .n { color: #f78c6c; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.marquee { margin-top: 80px; border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font: 600 1.05rem var(--display); color: var(--muted); white-space: nowrap; }
.marquee span::before { content: '✦'; color: var(--accent); margin-right: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }
.eyebrow { font: 500 .82rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
[data-theme="light"] .eyebrow { color: color-mix(in oklab, var(--accent) 40%, #2d4400); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.about-text { font-size: 1.1rem; }
.about-cta { display: flex; gap: 20px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.cards { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.services { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.service { transition: transform .3s, border-color .3s; overflow: hidden; }
.service:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 22px; }
[data-theme="light"] .service-icon { color: color-mix(in oklab, var(--accent) 40%, #1a2a00); }
.service p { color: var(--muted); margin: 0; }
.service .num { position: absolute; right: 22px; top: 18px; font: 500 .8rem var(--mono); color: var(--muted); opacity: .6; }

.packages { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.package { display: flex; flex-direction: column; }
.package header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.package.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.price { font: 800 2rem var(--display); margin: 4px 0 8px; } .price small { font: 400 .9rem var(--font); color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.checks li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tag-new { font: 600 .68rem var(--mono); text-transform: uppercase; color: var(--ink); background: #ffb86b; padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tech span, .tech a { font: 500 .75rem var(--mono); padding: 4px 9px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); text-decoration: none; }

/* resume */
.resume-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; }
.col-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--mono); font-weight: 500; margin: 0 0 22px; }
.timeline { list-style: none; padding: 0; margin: 0 0 48px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.when { font: 500 .8rem var(--mono); color: var(--accent); }
[data-theme="light"] .when { color: color-mix(in oklab, var(--accent) 40%, #2d4400); }
.timeline h4 { font-size: 1.25rem; margin: 6px 0 2px; }
.org { color: var(--muted); margin-bottom: 8px; }
.prose.small { font-size: .95rem; color: var(--muted); }
.prose.small ul { padding-left: 1.1em; margin: 0; }
.skill-group { margin-bottom: 30px; }
.skill-group h4 { font-size: 1rem; margin-bottom: 12px; }
.skill { margin-bottom: 12px; }
.skill-row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.bar { height: 6px; background: var(--surface2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 60%, #2a3a10), var(--accent)); border-radius: 6px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.in .bar i, .no-js .bar i { width: var(--w); }

/* projects */
.projects { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-media { text-decoration: none; color: inherit; }
.project-media:has(.placeholder) { aspect-ratio: 16/7.5; }
.facts .tech span { display: inline-block; margin: 0; text-transform: none; letter-spacing: 0; font: 500 .75rem var(--mono); color: var(--muted); }
@media (max-width: 780px) { .projects { grid-template-columns: 1fr; } }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.project:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.project-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project-media img { transform: scale(1.04); }
.placeholder { height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%), linear-gradient(135deg, var(--surface2), var(--bg2)); }
.placeholder { padding: 22px 26px 0; place-items: end center; overflow: hidden; }
.ph-browser { width: 100%; height: 92%; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px -20px #000a; transition: transform .5s; }
.project:hover .ph-browser { transform: translateY(-6px); }
.ph-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ph-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ph-bar span { margin-left: 8px; flex: 1; font: 500 .72rem var(--mono); color: var(--muted); background: var(--surface2); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-body { padding: 18px 20px; display: grid; gap: 8px; }
.ph-body b { font: 800 1.6rem/1.1 var(--display); letter-spacing: -.03em; }
.ph-body small { font: 500 .72rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.ph-body em { display: block; height: 8px; border-radius: 4px; background: var(--surface2); }
.ph-body em.short { width: 55%; }
.project-body { padding: 22px 24px 8px; }
.project-body h3 a { text-decoration: none; }
.project-body p { color: var(--muted); font-size: .95rem; }
.meta { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 8px; }
.meta a { text-decoration: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--font); }
.chip.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hidden { display: none !important; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px 24px; border-top: 2px solid var(--accent); background: linear-gradient(var(--surface), transparent); border-radius: 0 0 var(--radius) var(--radius); }
.steps span { font: 500 .85rem var(--mono); color: var(--accent); }
.steps h3 { margin: 10px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* quotes, faq */
.quotes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.quote { margin: 0; }
.stars { color: #ffc24b; letter-spacing: 2px; }
.quote blockquote { margin: 14px 0 22px; font-size: 1.05rem; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; } .quote small { color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 600 1.12rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* posts */
.posts { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-media { aspect-ratio: 16/9; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 a { text-decoration: none; }
.post-body p:not(.meta) { color: var(--muted); flex: 1; }

/* contact */
.contact { background: radial-gradient(800px 400px at 10% 100%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 90px; color: var(--muted); font: 500 .85rem var(--mono); padding-top: 2px; }
.form { display: grid; gap: 16px; padding: 32px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; font: 400 1rem var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
textarea { resize: vertical; min-height: 120px; }
[aria-invalid="true"] { border-color: #ff6b6b !important; box-shadow: 0 0 0 3px #ff6b6b33 !important; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0; }
.alert.ok { background: color-mix(in oklab, #3ddc84 16%, transparent); border: 1px solid #3ddc8466; }
.alert.err { background: color-mix(in oklab, #ff6b6b 16%, transparent); border: 1px solid #ff6b6b66; }
.form-status:empty { display: none; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.social a:hover { border-color: var(--accent); }

/* page hero, article */
.page-hero { padding: 64px 0 40px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.work-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.facts { position: sticky; top: 96px; display: grid; gap: 18px; }
.facts span { display: block; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.prose { max-width: 72ch; }
.prose.lg { font-size: 1.1rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose pre { background: #0f1318; color: #d7dde4; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; font: .9rem/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .3em 0; }
.prose a { color: var(--accent); }
[data-theme="light"] .prose a { color: color-mix(in oklab, var(--accent) 35%, #1a2a00); }
.tags { margin-top: 32px; }
.share { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 20px 0; border-block: 1px solid var(--line); margin: 28px 0; color: var(--muted); font-size: .92rem; }
.author { display: flex; gap: 16px; align-items: center; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.pager a[aria-current] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.huge { font: 800 clamp(6rem, 20vw, 12rem)/1 var(--display); color: var(--accent); margin: 0; letter-spacing: -.05em; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 48px; border-radius: 28px; background: var(--accent); color: var(--ink); }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 6px; } .cta-band p { margin: 0; opacity: .8; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.site-footer nav a { display: block; padding: 4px 0; text-decoration: none; color: var(--text); }
.site-footer .brand { margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom a { text-decoration: none; }

/* preview bar */
.preview-bar { background: #ffb86b; color: #1b1300; text-align: center; padding: 8px 16px; font-weight: 600; font-size: .9rem; }

/* AI chat */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 70; }
.chat-fab { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--ink); font: 700 .95rem var(--font); cursor: pointer; box-shadow: 0 12px 30px -8px color-mix(in oklab, var(--accent) 70%, transparent); transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-panel { position: absolute; right: 0; bottom: 64px; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.chat-panel header b { display: block; font-family: var(--display); }
.chat-panel header small { color: var(--muted); font-size: .78rem; }
.online { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; margin-right: 6px; vertical-align: 1px; }
.chat-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.bot a { color: var(--accent); }
[data-theme="light"] .msg.bot a { color: color-mix(in oklab, var(--accent) 35%, #1a2a00); }
.msg.typing::after { content: '…'; animation: blink 1s steps(1) infinite; }
.chat-suggest[hidden] { display: none; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-suggest button { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 11px; font: 500 .8rem var(--font); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; padding: 10px 14px; }
.chat-form button { width: 44px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; font-size: 1rem; }
.chat-note { margin: 0; padding: 0 16px 10px; font-size: .74rem; color: var(--muted); text-align: center; }
@media print { .chat, .preview-bar { display: none !important; } }
@media (max-width: 520px) { .chat-fab span { display: none; } .chat-fab { padding: 14px; } }

/* reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* CV */
.cv-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.cv-toolbar .crumbs { margin: 0; }
.cv-toolbar .hero-cta { margin: 0; }
.cv-sheet { width: min(100% - 40px, 900px); margin: 24px auto 80px; background: #fff; color: #1b1f24; border-radius: 6px; box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.55; overflow: hidden; }
.cv-sheet a { color: inherit; text-decoration: none; }
.cv-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px 48px 30px; background: #0f1318; color: #fff; }
.cv-head h1 { font-size: 2.6rem; margin: 0 0 6px; letter-spacing: -.03em; }
.cv-role { margin: 0; color: var(--accent); font: 500 .95rem var(--mono); }
.cv-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.cv-body { display: grid; grid-template-columns: 260px 1fr; }
.cv-side { background: #f4f5f2; padding: 32px 28px; }
.cv-main { padding: 32px 44px 40px; }
.cv-sheet h2 { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #4b6b00; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.cv-sheet section { margin-bottom: 26px; break-inside: avoid; }
.cv-contact, .cv-plain, .cv-skills { list-style: none; padding: 0; margin: 0; }
.cv-contact li { padding: 3px 0; word-break: break-word; font-size: .92em; }
.cv-skills li { margin-bottom: 8px; font-size: .9em; }
.cv-skills i { display: block; height: 4px; background: #dfe2dc; border-radius: 4px; margin-top: 3px; position: relative; overflow: hidden; }
.cv-skills i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #1b1f24; border-radius: 4px; }
.cv-summary { font-size: 1.05em; }
.cv-item { margin-bottom: 18px; break-inside: avoid; }
.cv-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cv-item h3 { font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
.cv-item-head span { font: 500 .8em var(--mono); color: #5f6772; white-space: nowrap; }
.cv-org { color: #5f6772; margin: 0 0 4px; font-weight: 500; }
.cv-desc { color: #2c3238; } .cv-desc p { margin: 0 0 .4em; } .cv-desc ul { margin: 4px 0 0; padding-left: 1.1em; } .cv-desc li { margin: 2px 0; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .admin-pill, .skip { display: none !important; }
  .cv-sheet { width: 100%; margin: 0; box-shadow: none; border-radius: 0; font-size: 12.5px; }
  .cv-head, .cv-side { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv-body { min-height: calc(297mm - 150px); }
}

/* responsive */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .resume-grid, .faq-grid, .contact-grid, .work-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { position: static; }
}
@media (max-width: 780px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-tools { margin-left: auto; }
  .code-card { transform: none; }
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; gap: 2px; }
  .menu.open { transform: none; }
  .menu a { padding: 14px; font-size: 1.05rem; }
  .menu a.btn-accent { margin: 10px 0 0; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .stats { gap: 24px; } .stats dd { font-size: 1.7rem; }
  .grid2 { grid-template-columns: 1fr; }
  .steps, .footer-grid { grid-template-columns: 1fr; }
  .section-head.row { flex-direction: column; align-items: start; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-head { padding: 32px 24px; } .cv-main, .cv-side { padding: 24px; }
  .cta-band { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-avatar + .code-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
