:root, [data-theme="dark"] {
  --bg: #0a0a0f; --bg2: #101018; --glass: rgba(255, 255, 255, .045); --glass-b: rgba(255, 255, 255, .09); --ink: #fafafa; --text: #e4e4e7; --muted: #71717a; --muted2: #a1a1aa;
  --cy: #00f0ff; --mg: #ff00aa; --pu: #7b2fff; --ok: #34d399; --err: #fb7185; --glow: 0 0 24px rgba(0, 240, 255, .35);
  --head: "Outfit", "Inter", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb; --bg2: #eceef6; --glass: rgba(255, 255, 255, .7); --glass-b: rgba(10, 10, 15, .1); --ink: #0a0a0f; --text: #27272a; --muted: #6b6b76; --muted2: #52525b;
  --cy: #0891b2; --mg: #c0007f; --pu: #6d28d9; --ok: #059669; --err: #e11d48; --glow: 0 0 0 transparent; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(800px 500px at 85% -10%, rgba(123, 47, 255, .18), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(0, 240, 255, .1), transparent 60%); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.02em; }
a { color: var(--cy); }
code, kbd, pre { font-family: var(--mono); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--cy); color: #000; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 6px; }
.grad { background: linear-gradient(90deg, var(--cy), var(--pu) 55%, var(--mg)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons, badges, cards */
.btn, .btn-2, .btn-g { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 15px "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn { background: linear-gradient(90deg, var(--cy), var(--pu)); color: #05050a; border: 0; box-shadow: var(--glow); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(0, 240, 255, .5); }
[data-theme="light"] .btn { color: #fff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-2 { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-b); backdrop-filter: blur(10px); }
.btn-2:hover { border-color: var(--cy); color: var(--cy); }
.btn-g { background: none; border: 0; color: var(--muted2); padding: 0 10px; }
.btn-g:hover { color: var(--cy); }
.btn .i, .btn-2 .i { transition: transform .2s; } .btn:hover .i, .btn-2:hover .i { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--glass-b); background: var(--glass); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--cy); color: var(--cy); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 12px var(--mono); color: var(--cy); background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .35); box-shadow: 0 0 12px rgba(0, 240, 255, .15); }
.badge.mg { color: var(--mg); background: rgba(255, 0, 170, .08); border-color: rgba(255, 0, 170, .35); box-shadow: 0 0 12px rgba(255, 0, 170, .15); }
.badge.pu { color: #b48cff; background: rgba(123, 47, 255, .1); border-color: rgba(123, 47, 255, .45); box-shadow: 0 0 12px rgba(123, 47, 255, .2); }
[data-theme="light"] .badge { box-shadow: none; } [data-theme="light"] .badge.pu { color: var(--pu); }
.card { position: relative; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eyebrow { margin: 0 0 12px; font: 500 13px var(--mono); color: var(--cy); letter-spacing: .04em; }
.eyebrow::before { content: "// "; color: var(--muted); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; gap: 18px; background: var(--bg); transition: opacity .5s, visibility .5s; }
.loader.done { opacity: 0; visibility: hidden; }
.ld-mark { font: 700 34px var(--mono); color: var(--muted); text-align: center; }
.ld-mark span { color: var(--cy); text-shadow: var(--glow); }
.ld-bar { width: 180px; height: 2px; background: var(--glass-b); overflow: hidden; border-radius: 2px; }
.ld-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--cy), var(--mg)); animation: ld 1s infinite ease-in-out; }
@keyframes ld { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.solid { border-bottom-color: var(--glass-b); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lg { font: 700 17px var(--mono); padding: 6px 9px; border-radius: 10px; border: 1px solid rgba(0, 240, 255, .4); color: var(--ink); box-shadow: inset 0 0 12px rgba(0, 240, 255, .15); }
.lg b { color: var(--cy); display: inline-block; transition: transform .3s; }
.logo:hover .lg b:first-child { transform: translateX(-3px); } .logo:hover .lg b:last-child { transform: translateX(3px); }
.lt { font: 700 18px var(--head); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { position: relative; padding: 8px 12px; color: var(--muted2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cy), var(--mg)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-r { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* view + page transition */
.view { min-height: 70vh; outline: none; }
.page { animation: pageIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.view.leaving .page { animation: pageOut .18s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-10px); } }
.sec { padding: 88px 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec h2 { font-size: clamp(32px, 4vw, 48px); }
.lead { font-size: 18px; color: var(--muted2); max-width: 640px; }
.phead { padding-top: 72px; padding-bottom: 24px; }
.phead h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.phead p { margin: 16px 0 0; }
.reveal > * { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: .08s; } .reveal.in > *:nth-child(3) { transition-delay: .16s; } .reveal.in > *:nth-child(4) { transition-delay: .24s; } .reveal.in > *:nth-child(5) { transition-delay: .32s; } .reveal.in > *:nth-child(6) { transition-delay: .4s; }

/* hero */
.hero { position: relative; min-height: calc(100vh - 70px); display: flex; align-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 1; padding: 64px 0; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; font: 500 13px var(--mono); color: var(--ok); background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { margin-top: 22px; font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.hero .role { margin: 14px 0 0; font: 600 clamp(20px, 2.4vw, 28px) var(--head); color: var(--muted2); }
.type { margin: 22px 0 0; min-height: 1.6em; font: 500 clamp(17px, 2vw, 22px) var(--mono); color: var(--ink); }
.type .caret { display: inline-block; width: .6ch; height: 1.1em; vertical-align: -.15em; margin-left: 2px; background: var(--cy); box-shadow: var(--glow); animation: blink 1s steps(1) infinite; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 44px 0 0; padding: 0; }
.stats li { min-width: 150px; padding: 16px 20px; }
.stats b { display: block; font: 800 34px var(--head); color: var(--ink); }
.stats span { font-size: 13px; color: var(--muted2); }

/* project cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-b); background: var(--glass); color: var(--muted2); font: 500 14px var(--mono); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { color: var(--cy); border-color: var(--cy); box-shadow: inset 0 0 14px rgba(0, 240, 255, .18), 0 0 14px rgba(0, 240, 255, .2); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.pcard::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--c), transparent 40%, transparent 60%, var(--mg)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -20px var(--c); }
.pcard:hover::before { opacity: 1; }
.pcard .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--glass-b); }
.pcard .shot svg { width: 100%; height: 100%; display: block; transition: transform .6s; }
.pcard:hover .shot svg { transform: scale(1.06); }
.pcard .b { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pcard .cats { font: 500 12px var(--mono); color: var(--muted); }
.pcard h3 { margin-top: 6px; font-size: 22px; }
.pcard p { margin: 8px 0 0; font-size: 15px; color: var(--muted2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14px; color: var(--cy); }
.empty { padding: 40px; text-align: center; color: var(--muted2); }

/* skills highlight + testimonials */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sphere { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; cursor: grab; touch-action: none; border-radius: 50%; }
.sphere:active { cursor: grabbing; }
.sphere::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(123, 47, 255, .25), transparent 70%); }
.tagw { position: absolute; left: 50%; top: 50%; font: 600 15px var(--mono); color: var(--cy); white-space: nowrap; text-shadow: 0 0 10px rgba(0, 240, 255, .5); user-select: none; will-change: transform; }
.tagw:nth-child(3n) { color: var(--mg); text-shadow: 0 0 10px rgba(255, 0, 170, .5); } .tagw:nth-child(3n+1) { color: #b48cff; }
[data-theme="light"] .tagw { text-shadow: none; }
.hl { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl li { padding: 14px 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.hl li .i { color: var(--cy); }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tcard { padding: 26px; margin: 0; }
.tcard .i { width: 28px; height: 28px; color: var(--mg); opacity: .8; }
.tcard blockquote { margin: 14px 0 0; font-size: 17px; color: var(--ink); }
.tcard figcaption { margin-top: 18px; font-size: 14px; color: var(--muted2); }
.tcard figcaption b { display: block; color: var(--ink); }

/* about */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.story p { margin: 0 0 16px; font-size: 17px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cy), var(--pu), var(--mg)); transform-origin: top; transform: scaleY(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.tl.in::before { transform: scaleY(1); }
.tl li { position: relative; padding: 0 0 26px; }
.tl li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cy); box-shadow: var(--glow); }
.tl time { font: 500 13px var(--mono); color: var(--cy); }
.tl h3 { font-size: 20px; margin-top: 2px; }
.tl .co { margin: 0; color: var(--mg); font-weight: 600; font-size: 14px; }
.tl p { margin: 4px 0 0; color: var(--muted2); font-size: 15px; }
.str { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.str li { list-style: none; padding: 22px; }
.str .i { width: 38px; height: 38px; padding: 8px; border-radius: 10px; color: var(--cy); background: rgba(0, 240, 255, .08); border: 1px solid rgba(0, 240, 255, .25); }
.str h3 { margin-top: 14px; font-size: 18px; }
.str p { margin: 6px 0 0; font-size: 14px; color: var(--muted2); }
.str ul, ul.str { padding: 0; margin: 0; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; list-style: none; padding: 0; margin: 0; }
.edu li { padding: 20px; }
.edu time { font: 13px var(--mono); color: var(--cy); }
.edu b { display: block; color: var(--ink); font-size: 17px; margin-top: 4px; }
.edu span { color: var(--muted2); font-size: 14px; }

/* skills page */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--glass-b); background: var(--glass); }
.tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: none; color: var(--muted2); font: 600 14px "Inter", sans-serif; cursor: pointer; }
.tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgba(0, 240, 255, .2), rgba(123, 47, 255, .25)); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .4); }
.skwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.bars { padding: 26px; list-style: none; margin: 0; display: grid; gap: 18px; }
.bars li span { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); font-size: 15px; }
.bars li span b { font: 500 13px var(--mono); color: var(--cy); }
.bar { margin-top: 8px; height: 8px; border-radius: 4px; background: var(--glass-b); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--cy), var(--pu), var(--mg)); box-shadow: 0 0 12px rgba(0, 240, 255, .5); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.radials { padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: start; }
.rad { text-align: center; }
.rad svg { width: 100%; max-width: 130px; display: block; margin: 0 auto; }
.rad .ring { transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.rad b { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }

/* case study */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted2); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--cy); }
.cs-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.cs-hero .shot { overflow: hidden; border-radius: 18px; border: 1px solid var(--glass-b); aspect-ratio: 16 / 10; }
.cs-hero .shot svg { width: 100%; height: 100%; display: block; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cs-grid .card { padding: 26px; }
.cs-grid h2, .arch h2, .gallery h2, .results h2 { font-size: 24px; margin-bottom: 12px; }
.obj { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.obj li { display: flex; gap: 10px; } .obj .i { color: var(--ok); margin-top: 4px; }
.arch { padding: 26px; }
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 8px 2px 4px; }
.node { flex: 1 0 140px; padding: 14px; border-radius: 12px; border: 1px solid rgba(0, 240, 255, .35); background: rgba(0, 240, 255, .05); box-shadow: inset 0 0 18px rgba(0, 240, 255, .08); }
.node b { display: block; color: var(--ink); font-size: 14px; }
.node span { font: 12px var(--mono); color: var(--muted2); }
.arrow { flex: 0 0 36px; display: grid; place-items: center; color: var(--mg); }
.chal { display: grid; gap: 14px; }
.chal div { padding-left: 14px; border-left: 2px solid var(--mg); }
.chal b { color: var(--ink); display: block; }
.chal p { margin: 4px 0 0; color: var(--muted2); font-size: 15px; }
.results .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.kpis li { padding: 24px; text-align: center; }
.kpis b { display: block; font: 800 clamp(30px, 4vw, 44px) var(--head); }
.kpis span { color: var(--muted2); font-size: 14px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gal button { padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-b); cursor: zoom-in; background: none; aspect-ratio: 16 / 10; }
.gal button svg { width: 100%; height: 100%; display: block; transition: transform .4s; }
.gal button:hover svg { transform: scale(1.04); }
.cs-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pn { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--glass-b); }
.pn a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pn a:hover { color: var(--cy); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post { padding: 26px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.post:hover { border-color: var(--cy); transform: translateY(-3px); }
.post .m { display: flex; align-items: center; gap: 12px; font: 13px var(--mono); color: var(--muted2); flex-wrap: wrap; }
.post .m span { display: inline-flex; align-items: center; gap: 5px; }
.post .m .i { width: 14px; height: 14px; }
.post h3 { margin-top: 14px; font-size: 24px; }
.post p { margin: 10px 0 0; color: var(--muted2); }
.article { max-width: 760px; }
.article p { font-size: 18px; }
.code { margin: 24px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-b); background: #07070c; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--glass-b); font: 12px var(--mono); color: var(--muted2); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: #e4e4e7; }
.k { color: #c084fc; } .s { color: #86efac; } .n { color: #fdba74; } .c { color: #6b7280; font-style: italic; } .f { color: #67e8f9; }
.copy { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--glass-b); background: none; color: var(--muted2); font: 12px var(--mono); cursor: pointer; }
.copy:hover { color: var(--cy); border-color: var(--cy); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cform { padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-b); background: rgba(0, 0, 0, .25); color: var(--ink); font: 15px "Inter", sans-serif; transition: border-color .2s, box-shadow .2s; }
[data-theme="light"] .field input, [data-theme="light"] .field textarea { background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px rgba(0, 240, 255, .18); }
.field.bad input, .field.bad textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(251, 113, 133, .15); }
.field.good input, .field.good textarea { border-color: rgba(52, 211, 153, .6); }
.err { display: flex; align-items: center; gap: 6px; min-height: 1.3em; margin: 0; font-size: 13px; color: var(--err); }
.err .i { width: 14px; height: 14px; }
.cnt { justify-self: end; font: 12px var(--mono); color: var(--muted); margin-top: -4px; }
.submit { justify-self: start; min-width: 190px; }
.submit.sending { pointer-events: none; }
.submit.sending span { opacity: 0; }
.submit.sending::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #05050a; border-right-color: transparent; animation: spin .7s linear infinite; }
.submit.sent { background: var(--ok); box-shadow: 0 0 24px rgba(52, 211, 153, .5); }
@keyframes spin { to { transform: rotate(360deg); } }
.side { display: grid; gap: 18px; }
.side .card { padding: 24px; }
.side h3 { font-size: 18px; margin-bottom: 10px; }
.side p { margin: 0; color: var(--muted2); display: flex; align-items: center; gap: 8px; }
.soc { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--glass-b); color: var(--ink); background: var(--glass); transition: color .2s, border-color .2s, box-shadow .2s; }
.soc a:hover { color: var(--cy); border-color: var(--cy); box-shadow: var(--glow); }

/* footer, dialog, toasts */
.foot { margin-top: 40px; padding: 36px 0; border-top: 1px solid var(--glass-b); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.foot nav a { color: var(--muted2); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--cy); }
.fine { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.dlg { width: min(1000px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--glass-b); border-radius: 18px; background: var(--bg2); color: var(--text); }
.dlg::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.dlg-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lb svg { width: 100%; display: block; aspect-ratio: 16 / 10; }
.lb-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb-f p { margin: 0; font: 13px var(--mono); color: var(--muted2); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--glass-b); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: 14px; animation: tin .3s cubic-bezier(.2, .8, .2, 1); }
.toast .i { color: var(--cy); margin-top: 1px; }
.toast.ok .i { color: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } }

/* responsive */
@media (max-width: 1024px) {
  .pgrid, .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .str { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .story, .cs-hero, .contact, .skwrap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: inline-grid; }
  .nav-r .btn { display: none; }
  .nav-r { margin-left: auto; }
  .links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--glass-b); display: none; }
  .links.open { display: flex; }
  .links a { min-height: 50px; display: flex; align-items: center; border-bottom: 1px solid var(--glass-b); font-size: 17px; padding: 0 4px; }
  .links a::after { left: 4px; right: auto; width: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .phead { padding-top: 48px; padding-bottom: 16px; }
  .hero { min-height: calc(100svh - 70px); }
  .ctas .btn, .ctas .btn-2 { flex: 1 1 100%; }
  .stats li { flex: 1 1 100px; min-width: 0; padding: 12px; }
  .stats b { font-size: 26px; }
  .pgrid, .tgrid, .posts, .str, .edu, .gal, .cs-grid { grid-template-columns: 1fr; }
  .hl { grid-template-columns: 1fr; }
  .results .kpis { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .filters button, .tabs button { min-height: 44px; flex: none; }
  .tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .flow { flex-direction: column; }
  .flow .node { flex: none; }
  .arrow { flex: 0 0 28px; transform: rotate(90deg); }
  .radials { grid-template-columns: 1fr 1fr; }
  .icon-btn { width: 44px; height: 44px; }
  .copy { min-height: 44px; }
  .submit { justify-self: stretch; }
  .foot nav { margin-left: 0; }
  .foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .sphere { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal > * { opacity: 1; transform: none; }
  .tl::before { transform: none; }
}
