/* =========================================================================
   Manish Agrawal — portfolio · bright, immersive, Lusion-inspired
   ========================================================================= */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3f4f7;
  --paper: #ffffff;
  --ink: #0b0d12;
  --ink-2: #3d4352;
  --muted: #7b8293;
  --line: rgba(11, 13, 18, .09);
  --line-2: rgba(11, 13, 18, .16);
  --blue: #2340ff;
  --blue-rgb: 35, 64, 255;
  --cyan: #18c4ff;
  --orange: #ff5b1f;
  --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fm: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);      /* UI: hover, press, menus */
  --t-press: 160ms;  --t-hover: 180ms;  --t-menu: 260ms;  --t-close: 160ms;
  --g: clamp(16px, 3.4vw, 48px);
  --r: 22px;
  --nav: 88px;
  --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -30px rgba(17, 24, 64, .35), 0 2px 6px -2px rgba(17, 24, 64, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: rgba(11,13,18,.28) transparent; accent-color: var(--blue); }
input, textarea { caret-color: var(--blue); }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--fm); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 450; }
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--g); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--paper); display: grid; place-items: center; transition: transform 800ms var(--ease-io); }
.loader.is-done { transform: translateY(-100%); }
.loader__bar { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.loader__num { position: absolute; left: var(--g); bottom: 4px; font-size: clamp(88px, 17vw, 260px); line-height: .82; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader__tag { position: absolute; right: var(--g); bottom: 28px; color: var(--muted); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 600; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--blue); transition: opacity .2s, scale .3s; }
.cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; scale: .1; opacity: 0; display: grid; place-items: center; background: rgba(255,255,255,.22); backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px -12px rgba(17,24,64,.35); transition: scale 300ms var(--ease-out), opacity 200ms ease; }
.cursor__ring em { font: 500 11px/1 var(--fm); letter-spacing: .05em; text-transform: uppercase; font-style: normal; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 180ms ease; }
.cursor.is-label .cursor__ring { scale: 1; opacity: 1; }
.cursor.is-label em { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__dot { scale: 2.4; opacity: .35; }

/* ---------- letter roll ---------- */
.roll { display: inline-flex; overflow: hidden; line-height: 1.15; vertical-align: middle; }
.roll .ch { display: inline-block; position: relative; white-space: pre; transition: transform 420ms var(--ease-out); transition-delay: calc(var(--i, 0) * 12ms); }
.roll .ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .roll .ch, button:hover .roll .ch { transform: translateY(-100%); }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 22px; border-radius: 99px; font: 500 13px/1 var(--fm); letter-spacing: .04em; text-transform: uppercase; position: relative; overflow: hidden; transition: translate 280ms var(--ease-out), scale var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease; white-space: nowrap; }
.btn.has-arrow { padding-right: 7px; }
.btn__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: transform 300ms var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.btn__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .btn__arrow { background: var(--blue); }
.btn--dark:hover { background: var(--blue); }
.btn--dark:hover .btn__arrow { background: #fff; color: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(var(--blue-rgb), .8); }
.btn--blue .btn__arrow { background: #fff; color: var(--blue); }
.btn--blue:hover { background: var(--ink); }
.btn--blue:hover .btn__arrow { transform: translateY(2px); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); padding-right: 18px; }
.btn--line { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--line .btn__arrow { background: var(--ink); color: #fff; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line:hover .btn__arrow { background: var(--blue); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transition: transform 260ms var(--ease-out), background-color var(--t-hover) ease; }
.menu-open .dots i:first-child { transform: translateX(5px); background: var(--blue); }
.menu-open .dots i:last-child { transform: translateX(-5px); background: var(--blue); }
.ul { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat, linear-gradient(color-mix(in srgb, currentColor 32%, transparent), color-mix(in srgb, currentColor 32%, transparent)) 0 100% / 100% 1px no-repeat; transition: background-size 280ms var(--ease-out), color var(--t-hover) ease; padding-bottom: 1px; }
.ul:hover { background-size: 100% 1px, 100% 1px; background-position: 0 100%, 0 100%; color: var(--blue); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: var(--nav); padding-inline: var(--g); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: transform 450ms var(--ease-out); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-120%); }
.glass { background: rgba(255,255,255,.62); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 30px -18px rgba(17,24,64,.35); }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 99px; background: rgba(255,255,255,.62); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 30px -18px rgba(17,24,64,.35); }
.brand__mark { width: 40px; height: 40px; transition: transform 400ms var(--ease-out); }
.brand__mark rect { fill: var(--ink); transition: fill .4s; }
.brand__mark path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand:hover .brand__mark rect { fill: var(--blue); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand__txt small { color: var(--muted); font-size: 10.5px; margin-top: 3px; }

.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.62); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 30px -18px rgba(17,24,64,.35); }
.links a { position: relative; z-index: 1; padding: 11px 15px; border-radius: 99px; font: 500 12.5px/1 var(--fm); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); transition: color 220ms ease; }
.links a.is-active { color: #fff; }
.links__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 99px; background: var(--ink); opacity: 0; transition: transform 340ms var(--ease-io), width 340ms var(--ease-io), opacity 200ms ease; }
.nav__right { display: flex; gap: 8px; }

.menu { position: absolute; top: calc(var(--nav) - 8px); right: var(--g); width: min(420px, calc(100vw - 2 * var(--g))); padding: 16px; border-radius: 26px; background: var(--paper); box-shadow: 0 40px 80px -30px rgba(17,24,64,.4), 0 0 0 1px var(--line); transform-origin: 100% 0; transform: scale(.96) translateY(-6px); opacity: 0; visibility: hidden; transition: transform var(--t-close) var(--ease-out), opacity var(--t-close) ease, visibility 0s var(--t-close); }
.menu-open .menu { transform: none; opacity: 1; visibility: visible; transition: transform var(--t-menu) var(--ease-out), opacity 200ms ease; }
.menu__list a { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-radius: 14px; font-size: clamp(28px, 4vw, 38px); font-weight: 500; letter-spacing: -.04em; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.menu__list a:hover { background: var(--bg); color: var(--blue); }
.menu__list i { font-style: normal; color: var(--muted); }
.menu__foot { margin-top: 12px; padding: 16px 12px 4px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.menu__foot > a { text-transform: none; color: var(--ink-2); }
.menu__foot > a:hover { color: var(--blue); }
.social { display: flex; gap: 6px; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social:not(.social--inline) a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 220ms var(--ease-out), scale var(--t-press) var(--ease-out); }
.social:not(.social--inline) a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.social--inline { flex-wrap: wrap; gap: 6px 22px; }
.social--inline a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 280ms var(--ease-out), color var(--t-hover) ease; padding-bottom: 1px; }
.social--inline a:hover { background-size: 100% 1px; color: var(--blue); }

/* ---------- reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* choreography by role: headings (lead) travel furthest via their line masks; supporting rows rise less; labels only fade */
.js :is(.specs, .achv, .stats, .hero__side, .cgrid) [data-reveal] { transform: translate3d(0, 12px, 0); }
.js .label[data-reveal], .js .head__sub[data-reveal] { transform: none; }
.js :is(.specs, .achv, .stats, .hero__side, .cgrid) [data-reveal].in { transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: block; }
.js .ln > span { transform: translate3d(0, 110%, 0); filter: blur(6px); transition: transform 950ms var(--ease), filter 700ms var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .in .ln > span { transform: none; filter: none; }

/* ---------- section shells ---------- */
.section { position: relative; padding-block: clamp(96px, 13vw, 180px); }
.head { margin-bottom: clamp(44px, 6vw, 88px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.head__sub { color: var(--muted); max-width: 340px; text-transform: none; line-height: 1.5; }
.label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--ink-2); }
.label span:not(.scr) { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; }
.label--light { color: rgba(255,255,255,.85); }
.label--light span:not(.scr) { background: #fff; color: var(--blue); }
.h2 { font-size: clamp(44px, 7.6vw, 128px); line-height: .92; font-weight: 500; letter-spacing: -.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font: 450 12px/1 var(--fm); padding: 8px 11px; border-radius: 99px; background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.chips span:hover { background: rgba(var(--blue-rgb), .08); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .3); }
.chips--lg span { font-size: 14px; padding: 12px 16px; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #18c964; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(24,201,100,.5); } 70% { box-shadow: 0 0 0 8px rgba(24,201,100,0); } 100% { box-shadow: 0 0 0 0 rgba(24,201,100,0); } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; overflow: hidden; background: var(--bg); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 16vh; background: linear-gradient(to bottom, rgba(243,244,247,0), var(--bg)); pointer-events: none; z-index: 1; }
.plus { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--ink); opacity: .45; }
.plus::before { left: 6px; top: 0; width: 1.5px; height: 14px; } .plus::after { top: 6px; left: 0; height: 1.5px; width: 14px; }
.p1 { top: calc(var(--nav) + 6px); left: var(--g); } .p2 { top: calc(var(--nav) + 6px); right: var(--g); }
.p3 { top: 46%; left: 50%; } .p4 { top: 46%; right: var(--g); }
.hero__inner { will-change: transform, opacity; position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav) + 90px); padding-bottom: 26px; min-height: 100svh; }
.hero__top { position: absolute; top: calc(var(--nav) + 36px); left: var(--g); right: var(--g); display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; }
.hero__clock b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero__title { font-size: clamp(52px, min(8.5vw, 14.5vh), 156px); line-height: .88; font-weight: 500; letter-spacing: -.04em; margin-bottom: clamp(28px, 4vw, 56px); }
.hero__title em { font-style: normal; color: var(--blue); }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero__side { max-width: 520px; }
.hero__pitch { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); margin-bottom: 24px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero__mail { text-transform: none; color: var(--ink-2); font-size: 13px; }
.stats { display: flex; gap: clamp(20px, 3vw, 48px); }
.stats li { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.stats b { font-size: clamp(40px, 4.8vw, 76px); line-height: .9; font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats .mono { color: var(--muted); font-size: 11px; }
.hero__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ink-2); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- hero depth: 3D orbit of tech tiles around a glass phone ---------- */
.orbit { will-change: transform; position: absolute; z-index: 2; right: clamp(0px, 1.5vw, 40px); top: 50%; width: min(40vw, 580px); aspect-ratio: 1; transform: translateY(-54%); pointer-events: none; perspective: 1100px; }
.orbit__glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); filter: blur(30px); }
.core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 9 / 18.5; margin: 0; transform-style: preserve-3d; z-index: 500; will-change: transform; contain: layout paint; }
.core__phone { position: absolute; inset: 0; border-radius: 18% / 9%; background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(236,241,255,.72) 55%, rgba(255,255,255,.82)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), inset 0 0 0 7px rgba(255,255,255,.18), 0 50px 80px -30px rgba(20,32,120,.45), 0 20px 30px -20px rgba(20,32,120,.3); overflow: hidden; }
.core__phone::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 48%, transparent 56%); animation: sheen 6s var(--ease-io) infinite; }
@keyframes sheen { 0%, 35% { transform: translateX(-40%); } 70%, 100% { transform: translateX(40%); } }
.core__notch { position: absolute; top: 3.5%; left: 50%; width: 30%; height: 3.2%; translate: -50% 0; border-radius: 99px; background: rgba(11,13,18,.75); }
.core__ui { position: absolute; inset: 11% 9% 8%; display: flex; flex-direction: column; gap: 6%; }
.core__row { display: flex; align-items: center; gap: 8%; }
.core__avatar { width: 22%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--cyan)); }
.core__row span, .core__line { display: block; height: 7px; flex: 1; border-radius: 6px; background: rgba(11,13,18,.12); }
.core__line.s { width: 60%; flex: none; }
.core__hero { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(140deg, #2340ff, #18c4ff); color: #fff; box-shadow: 0 10px 20px -10px rgba(35,64,255,.7); }
.core__hero .mono { font-size: clamp(12px, 1.3vw, 18px); font-weight: 600; letter-spacing: -.02em; }
.core__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.core__grid em { aspect-ratio: 1.3; border-radius: 10px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; will-change: transform, filter, opacity; }
.orb__in { position: absolute; width: clamp(54px, 5.4vw, 76px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 28%; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,243,255,.72)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.7), 0 24px 40px -20px rgba(20,32,120,.45); }
.orb__in svg { width: 46%; height: 46%; fill: var(--c, var(--ink)); }
.lg-jetpackcompose { --c: #4285f4; } .lg-typescript { --c: #3178c6; } .lg-googlegemini { --c: #1a73e8; }
.hero__title { transform-style: preserve-3d; will-change: transform; }
.orbit { transition: opacity 900ms var(--ease), scale 1100ms var(--ease); }
.js body.is-loading .orbit { opacity: 0; scale: .96; }

/* ---------- tech stack: infinite 3D band ---------- */
.stack { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; background: var(--paper); border-block: 1px solid var(--line); perspective: 1100px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.stack.is-drag { cursor: grabbing; }
.stack::before, .stack::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14vw; z-index: 2; pointer-events: none; }
.stack::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(255,255,255,0)); }
.stack::after { right: 0; background: linear-gradient(-90deg, var(--paper), rgba(255,255,255,0)); }
.stack__stage { display: grid; gap: 14px; transform: rotateX(18deg) rotateZ(-2.5deg) scale(1.06); transform-style: preserve-3d; }
.stack__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.stack__row span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 14px 26px -20px rgba(17,24,64,.35); font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; transition: background-color var(--t-hover) ease, box-shadow var(--t-hover) ease, color var(--t-hover) ease; }
.stack__row span svg { width: 24px; height: 24px; fill: var(--ink); transition: fill var(--t-hover) ease, transform 300ms var(--ease-out); }
.stack__row span:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .25), 0 18px 30px -18px rgba(17,24,64,.45); }
.stack__row span:hover svg { fill: var(--c, var(--blue)); transform: scale(1.1); }
.stack__row[data-dir="-1"] span { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- ABOUT ---------- */
.statement { font-size: clamp(30px, 4.6vw, 76px); line-height: 1.04; font-weight: 450; letter-spacing: -.04em; max-width: 1300px; }
.statement .w { color: rgba(11,13,18,.16); transition: color .4s ease; }
.statement .w.on { color: var(--ink); }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 120px); margin-top: clamp(48px, 7vw, 110px); align-items: start; }
.about__p { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 640px; }
.specs { border-top: 1px solid var(--line-2); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }

/* ---------- EXPERIENCE ---------- */
.timeline { position: relative; display: grid; gap: 16px; }
.tl__rail { position: absolute; left: 25%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl__rail i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 0; transform: scaleY(0); }
.tl { display: grid; grid-template-columns: 25% 1fr; position: relative; }
.tl::before { content: ""; position: absolute; left: calc(25% - 6px); top: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 300ms ease, box-shadow 300ms ease; z-index: 1; }
.tl.on::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(var(--blue-rgb), .14); }
.tl__side { padding: 26px 40px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.tl__n { font-size: clamp(48px, 5vw, 80px); line-height: .85; font-weight: 300; letter-spacing: -.04em; color: rgba(11,13,18,.2); transition: color 300ms ease; }
.tl.on .tl__n { color: var(--ink); }
.tl__card { margin-left: clamp(28px, 3.5vw, 56px); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.tl__card:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -30px rgba(17,24,64,.35), 0 0 0 1px rgba(var(--blue-rgb), .18); }
.tl__card h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.tl__card h3 small { font-size: 11px; vertical-align: middle; margin-left: 8px; padding: 5px 9px; border-radius: 99px; background: rgba(var(--blue-rgb), .1); color: var(--blue); letter-spacing: .03em; }
.tl__card header p { color: var(--muted); margin: 10px 0 22px; }
.tl__card ul { display: grid; gap: 12px; margin-bottom: 22px; color: var(--ink-2); }
.tl__card li { position: relative; padding-left: 22px; }
.tl__card li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 9px; height: 1.5px; background: var(--blue); }

/* ---------- SKILLS ---------- */
.lg-kotlin { --c: #7f52ff; } .lg-java { --c: #e76f00; } .lg-android { --c: #34a853; } .lg-compose { --c: #4285f4; } .lg-firebase { --c: #dd2c00; }
.lg-gradle { --c: #02303a; } .lg-git { --c: #f05032; } .lg-ga { --c: #e37400; } .lg-ionic { --c: #3880ff; } .lg-capacitor { --c: #119eff; }
.lg-react { --c: #149eca; } .lg-expo { --c: #000020; } .lg-flutter { --c: #02569b; } .lg-dart { --c: #0175c2; } .lg-angular { --c: #dd0031; }
.lg-ts { --c: #3178c6; } .lg-js { --c: #d6b600; } .lg-node { --c: #5fa04e; } .lg-python { --c: #3776ab; } .lg-django { --c: #092e20; }
.lg-mysql { --c: #4479a1; } .lg-apache { --c: #d22128; } .lg-claude { --c: #d97757; } .lg-gemini { --c: #1a73e8; } .lg-langchain { --c: #1c3c3c; } .lg-streamlit { --c: #ff4b4b; }

/* ---------- SKILLS (rows) ---------- */
.skilllist { border-top: 1px solid var(--line-2); }
.srow2 { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); padding: clamp(28px, 3.6vw, 52px) clamp(0px, 1.2vw, 20px); border-bottom: 1px solid var(--line-2); isolation: isolate; }
.srow2::before { content: ""; position: absolute; inset: 6px -12px; z-index: -1; border-radius: 28px; background: rgba(255,255,255,.55); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 30px 60px -40px rgba(17,24,64,.35); opacity: 0; transform: scale(.985); transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.srow2:hover::before { opacity: 1; transform: none; }
.srow2__head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px; align-content: start; }
.srow2__n { grid-row: span 3; align-self: start; display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; margin-top: 8px; }
.srow2 h3 { font-size: clamp(30px, 3.2vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.srow2__head p { color: var(--ink-2); max-width: 340px; }
.srow2__count { color: var(--muted); }
.srow2__body { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tiles li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 10px 24px -18px rgba(17,24,64,.45); font-size: 15px; font-weight: 500; letter-spacing: -.01em; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.tiles svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--bg); fill: var(--c, var(--ink)); transition: transform 300ms var(--ease-out), background-color var(--t-hover) ease; }
.tiles li:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #fff, 0 20px 34px -18px rgba(17,24,64,.5); }
.tiles li:hover svg { transform: scale(1.06); background: #fff; }
.srow2 .chips span { background: rgba(255,255,255,.5); }
.srow2:last-child .chips span { font-size: 13px; padding: 10px 14px; }
@media (max-width: 900px) {
  .srow2 { grid-template-columns: 1fr; gap: 20px; }
  .srow2__head p { max-width: none; }
}
@media (max-width: 620px) {
  .tiles li { padding: 8px 12px 8px 8px; font-size: 13.5px; }
  .tiles svg { width: 28px; height: 28px; padding: 6px; }
}

/* ---------- WORK ---------- */
.m-saral { background: radial-gradient(120% 90% at 20% 0%, #ffd9b8 0%, transparent 55%), linear-gradient(150deg, #ff8a3d, #ff5b1f 55%, #ff3d2e); }
.m-pb { background: radial-gradient(110% 90% at 80% 0%, #dcfff2 0%, transparent 55%), linear-gradient(160deg, #3ad19a, #12a3a3 60%, #0f7fbf); }
.m-dh { background: radial-gradient(100% 90% at 30% 10%, #ffffff 0%, transparent 60%), linear-gradient(160deg, #d5e7ff, #92c7ff 60%, #5fa8ff); }
.m-univox { background: radial-gradient(100% 90% at 80% 0%, #fff1d6, transparent 60%), linear-gradient(160deg, #ffb340, #ff8b1f 60%, #f26b00); }
.m-laundry { background: radial-gradient(100% 90% at 20% 0%, #dbfcff, transparent 60%), linear-gradient(160deg, #3fd3e6, #1aa0c8 60%, #1679b8); }
.m-carzeva { background: radial-gradient(100% 90% at 80% 0%, #ffe2d2, transparent 60%), linear-gradient(160deg, #ff8f5a, #f2581f 60%, #d4410f); }
.m-pashu { background: radial-gradient(100% 90% at 20% 0%, #dde7ff, transparent 60%), linear-gradient(160deg, #5b8cff, #2f5fe0 60%, #1d3fb0); }
.logo-plate { position: absolute; inset: 0; display: grid; place-items: center; }
.logo-plate img { width: min(62%, 380px); padding: 28px 34px; border-radius: 24px; background: #fff; box-shadow: 0 40px 70px -30px rgba(17,40,100,.5); transition: transform 600ms var(--ease-out); }
.wcard__note { color: var(--muted); }
.wcard__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pill { font: 500 12px/1 var(--fm); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.pill:hover { background: var(--blue); color: #fff; box-shadow: none; }
.also { display: grid; margin: 6px 0 24px; }
.also li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.also h4 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.also p { color: var(--muted); font-size: 14.5px; }
.also__repos { color: var(--muted); margin-bottom: 8px; }
.repos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-transform: none; }
.repos a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 13px; border-radius: 12px; background: var(--bg); font-size: 12.5px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.repos a:hover { background: var(--ink); color: #fff; }
.repos em { font-style: normal; color: var(--muted); }

/* ---------- PRODUCTS ---------- */
.products { display: grid; gap: clamp(16px, 2vw, 24px); }
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 32px; overflow: hidden; position: relative; isolation: isolate; }
.product--sb { background: radial-gradient(90% 120% at 100% 0%, #f7e7c6 0%, transparent 55%), linear-gradient(160deg, #fffaf0, #f4ead6); }
.product--rl { background: radial-gradient(90% 120% at 100% 0%, #ffe39a 0%, transparent 55%), linear-gradient(160deg, #fffbee, #f6efd9); }
.product--rl .product__media { order: -1; }
.product__info { padding: clamp(26px, 3.6vw, 56px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.product__brand { display: flex; align-items: center; gap: 14px; width: 100%; }
.product__brand img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.45); transition: transform 400ms var(--ease-out); }
.product:hover .product__brand img { transform: rotate(-6deg) scale(1.04); }
.product__brand h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.product__brand .mono { color: var(--muted); text-transform: none; margin-top: 4px; }
.product:hover .product__brand h3 .ch { transform: translateY(-100%); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); }
.product__lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); letter-spacing: -.01em; }
.product__lead em { font-style: normal; color: var(--ink); font-weight: 500; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; width: 100%; }
.feats li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.feats li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent-p, var(--blue)); transform: rotate(45deg); }
.product--sb { --accent-p: #b98e4b; } .product--rl { --accent-p: #f2b01e; }
.product .chips span { background: rgba(255,255,255,.7); }
.product__media { position: relative; display: grid; place-items: center; padding: clamp(20px, 3vw, 44px); overflow: hidden; }
.product--sb .product__media { background: linear-gradient(150deg, #10151b, #1d2a24 60%, #0f4d2f); }
.product--rl .product__media { background: linear-gradient(150deg, #15171a, #2a2618 60%, #5a430b); }
.browser { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform 800ms var(--ease); }
.product--rl .browser { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.product__media:hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-6px); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f2f4; border-bottom: 1px solid var(--line); }
.browser--dark .browser__bar { background: #23262b; border-color: rgba(255,255,255,.08); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d8dd; }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: rgba(0,0,0,.05); color: var(--muted); text-transform: none; font-size: 11px; }
.browser--dark .browser__bar span { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.browser img { width: 100%; display: block; }
.head--sub { margin-top: clamp(80px, 10vw, 140px); }
.h3 { font-size: clamp(34px, 4.6vw, 72px); line-height: .95; font-weight: 500; letter-spacing: -.04em; }
.repos--rich { grid-template-columns: 1fr; }
.repos--rich a { flex-direction: column; gap: 3px; padding: 13px 15px; }
.repos--rich b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.repos--rich span { color: var(--muted); font: 450 11.5px/1.4 var(--fm); }
.repos--rich a:hover span { color: rgba(255,255,255,.7); }

/* ---------- inline icons ---------- */
.ico { display: inline-block; width: 16px; height: 16px; fill: currentColor; flex: none; vertical-align: -3px; }
.pill { display: inline-flex; align-items: center; gap: 9px; }
.pill .ico { width: 17px; height: 17px; }
.wcard__links .pill { background: var(--ink); color: #fff; box-shadow: none; padding: 11px 16px 11px 13px; }
.wcard__links .pill:hover { background: var(--blue); }
.wcard__links .pill .ico { width: 19px; height: 19px; }
.pill .arr { font-style: normal; opacity: .55; transition: transform 220ms var(--ease-out), opacity var(--t-hover) ease; }
.pill:hover .arr { transform: translate(2px, -2px); opacity: 1; }
.social--inline a { display: inline-flex; align-items: center; gap: 8px; }
.social--inline .ico { width: 15px; height: 15px; transition: transform 260ms var(--ease-out); }
.social--inline a:hover .ico { transform: scale(1.12); }
.ccard > .mono { display: inline-flex; align-items: center; gap: 8px; }
.ccard > .mono .ico { width: 15px; height: 15px; }
.hero__mail { display: flex; align-items: center; gap: 8px; }

/* ---------- BLOG ---------- */
.soon { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.soon__badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 99px; background: var(--bg); }
.soon p { font-size: clamp(17px, 1.5vw, 22px); color: var(--ink-2); letter-spacing: -.01em; }

/* ---------- EDUCATION ---------- */
.edu__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.degree { padding: clamp(26px, 3vw, 44px); border-radius: 26px; background: linear-gradient(150deg, #ffffff, #eef1ff); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-height: 380px; position: relative; overflow: hidden; }
.degree::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--blue-rgb), .55), rgba(24,196,255,.25) 60%, transparent); }
.degree > * { position: relative; }
.degree .mono { color: var(--muted); }
.degree h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; margin-top: auto; }
.degree p:not(.mono) { color: var(--ink-2); }
.degree__cpi b { color: var(--blue); font-size: 18px; margin-left: 6px; }
.achv { border-top: 1px solid var(--line-2); }
.achv li { display: grid; grid-template-columns: 60px 1fr; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background-color 220ms ease; border-radius: 6px; }
.achv li:hover { background: var(--paper); }
.achv li > * { transition: transform 260ms var(--ease-out); }
.achv li:hover > * { transform: translateX(10px); }
.achv li > span { color: var(--blue); padding-top: 6px; }
.achv h4 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.03em; }
.achv p { color: var(--muted); }

/* ---------- CONTACT ---------- */
.contact { position: relative; overflow: hidden; color: #fff; padding-top: clamp(96px, 12vw, 170px); background: radial-gradient(80% 70% at 85% 0%, #19c4ff 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #6b86ff 0%, transparent 60%), var(--blue); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.contact__title { font-size: clamp(44px, 7.4vw, 124px); line-height: .92; font-weight: 500; letter-spacing: -.04em; max-width: 1200px; }
.bigmail { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: clamp(40px, 6vw, 80px) 0; padding: clamp(22px, 3vw, 40px) 0; border-block: 1px solid rgba(255,255,255,.3); font-size: clamp(26px, 5.6vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; overflow-wrap: anywhere; }
.bigmail span { background: linear-gradient(#fff, #fff) 0 100% / 0 3px no-repeat; transition: background-size 500ms var(--ease-out); padding-bottom: 4px; }
.bigmail:hover span { background-size: 100% 3px; }
.bigmail svg { flex: none; width: clamp(44px, 6vw, 96px); height: auto; aspect-ratio: 1; padding: clamp(10px, 1.2vw, 20px); border-radius: 50%; background: #fff; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; transition: transform 400ms var(--ease-out); }
.bigmail:hover svg { transform: rotate(45deg); }
.mailrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -32px 0 clamp(36px, 5vw, 64px); }
.copy { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 99px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: #fff; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.copy:hover, .copy.is-done { background: #fff; color: var(--blue); }
.cgrid { display: grid; grid-template-columns: 1.15fr 1fr 1.15fr; gap: 14px; align-items: stretch; }
.ccard { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.18); transition: background-color 220ms ease, transform 220ms var(--ease-out); min-height: 220px; }
.ccard:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.ccard > .mono { display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.ccard > .mono .ico { width: 15px; height: 15px; }
.ccard__big { font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.ccard__meta { margin-top: auto; opacity: .8; text-transform: none; font-size: 12.5px; }
.ccard__meta b { font-weight: 500; opacity: 1; font-variant-numeric: tabular-nums; }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cbtn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; border-radius: 99px; font: 500 12.5px/1 var(--fm); letter-spacing: .03em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.cbtn .ico { width: 17px; height: 17px; }
.cbtn:hover { background: #fff; color: var(--blue); }
.cbtn--solid { background: #fff; color: var(--blue); box-shadow: 0 12px 24px -14px rgba(0,0,0,.5); }
.cbtn--solid:hover { background: var(--ink); color: #fff; }
.srow { display: grid; margin-top: auto; }
.srow a { display: grid; grid-template-columns: 20px auto 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.18); transition: background-color var(--t-hover) ease; border-radius: 6px; }
.srow li:last-child a { border-bottom: 0; }
.srow .ico { width: 18px; height: 18px; }
.srow b { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.srow em { font: 450 12px var(--fm); font-style: normal; opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow i { font-style: normal; opacity: .6; transition: transform 240ms var(--ease-out), opacity var(--t-hover) ease; }
.srow a:hover { background: rgba(255,255,255,.08); }
.srow a > :not(i) { transition: transform 240ms var(--ease-out); }
.srow a:hover > :not(i) { transform: translateX(6px); }
.srow a:hover i { transform: translate(3px, -3px); opacity: 1; }
.footer { padding-top: clamp(72px, 9vw, 120px); position: relative; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.totop { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); color: #fff; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.totop:hover { background: #fff; color: var(--blue); }
.footer__mark { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; user-select: none; }
.footer__mark text { font-family: var(--f); font-size: 212px; font-weight: 600; letter-spacing: -.04em; }

/* ---------- AI chat ---------- */
.ai-fab { position: fixed; z-index: 250; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 9px; border-radius: 99px; background: var(--ink); color: #fff; font: 500 13px/1 var(--fm); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 20px 40px -18px rgba(17,24,64,.7); transition: transform 240ms var(--ease-out), opacity 200ms ease, background-color var(--t-hover) ease, translate 280ms var(--ease-out), scale var(--t-press) var(--ease-out); }
.ai-fab:hover { background: var(--blue); }
.ai-fab__orb { width: 36px; height: 36px; flex: none; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 10%, transparent 30%), conic-gradient(from 0deg, #2340ff, #18c4ff, #ffffff, #ff5b1f, #2340ff); animation: spin 5s linear infinite; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-open .ai-fab { opacity: 0; transform: scale(.85); pointer-events: none; }
.ai { position: fixed; z-index: 260; right: 20px; bottom: 20px; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100svh - 40px)); display: flex; flex-direction: column; border-radius: 28px; background: rgba(255,255,255,.94); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 50px 100px -30px rgba(17,24,64,.5), 0 0 0 1px var(--line); transform-origin: 100% 100%; transform: scale(.96) translateY(12px); opacity: 0; visibility: hidden; transition: transform 200ms var(--ease-out), opacity 160ms ease, visibility 0s 200ms; overflow: hidden; }
.ai-open .ai { transform: none; opacity: 1; visibility: visible; transition: transform 380ms var(--ease-out), opacity 240ms ease; }
.ai__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 18px; }
.ai__who { display: flex; align-items: center; gap: 12px; }
.ai__who .ai-fab__orb { width: 40px; height: 40px; }
.ai__head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ai__head p { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.ai__actions { display: flex; gap: 6px; }
.ai__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.ai__btn:hover { background: var(--ink); color: #fff; }
.ai__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai__disc { margin: 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--blue-rgb), .07); color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.ai__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: msgin .5s var(--ease); }
@keyframes msgin { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg--bot { align-self: flex-start; background: var(--paper); box-shadow: 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.no-anim { animation: none; }
.msg a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .4; } }
.ai__suggest { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.ai__suggest::-webkit-scrollbar { display: none; }
.ai__suggest button { flex: none; padding: 9px 13px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--ink-2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.ai__suggest button:hover { background: var(--ink); color: #fff; }
.ai__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai__form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--bg); color: var(--ink); font: 16px var(--f); outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 140ms ease; }
.ai__form input:focus { box-shadow: inset 0 0 0 1.5px var(--blue); }
.ai__form button { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform 260ms var(--ease-out), background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out); }
.ai__form button:hover { transform: rotate(-45deg); background: var(--ink); }
.ai__form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .links { display: none; } }
@media (max-width: 1080px) {
  .about__grid, .edu__grid { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr 1fr; }
  .ccard--social { grid-column: span 2; }
  .product { grid-template-columns: 1fr; }
  .product--rl .product__media { order: 0; }
  .browser, .product--rl .browser { transform: none; }
}
@media (max-width: 620px) {
  .feats { grid-template-columns: 1fr; }
  .product { border-radius: 24px; }
  .product__brand { flex-wrap: wrap; }
  .status { margin-left: 0; }
}
@media (max-width: 820px) {
  :root { --nav: 76px; }
  .brand__txt small { display: none; }
  .brand__txt { display: none; }
  .brand { padding: 5px; }
  .tl__rail { left: 6px; }
  .tl { grid-template-columns: 1fr; padding-left: 34px; }
  .tl::before { left: 0; top: 8px; }
  .tl__side { flex-direction: row; align-items: baseline; gap: 14px; padding: 0 0 14px; }
  .tl__n { font-size: 40px; }
  .tl__card { margin-left: 0; }
  .soon { grid-template-columns: 1fr; justify-items: start; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero__inner { padding-top: calc(var(--nav) + 28px); justify-content: center; }
  .hero__top { position: static; margin-bottom: 28px; }
  .stats { justify-content: space-between; }
  .p3, .p4 { display: none; }
  .orbit { top: calc(var(--nav) + 6px); right: 50%; width: min(78vw, 330px); transform: translateX(50%); }
  .hero__top { margin-top: min(70vw, 300px); }
  .stack__stage { transform: rotateX(14deg) rotateZ(-2deg); }
}
@media (max-width: 620px) {
  .nav__right .btn { --h: 44px; padding-left: 16px; font-size: 12px; }
  .nav__right .btn--dark .btn__arrow { display: none; }
  .nav__right .btn--dark { padding-right: 16px; }
  .nav__right .btn--light { padding-right: 14px; }
  .nav__right .btn--light .roll { display: none; }
  .cgrid { grid-template-columns: 1fr; }
  .ccard { min-height: 0; }
  .ccard__actions, .ccard__meta, .srow { margin-top: 6px; }
  .hero__top { flex-direction: column; gap: 6px; }
  .hero__title { font-size: clamp(46px, 14.4vw, 80px); }
  .stats { gap: 12px; }
  .stats li { padding-left: 10px; }
  .stats b { font-size: 38px; }
  .stats .mono { font-size: 10px; }
  .hero__bottom .scroll-cue { display: none; }
  .repos { grid-template-columns: 1fr; }
  .ai-fab { right: 14px; bottom: 14px; height: 50px; }
  .ai { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100svh - 16px); border-radius: 24px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__mid { order: 3; }
  .ccard--social { grid-column: auto; }
  .mailrow { margin-top: -16px; }
  .footer { padding-bottom: 80px; }
}
/* press feedback: everything pressable sinks a touch (scale is independent of transform/translate) */
:is(.btn, .pill, .cbtn, .copy, .totop, .chip-status, .ai-fab, .ai__btn, .ai__form button, .ai__suggest button, .repos a, .menu__list a, .social:not(.social--inline) a):active { scale: .97; }

/* touch: no hover motion (taps fire false hovers) */
@media (hover: none) {
  .roll .ch { transition: none; }
  a:hover .roll .ch, button:hover .roll .ch, .panel:hover h3 .ch, .product:hover .product__brand h3 .ch { transform: none; }
  .tl__card:hover, .tiles li:hover, .ccard:hover, .chip-status:hover, .social:not(.social--inline) a:hover,
  .achv li:hover > *, .srow a:hover > :not(i), .product__media:hover .browser, .panel__stage:hover .phone { transform: none; }
  .srow2:hover::before { opacity: 0; }
}

/* reduced motion: no movement, but colour and opacity feedback stays (quick fades) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color, fill, stroke, box-shadow !important; transition-duration: 150ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .ln > span { transform: none; filter: none; }
  .statement .w { color: var(--ink); filter: none; }
  .core__phone::after { animation: none; }
  :is(.btn, .pill, .cbtn, .copy, .totop, .chip-status, .ai-fab, .ai__btn, .ai__form button, .ai__suggest button, .repos a, .menu__list a, .social a):active { scale: none; filter: brightness(.92); }
}

/* =========================================================================
   v3 additions: pinned horizontal work, phone frames, ripple, side index,
   timeline badges, status chip, résumé buttons
   ========================================================================= */

/* ---------- hero status chip ---------- */
.hero__tag { gap: 14px; flex-wrap: wrap; }
.chip-status { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 99px; color: var(--ink); background: rgba(255,255,255,.62); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 26px -16px rgba(17,24,64,.4); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform 200ms var(--ease-out), scale var(--t-press) var(--ease-out); }
.chip-status:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { color: var(--ink-2); padding: 0 16px; gap: 9px; }
.btn--ghost .ico { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
.btn--ghost:hover { color: var(--blue); }
.btn--ghost:hover .ico { transform: translateY(2px); }
.menu__cv { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.menu__cv:hover { color: var(--blue); }
a.copy { text-decoration: none; }

/* ---------- pinned horizontal client work ---------- */
.hwork { position: relative; margin-top: clamp(80px, 10vw, 140px); }
.hwork__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); overflow: hidden; padding-top: calc(var(--nav) - 24px); }
.hwork__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hwork__meta { display: grid; justify-items: end; gap: 12px; }
.hwork__meta .head__sub { text-align: right; }
.hwork__count { color: var(--muted); font-size: 13px; }
.hwork__count b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hwork__prog { width: 180px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hwork__prog i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(.125); }
.hwork__view { overflow: visible; }
.hwork__track { --pad: max(var(--g), calc((100vw - 1480px) / 2 + var(--g))); display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-inline: var(--pad); will-change: transform; }
.panel { position: relative; flex: none; width: min(1120px, calc(100vw - 2 * var(--pad) - 60px)); height: min(600px, calc(100svh - var(--nav) - 210px)); min-height: 440px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-radius: 32px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 40px 80px -50px rgba(17,24,64,.55); }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); pointer-events: none; }
.panel__info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; justify-content: flex-end; padding: clamp(26px, 3.4vw, 52px); }
.panel__meta { display: flex; align-items: center; gap: 12px; opacity: .85; margin-bottom: auto; }
.panel__meta span { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 99px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel__title { display: flex; align-items: center; gap: 16px; }
.panel__icon { width: 60px; height: 60px; border-radius: 16px; background: #fff; object-fit: cover; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); flex: none; transition: transform 400ms var(--ease-out); }
.panel__icon--wide { padding: 4px; object-fit: contain; }
.panel:hover .panel__icon { transform: rotate(-6deg) scale(1.04); }
.panel h3 { font-size: clamp(34px, 3.8vw, 62px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.panel h3 .roll { line-height: 1.06; }
.panel:hover h3 .ch { transform: translateY(-100%); }
.panel__desc { font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.5; max-width: 470px; opacity: .92; }
.panel__facts { display: flex; gap: 10px; flex-wrap: wrap; }
.panel__facts li { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.panel__facts b { font-size: clamp(26px, 2.4vw, 38px); line-height: .9; font-weight: 500; letter-spacing: -.04em; }
.panel__facts .mono { font-size: 10.5px; opacity: .85; }
.panel .wcard__note { color: inherit; opacity: .75; }
.panel--light { color: var(--ink); }
.panel--light .panel__meta span { background: rgba(255,255,255,.7); }
.panel__stage { position: relative; display: block; min-height: 0; }
.panel .logo-plate img { width: min(70%, 380px); }
.panel:hover .logo-plate img { transform: scale(1.03); }

/* phone frames */
.phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.phone { position: relative; flex: none; height: min(86%, 540px); aspect-ratio: 9 / 19.2; margin: 0; padding: 6px; border-radius: 34px; background: linear-gradient(150deg, #2a2f3a, #0b0d12 40%, #1a1e27); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 3px rgba(0,0,0,.6), 0 50px 80px -30px rgba(0,0,0,.55), 0 20px 30px -20px rgba(0,0,0,.35); transition: transform 650ms var(--ease-out); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 13px; left: 50%; width: 28%; height: 15px; translate: -50% 0; border-radius: 99px; background: #050608; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.phone::after { content: ""; position: absolute; z-index: 3; inset: 6px; border-radius: 28px; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 34%); pointer-events: none; }
.phone__screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #fff; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.phone__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.phones--3 .phone:nth-child(1) { transform: translateX(38%) translateY(7%) rotate(-8deg) scale(.84); z-index: 1; }
.phones--3 .phone:nth-child(2) { z-index: 2; }
.phones--3 .phone:nth-child(3) { transform: translateX(-38%) translateY(7%) rotate(8deg) scale(.84); z-index: 1; }
.panel__stage:hover .phones--3 .phone:nth-child(1) { transform: translateX(18%) translateY(4%) rotate(-11deg) scale(.86); }
.panel__stage:hover .phones--3 .phone:nth-child(2) { transform: translateY(-3%) scale(1.02); }
.panel__stage:hover .phones--3 .phone:nth-child(3) { transform: translateX(-18%) translateY(4%) rotate(11deg) scale(.86); }
.phones--1 .phone { transform: rotate(-4deg); }
.panel__stage:hover .phones--1 .phone { transform: rotate(0) translateY(-3%) scale(1.03); }

/* last panel: list */
.panel--list { background: var(--paper); color: var(--ink); grid-template-columns: 1fr 1fr; }
.panel--list::after { box-shadow: inset 0 0 0 1px var(--line); }
.panel--list .panel__info { justify-content: flex-start; overflow: hidden; }
.panel--list .panel__meta { margin-bottom: 0; }
.panel--list .panel__meta span { background: var(--ink); color: #fff; }
.panel__info--repos { background: var(--bg); justify-content: center !important; }
.panel--list .also { margin: 0; }

/* not pinned: native swipe carousel (touch, small screens, reduced motion) */
.hwork.is-static .hwork__sticky { position: relative; height: auto; overflow: visible; padding-top: 0; }
.hwork.is-static .hwork__view { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; }
.hwork.is-static .hwork__view::-webkit-scrollbar { display: none; }
.hwork.is-static .hwork__track { transform: none !important; }
.hwork.is-static .panel { scroll-snap-align: start; scroll-margin-inline: var(--pad); }
@media (max-width: 900px) {
  .hwork__bar { flex-direction: column; align-items: flex-start; }
  .hwork__meta { justify-items: start; }
  .hwork__meta .head__sub { text-align: left; }
  .panel { width: calc(100vw - 2 * var(--g) - 28px); height: auto; min-height: 0; grid-template-columns: 1fr; border-radius: 26px; }
  .panel__stage { order: -1; height: min(110vw, 440px); }
  .panel__info { justify-content: flex-start; padding-top: 22px; }
  .panel__meta { margin-bottom: 0; }
  .phone { height: 88%; border-radius: 28px; padding: 5px; }
  .phone__screen, .phone::after { border-radius: 23px; }
  .phone::before { top: 10px; height: 12px; }
  .panel--list { grid-template-columns: 1fr; }
  .panel--list .panel__stage { display: none; }
}

/* ---------- side index ---------- */
.sidx { position: fixed; z-index: 190; left: 14px; top: 50%; translate: 0 -50%; display: grid; gap: 4px; opacity: 0; pointer-events: none; transition: opacity 300ms ease, transform 400ms var(--ease-out); transform: translateX(-12px); }
.sidx.is-on { opacity: 1; pointer-events: auto; transform: none; }
.sidx a { position: relative; display: flex; align-items: center; gap: 7px; height: 22px; color: var(--muted); }
.sidx a::after { content: ""; order: 2; width: 16px; transform-origin: 0 50%; transform: scaleX(.375); height: 1.5px; border-radius: 2px; background: currentColor; opacity: .6; transition: transform 300ms var(--ease-out), background-color var(--t-hover) ease, opacity var(--t-hover) ease; }
.sidx i { order: 1; font-style: normal; font-size: 10.5px; transition: color .3s; }
.sidx span { order: 3; position: absolute; left: 100%; margin-left: 6px; padding: 5px 10px; border-radius: 99px; font-size: 10.5px; white-space: nowrap; color: var(--ink); background: rgba(255,255,255,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 8px 20px -12px rgba(17,24,64,.4); opacity: 0; transform: translateX(-6px); transition: opacity 160ms ease, transform 220ms var(--ease-out); pointer-events: none; }
.sidx a:hover span { opacity: 1; transform: none; }
.sidx a:hover, .sidx a.is-active { color: var(--ink); }
.sidx a.is-active::after { transform: none; background: var(--blue); opacity: 1; }
.sidx.on-dark a { color: rgba(255,255,255,.6); }
.sidx.on-dark a:hover, .sidx.on-dark a.is-active { color: #fff; }
.sidx.on-dark a.is-active::after { background: #fff; }
@media (max-width: 1279px) { .sidx { display: none; } }

/* ---------- timeline: company badges + travelling head ---------- */
.tl::before { display: none; }
.tl__badge { position: absolute; z-index: 2; left: calc(25% - 20px); top: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 400ms var(--ease-out); }
.tl.on .tl__badge { background: var(--blue); color: #fff; box-shadow: 0 0 0 7px rgba(var(--blue-rgb), .13), 0 10px 24px -8px rgba(var(--blue-rgb), .7); transform: scale(1.06); }
.tl__rail b { position: absolute; left: 50%; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue), 0 0 18px 4px rgba(var(--blue-rgb), .45); will-change: transform; }
.tl__card { transform-origin: 0 50%; }
@media (max-width: 820px) {
  .tl { padding-left: 54px; }
  .tl__rail { left: 19px; }
  .tl__badge { left: 0; top: -6px; width: 38px; height: 38px; }
}

/* ---------- scramble ---------- */
.scr { color: var(--blue); }
.label--light .scr { color: #fff; opacity: .7; }
.panel__info--repos { gap: 12px; }
.panel__info--repos .btn { flex: none; align-self: flex-start; margin-top: 6px; }
.panel--list .repos--rich { gap: 6px; }
.panel--list .repos--rich a { padding: 10px 14px; background: var(--paper); }
.panel--list .repos--rich a:hover { background: var(--ink); }
.panel--list .also li { padding: 12px 0; }
@media (max-height: 760px) and (min-width: 901px) { .panel--list .also p { display: none; } }
/* perf: no backdrop blur inside the moving track (it re-renders every frame) */
.panel__meta span, .panel__facts li { backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel__facts li { background: rgba(255,255,255,.2); }
.panel { contain: paint; }
.label { contain: layout; }

/* ---------- mobile pass ---------- */
.ai-fab > span:last-child { transition: opacity 160ms ease, max-width 260ms var(--ease-out); max-width: 120px; overflow: hidden; white-space: nowrap; }
/* touch screens: thumb-sized targets */
@media (pointer: coarse) {
  .chip-status { height: 40px; }
  .totop { height: 44px; padding: 0 18px; }
  .hero__bottom .social--inline { gap: 0 20px; }
  .hero__bottom .social--inline a { padding-block: 12px; margin-block: -12px; }
  .ccard--social .srow a { min-height: 44px; }
}
/* phones: the chat button shrinks to its orb once you leave the hero, so it stops covering text */
@media (max-width: 620px), (max-height: 500px) and (orientation: landscape) {
  .ai-fab { height: 52px; padding-right: 18px; }
  .fab-mini .ai-fab { width: 52px; padding: 0 0 0 8px; gap: 0; }
  .fab-mini .ai-fab > span:last-child { max-width: 0; opacity: 0; }
  .menu-open .ai-fab { opacity: 0; pointer-events: none; }
  /* menu never runs off a short screen */
  .menu { max-height: calc(100svh - var(--nav) - 12px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 620px) {
  .section { padding-block: clamp(72px, 19vw, 96px); }
  .label { margin-bottom: 20px; }
  /* readable small type */
  .stats .mono, .product__stats .mono, .panel__facts .mono { font-size: 11px; letter-spacing: .03em; }
  .label span:not(.scr), .tl__badge, .srow2__n { font-size: 12px; }
  .repos--rich span { font-size: 12px; }
  .menu__list a { font-size: 30px; padding-block: 8px; }
}
/* short phones: smaller orbit so the headline lands above the fold */
@media (max-width: 620px) and (max-height: 720px) {
  .orbit { width: min(64vw, 250px); }
  .hero__top { margin-top: min(56vw, 230px); }
  .hero__title { font-size: clamp(42px, 13.4vw, 64px); }
}
/* phones in landscape: side-by-side hero and panels instead of a tall stack */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero__inner { padding-top: calc(var(--nav) + 12px); justify-content: center; }
  .orbit { top: calc(50svh + var(--nav) / 3); right: 3vw; width: min(38vw, 74svh); transform: translateY(-50%); }
  .hero__top { margin-top: 0; margin-bottom: 18px; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .hero__top, .hero__title, .hero__row { max-width: 58%; }
  .hero__title { font-size: clamp(38px, 11svh, 54px); }
  .hero__row { flex-direction: column; gap: 22px; }
  .panel { grid-template-columns: .9fr 1.1fr; width: calc(100vw - 2 * var(--g) - 60px); }
  .panel__stage { order: 0; height: auto; min-height: 300px; }
  .panel__info { padding-top: 0; }
  .panel--list { grid-template-columns: 1fr; }
  .ai { top: 8px; bottom: 8px; height: auto; max-height: none; }
  .ai__disc { display: none; }
}

/* ---------- full-stack logos + product "built with" ---------- */
.lg-next { --c: #000; } .lg-vite { --c: #646cff; } .lg-tw { --c: #06b6d4; } .lg-hono { --c: #e36002; } .lg-pg { --c: #4169e1; }
.lg-prisma { --c: #2d3748; } .lg-pwa { --c: #5a0fc8; } .lg-vitest { --c: #6e9f18; }
.pstack { display: grid; gap: 10px; }
.pstack > .mono { font-size: 11px; color: var(--muted); }
.pstack ul { display: flex; flex-wrap: wrap; gap: 6px; }
.pstack li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; border-radius: 99px; font-size: 13px; color: var(--ink); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.pstack svg { width: 15px; height: 15px; fill: var(--c, var(--ink)); }
