/* neliubov.com — one page, DarkPixel visual language: dark page, lime accent, glass cards, film grain. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/Manrope-Variable-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/Manrope-Variable-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/PTRootUI-Regular-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/PTRootUI-Regular-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/PTRootUI-Medium-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/PTRootUI-Medium-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/Manrope-Variable-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/PTRootUI-Regular-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Root UI'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/PTRootUI-Medium-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --page: #0d0e0c;
  --card: #141613;
  --ink: #090a08;
  --text: #eff2ec;
  --muted: rgb(239 242 236 / 0.62);
  --faint: rgb(239 242 236 / 0.4);
  --line: rgb(255 255 255 / 0.09);
  --lime: #a7ff1a;
  --lime-hover: #c6ff5e;
  --radius: 28px;
  --gap: 16px;
  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'PT Root UI', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='luminanceToAlpha' result='a'/%3E%3CfeComponentTransfer in='a' result='s'%3E%3CfeFuncA type='table' tableValues='0 0.018 0.075 0.15'/%3E%3C/feComponentTransfer%3E%3CfeFlood flood-color='%23efe9dc' result='c'/%3E%3CfeComposite in='c' in2='s' operator='in'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60% 40% at 85% 0%, rgb(140 230 0 / 0.1), transparent 70%),
    radial-gradient(50% 35% at 0% 60%, rgb(140 230 0 / 0.06), transparent 70%),
    var(--grain), var(--page);
  background-size: auto, auto, 260px 260px, auto;
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip:focus { left: 12px; }

.i, .socials svg, .pill svg, .ic svg, .card__arrow svg, .btn__arrow svg, .more svg, .orbit__node svg, .flow__lines {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- layout ---------- */
.grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.card--hero { grid-column: 1 / span 8; grid-row: span 2; }
.card--years { grid-column: 9 / span 4; }
.card--now { grid-column: 9 / span 4; }
.card--approach { grid-column: 1 / span 8; grid-row: span 2; }
.card--fiverr { grid-column: 9 / span 4; }
.card--world { grid-column: 9 / span 4; }
.card--skills { grid-column: 1 / -1; }
.card--latest { grid-column: 1 / span 4; }
.card--writing { grid-column: 5 / span 8; grid-row: span 2; }
.card--contact { grid-column: 1 / span 4; }

/* ---------- cards ---------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 0 0 1px var(--line), 0 24px 50px -32px rgb(0 0 0 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.card--lime {
  background: linear-gradient(180deg, #c6ff5e, #b2ff38 45%, #a7ff1a);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 24px 50px -30px rgb(120 200 0 / 0.55);
}
.link-card { display: block; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.link-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), inset 0 0 0 1px rgb(167 255 26 / 0.45), 0 30px 60px -30px rgb(0 0 0 / 0.9); }
.card__arrow {
  position: absolute; top: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
  transition: background 250ms var(--ease), color 250ms var(--ease), transform 300ms var(--ease);
}
.card__arrow svg { width: 16px; height: 16px; }
.link-card:hover .card__arrow { background: var(--lime); color: var(--ink); transform: rotate(45deg); }

/* cursor light on glass cards */
.glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, -999px) var(--gy, -999px), rgb(167 255 26 / 0.09), transparent 60%);
}

/* ---------- type ---------- */
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--lime); font: 600 13px/1.2 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.h2 { font: 700 clamp(28px, 3vw, 42px)/1.05 var(--font-display); letter-spacing: -0.035em; }
.h3 { font: 700 clamp(20px, 1.7vw, 24px)/1.2 var(--font-display); letter-spacing: -0.025em; }
.muted { color: var(--muted); }
.card--now .h3, .card--fiverr .stat, .card--world .stat { margin-bottom: 10px; padding-right: 48px; }

/* ---------- language switcher ---------- */
.lang { position: absolute; top: clamp(22px, 2.6vw, 36px); right: clamp(22px, 2.6vw, 36px); z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.lang a { padding: 6px 11px; border-radius: 999px; color: var(--muted); font: 700 12px/1 var(--font-display); letter-spacing: 0.04em; transition: color 200ms, background 200ms; }
.lang a:hover { color: var(--text); }
.lang a[aria-current='page'] { background: var(--lime); color: var(--ink); }

/* ---------- hero ---------- */
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font: 600 13px/1 var(--font-display); color: var(--muted); }
.chips li:first-child { background: rgb(167 255 26 / 0.12); color: var(--lime); }
.chips .i { width: 15px; height: 15px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 24px; margin-top: clamp(24px, 3vw, 40px); }
.name { font: 800 clamp(48px, 7vw, 104px)/0.92 var(--font-display); letter-spacing: -0.055em; }
.lead { max-width: 34ch; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); }
.hl { color: var(--text); background: linear-gradient(transparent 62%, rgb(167 255 26 / 0.3) 62%); }
.loc { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--faint); font-size: 15px; }
.loc .i { width: 17px; height: 17px; color: var(--lime); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px 6px 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background 250ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn__arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: transform 300ms var(--ease); }
.btn__arrow svg { width: 17px; height: 17px; }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--lime { background: linear-gradient(180deg, #c6ff5e, #a7ff1a); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 12px 30px -14px rgb(167 255 26 / 0.6); }
.btn--lime .btn__arrow { background: var(--ink); color: var(--lime); }
.btn--lime:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 16px 36px -14px rgb(167 255 26 / 0.8); }
.btn--glass { padding-right: 22px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.btn--glass:hover { background: rgb(255 255 255 / 0.1); }
.btn--ink { background: var(--ink); color: var(--text); }
.btn--ink .btn__arrow { background: var(--lime); color: var(--ink); }

.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--muted); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: color 200ms, background 200ms; }
.socials a:hover { color: var(--ink); background: var(--lime); }
.socials svg { width: 18px; height: 18px; }

/* photo with orbit */
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 400px); justify-self: center; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgb(255 255 255 / 0.14); }
.orbit__ring--1 { inset: 0; animation: spin 60s linear infinite; }
.orbit__ring--2 { inset: 17%; border-style: solid; border-color: rgb(167 255 26 / 0.18); }
.orbit__photo {
  position: absolute; inset: 27%; width: 46%; height: 46%; object-fit: cover; border-radius: 30%;
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 6px rgb(13 14 12), 0 0 0 7px rgb(167 255 26 / 0.55), 0 30px 70px -20px rgb(167 255 26 / 0.45);
}
.orbit__node { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--lime); background: rgb(20 22 19 / 0.9); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -10px rgb(0 0 0 / 0.8); animation: float 6s ease-in-out infinite; }
.orbit__node svg { width: 19px; height: 19px; }
.n1 { top: 4%; left: 46%; }
.n2 { top: 30%; right: -2%; animation-delay: -1.5s; }
.n3 { bottom: 8%; right: 16%; animation-delay: -3s; }
.n4 { bottom: 14%; left: 2%; animation-delay: -4.5s; }
.n5 { top: 22%; left: 4%; animation-delay: -2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-7px); } }

/* ---------- stats ---------- */
.stat__num { font: 800 clamp(56px, 6vw, 88px)/0.9 var(--font-display); letter-spacing: -0.06em; }
.stat__label { margin-top: 10px; max-width: 22ch; font: 600 15px/1.35 var(--font-display); }
.card--lime .stat__label { color: rgb(9 10 8 / 0.72); }
.card--years { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.card--years .stat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card--years .stat__label { text-align: right; }
.stat--row { display: flex; align-items: flex-end; gap: 14px; }
.stat--row .stat__num { color: var(--lime); }
.stat--row .stat__label { margin: 0 0 6px; color: var(--muted); }

.pixels { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; }
.pixels i { aspect-ratio: 1; border-radius: 3px; background: rgb(9 10 8 / var(--a, 0.1)); transition: background 600ms var(--ease); }

.dots { display: grid; grid-template-columns: repeat(24, 1fr); gap: 5px; margin: 18px 0 14px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.1); }
.dots i.on { background: var(--lime); box-shadow: 0 0 10px rgb(167 255 26 / 0.7); }

/* ---------- approach ---------- */
.approach__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: end; }
.approach__lead { max-width: 42ch; }
.approach__ic { margin-bottom: 18px; }
.flow { position: relative; display: grid; grid-template-columns: 1fr minmax(120px, 1.2fr) 1fr; align-items: center; margin: clamp(28px, 4vw, 48px) 0; }
.flow__col { position: relative; z-index: 1; display: grid; gap: 10px; }
.flow__col--out { justify-items: end; }
.flow__label { margin-bottom: 4px; color: var(--faint); font: 600 12px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-width: 170px; padding: 11px 16px; border-radius: 14px; font: 600 14px/1 var(--font-display); background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.pill svg { width: 17px; height: 17px; color: var(--faint); }
.pill--on { box-shadow: inset 0 0 0 1px rgb(167 255 26 / 0.35); }
.pill--on svg { color: var(--lime); }
.flow__lines { position: absolute; inset: 34px 22% 0; width: 56%; height: calc(100% - 34px); stroke: rgb(167 255 26 / 0.35); stroke-width: 1.2; stroke-dasharray: 4 6; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.flow__core { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.flow__mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; color: var(--ink); font: 800 30px/1 var(--font-display); letter-spacing: -0.05em; background: linear-gradient(180deg, #c6ff5e, #a7ff1a); box-shadow: 0 0 0 8px rgb(13 14 12 / 0.9), 0 0 0 9px rgb(167 255 26 / 0.4), 0 20px 50px -14px rgb(167 255 26 / 0.6); }
.flow__mark svg.pxmark { width: 48px; height: 54px; fill: currentColor; stroke: none; }  /* pixelated DarkPixel mark, 16x18 grid */
.flow__caption { color: var(--lime); font: 600 13px/1.3 var(--font-display); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.step { padding: 18px; border-radius: 18px; background: rgb(255 255 255 / 0.035); box-shadow: inset 0 0 0 1px var(--line); transition: background 250ms; }
.step:hover { background: rgb(167 255 26 / 0.06); }
.step__no { color: var(--lime); font: 700 13px/1 var(--font-display); }
.step h3 { margin: 22px 0 6px; font: 700 17px/1.2 var(--font-display); letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 28px; margin-top: 30px; }
.skills li { display: flex; gap: 14px; }
.ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--lime); background: rgb(167 255 26 / 0.08); box-shadow: inset 0 0 0 1px rgb(167 255 26 / 0.2); }
.ic svg { width: 19px; height: 19px; }
.skills h3 { font: 700 16px/1.25 var(--font-display); letter-spacing: -0.015em; }
.skills p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- writing ---------- */
.card--latest { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.latest__title { padding-right: 24px; }
.writing__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 14px/1 var(--font-display); }
.more svg { width: 15px; height: 15px; }
.more:hover { color: var(--lime); }
.posts li + li { border-top: 1px solid var(--line); }
.posts a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; font: 600 16px/1.35 var(--font-display); letter-spacing: -0.01em; transition: color 200ms, padding 300ms var(--ease); }
.posts a:hover { color: var(--lime); padding-left: 6px; }
.posts em { flex: none; color: var(--faint); font: 500 13px/1 var(--font-body); font-style: normal; }

/* ---------- contact ---------- */
.card--contact { display: flex; flex-direction: column; gap: 14px; }
.card--contact p { color: rgb(9 10 8 / 0.75); }
.card--contact .btn { align-self: flex-start; margin-top: auto; }

/* ---------- footer ---------- */
.footer { max-width: 1320px; margin: 0 auto; padding: 18px clamp(24px, 3vw, 40px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 14px; }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--lime); }

[data-link][hidden] { display: none !important; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card--hero, .card--approach, .card--skills, .card--writing { grid-column: 1 / -1; grid-row: auto; }
  .card--years, .card--now, .card--fiverr, .card--world, .card--latest, .card--contact { grid-column: span 6; }
  .skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --radius: 24px; --gap: 12px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .hero { grid-template-columns: 1fr; }
  .orbit { order: -1; width: min(78%, 300px); }
  .chips { max-width: calc(100% - 128px); gap: 6px; padding: 0; background: none; box-shadow: none; }
  .chips li { white-space: nowrap; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); }
  .approach__head { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow__lines { display: none; }
  .flow__col--out { justify-items: start; }
  .flow__core { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: 1fr; }
  .posts a { flex-direction: column; gap: 6px; }
  .btn { width: 100%; justify-content: space-between; }
  .btn--glass { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The writing list fills its card when the card is taller than the list. */
.card--writing { display: flex; flex-direction: column; }
.posts { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
