/* ─────────────────────────────────────────────
   Тімур — портфоліо. Білий фон, тонка сітка,
   вузький жирний заголовковий шрифт, червоний акцент.
   ───────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --ink: #0c0c0c;
  --muted: #6b6b6b;
  --line: #ececec;
  --soft: #f4f4f3;
  --accent: #f2401b;
  --dark: #0a0a0a;
  --dark-line: #1f1f1f;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --pad: clamp(18px, 3vw, 28px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

/* Вертикальні лінії сітки на всю сторінку */
.guides {
  position: fixed; inset: 0;
  max-width: var(--wrap);
  margin: 0 auto;
  pointer-events: none;
  z-index: 0;
}
.guides span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.guides span:nth-child(1) { left: var(--pad); }
.guides span:nth-child(2) { left: 50%; }
.guides span:nth-child(3) { right: var(--pad); }
main, .footer, .nav { position: relative; z-index: 1; }

/* ── Типографіка ── */
.label {
  font: 500 11px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex; gap: 6px; align-items: center;
}
.label i { font-style: normal; }
.label--light { color: #f5f5f5; }

.title {
  font: 900 clamp(46px, 7vw, 96px)/.88 var(--display);
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color .25s, gap .3s var(--ease);
}
.link-arrow i { font-style: normal; font-size: 13px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); gap: 12px; }
.link-arrow:hover i { transform: translate(2px, -2px); }

/* ── Навігація ── */
.nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font: 900 26px/1 var(--display);
  color: var(--accent);
  letter-spacing: .01em;
}
.brand sup { font-size: 11px; vertical-align: top; position: relative; top: 2px; margin-left: 1px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 13px; font-weight: 500; transition: color .2s; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 36px; height: 36px; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 21px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── HERO ── */
.hero { padding: clamp(36px, 6vw, 64px) 0 0; }
.hero__top {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(28px, 4vw, 44px);
}
.hero__hi { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.hero__name {
  font: 900 clamp(58px, 8.4vw, 116px)/.84 var(--display);
  text-transform: uppercase;
  color: var(--accent);
}
.hero__intro {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  align-items: start;
  padding-left: clamp(20px, 3vw, 32px);
}
.hero__lead { font-size: 14px; line-height: 1.6; max-width: 380px; margin-bottom: 22px; }

/* Аватар-персонаж (img/me.png). Якщо файлу ще нема — показується монограма «Т» */
.avatar { position: relative; overflow: hidden; background: var(--soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.avatar__mono { display: none; }
.avatar.is-empty { background: var(--accent); display: grid; place-items: center; }
.avatar.is-empty .avatar__mono {
  display: block; color: #fff;
  font: 900 1em/1 var(--display);
}
.avatar--sm { width: 132px; height: 152px; font-size: 110px; }
.avatar--lg { width: 100%; aspect-ratio: 16 / 10; font-size: clamp(120px, 16vw, 220px); }

.hero__huge {
  font: 900 clamp(40px, 15.6vw, 212px)/.8 var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  padding: clamp(26px, 4vw, 48px) 0 clamp(18px, 2.4vw, 28px);
  overflow: hidden;
}
.hero__huge .ch { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-ready .hero__huge .ch { transform: none; }

.hero__roles {
  display: flex; justify-content: space-between;
  font: 500 11px/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 16px;
}

/* Велика сцена з вікном браузера */
.stage {
  position: relative;
  background: var(--dark);
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  display: grid; place-items: center;
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 70% 30%, rgba(242,64,27,.35), transparent 70%),
    radial-gradient(40% 50% at 15% 90%, rgba(242,64,27,.18), transparent 70%);
}
.browser {
  position: relative;
  width: 74%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
  transform: perspective(1400px) rotateX(var(--rx, 8deg)) translateY(var(--ty, 18px));
  transition: transform .2s linear;
}
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: #f1f1f1;
  border-bottom: 1px solid #e3e3e3;
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6d6; }
.browser__bar i:first-child { background: var(--accent); }
.browser__url {
  margin: 0 auto;
  font: 500 11px/1 var(--body);
  color: var(--muted);
  background: #fff;
  border-radius: 6px;
  padding: 5px 28px;
  min-width: 40%;
  text-align: center;
}
.browser__screens { position: relative; aspect-ratio: 16 / 10; background: #eee; }
.browser__screens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s ease, transform 4s linear;
}
.browser__screens img.is-on { opacity: 1; transform: scale(1); }

.stage__me {
  position: absolute; left: 3%; bottom: 0;
  width: 30%; height: 92%;
  pointer-events: none;
}
.stage__me img { width: 100%; height: 100%; object-fit: contain; object-position: bottom left; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }

.stage__badge {
  position: absolute; right: 3%; bottom: 6%;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  padding: 12px 18px 12px 14px;
}
.stage__badge b { font: 900 46px/.8 var(--display); color: var(--accent); }
.stage__badge span { font-size: 12px; line-height: 1.35; font-weight: 500; }

/* ── ПРО МЕНЕ ── */
.about { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.about__in { min-height: clamp(520px, 62vw, 700px); display: grid; place-items: center; }
.about__text { text-align: center; max-width: 760px; position: relative; z-index: 2; }
.statement {
  font: 500 clamp(26px, 3.4vw, 42px)/1.12 var(--body);
  letter-spacing: -.035em;
  margin-bottom: 28px;
}
.float {
  position: absolute; margin: 0;
  width: clamp(130px, 17vw, 210px);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.35);
  will-change: transform;
}
.float img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.f1 { top: 0;    left: 6%;   --r: -14deg; }
.f2 { top: 2%;   right: 6%;  --r: 12deg; }
.f3 { bottom: 0; left: 8%;   --r: 8deg; }
.f4 { bottom: 4%; right: 8%; --r: -10deg; }
.float { transform: translateY(var(--y, 0px)) rotate(var(--r)); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
}
.stat { padding: 28px 22px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 900 clamp(56px, 6vw, 84px)/.9 var(--display); margin-bottom: 10px; }
.stat span { font-size: 13px; color: var(--muted); display: block; max-width: 220px; }

/* ── Темні секції ── */
.dark { background: var(--dark); color: #f5f5f5; }
.dark .wrap::before, .dark .wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--dark-line);
}
.dark .wrap::before { left: var(--pad); }
.dark .wrap::after { right: var(--pad); }

/* ── РОБОТИ ── */
.works { padding: clamp(80px, 10vw, 130px) 0; }
.works__in { display: grid; grid-template-columns: 1fr 1fr; }
.works__in::before { left: 50% !important; right: auto; }
.works__sticky { position: sticky; top: 110px; padding-right: 40px; }
.works__note { color: #a3a3a3; font-size: 14px; max-width: 360px; margin: 26px 0 40px; }
.works__count { font: 900 64px/1 var(--display); color: #2a2a2a; }
.works__count [data-current] { color: var(--accent); }
.works__list { display: grid; gap: clamp(36px, 5vw, 64px); padding-left: 32px; }
.work { display: block; }
.work__img { overflow: hidden; aspect-ratio: 16 / 10.6; background: #151515; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease), filter .5s; filter: saturate(.9); }
.work:hover .work__img img { transform: scale(1.05); filter: saturate(1.08); }
.work__meta {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px;
  padding-top: 16px;
}
.work__meta h3 { font: 900 32px/1 var(--display); text-transform: uppercase; }
.work__meta span { grid-row: 2; color: #9a9a9a; font-size: 13px; }
.work__meta i {
  grid-row: 1 / 3; grid-column: 2;
  font-style: normal; width: 42px; height: 42px; border: 1px solid #333; border-radius: 50%;
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.work:hover .work__meta i { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }

/* ── ПОСЛУГИ / Акордеон ── */
.services { padding: clamp(80px, 10vw, 130px) 0; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.acc { display: grid; gap: 8px; }
.acc__item { background: var(--soft); transition: background .3s; }
.acc__item.is-open { background: #efefed; }
.acc__q {
  width: 100%; display: flex; align-items: center; gap: 18px;
  text-align: left;
  padding: 22px 24px;
  font: 500 clamp(17px, 1.8vw, 22px)/1.25 var(--body);
  letter-spacing: -.02em;
}
.acc__n { font: 500 11px/1 var(--body); color: var(--accent); letter-spacing: .06em; }
.acc__plus { margin-left: auto; width: 14px; height: 14px; position: relative; flex: none; }
.acc__plus::before, .acc__plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform .4s var(--ease);
}
.acc__plus::after { transform: rotate(90deg); }
.is-open .acc__plus::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__a > div { overflow: hidden; padding: 0 24px 0 53px; }
.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a p { color: #444; max-width: 640px; padding-bottom: 14px; }
.acc__a ul { list-style: none; margin: 0; padding: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.acc__a li { font-size: 12px; font-weight: 500; background: #fff; padding: 7px 12px; }
.acc--faq .acc__q { font-size: 15px; padding: 18px 22px; }
.acc--faq .acc__a > div { padding: 0 22px; }
.acc--faq .acc__a p { padding-bottom: 20px; }

/* ── МОЇ ПРОЄКТИ ── */
.own { padding: 0 0 clamp(90px, 11vw, 140px); }
.own__title {
  display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 22px);
  font: 900 clamp(54px, 9vw, 128px)/.85 var(--display);
  text-transform: uppercase;
}
.own__pic { width: clamp(90px, 13vw, 170px); aspect-ratio: 16 / 10; overflow: hidden; display: block; transform: rotate(-4deg); }
.own__pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.own__sub { text-align: center; color: var(--muted); margin: 18px auto 52px; max-width: 420px; }
.own__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.own__card { background: #fff; padding: 26px 22px 30px; min-height: 220px; display: flex; flex-direction: column; transition: background .3s; }
.own__card:hover { background: var(--soft); }
.own__tag { font: 500 11px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: auto; padding-bottom: 40px; }
.own__card h3 { font: 900 28px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.own__card p { font-size: 13px; color: var(--muted); }

/* ── ПРОЦЕС ── */
.process { padding: clamp(80px, 10vw, 130px) 0; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.step { padding: 30px 24px 10px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--dark-line); }
.step__n { font: 900 clamp(70px, 8vw, 110px)/.8 var(--display); color: #2e2e2e; display: block; margin-bottom: 30px; transition: color .4s; }
.step:hover .step__n { color: var(--accent); }
.step h3 { font: 900 30px/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.step p { color: #a3a3a3; font-size: 14px; }

/* ── Бігучі рядки ── */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: run 40s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes run { to { transform: translateX(-50%); } }

.logos { background: var(--dark); color: #fff; border-top: 1px solid var(--dark-line); }
.logos__in { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad); display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.logos__lead { font-size: 11px; line-height: 1.35; color: #8a8a8a; }
.marquee--logos { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee--logos span { font: 800 24px/1 var(--display); text-transform: uppercase; color: #bdbdbd; padding: 0 28px; }

/* ── FAQ ── */
.faq { padding: clamp(80px, 10vw, 130px) 0; }
.faq__in { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.faq__head .title { margin-bottom: 30px; }
.faq .acc { padding-left: 32px; }

/* ── CTA ── */
.cta { padding: clamp(30px, 4vw, 50px) 0; overflow: hidden; }
.cta__link { display: block; }
.marquee--big span {
  font: 900 clamp(80px, 13vw, 180px)/.92 var(--display);
  text-transform: uppercase;
  color: #222;
  padding-right: .25em;
  transition: color .4s;
}
.marquee--big .marquee__track { animation-duration: 30s; }
.cta__link:hover .marquee--big span { color: var(--accent); }

/* ── FOOTER ── */
.footer { padding: clamp(60px, 7vw, 90px) 0 26px; border-top: 1px solid var(--dark-line); }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--dark-line); }
.footer__h { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.footer__big { display: inline-block; font: 500 clamp(26px, 3vw, 36px)/1.1 var(--body); letter-spacing: -.03em; border-bottom: 1px solid currentColor; transition: color .25s; }
.footer__big:hover, .footer__mail:hover { color: var(--accent); }
.footer__mail { display: block; margin: 14px 0 18px; color: #bdbdbd; font-size: 14px; transition: color .25s; }
.footer__txt { color: #8a8a8a; font-size: 13px; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols p { font: 500 11px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; color: #8a8a8a; margin-bottom: 16px; }
.footer__cols a { display: block; font-size: 13px; margin-bottom: 10px; transition: color .25s; }
.footer__cols a:hover { color: var(--accent); }
.footer__brand { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: end; padding: 40px 0; }
.footer__name {
  font: 900 clamp(110px, 21vw, 300px)/.78 var(--display);
  color: var(--accent);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.footer__brand .avatar { background: #161616; }
.footer__bottom { display: flex; justify-content: space-between; font-size: 12px; color: #8a8a8a; border-top: 1px solid var(--dark-line); padding-top: 22px; }
.footer__bottom a:hover { color: #fff; }

/* ── Поява при скролі ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Адаптив ── */
@media (max-width: 960px) {
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }

  .hero__top { grid-template-columns: 1fr; gap: 30px; }
  .hero__intro { padding-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }

  .works__in, .faq__in { grid-template-columns: 1fr; }
  .works__in::before { display: none; }
  .works__sticky { position: static; padding-right: 0; margin-bottom: 40px; }
  .works__count { display: none; }
  .works__list, .faq .acc { padding-left: 0; }
  .faq__head { margin-bottom: 30px; }

  .own__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--dark-line); }

  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-template-columns: 1fr; }
  .guides span:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .hero__intro { grid-template-columns: 96px 1fr; gap: 16px; }
  .avatar--sm { width: 96px; height: 112px; font-size: 84px; }
  .hero__roles span:nth-child(2) { display: none; }
  .stage { aspect-ratio: 4 / 4.2; }
  .browser { width: 88%; }
  .stage__me { width: 46%; height: 70%; left: 0; }
  .stage__badge { right: 4%; bottom: 4%; padding: 8px 12px 8px 10px; }
  .stage__badge b { font-size: 34px; }
  .stage__badge span { font-size: 10px; }
  .float { width: 118px; }
  .f1 { left: -2%; } .f2 { right: -2%; } .f3 { left: 0; } .f4 { right: 0; }
  .about__in { min-height: 640px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 22px 12px 0 0; }
  .stat:nth-child(even) { padding-left: 14px; }
  .row-head { flex-direction: column; align-items: start; }
  .acc__q { padding: 18px 16px; gap: 12px; }
  .acc__a > div { padding: 0 16px 0 16px; }
  .own__title { flex-wrap: wrap; }
  .own__pic { order: 3; }
  .own__grid, .steps { grid-template-columns: 1fr; }
  .own__card { min-height: 0; }
  .own__tag { padding-bottom: 22px; }
  .hero__huge { font-size: 14.2vw; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--dark-line); }
  .step__n { margin-bottom: 16px; }
  .logos__in { grid-template-columns: 1fr; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero__huge .ch { opacity: 1; transform: none; }
}

/* ── Роботи: тип проєкту і що зроблено ── */
.work__kind {
  margin-top: 18px;
  font: 500 11px/1 var(--body);
  text-transform: uppercase; letter-spacing: .06em;
  color: #8a8a8a;
  display: inline-flex; align-items: center; gap: 8px;
}
.work__kind--live { color: #fff; }
.work__kind--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18);
}
.work__tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work__tags li { font-size: 12px; color: #cfcfcf; border: 1px solid #2a2a2a; padding: 6px 11px; transition: border-color .3s; }
.work:hover .work__tags li { border-color: #3a3a3a; }
a.stage__badge { transition: transform .4s var(--ease); }
a.stage__badge:hover { transform: translateY(-3px); }
.stage__badge b { white-space: nowrap; }

/* ── Персонаж ── */
.avatar--sm { background: var(--accent); }
.avatar--sm img { object-position: 50% 8%; }
.stage__me { width: 40%; height: auto; left: 2%; z-index: 2; }
.stage__me img { width: 100%; height: auto; object-fit: initial; display: block; }
.bubble {
  position: absolute; top: 20%; right: -18%;
  background: #fff; color: var(--ink);
  font: 600 15px/1 var(--body);
  padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }
.footer__brand .avatar { background: var(--accent); display: flex; align-items: flex-end; justify-content: center; }
.footer__brand .avatar img { object-fit: contain; object-position: bottom center; height: 100%; }
.footer__brand .avatar.is-empty { display: grid; place-items: center; }
.pose { margin-top: 30px; max-width: 320px; }
.pose img { width: 100%; height: auto; }
.pose--think { max-width: 300px; margin-top: 40px; }
@media (max-width: 960px) { .pose { display: none; } }
@media (max-width: 600px) { .stage__me { width: 50%; } .bubble { font-size: 12px; padding: 8px 11px; } }
.hero__name { font-size: clamp(50px, 6.6vw, 96px); }

/* ═════════ FX: дрібні сюрпризи ═════════ */
/* прогрес скролу */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* заголовки — слова з-під маски */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .04em; margin: -.08em 0 -.04em; }
.split .w__i { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.split.is-up .w__i { transform: none; }

/* фото — шторка */
.curtain { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.curtain img { transform: scale(1.25); transition: transform 1.6s var(--ease), filter .5s; }
.curtain.is-open { clip-path: inset(0 0 0 0); }
.curtain.is-open img { transform: scale(1); }
.work:hover .curtain.is-open img { transform: scale(1.05); }

/* іскри при кліку */
.spark {
  position: fixed; z-index: 9999; width: 9px; height: 2px; margin: -1px 0 0 -4px;
  background: var(--accent); border-radius: 2px; pointer-events: none;
  transform: rotate(var(--rot));
  animation: spark .55s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scaleX(.2); opacity: 0; } }

/* курсор */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; transition: opacity .3s; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center; }
.cur-ring::before { content: ""; position: absolute; inset: 0; border: 1px solid #fff; border-radius: 50%; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.cur-ring span { position: relative; font: 600 12px/1 var(--body); color: #fff; white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.cur-ring.is-link::before { transform: scale(1.7); background: #fff; }
.cur-ring.is-work { mix-blend-mode: normal; }
.cur-ring.is-work::before { transform: scale(2.7); background: var(--accent); border-color: var(--accent); }
.cur-ring.is-work span { opacity: 1; transform: none; }
html.has-cursor .cur-ring.is-work ~ .cur-dot, .cur-ring.is-work + .cur-dot { opacity: 0; }

/* магніти */
.magnet { transition: translate .35s var(--ease), color .25s, gap .3s var(--ease), background .3s, border-color .3s, transform .4s var(--ease); }

/* хвиля букв */
.hero__huge.wave-on .ch { transition: transform .35s var(--ease), color .3s !important; transition-delay: 0s !important; }
.footer__name .ch--f { display: inline-block; transition: transform .35s var(--ease), color .3s; transform-origin: bottom; }
.hero__huge .ch { transform-origin: bottom; }
.footer__name .ch--f:nth-child(n) { will-change: transform; }

/* персонаж і аватарки — 3D-нахил */
.stage__me img { transition: transform .5s var(--ease); transform-origin: bottom center; }
.avatar { transition: transform .4s var(--ease); }
