/* Portfolio Viacheslav Hordiienko — VCSLV brand: Onest, ink, terra; JetBrains Mono only inside the test panels */
@font-face { font-family: 'Onest'; src: url(fonts/onest-100-900-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-100-900-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF; }

:root {
  --ink: #0A0A0B; --ink-2: #131315; --ink-3: #1C1C1F;
  --fg: #F2F2F0; --muted: #9A9A9F; --line: rgba(255, 255, 255, .12);
  --terra: #D2664A; --terra-deep: #A8452F; --gold: #C6A15B;
  --ok: #3FB950; --ok-bg: rgba(63, 185, 80, .12);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--fg); font: 400 17px/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: inline-flex; flex-direction: column; gap: 5px; text-decoration: none; }
.mark b { font-weight: 700; font-size: 19px; letter-spacing: .02em; line-height: 1; }
.mark i { display: block; width: 18px; height: 3px; background: var(--terra); }
.top nav { display: flex; gap: 10px; align-items: center; }
.lang { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--muted); padding: 8px 10px; }
.lang:hover { color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid var(--line); transition: background .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .35); }
.btn.solid { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn.solid:hover { background: #DD7558; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 64px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(210, 102, 74, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.kicker { color: var(--terra); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-weight: 700; font-size: clamp(42px, 6.6vw, 92px); line-height: .98; letter-spacing: -.025em; margin-bottom: 26px; }
.hero h1 span { display: block; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34em; color: #D9D9D6; margin-bottom: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; justify-self: end; width: min(100%, 470px); }
.portrait .photo { aspect-ratio: 736 / 920; border-radius: 22px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait .bar { position: absolute; left: -14px; top: 38px; width: 6px; height: 72px; background: var(--terra); border-radius: 2px; }

/* test panel (mono block) */
.panel { font-family: var(--mono); font-size: 13px; line-height: 1.5; background: rgba(19, 19, 21, .9); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.portrait .panel { position: absolute; left: -48px; right: 32px; bottom: -34px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.panel .head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-bottom: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.panel ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.panel li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; color: #D9D9D6; }
.panel li::before, .tag::before, .qa div b::before { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); margin-top: .5em; }
.panel .res { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--fg); }
.panel .res b { color: var(--ok); font-weight: 400; }

/* sequenced lines: .ln gets --i from JS; the parent gets .run once it is on screen */
.ln { opacity: 0; transform: translateY(6px); }
.run .ln { animation: lnIn .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .55s + .2s); }
@keyframes lnIn { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* sections */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 18px; }

/* numbers */
.nums { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.nums .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: clamp(28px, 4vw, 48px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; margin-bottom: 12px; }
.num b em { font-style: normal; color: var(--terra); }
.num span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; max-width: 17em; }

/* projects */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.card .vis { background: linear-gradient(160deg, #18181B, #0F0F11); border-bottom: 1px solid var(--line); padding: 22px; min-height: 236px; display: flex; flex-direction: column; justify-content: center; }
.card .body { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card h3 { font-weight: 700; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.15; letter-spacing: -.01em; }
.card dl { display: grid; gap: 12px; }
.card dt { font-weight: 700; font-size: 15px; color: var(--terra); }
.card dd { color: #CFCFCB; font-size: 16px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.chips span { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* mock: call */
.call { display: grid; gap: 10px; font-size: 15px; }
.call .who { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.wave i { width: 3px; height: 30%; background: var(--terra); border-radius: 2px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .15s; } .wave i:nth-child(3n) { animation-delay: .32s; } .wave i:nth-child(4n) { animation-delay: .5s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.bub { max-width: 86%; padding: 9px 14px; border-radius: 16px; line-height: 1.4; }
.bub.ai { background: rgba(210, 102, 74, .14); border: 1px solid rgba(210, 102, 74, .3); border-bottom-left-radius: 4px; }
.bub.me { justify-self: end; background: var(--ink-3); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.tag { font-family: var(--mono); font-size: 12.5px; color: var(--ok); display: inline-flex; gap: 9px; align-items: flex-start; }
.tag::before { flex: none; margin-top: .45em; }
.call .tag, .chat .tag { justify-self: start; margin-top: 2px; }

/* mock: chat */
.chat { display: grid; gap: 10px; font-size: 15px; }
.chat .price { font-weight: 700; color: var(--fg); }

/* mock: checklist */
.qa { font-family: var(--mono); font-size: 13.5px; display: grid; gap: 7px; }
.qa div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.qa div b { font-weight: 400; color: var(--ok); white-space: nowrap; display: inline-flex; gap: 9px; align-items: flex-start; }
.qa div b::before { flex: none; margin-top: .45em; }

/* mock: telegram */
.tg { display: grid; gap: 10px; font-size: 15px; }
.msg { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.msg .t { font-weight: 700; margin-bottom: 2px; }
.msg .s { color: var(--muted); font-size: 14px; }
.msg .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.msg .btns span { text-align: center; font-size: 14px; padding: 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.msg .btns span:first-child { background: var(--ok-bg); color: var(--ok); }

/* how I work */
.how { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.step { padding-top: 22px; position: relative; }
.step::before { content: ''; position: absolute; top: 0; left: 0; width: 34px; height: 4px; background: var(--terra); border-radius: 2px; }
.step h3 { font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.note { margin-top: clamp(36px, 5vw, 56px); padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; max-width: 860px; color: #D9D9D6; font-size: 17px; }
.note b { font-weight: 700; color: var(--fg); }

/* before */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .when { color: var(--muted); font-size: 15px; padding-top: 3px; }
.row h3 { font-weight: 700; font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.row p { color: var(--muted); }

/* try */
.tries { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.try { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); text-decoration: none; transition: border-color .25s, transform .3s var(--ease); }
.try:hover { border-color: rgba(210, 102, 74, .6); transform: translateY(-2px); }
.try h3 { font-weight: 700; font-size: 21px; margin-bottom: 4px; }
.try p { color: var(--muted); font-size: 15px; }
.try .go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; }
.try .go svg { width: 20px; height: 20px; }

/* contact */
.contact { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); background: radial-gradient(70% 90% at 15% 0%, rgba(210, 102, 74, .14), transparent 70%); border-top: 1px solid var(--line); }
.contact h2 { font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; }
.contact .lead { margin-bottom: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(44px, 6vw, 70px); padding-top: 28px; border-top: 1px solid var(--line); }
.facts h3 { font-weight: 700; font-size: 15px; color: var(--terra); margin-bottom: 6px; }
.facts p { color: #CFCFCB; font-size: 16px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 26px; padding-bottom: 26px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* entrance */
.rise { opacity: 0; transition: opacity .9s var(--ease); }
.rise.in { opacity: 1; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(100%, 420px); margin: 10px 0 40px; }
  .portrait .panel { left: 14px; right: -10px; }
  .nums .wrap { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid, .tries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top .wrap { height: 64px; }
  .hero { padding: 84px 0 40px; }
  .hero h1 { font-size: 44px; }
  .cta .btn { flex: 1 1 100%; }
  .portrait { width: 100%; margin-bottom: 44px; }
  .portrait .bar { left: -8px; }
  .portrait .panel { left: 10px; right: 10px; bottom: -40px; font-size: 12px; padding: 14px; }
  .num { padding: 26px 0 26px 16px; }
  .num span { font-size: 14px; }
  .card .vis { min-height: 0; padding: 18px; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .try { padding: 22px; }
  .facts { grid-template-columns: 1fr; }
  .contact .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ln, .rise { opacity: 1; transform: none; }
}
