/* =========================================================
   ЮРИЙ БАРДАШ — сайт-визитка
   ========================================================= */
:root {
  --bg: #08070c;
  --bg-2: #0e0a16;
  --panel: #13101d;
  --fg: #f4f2f8;
  --muted: #9b94ad;
  --dim: #655d78;
  --line: rgba(244, 242, 248, .10);
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;

  --pad: clamp(18px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --f-display: "Oswald", "Inter Tight", Impact, sans-serif;
  --f-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }
iframe { border: 0; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
body.locked { overflow: hidden; }

.grain {
  position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.progress { position: fixed; z-index: 200; inset: 0 0 auto 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Типографика ---------- */
.display {
  margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 6.4vw, 92px); line-height: .98; letter-spacing: -.01em;
}
.outline { color: transparent; -webkit-text-stroke: .018em var(--accent); }
.eyebrow, .nav, .footer, .work-tags, .card-tags, .back-top, .contacts, .contact-row,
.link-cta, .work-cta, .modal-title {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { margin: 0 0 clamp(18px, 3vw, 34px); color: var(--dim); }
.eyebrow--accent { color: var(--accent-2); }
.accent { color: var(--accent-2); }
.section-lead { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; max-width: 46ch; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; z-index: 100; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 16px;
  background: linear-gradient(180deg, rgba(8, 7, 12, .92), rgba(8, 7, 12, 0));
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-brand { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .14em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--fg); }
.nav-burger { display: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; align-items: flex-end; padding: 90px var(--pad) calc(40px + env(safe-area-inset-bottom));
}
.menu nav { display: grid; gap: 2px; width: 100%; }
.menu a {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 48px); letter-spacing: -.01em; line-height: 1.05;
}

/* ---------- 1. ГЕРОЙ ----------
   Слои: свечение (0) → «ЮРИЙ» (1) → портрет (2) → «БАРДАШ» (3) → подписи (4) */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(58% 52% at 64% 30%, rgba(124, 77, 255, .4) 0, rgba(124, 77, 255, 0) 70%),
    radial-gradient(95% 70% at 46% 108%, rgba(139, 92, 246, .18) 0, rgba(8, 7, 12, 0) 72%),
    var(--bg);
}
.hero-beam {
  position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 26% at 70% -4%, rgba(196, 181, 253, .3) 0, transparent 72%),
    linear-gradient(180deg, rgba(8, 7, 12, .5) 0, transparent 20%),
    linear-gradient(0deg, rgba(8, 7, 12, .8) 0, transparent 42%);
}

/* Портрет: рамка задана жёстко по пропорциям снимка — к ней же привязана маска подкраски */
.hero-figure {
  position: absolute; z-index: 2; margin: 0;
  top: clamp(52px, 8vh, 112px);
  right: clamp(-24px, 2vw, 60px);
  height: min(74svh, 780px);
  aspect-ratio: 731 / 716;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, rgba(0, 0, 0, .4) 91%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, rgba(0, 0, 0, .4) 91%, transparent 100%);
  animation: rise 1.5s var(--ease) both;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}
.hero-photo, .hero-stub {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04);
}
.hero-stub { display: none; opacity: .32; filter: blur(26px); }
.hero-figure.no-photo .hero-photo { display: none; }
.hero-figure.no-photo .hero-stub { display: block; }

.hero-copy {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad);
  bottom: clamp(74px, 13vh, 150px);
}
.hero-copy > .hero-name { margin-bottom: max(24px, .22em); }
.hero-eyebrow {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad);
  top: clamp(86px, 15vh, 140px); margin: 0;
}
.hero-name {
  margin: 0 0 clamp(16px, 2.2vw, 26px);
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 13vw, 170px);   /* точное значение подставляет скрипт */
  line-height: .82; letter-spacing: -.015em;
  display: grid; justify-items: start;
}
.hero-name span { position: relative; display: block; white-space: nowrap; }
.hero-name-back { z-index: 1; color: var(--fg); }
.hero-name-front { z-index: 3; color: var(--accent); text-shadow: 0 10px 60px rgba(139, 92, 246, .5); }
.hero-lead {
  position: relative; z-index: 4; margin: 0; color: var(--fg); opacity: .9;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.5; max-width: 36ch;
}


/* ---------- БЕГУЩАЯ СТРОКА ---------- */
.ticker {
  --fx-marquee-size: clamp(24px, 3.4vw, 50px);
  --fx-marquee-color: var(--fg);
  --fx-marquee-bg: var(--bg);
  --fx-marquee-sep: var(--accent);
  --fx-marquee-stroke: 1px;
  --fx-marquee-line: var(--line);
  --fx-marquee-pad: clamp(16px, 2.4vw, 26px);
  position: relative; z-index: 5; background: var(--bg);
}
.ticker .fx-marquee__item { font-family: var(--f-display); font-weight: 700; letter-spacing: -.005em; }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(72px, 12vw, 160px) var(--pad); overflow: hidden; }
.section + .section { border-top: 1px solid var(--line); }
.ghost {
  position: absolute; top: clamp(16px, 3vw, 44px); right: calc(var(--pad) * -.35); z-index: 0; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(60px, 11vw, 160px); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(139, 92, 246, .09);
}
.section > :not(.ghost) { position: relative; z-index: 1; }

/* ---------- 2. ПРОЕКТЫ ---------- */
.works-head { display: grid; gap: clamp(18px, 3vw, 28px); margin-bottom: clamp(40px, 6vw, 72px); }
.work-list { border-top: 1px solid var(--line); }
.work {
  position: relative; display: grid; gap: 14px clamp(20px, 3vw, 44px);
  grid-template-columns: 1fr; align-items: start;
  padding: clamp(26px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.work::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(139, 92, 246, .12), rgba(139, 92, 246, 0) 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.work:hover::before { opacity: 1; }
.work-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); padding-top: .55em; }
.work-title {
  margin: 0 0 8px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 48px); line-height: 1; letter-spacing: -.01em;
  transition: color .35s var(--ease);
}
.work:hover .work-title { color: var(--accent-2); }
.work-tags { margin: 0; color: var(--dim); line-height: 1.7; }
.work-text { margin: 0 0 18px; color: var(--muted); max-width: 46ch; }

.work-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: min(100%, 320px); padding: 14px 16px;
  border: 1px solid rgba(139, 92, 246, .45); border-radius: 4px; color: var(--fg);
  background: rgba(139, 92, 246, .08);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.work-cta i { font-style: normal; font-size: 9px; color: var(--accent-2); }
.work-cta:hover, .work:hover .work-cta { background: rgba(139, 92, 246, .22); border-color: var(--accent); }

/* Превью клипа: кадр с YouTube, под курсором — беззвучный проигрыш */
.clip-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.clip-thumb img, .clip-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-thumb iframe {
  transform: scale(1.4); pointer-events: none; opacity: 0;   /* если ролик не подгрузился — остаётся кадр */
  transition: opacity .45s var(--ease);
}
.clip-thumb iframe.is-ready { opacity: 1; }
.clip-thumb img {
  filter: grayscale(1) contrast(1.05) brightness(.82);
  transition: filter .5s var(--ease), transform .7s var(--ease), opacity .4s var(--ease);
}
.clip-thumb::after {
  content: ""; position: absolute; inset: 0; background: rgba(124, 77, 255, .38);
  mix-blend-mode: color; transition: opacity .5s var(--ease);
}
.work:hover .clip-thumb img, .card:hover .clip-thumb img { filter: none; transform: scale(1.05); }
.work:hover .clip-thumb::after, .card:hover .clip-thumb::after { opacity: 0; }
.clip-thumb.is-playing img, .clip-thumb.is-playing .clip-play { opacity: 0; }

.clip-play {
  position: absolute; inset: 0; z-index: 2; margin: auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 8, 16, .4);
  display: grid; place-items: center;
  transition: opacity .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.clip-play::before {
  content: ""; margin-left: 3px;
  border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.work:hover .clip-play, .card:hover .clip-play { background: var(--accent); transform: scale(1.08); }

/* ---------- 3. МЕТОД ---------- */
.method-head { display: grid; gap: clamp(20px, 3vw, 32px); margin-bottom: clamp(44px, 7vw, 84px); }
.steps { display: grid; gap: clamp(26px, 3vw, 44px); }
.step { position: relative; border-top: 1px solid var(--line); padding-top: clamp(18px, 2.4vw, 28px); }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent);
  transition: width 1.1s var(--ease) .1s;
}
.step.in::before { width: 100%; }
.step-num {
  display: block; margin-bottom: clamp(10px, 1.4vw, 20px);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 4.2vw, 64px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  transition: color .45s var(--ease);
}
.step:hover .step-num { color: var(--accent); }
.step h3 {
  margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 23px); line-height: 1.2; letter-spacing: .01em;
}
.step p { margin: 0; color: var(--muted); max-width: 40ch; }
.method-foot { margin: clamp(36px, 5vw, 64px) 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); max-width: 54ch; }

/* ---------- 4. СЕГОДНЯ ---------- */
.today { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 55%, var(--bg) 100%); }
.today-head { display: grid; gap: clamp(16px, 2.4vw, 26px); margin-bottom: clamp(36px, 5vw, 64px); }
.today-grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.card:hover { border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .05); }
.card[data-yt] { cursor: pointer; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.3) contrast(1.04) brightness(.82);
  transition: filter .5s var(--ease), transform .7s var(--ease);
}
.card:hover .card-media img { filter: none; transform: scale(1.04); }
.card-media.clip-thumb { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: clamp(22px, 2.8vw, 38px); }
.card-tags { margin: 0 0 12px; color: var(--accent-2); }
.card-title {
  margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.02; letter-spacing: -.005em;
}
.card-text { margin: 0 0 24px; color: var(--muted); max-width: 46ch; }
.link-cta { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); cursor: pointer; }
.link-cta i { font-style: normal; color: var(--accent-2); transition: transform .35s var(--ease); }
.link-cta:hover i { transform: translateX(3px); }
.play-cta i { font-size: 9px; }

/* ---------- 5. ФИНАЛ ---------- */
/* блок прижат плотнее остальных: кадр и так растворяется, лишние поля дают пустоту */
.final { padding-block: clamp(36px, 5vw, 72px); }
.final-grid { display: grid; gap: clamp(26px, 4vw, 60px); align-items: center; }
.quote p {
  margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.01em;
}
.final-copy .section-lead { margin-top: clamp(20px, 3vw, 32px); }

/* Снимок не вырезан: виньетка уводит светлый студийный фон в фон страницы */
.final-figure {
  position: relative; margin: 0; aspect-ratio: 1 / 1;
  /* кадр растворяется к краям — вырезать фигуру по контуру не нужно */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 52% 52%, #000 40%, rgba(0, 0, 0, .58) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 52% 52%, #000 40%, rgba(0, 0, 0, .58) 74%, transparent 100%);
}
.final-figure.no-photo { display: none; }
.final-grid:has(.no-photo) { grid-template-columns: minmax(0, 1fr); }
.final-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  filter: contrast(1.04) brightness(.92);
}
.final-figure::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse closest-side at 52% 52%,
    rgba(8, 7, 12, 0) 30%, rgba(8, 7, 12, .3) 62%, rgba(8, 7, 12, .8) 100%);
}

.back-top {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(26px, 4vw, 44px); padding-bottom: 7px;
  border-bottom: 1px solid rgba(139, 92, 246, .55); color: var(--muted);
  transition: color .3s var(--ease);
}
.back-top:hover { color: var(--fg); }
.back-top i { font-style: normal; color: var(--accent); transition: transform .4s var(--ease); }
.back-top:hover i { transform: translateY(-4px); }

/* ---------- Плеер клипов ---------- */
.modal {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(5, 4, 9, .94); backdrop-filter: blur(12px);
  animation: fade-in .3s ease both;
}
.modal-inner { width: min(100%, 1180px); }
.modal-title { margin: 0 0 14px; color: var(--accent-2); }
.modal-foot { margin: 14px 0 0; color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.modal-foot a { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.modal-video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-close {
  position: absolute; top: clamp(14px, 2.4vw, 30px); right: clamp(14px, 2.4vw, 30px);
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--fg); transition: background .3s, border-color .3s;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Кнопка музыки ---------- */
.sound {
  position: fixed; z-index: 150; left: var(--pad);
  bottom: max(20px, calc(10px + env(safe-area-inset-bottom)));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(13, 10, 22, .72); backdrop-filter: blur(8px); color: var(--muted);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.sound:hover { color: var(--fg); border-color: rgba(139, 92, 246, .5); background: rgba(24, 16, 44, .85); }
.sound-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-eq i { width: 2px; height: 3px; background: var(--accent); border-radius: 1px; }
/* полоски прыгают, только когда трек играет */
.sound.is-on .sound-eq i { animation: eq .9s ease-in-out infinite; }
.sound.is-on .sound-eq i:nth-child(2) { animation-delay: .18s; }
.sound.is-on .sound-eq i:nth-child(3) { animation-delay: .36s; }
.sound.is-on .sound-eq i:nth-child(4) { animation-delay: .54s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* ---------- Контакты ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.contacts {
  position: fixed; z-index: 160; right: var(--pad);
  bottom: max(20px, calc(10px + env(safe-area-inset-bottom)));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.contacts-list { display: grid; gap: 8px; justify-items: end; }
.contacts-list a {
  display: block; padding: 10px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(13, 10, 22, .9); backdrop-filter: blur(8px);
  color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  animation: pop .32s var(--ease) both;
}
.contacts-list a:hover { color: var(--fg); border-color: rgba(139, 92, 246, .55); background: rgba(24, 16, 44, .95); }
.contacts-list li:nth-child(2) a { animation-delay: .05s; }
.contacts-list li:nth-child(3) a { animation-delay: .1s; }
.contacts-list li:nth-child(4) a { animation-delay: .15s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.contacts-toggle {
  position: relative; align-self: flex-end;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--accent); box-shadow: 0 10px 30px rgba(124, 77, 255, .35);
  transition: transform .35s var(--ease), background .3s var(--ease);
}
.contacts-toggle:hover { transform: scale(1.06); }
.contacts-ico { width: 24px; height: 24px; }
.contacts-x { position: absolute; font-size: 17px; opacity: 0; transition: opacity .25s var(--ease); }
.contacts.is-open .contacts-ico { opacity: 0; }
.contacts.is-open .contacts-x { opacity: 1; }
.contacts.is-open .contacts-toggle { background: var(--panel); border: 1px solid var(--line); box-shadow: none; }

/* те же ссылки строкой в финальном блоке */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: clamp(22px, 3.4vw, 34px); }
.contact-row a { color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid rgba(139, 92, 246, .45); transition: color .3s var(--ease); }
.contact-row a:hover { color: var(--fg); }
.contact-row i { font-style: normal; color: var(--accent); }

/* ---------- Футер ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: clamp(26px, 4vw, 40px) var(--pad) calc(clamp(26px, 4vw, 40px) + 72px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--dim);
}

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }

@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Планшет ---------- */
@media (min-width: 720px) {
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .works-head, .method-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 60px); }
  .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
  .final-copy { grid-area: 1 / 1; }
  .final-figure { grid-area: 1 / 2; }
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
}

/* ---------- Десктоп ---------- */
@media (min-width: 1000px) {
  .work { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 340px) 230px; gap: 0 clamp(24px, 2.8vw, 48px); }
  .work .clip-thumb { align-self: center; }
}

/* ---------- Мобильные ---------- */
@media (max-width: 719px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero-figure { height: auto; width: min(86vw, 420px); right: 50%; translate: 50% 0; top: clamp(150px, 21vh, 210px); }
  
/* На тач-устройствах наведения нет — кадры показываем почти без заливки */
@media (hover: none) {
  .clip-thumb img { filter: grayscale(.45) contrast(1.02) brightness(.95); }
  .clip-thumb::after { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .step.in::before { width: 100%; }
}
