/* Шрифты сайта (с 2026-11-18): PP Neue Montreal (свои файлы, @font-face ниже, блок «ОСНОВНОЙ ШРИФТ»),
   Instrument Serif и DM Mono (Google Fonts). Satoshi, Manrope и Geist больше не используются */

/* ==========================================================================
   Elena Posokhova — Portfolio
   Чистая вёрстка (референс rachelchen.tech) + шрифты, цвета и градиенты Елены
   ========================================================================== */

:root {
  /* Цвета */
  --bg: #FCFBFF;
  --surface: #FFFFFF;
  --ink: #212330;
  --ink-strong: #171717;
  --muted: #888888;
  --muted-2: #666666;
  --line: rgba(33, 35, 48, 0.08);
  --accent: #FF5A40;
  --warm: #F8F6F3;
  --skill-bg: #F7F5FD; /* фон блока Skill Set — светлый сиреневато-серый (выбрала Елена) */
  /* градиенты карточек Skills (Libra, Virgo, Capricorn, Cancer, Aquarius) — их же используют заглушки в hero */
  --grad-1: linear-gradient(180deg, #3a6ee0 0%, #aac3ee 22%, #f2dcef 42%, #f3a7d6 58%, #ff6a2a 82%, #ff4d10 100%);
  --grad-2: linear-gradient(180deg, #f4f6fb 0%, #9cc4ef 18%, #5b9be8 30%, #f1e7c5 50%, #f7f4f6 64%, #7c8ff0 82%, #c9c3f3 100%);
  --grad-3: linear-gradient(180deg, #ecebd8 0%, #8fa3a1 22%, #3a4a5e 42%, #3a2f8e 62%, #7c78e6 82%, #b6b0f4 100%);
  --grad-4: linear-gradient(180deg, #7d7a9c 0%, #d9d4e4 18%, #eef1f2 32%, #ff8fb0 50%, #f0306e 66%, #c0378c 82%, #6b44a0 100%);
  --grad-5: linear-gradient(180deg, #eef5fc 0%, #6fb3f0 20%, #2c78e0 40%, #1f4fd0 58%, #1c2fa8 74%, #1f55c8 90%, #1c6ad6 100%);
  --frame-bg: #F7F7F7; /* фон рамочек в кейсах = светло-серый фон внутри видео, чтобы видео и рамка были одним блоком */
  --lime: #EFFFB5;
  --lavender: #EDE4FF;
  --peach: #FFE3D6;
  --sky: #EDF3FF;

  /* Шрифты: всё на PP Neue Montreal, антиква Instrument Serif, цифры и подписи таблиц — DM Mono */
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --font-label: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --font-h2: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;

  /* Сетка */
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(120, 120, 120, .12), 0 12px 32px -12px rgba(120, 120, 120, .25);

  /* Движение */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.25, .1, .25, 1);
  --dur: .6s;
}

*, *::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-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Едва заметная зернистость фона */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
strong, b { font-weight: 600; color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.03em; }
.label {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
}
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   Мягкие градиенты (фоновые «облака»)
   -------------------------------------------------------------------------- */
.glow {
  position: absolute; inset: 0 0 auto 0; height: 900px;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.glow span {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .75;
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.glow span:nth-child(1) { width: 520px; height: 420px; left: -120px; top: -140px; background: var(--lavender); }
.glow span:nth-child(2) { width: 460px; height: 380px; right: -80px; top: -60px; background: var(--peach); animation-delay: -6s; }
.glow span:nth-child(3) { width: 380px; height: 300px; left: 40%; top: 220px; background: var(--lime); opacity: .45; animation-delay: -12s; }
@keyframes drift {
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-serif); font-size: 22px; color: var(--accent); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.logo img { width: 18px; height: 18px; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; color: var(--muted-2); transition: color .2s; }
/* Подчёркивание при наведении: линия вырастает слева направо, при уходе курсора — уезжает вправо */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; } }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-strong); }
@media (max-width: 640px) {
  .nav { gap: 18px; font-size: 13px; }
  .nav .hide-sm { display: none; }
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease-out), background .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink-strong); color: #fff; }
.btn-dark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(239, 255, 181, .25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #F04A30; }
/* Download CV: чёрная кнопка с мигающей оранжевой точкой слева; при наведении кнопка становится оранжевой, точка — белой */
.btn-cv { gap: 10px; background: var(--ink-strong); color: #fff; transition: transform .3s var(--ease-out), background .35s var(--ease-soft); }
.btn-cv:hover { background: var(--accent); }
.cv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: cv-blink 1.6s ease-in-out infinite; transition: background .35s var(--ease-soft); }
.btn-cv:hover .cv-dot { background: #fff; }
@keyframes cv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .cv-dot { animation: none; } }

/* Курсор — оранжевая круглая точка (только для мыши; на телефонах и планшетах обычное касание).
   Над ссылками и кнопками точка чуть крупнее */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-visible { opacity: 1; }
.cursor span {
  display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent);
  transition: transform .25s var(--ease-out);
}
.cursor.is-link span { transform: scale(1.8); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: rgba(33, 35, 48, .05); }
.btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Главная: шапка и hero (референс avecanni.studio)
   -------------------------------------------------------------------------- */
.home .topbar { position: fixed; left: 0; right: 0; transition: background .4s, color .4s, border-color .3s; }
.topbar-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--gutter);
}
.nav-center { justify-self: center; }
.topbar-cta {
  justify-self: end; display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent;
  font-size: 14px; color: var(--ink-strong); transition: color .25s, border-color .25s;
}
/* кнопка только с обводкой; при наведении обводка и текст оранжевые */
.topbar-cta:hover { color: var(--accent); }
.logo { transition: color .3s var(--ease-soft); }
@media (max-width: 640px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .nav-center { justify-self: end; }
  .topbar-cta { display: none; }
}

.reel-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  /* Светлый фон под холмами (он же — если нет WebGL) */
  background: linear-gradient(180deg, #F1F3F8 0%, #E6EAF1 70%, var(--bg) 100%);
}
/* Видео для hero, когда будет готово: заполняет весь экран */
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* «Обо мне» слева, Experience справа; одинаковые широкие поля по бокам */
.statement {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 64px; align-items: end;
  padding: clamp(80px, 10vw, 140px) clamp(24px, 10vw, 200px) 0;
}
.statement-text {
  /* Пробуем антикву Instrument Serif; она визуально мельче гротеска, поэтому кегль чуть больше */
  font-family: var(--font-serif); font-size: clamp(32px, 3.4vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink-strong); margin: 0; max-width: 640px;
}
.statement-foot { margin-top: 20px; }
.statement-foot p { color: var(--muted-2); max-width: 520px; margin: 0; }
.hero-actions { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }

/* Experience: компактный список, только годы и компании */
.timeline { font-size: 15px; font-family: var(--font-ui); }
.timeline .label { display: block; margin-bottom: 10px; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .co { color: var(--ink-strong); text-align: right; }
.timeline li.now .yr::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
}
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; gap: 48px; }
}
.home #work { padding: clamp(96px, 12vw, 160px) clamp(24px, 10vw, 200px) 0; scroll-margin-top: 0; }
/* Меню Projects · Skills · Showreel — по центру, на всю ширину блока «Hey, I'm Elena» */
.home .tabs-bar { position: static; justify-content: center; grid-column: 1 / -1; margin: clamp(64px, 8vw, 112px) 0 0; }

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   Вкладки Projects · Skills · Showreel
   -------------------------------------------------------------------------- */
.tabs-bar {
  position: sticky; top: 72px; z-index: 40;
  display: flex; justify-content: center;
  margin: 24px 0 40px; pointer-events: none;
}
.tabs {
  pointer-events: auto;
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 24px -16px rgba(33, 35, 48, .3);
  position: relative;
}
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; color: var(--muted);
  transition: color .3s;
}
.tab svg { width: 16px; height: 16px; }
.tab.is-on { color: var(--ink-strong); }
.tab-pill { opacity: 0; }
.tabs.has-pill .tab-pill { opacity: 1; }
.tab-pill {
  position: absolute; z-index: 0; top: 4px; height: 40px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px -4px rgba(0,0,0,.12);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
@media (max-width: 480px) { .tab { padding: 0 14px; } }

.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

/* Проекты */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.project { display: block; }
.project-media {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: var(--warm);
}
.project-media video, .project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.project:hover .project-media video, .project:hover .project-media img { transform: scale(1.03); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; align-items: baseline; }
.project-title { font-size: 20px; font-weight: 500; color: var(--ink-strong); }
.project-title .sep { color: var(--muted); margin: 0 6px; font-weight: 400; }
.project-title .status { color: var(--muted); font-weight: 400; }
.project-desc { margin-top: 4px; color: var(--muted-2); font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.tag {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(33, 35, 48, .05); color: var(--muted-2);
}
.project-arrow {
  position: absolute; right: 16px; bottom: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .3s, transform .5s var(--ease-out);
}
.project:hover .project-arrow { opacity: 1; transform: none; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; gap: 40px; } }

/* Навыки (лесенка, референс jackelder.design) */
.skills-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.skills-head h2 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; color: var(--ink-strong); }
.skills-head p { color: var(--muted-2); align-self: end; max-width: 420px; }
/* Лесенка: каждая карточка на полшага ниже и правее предыдущей */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 15vw, 190px); }
.skill {
  position: relative; grid-row: span 2;
  border: 1px solid var(--line); background: rgba(255,255,255,.5);
  margin: -1px 0 0 -1px;
  padding: 18px 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.skill:nth-child(1) { grid-area: 1 / 1 / span 2; }
.skill:nth-child(2) { grid-area: 2 / 2 / span 2; }
.skill:nth-child(3) { grid-area: 3 / 3 / span 2; }
.skill:nth-child(4) { grid-area: 4 / 2 / span 2; }
.skill:nth-child(5) { grid-area: 5 / 1 / span 2; }
.skill:nth-child(6) { grid-area: 6 / 2 / span 2; }
.skill .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); position: relative; z-index: 1; }
.skill h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; color: var(--ink-strong); position: relative; z-index: 1; }
.skill p { font-size: 14px; color: var(--muted-2); margin: 8px 0 0; max-width: 340px; position: relative; z-index: 1; }
.skill video {
  position: absolute; left: 22px; right: 22px; top: 44px; height: 46%; width: calc(100% - 44px);
  object-fit: cover; border-radius: var(--radius-sm);
  opacity: .9; filter: saturate(.85);
  transition: opacity .5s, filter .5s, transform .8s var(--ease-out);
}
.skill:hover video, .skill.is-inview video { opacity: 1; filter: none; transform: scale(1.02); }
.skill h3 { font-size: clamp(22px, 2.2vw, 30px); }
@media (max-width: 760px) {
  .skills-head { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .skill, .skill:nth-child(n) { grid-area: auto; aspect-ratio: 4 / 3.6; }
}

/* Шоурил */
.showreel {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(60% 80% at 20% 20%, var(--lavender), transparent 70%),
    radial-gradient(50% 70% at 85% 30%, var(--peach), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, var(--lime), transparent 70%),
    var(--warm);
  display: grid; place-items: center;
}
.showreel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel-empty { text-align: center; color: var(--muted-2); }
.showreel-empty .serif { font-size: clamp(32px, 4vw, 52px); color: var(--ink-strong); display: block; }
.play {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  display: grid; place-items: center; margin: 0 auto 16px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Секции главной
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 12vw, 140px) 0 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
/* Номер и название раздела одним стилем, чтобы цифры не выбивались */
.section-head .num, .section-head h2 { font-family: var(--font-label); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }

/* About */
/* Поля слева и справа такие же, как у Projects и Skill Set; текст слева, видео справа (как у jackelder.design) */
.about-block { padding: clamp(80px, 12vw, 140px) clamp(24px, 10vw, 200px) 0; }
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 38%); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-media { aspect-ratio: 3 / 2; }
.about-media .mask-frame { border-radius: var(--radius); overflow: hidden; background: var(--warm); }
.about-media video { width: 100%; height: 100%; object-fit: cover; }
/* Крупная фраза About — как «Work where motion…» (.work-title) */
.about-text .lead { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); max-width: 680px; margin: 0 0 .6em; }
/* Мелкий текст About — как подзаголовок под «Hey, I'm Elena…» (.statement-foot p): Satoshi 17 px, серый */
.about-text .about-sub { color: var(--muted-2); max-width: 520px; margin: 0 0 1.2em; } /* воздух между абзацами */
.about-text .lead + .about-sub { margin-top: clamp(40px, 8vw, 140px); } /* большой воздух под заголовком, как у jackelder.design */
.about-text > :last-child { margin-bottom: 0; }
.about-text .lead .soft { color: var(--muted); }
@media (max-width: 860px) { .about-row { grid-template-columns: 1fr; gap: 32px; } .about-media { aspect-ratio: 4 / 3; } }

/* My Experience: слева заголовок, справа таблица Role / Company / Year (референс jackelder.design).
   Строка — кнопка: по клику плавно раскрывается описание; при наведении текст строки оранжевый */
.exp { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.6fr); gap: 48px; margin-top: clamp(96px, 10vw, 160px); align-items: start; }
.exp-title { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); margin: 0; }
.exp-headrow, .exp-row { display: grid; grid-template-columns: 1.15fr 1fr 120px; gap: 16px; align-items: center; }
.exp-headrow { padding-bottom: 12px; border-bottom: 1px solid rgba(33, 35, 48, .14); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-item { border-bottom: 1px solid rgba(33, 35, 48, .14); }
.exp-row { width: 100%; padding: 28px 0; text-align: left; color: var(--ink-strong); }
.exp-role, .exp-co { font-family: var(--font-h2); font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.exp-yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-strong); }
.exp-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.exp-panel > div { overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr 120px; column-gap: 16px; }
/* описание по сетке строки: начинается под колонкой Company и идёт до правого края таблицы */
.exp-panel p { grid-column: 2 / -1; }
.exp-panel p { margin: 0; padding: 0 0 10px; color: var(--muted-2); opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease-soft), transform .5s var(--ease-out); }
.exp-panel p:last-child { padding-bottom: 28px; }   /* пункты описания — отдельными строками */
.exp-item.is-open .exp-panel { grid-template-rows: 1fr; }
.exp-item.is-open .exp-panel p { opacity: 1; transform: none; transition-delay: .1s; }
@media (hover: hover) { .exp-row:hover .exp-role, .exp-row:hover .exp-co, .exp-row:hover .exp-yr { color: var(--accent); } }
.exp-role, .exp-co, .exp-yr { transition: color .3s var(--ease-soft); }
@media (max-width: 860px) {
  .exp { grid-template-columns: 1fr; gap: 24px; }
  .exp-headrow { display: none; }
  .exp-list { border-top: 1px solid rgba(33, 35, 48, .14); }
  /* на телефоне: роль и годы в первой строке, компания под ролью */
  .exp-row { grid-template-columns: 1fr auto; grid-template-areas: "role yr" "co yr"; row-gap: 4px; padding: 20px 0; }
  .exp-role { grid-area: role; } .exp-co { grid-area: co; color: var(--muted-2); font-size: 16px; } .exp-yr { grid-area: yr; }
  .exp-panel p:last-child { padding-bottom: 20px; }
  .exp-panel > div { grid-template-columns: 1fr; } .exp-panel p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .exp-panel, .exp-panel p { transition: none; }
}

/* Появление «окном» (по jackelder.design): сначала узкая полоска сверху по центру,
   затем рамка раскрывается вниз и в стороны до полного кадра; само видео не растягивается.
   Обрезается только внутренняя .mask-frame: внешний блок остаётся «видимым» для браузера,
   иначе он не замечает, что блок на экране, и не запускает ни раскрытие, ни загрузку видео */
.mask-frame { width: 100%; height: 100%; clip-path: inset(0 40% 100% 40% round var(--radius)); transition: clip-path 1s var(--ease-in-out); }
.reveal-mask.is-in .mask-frame { clip-path: inset(0 0 0 0 round var(--radius)); }
@media (prefers-reduced-motion: reduce) {
  .mask-frame { clip-path: none; opacity: 0; transition: opacity .4s linear; }
  .reveal-mask.is-in .mask-frame { opacity: 1; }
}

/* Skill Set: заголовок сверху, под ним горизонтальная сетка 5 × 2 из квадратов (грид из Figma).
   Карточки шахматкой: 01, 03, 05 в нижнем ряду, 02 и 04 в верхнем; пустые клетки встают в оставшиеся места */
.skillset {
  margin-top: clamp(120px, 14vw, 220px); /* больше воздуха после About */
  padding: clamp(72px, 9vw, 128px) clamp(24px, 10vw, 200px);
  background: var(--skill-bg);
}
.skillset-intro { margin-bottom: 56px; }
.skillset-intro .section-head { margin-bottom: 20px; }
/* Подпись «01 Projects» над «Work where motion…» — с теми же отступами, что «03 Skill Set» */
.work-head { margin: 0 0 20px; }
.work-head + .work-title { margin-top: 0; }
.skillset-title { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); margin: 0; }
.skillset-sub { color: var(--muted-2); max-width: 420px; margin: 24px 0 0; }
.skillset-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.skillset-card:nth-child(1) { grid-area: 2 / 1; }
.skillset-card:nth-child(2) { grid-area: 1 / 2; }
.skillset-card:nth-child(3) { grid-area: 2 / 3; }
.skillset-card:nth-child(4) { grid-area: 1 / 4; }
.skillset-card:nth-child(5) { grid-area: 2 / 5; }
.skillset-card, .skillset-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(33, 35, 48, .1); margin: 0 -1px -1px 0;
}
.skillset-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.skillset-num { align-self: flex-end; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted-2); transition: color .7s var(--ease-soft); }
.skillset-card h4 { font-family: var(--font-h2); font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-strong); margin: 0; transition: color .7s var(--ease-soft); }
/* Описание навыка: спрятано, при наведении плавно раскрывается под названием (название чуть поднимается) */
.skillset-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-soft); }
.skillset-more > p {
  overflow: hidden; margin: 0; padding-top: 0;
  font-size: 13px; line-height: 1.4; color: var(--glow-ink, #fff);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease-soft), transform .6s var(--ease-soft), padding-top .6s var(--ease-soft);
}
@media (hover: hover) {
  .skillset-card:hover .skillset-more { grid-template-rows: 1fr; }
  .skillset-card:hover .skillset-more > p { opacity: .88; transform: none; padding-top: 8px; transition-delay: .08s; color: var(--glow-ink, #fff); } /* цвет как у названия — читается на градиенте при любой ширине */
}
/* На телефоне и узких экранах описание видно сразу, обычным серым */
@media (hover: none), (max-width: 1199px) {
  .skillset-more { grid-template-rows: 1fr; }
  .skillset-more > p { opacity: 1; transform: none; padding-top: 8px; color: var(--muted-2); transition: color .7s var(--ease-soft); }
}
@media (prefers-reduced-motion: reduce) { .skillset-more, .skillset-more > p { transition: opacity .3s linear; transform: none; } }

/* Наведение: карточка заливается мягким градиентом (референс — яркие «светящиеся» квадраты).
   Слой с градиентом проявляется и чуть «садится» из увеличения; у каждой карточки свой градиент */
.skillset-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glow); box-shadow: inset 0 0 24px rgba(255, 255, 255, .18);
  opacity: 0; transform: scale(1.06); filter: blur(12px);
  transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-soft), filter 1s var(--ease-soft);
}
/* Градиенты по референсу Елены («Inside Out the Color»): вертикальные мягкие переходы. Пока для светлой темы */
.skillset-card:nth-child(1) { --glow: var(--grad-1); --glow-ink: #171717; } /* Libra */
.skillset-card:nth-child(2) { --glow: var(--grad-2); --glow-ink: #171717; } /* Virgo */
.skillset-card:nth-child(3) { --glow: var(--grad-3); } /* Capricorn */
.skillset-card:nth-child(4) { --glow: var(--grad-4); } /* Cancer */
.skillset-card:nth-child(5) { --glow: var(--grad-5); } /* Aquarius */
@media (hover: hover) {
  .skillset-card:hover::before { opacity: 1; transform: none; filter: none; }
  .skillset-card:hover h4, .skillset-card:hover .skillset-num { color: var(--glow-ink, #fff); }
}
@media (prefers-reduced-motion: reduce) {
  .skillset-card::before { transform: none; filter: none; transition: opacity .4s linear; }
}
/* Уже 1200 px в пять колонок не помещаются описания: карточки в две колонки, описание видно сразу; на телефоне — в одну */
@media (max-width: 1199px) {
  .skillset-grid { grid-template-columns: 1fr 1fr; }
  .skillset-cell { display: none; }
  .skillset-card:nth-child(n) { grid-area: auto; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 600px) {
  .skillset-grid { grid-template-columns: 1fr; }
  .skillset-card:nth-child(n) { min-height: 200px; }
}

/* Teams */
.teams { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.teams .muted { font-size: 15px; margin-right: 8px; }
.teams ul { display: flex; gap: 16px 40px; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.teams li { font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.teams li img { width: 24px; height: 24px; border-radius: 6px; }

/* Beyond work: коллаж */
/* When I'm not designing: поля как у остальных блоков; текст сверху, под ним 6 фото в ровной сетке квадратов */
.beyond-block { padding: clamp(80px, 12vw, 140px) clamp(24px, 10vw, 200px) 0; }
.beyond-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 41%); gap: 48px; align-items: start; }
.beyond-head .section-head { margin: 0; }
/* Текст как в Figma: тёмный, обычного размера, абзацы через пустую строку */
.beyond-text p { color: var(--ink-strong); font-size: 16px; line-height: 1.5; margin: 0 0 1.5em; }
.beyond-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .beyond-head { grid-template-columns: 1fr; gap: 24px; } }
/* Сетка фото — тонкие рамки, как у Skill Set: 6 в ряд, на планшете 3, на телефоне 2 */
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(56px, 8vw, 140px); }
.photo-grid figure {
  position: relative; margin: 0 -1px -1px 0; aspect-ratio: 1; overflow: hidden;
  border: 1px solid rgba(33, 35, 48, .1); background: var(--warm);
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
/* Наведение: мягкое затемнение снизу и подпись, которая чуть поднимается; фото слегка приближается */
.photo-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 23, 23, .15) 0%, rgba(23, 23, 23, .6) 100%);
  opacity: 0; transition: opacity .6s var(--ease-soft);
}
.photo-grid figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 1.5; color: #fff;   /* как основной текст */
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-soft), transform .6s var(--ease-soft);
}
@media (hover: hover) {
  .photo-grid figure:hover::after { opacity: 1; }
  .photo-grid figure:hover figcaption { opacity: 1; transform: none; }
  .photo-grid figure:hover img { transform: scale(1.04); }
}
@media (max-width: 1023px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); margin-top: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .photo-grid img, .photo-grid figcaption { transition: opacity .3s linear; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Контакты + подвал
   -------------------------------------------------------------------------- */
.contact {
  position: relative; overflow: hidden;
  margin: clamp(80px, 12vw, 140px) var(--gutter) var(--gutter);
  border-radius: 32px; padding: clamp(56px, 9vw, 120px) var(--gutter);
  background:
    radial-gradient(60% 90% at 10% 10%, var(--lavender), transparent 70%),
    radial-gradient(50% 80% at 90% 20%, var(--peach), transparent 70%),
    radial-gradient(70% 70% at 50% 110%, var(--lime), transparent 70%),
    var(--warm);
  text-align: center;
}
.contact video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: multiply; }
.contact > *:not(video) { position: relative; }
.contact h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink-strong); }
.contact h2 .soft { color: var(--muted-2); }
.contact-mail { display: inline-block; margin-top: 28px; font-size: clamp(18px, 2vw, 24px); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.contact-mail:hover { color: var(--accent); }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(48px, 6vw, 88px); }
/* Почта, LinkedIn, Instagram — не кнопки, а простые надписи; при наведении оранжевые */
.contact-links .btn {
  height: auto; padding: 0; border-radius: 0; background: none;
  font-size: 17px; font-weight: 500; color: var(--ink-strong); transition: color .25s var(--ease-soft);
}
.contact-links .btn:hover { transform: none; color: var(--accent); }
/* Кнопка-почта: адрес + иконка копирования; по клику адрес копируется */
.contact-copy { cursor: pointer; justify-content: center; }


.footer { display: flex; justify-content: center; gap: 16px; padding: 8px 0 32px; font-size: 13px; color: var(--muted); flex-wrap: wrap; text-align: center; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Страница кейса
   -------------------------------------------------------------------------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 32px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .current { color: var(--ink-strong); }

.case-hero { position: relative; padding: 48px 0 40px; }
.case-hero .glow { inset: -140px calc(50% - 50vw) auto; height: 760px; }
/* Заголовок и подзаголовок кейса — в одном стиле с главной: Satoshi 500 и спокойный подзаголовок Satoshi */
.case-hero h1 { font-family: var(--font-h2); font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; color: var(--ink-strong); max-width: 900px; }
.case-hero .lede { font-family: var(--font-sans); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted-2); margin-top: 20px; max-width: 640px; letter-spacing: -0.01em; }
.case-hero .lede strong { color: var(--ink-strong); font-weight: 500; }
/* Role / Team / Timeline / Tools — на всю ширину (как обложка ниже), четыре равные колонки */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta dt { font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink-strong); }
/* иконки инструментов крупнее */
.case-meta .tools img { height: 36px; width: auto; } /* картинка обрезана по высоте (shared-tools-icons-tight.png), иконки почти во всю высоту */
@media (max-width: 640px) { .case-meta { grid-template-columns: 1fr 1fr; } .case-meta .tools img { height: 32px; } }

/* Обложка кейса — в пропорциях самого видео, без обрезки (у Spinner видео 4:3) */
.case-cover {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--frame-bg);
}
.case-cover video, .case-cover img { display: block; width: 100%; height: auto; }
/* Более горизонтальная обложка (21:9), кадр по центру — Motion Works */
.case-cover.is-wide { aspect-ratio: 21 / 9; }
.case-cover.is-wide video, .case-cover.is-wide img { height: 100%; object-fit: cover; object-position: 50% 45%; }

.case-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; margin-top: 72px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  position: relative; display: block; padding: 5px 0 5px 16px;
  font-size: 15px; color: #B4B4B8; transition: color .3s;
}
.toc a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); /* точка, как курсор */
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.toc a:hover { color: var(--muted-2); }
.toc a.is-active { color: var(--accent); }
.toc a.is-active::before { transform: scale(1); }
.toc .sub a { font-size: 14px; padding-left: 28px; }
.toc .sub a::before { left: 12px; width: 5px; height: 5px; margin-top: -2.5px; }

.case-body { max-width: 760px; }
.case-body section { scroll-margin-top: 96px; }
.case-body section + section { margin-top: 96px; }
.case-body .kicker { display: block; margin-bottom: 14px; }
.case-body h2 { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); margin-bottom: 24px; }
.case-body h3 { font-family: var(--font-h2); font-size: 24px; font-weight: 500; letter-spacing: -0.025em; color: var(--ink-strong); margin: 48px 0 14px; scroll-margin-top: 96px; }
.case-body p, .case-body li { font-size: 18px; color: #3E4050; }
.case-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.case-body li { margin-bottom: .4em; }
.case-body li::marker { color: var(--accent); }
.case-body .note { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--frame-bg); font-size: 17px; }
.case-body a.ext { color: var(--accent); border-bottom: 1px solid rgba(255, 90, 64, .35); word-break: break-word; }

.fig { margin: 40px 0; }
.fig .frame {
  border-radius: var(--radius); overflow: hidden; background: var(--frame-bg);
}
.fig video, .fig img { width: 100%; height: auto; }
.fig figcaption { margin-top: 12px; font-family: var(--font-label); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Список сценариев (Use cases): ровная сетка в 3 колонки, у каждого пункта тонкая линия сверху и маленькая оранжевая точка */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0 !important; margin: 24px 0 32px !important; }
.chips li { position: relative; margin: 0; padding: 14px 0 14px 16px; border-top: 1px solid var(--line); font-size: 16px !important; color: var(--ink-strong) !important; }
.chips li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0 !important; }
.cards3 li { margin: 0; padding: 20px; border-radius: var(--radius-sm); background: var(--frame-bg); font-size: 16px !important; }
.cards3 li .num { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 24px; }
@media (max-width: 640px) { .cards3 { grid-template-columns: 1fr; } .fig-row { grid-template-columns: 1fr; } }

.thanks { font-family: var(--font-h2); font-size: clamp(26px, 2.6vw, 34px) !important; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink-strong) !important; margin-top: 64px; }

/* Другие проекты */
.more { margin-top: 140px; }
.more h2 { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); margin-bottom: 32px; }

@media (max-width: 960px) {
  .case-layout { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .toc {
    top: 64px; z-index: 30; margin: 0 calc(-1 * var(--gutter)) 32px;
    padding: 10px var(--gutter);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none;
  }
  .toc::-webkit-scrollbar { display: none; }
  .toc ol { display: flex; gap: 20px; white-space: nowrap; }
  .toc .sub { display: none; }
  .toc a { padding: 4px 0 4px 12px; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Анимации появления
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes lineUp { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Главная без градиентов (решение 2026-10-24) */
.home .showreel { background: var(--warm); }
.contact-plain { background: var(--warm); }

/* --------------------------------------------------------------------------
   Projects: свободная сетка (референс avecanni.studio)
   -------------------------------------------------------------------------- */
/* Заголовок стоит на месте и не заезжает под карточки (решение 2026-10-24) */
.work-title {
  position: static;
  font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--ink-strong); max-width: 640px; margin: 64px 0 0;
}
.scatter {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  margin-top: 56px; /* фиксированный отступ от заголовка до карточек */
  padding-bottom: 80px;
}
.scatter-card { display: block; align-self: start; }
/* MDS — главный проект, крупнее; Works справа сверху; AmaCare слева снизу; Spinner справа снизу */
.c1 { grid-column: 1 / span 6; grid-row: 1; margin-top: 120px; }
.c3 { grid-column: 8 / span 5; grid-row: 1; margin-top: 0; }
.c4 { grid-column: 2 / span 5; grid-row: 2; margin-top: 120px; }
.c2 { grid-column: 8 / span 5; grid-row: 2; margin-top: 60px; }
.c1 .scatter-media { aspect-ratio: 4 / 3.3; }
.c2 .scatter-media { aspect-ratio: 4 / 3; }
.c3 .scatter-media { aspect-ratio: 4 / 4.4; }
.c4 .scatter-media { aspect-ratio: 4 / 3.4; }

.scatter-inner { will-change: transform; }
.scatter-media { border-radius: 6px; overflow: hidden; background: var(--warm); }
.scatter-media video, .scatter-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.scatter-card:hover .scatter-media video, .scatter-card:hover .scatter-media img { transform: scale(1.04); }
/* Подпись как на старом сайте: крупное название, описание, теги справа */
.scatter-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; margin-top: 18px; }
.scatter-cap > div:first-child { display: contents; }
.scatter-cap h3 { grid-column: 1; grid-row: 1; font-family: var(--font-h2); font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink-strong); }
.scatter-cap p { grid-column: 1 / -1; grid-row: 2; font-family: var(--font-ui);margin: 6px 0 0; font-size: 16px; line-height: 1.35; color: var(--muted); }
.scatter-cap .tags { grid-column: 2; grid-row: 1; padding-top: 2px; flex-wrap: nowrap; }
/* Фон под карточкой: пригодится, если вернём прилипающий заголовок */
.scatter-inner { background: var(--bg); padding-bottom: 12px; }
.scatter-cap .tag { background: transparent; border: 1px solid rgba(33, 35, 48, .12); color: var(--muted-2); font-size: 12px; padding: 6px 12px; }

/* Появление: карточки выезжают снизу одна за другой */
.scatter-card { transform: translateY(260px); opacity: 0; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1), opacity .9s ease-out; }
.scatter-card.c2 { transition-delay: .12s; }
.scatter-card.c3 { transition-delay: .06s; }
.scatter-card.c4 { transition-delay: .18s; }
.scatter-card.is-in { transform: none; opacity: 1; }

@media (max-width: 760px) {
  .work-title { position: static; margin-bottom: 32px; }
  .scatter { grid-template-columns: 1fr; row-gap: 48px; margin-top: 0; }
  /* На телефоне все карточки ровно, на всю ширину, одна под другой */
  .c1, .c2, .c3, .c4 { grid-column: 1; grid-row: auto; margin: 0; }
  .c1 .scatter-media, .c2 .scatter-media, .c3 .scatter-media, .c4 .scatter-media { aspect-ratio: 4 / 3; }
  .scatter-cap { grid-template-columns: 1fr; }
  .scatter-cap .tags { grid-column: 1; grid-row: 3; padding-top: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .scatter-card { transform: none; opacity: 1; }
}

/* Плавная прокрутка (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* --------------------------------------------------------------------------
   Тонкие линии между блоками главной (референс devin.ai): у каждого блока линия сверху
   на всю ширину. Вертикальные линии пробовали — Елена решила, что не нужны
   -------------------------------------------------------------------------- */
:root {
  --pad: clamp(24px, 10vw, 200px);   /* поля слева и справа у блоков главной */
  --guide: rgba(0, 0, 0, .06);       /* цвет линий — едва заметный */
  --block-y: clamp(64px, 8vw, 112px); /* отступ сверху и снизу внутри блока */
}
.home main > section:not(.reel-hero) {
  border-top: 1px solid var(--guide);
  padding-top: var(--block-y); padding-bottom: var(--block-y);
}
.home main > section:last-child { border-bottom: 1px solid var(--guide); }
/* У Projects свой отступ сверху (#work), снизу добавляем такой же воздух, как у остальных блоков */
.home main > section#work { padding-bottom: var(--block-y); }
/* Между About и Skill Set воздуха больше: отступ внутри About, а не зазор между блоками */
.home main > section.about-block { padding-bottom: clamp(120px, 14vw, 220px); }
.home main > section.skillset { margin-top: 0; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }

/* --------------------------------------------------------------------------
   Низ главной: Contact и подвал на общем фоне, который из цвета страницы
   плавно перетекает в градиент — светлый, голубой, синий, тёмно-коричневый (референс Елены).
   Карточка Contact на главной больше не карточка: текст лежит прямо на градиенте
   -------------------------------------------------------------------------- */
.page-end {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate; /* clip — не даёт браузеру сдвигать содержимое вбок при переходе по ссылке */
  background: linear-gradient(172deg,
    var(--bg) 0%, var(--bg) 22%,
    #E8ECF4 30%, #BCCBE7 42%, #6F95DC 54%, #4677CF 62%,
    #34497F 74%, #3B2C36 86%, #3A2325 100%);
}
.page-end .contact {
  margin: 0; border-radius: 0; background: none;
  padding: clamp(96px, 12vw, 160px) var(--pad) clamp(240px, 32vw, 460px);
}
.page-end .footer { max-width: none; padding: 0 var(--pad) 32px; color: rgba(255, 255, 255, .7); }
.page-end .footer a:hover { color: #fff; }

/* Живой градиент: поверх основного слоя медленно «дышат» мягкие цветные пятна
   (голубое свечение, глубокий синий, тёплый коричневый). Двигается только transform — это дёшево для браузера.
   Пятна только в нижней половине, чтобы не трогать светлый фон под текстом Contact */
.page-end::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 22% at 28% 62%, rgba(120, 160, 235, .55), transparent 70%),
    radial-gradient(30% 20% at 72% 58%, rgba(70, 119, 207, .5), transparent 70%),
    radial-gradient(36% 24% at 62% 82%, rgba(92, 52, 58, .55), transparent 70%);
  animation: page-end-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes page-end-drift {
  0%   { transform: translate3d(-5%, 2%, 0) rotate(-2deg); }
  50%  { transform: translate3d(4%, -3%, 0) rotate(2deg); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-end::before { animation: none; }
}

/* Back to top: закреплена справа внизу на всех страницах. Матовая светлая «таблетка» —
   читается и на светлом фоне, и на тёмном градиенте внизу. Появляется, когда пролистали первый экран */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 60;
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-strong);
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -10px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s var(--ease-soft), transform .45s var(--ease-out), color .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s linear; transform: none; } }

/* На телефоне под подписью подвала место для закреплённой кнопки Back to top, чтобы они не пересекались */
@media (max-width: 640px) { .footer, .page-end .footer { padding-bottom: 84px; } }

/* Вкладка Showreel: видео с Vimeo на всю ширину, 16:9 */
.showreel.showreel-video { background: #0B0B0C; display: block; }
.showreel-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Projects-блок: при переходе по #projects не прячется под шапкой */
.projects-block { scroll-margin-top: 80px; }

/* Окно шоурила: тёмная полупрозрачная подложка, видео 16:9 по центру; появляется с лёгким увеличением */
.reel-modal {
  width: min(1120px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible;
  background: transparent; color: #fff;
}
.reel-modal::backdrop { background: rgba(12, 16, 32, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel-modal[open] { animation: reel-in .5s var(--ease-out); }
.reel-modal[open]::backdrop { animation: reel-fade .4s var(--ease-soft); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0B0B0C; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-close {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5); color: #fff; font-size: 14px; transition: color .25s, border-color .25s;
}
.reel-close span { font-size: 18px; line-height: 1; }
.reel-close:hover { color: var(--accent); border-color: var(--accent); }
@keyframes reel-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes reel-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reel-modal[open], .reel-modal[open]::backdrop { animation: none; } }

/* Кейсы: воздух между «Check out some of my other projects» и низом страницы с градиентом */
.case main { padding-bottom: clamp(96px, 12vw, 160px); }

/* Эксперимент: след из картинок за курсором в hero. Карточки создаёт js/main.js */
.hero-trail { position: absolute; inset: 0; pointer-events: none; isolation: isolate; }
.hero-trail img {
  position: absolute; left: 0; top: 0; width: 120px; height: 160px;   /* 3:4 */
  object-fit: cover; border-radius: 4px; box-shadow: 0 6px 18px rgba(20, 30, 60, .18);
  will-change: transform, opacity, filter;
}

/* --------------------------------------------------------------------------
   Hero: «холмы под стеклом». Холст рисует js/main.js; поверх — заметное размытие (--glass).
   Холст чуть увеличен, чтобы размытые края не светлели; проявляется за 1.2 с
   -------------------------------------------------------------------------- */
.hero-hills {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: blur(var(--glass, 22px)); transform: scale(1.08);
  opacity: 0; transition: opacity 1.2s var(--ease-soft);
}
.hero-hills.is-ready { opacity: 1; }

/* Главная: пока страница не прокручена, шапка над hero прозрачная (без светлой полосы) */
:is(.home, .case) .topbar:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }

/* --------------------------------------------------------------------------
   ОСНОВНОЙ ШРИФТ (с 2026-11-18): PP Neue Montreal вместо Satoshi — основной текст и заголовки.
   Instrument Serif остаётся (Contact и др.). Включён атрибутом data-font="montreal" у <html> во всех 5 страницах
   (тестовый переключатель ?font= убран). Вернуть Satoshi — убрать этот атрибут.
   В бесплатной версии нет Medium/Bold: текст — Regular 400, заголовки — Semibold 600
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Semibold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
:root[data-font="montreal"] {
  --font-sans: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --font-h2: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
}
/* заголовки, которые были Satoshi Medium, — Semibold 600 */
:root[data-font="montreal"] :is(.work-title, .about-text .lead, .exp-title, .exp-role, .exp-co, .skillset-title, .skillset-card h4,
  .scatter-cap h3, .case-hero h1, .case-body h2, .case-body h3, .thanks, .more h2) { font-weight: 600; letter-spacing: -0.03em; }
/* My Experience в тесте: роль и компания 18 px (было 24), отступы строк уменьшены в той же пропорции (×0.75);
   таблица прижата к правому краю */
:root[data-font="montreal"] .exp-role, :root[data-font="montreal"] .exp-co { font-size: 18px; letter-spacing: -0.02em; }
:root[data-font="montreal"] .exp-row { padding: 21px 0; }
:root[data-font="montreal"] .exp-panel p:last-child { padding-bottom: 21px; }
@media (min-width: 861px) {
  :root[data-font="montreal"] .exp-table { justify-self: end; width: 100%; max-width: 640px; }
}
@media (max-width: 860px) {
  :root[data-font="montreal"] .exp-role { font-size: 16px; }
  :root[data-font="montreal"] .exp-co { font-size: 14px; }
  :root[data-font="montreal"] .exp-row { padding: 15px 0; }
  :root[data-font="montreal"] .exp-panel p:last-child { padding-bottom: 15px; }
}

/* --------------------------------------------------------------------------
   Hero и шапка главной по макету Елены (Figma Portfolio-Update, node 46:14).
   Поля 13 px, всё мелкое — PP Neue Montreal Regular 18 px, чёрное; «I’m Elena» — Instrument Serif 50 px.
   Внизу hero: слева имя и текст (ширина 480 px), справа меню Projects / About / Skills / Showreel.
   Шапка на главной: слева имя (Montreal 18 px), справа Download CV; меню Work · About · Contact скрыто
   -------------------------------------------------------------------------- */
:root { --font-montreal: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif; --edge: 13px; }
.reel-hero { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: 0 var(--edge) 23px;
}
.hero-name {
  font-family: var(--font-serif); font-size: 50px; font-weight: 400; line-height: 1.2; letter-spacing: 0;
  color: #000; margin: 0 0 46px;
}
.hero-copy, .hero-menu { font-family: var(--font-montreal); font-size: 18px; font-weight: 400; line-height: 1.2; color: #000; }
.hero-copy { max-width: 480px; }
.hero-copy p { margin: 0; }
.hero-menu { display: flex; flex-direction: column; align-items: flex-start; min-width: 100px; }
.hero-menu a, .hero-menu button { font: inherit; color: inherit; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; transition: color .25s var(--ease-soft); }
.hero-menu a:hover, .hero-menu button:hover { color: var(--accent); }

:is(.home, .case) .topbar-inner { height: 40px; padding: 0 var(--edge); grid-template-columns: 1fr auto; }
:is(.home, .case) .nav-center { display: none; }
:is(.home, .case) .logo { font-family: var(--font-montreal); font-size: 18px; font-weight: 400; letter-spacing: 0; color: #000; }
:is(.home, .case) .topbar-cta { height: 30px; padding: 0 14px; display: inline-flex; }

@media (max-width: 640px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 32px; }
  .hero-name { margin-bottom: 28px; }
  .hero-copy, .hero-menu { font-size: 17px; }
}


/* Низ hero плавно перетекает в цвет страницы (без резкой границы): поверх холмов — градиент
   от прозрачного к фону сайта на нижние 45% экрана; под ним нет линии-разделителя у следующего блока */
.reel-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 251, 255, 0) 0%, rgba(252, 251, 255, .55) 45%, var(--bg) 100%);
}
.home main > section.reel-hero + section { border-top: 0; }

/* --------------------------------------------------------------------------
   Projects (правка 91): две колонки. Слева крупное «Projects» (Montreal Semibold) стоит внизу раздела
   и прилипает к низу экрана (sticky bottom), пока листаются карточки; в конце раздела уезжает вверх.
   Справа сетка карточек. Поля по краям как в hero (--edge)
   -------------------------------------------------------------------------- */
.home #work { padding-left: var(--edge); padding-right: var(--edge); }
.projects-block { display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr); column-gap: 32px; }
.projects-title {
  grid-column: 1; grid-row: 1; align-self: end;
  position: sticky; bottom: 13px; margin: 0;
  font-family: var(--font-montreal); font-weight: 600; font-size: clamp(48px, 5vw, 96px);
  line-height: .9; letter-spacing: -0.03em; color: var(--ink-strong);
}
.projects-block .scatter { grid-column: 2; grid-row: 1; margin-top: 0; }
@media (max-width: 760px) {
  .projects-block { grid-template-columns: 1fr; }
  .projects-title { grid-row: auto; position: static; font-size: 48px; margin-bottom: 32px; }
  .projects-block .scatter { grid-column: 1; grid-row: auto; }
}

/* Projects (правка 92):
   1) карточки мельче и не прилипают к правому краю: справа отступ, между карточками больше воздуха;
   2) подпись карточки подстраивается под её ширину (container query): если карточка узкая,
      теги уходят под описание, название не ломается рядом с тегами;
   3) у сетки нет нижнего отступа, поэтому «Projects» заканчивает прилипание ровно на уровне низа самой нижней карточки
      (воздух после раздела — снаружи, у #work) */
.projects-block .scatter { margin-right: clamp(24px, 9vw, 180px); column-gap: clamp(28px, 4vw, 64px); padding-bottom: 0; }
.home main > section#work { padding-bottom: calc(var(--block-y) + 80px); }
.scatter-card { container-type: inline-size; }
@container (max-width: 560px) {
  .scatter-cap { grid-template-columns: 1fr; }
  .scatter-cap .tags { grid-column: 1; grid-row: 3; padding-top: 12px; flex-wrap: wrap; }
}
/* Экраны уже 1200 px (планшет, маленький ноутбук): «Projects» сверху без прилипания, карточки на всю ширину — иначе карточки слишком мелкие */
@media (max-width: 1200px) {
  .projects-block { grid-template-columns: 1fr; }
  .projects-title { grid-row: auto; position: static; margin-bottom: 40px; }
  .projects-block .scatter { grid-column: 1; grid-row: auto; margin-right: 0; }
}

/* Правка 93: все заголовки разделов одного размера — как «From interfaces to motion» (clamp(30px, 3.2vw, 46px)),
   и все разделы главной начинаются от того же левого края, что «Projects» и hero (--edge, 13 px).
   Справа поле прежнее (--pad), примерно как у сетки Projects; на телефоне поля 13 px с обеих сторон */
.projects-title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.035em; }
.home main > section.about-block,
.home main > section.skillset,
.home main > section.beyond-block { padding-left: var(--edge); padding-right: var(--pad); }
@media (max-width: 760px) {
  .projects-title { font-size: clamp(30px, 3.2vw, 46px); }
  .home main > section.about-block,
  .home main > section.skillset,
  .home main > section.beyond-block { padding-right: var(--edge); }
}

/* Правка 94: Skills и «When I’m not designing» растянуты на всю ширину — справа такое же поле, как слева (13 px) */
.home main > section.skillset,
.home main > section.beyond-block { padding-right: var(--edge); }

/* Правка 95: About me собраннее. Мелкий текст сразу под заголовком (вместо огромного отступа ~115 px — 24 px),
   видео крупнее: колонка видео 50% и раздел до правого края (поле 13 px, как у Skills и фото) */
.about-text .lead { margin-bottom: 0; }
.about-text .lead + .about-sub { margin-top: 24px; }
.home main > section.about-block { padding-right: var(--edge); }
@media (min-width: 861px) {
  .about-row { grid-template-columns: minmax(0, 1fr) minmax(320px, 50%); }
}

/* Правка 96.
   1) About: текст слева (42%), справа поле под видео; видео (88% поля) стоит по центру своего поля, а не у правого края.
   2) Таблица My Experience в той же сетке: начинается и заканчивается ровно по краям видео.
   Общие значения — переменные, чтобы видео и таблица всегда совпадали */
:root { --about-left: 42%; --about-gap: clamp(40px, 6vw, 96px); --about-media-w: 88%; }
@media (min-width: 861px) {
  .about-row { grid-template-columns: minmax(0, var(--about-left)) minmax(0, 1fr); column-gap: var(--about-gap); }
  .about-media { width: var(--about-media-w); justify-self: center; }
  .exp { grid-template-columns: minmax(0, var(--about-left)) minmax(0, 1fr); column-gap: var(--about-gap); }
  .exp-table, :root[data-font="montreal"] .exp-table { width: var(--about-media-w); max-width: none; justify-self: center; }
}

/* 3) Шапка главной при прокрутке: без чёткой границы. Вместо плашки с линией — мягкое «стекло»:
   размытие и светлая дымка, которые плавно растворяются вниз (маска-градиент), ниже самой шапки */
:is(.home, .case) .topbar.is-scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.home .topbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 110px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 251, 255, .82) 0%, rgba(252, 251, 255, .55) 45%, rgba(252, 251, 255, 0) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  opacity: 0; transition: opacity .4s var(--ease-soft);
}
.home .topbar.is-scrolled::before { opacity: 1; }

/* Правка 97: переход под шапкой шире (180 px) и плавнее — «постепенное размытие»:
   5 слоёв, каждый размывает сильнее предыдущего и виден в своей полосе (маски перекрываются),
   поэтому размытие нарастает к верху без видимой границы. Сверху светлая дымка с плавной кривой.
   Заменяет слой .topbar::before из правки 96 */
.home .topbar::before { display: none; }
.topbar-fade {
  position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease-soft);
  background: linear-gradient(180deg,
    rgba(252, 251, 255, .86) 0%, rgba(252, 251, 255, .74) 18%, rgba(252, 251, 255, .55) 34%,
    rgba(252, 251, 255, .34) 52%, rgba(252, 251, 255, .16) 70%, rgba(252, 251, 255, .05) 86%, rgba(252, 251, 255, 0) 100%);
}
.topbar.is-scrolled .topbar-fade { opacity: 1; }
.topbar-fade i { position: absolute; inset: 0; }
.topbar-fade i:nth-child(1) { -webkit-backdrop-filter: blur(1px);  backdrop-filter: blur(1px);  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 20%, #000 40%, transparent 60%); mask-image: linear-gradient(to top, transparent 0%, #000 20%, #000 40%, transparent 60%); }
.topbar-fade i:nth-child(2) { -webkit-backdrop-filter: blur(3px);  backdrop-filter: blur(3px);  -webkit-mask-image: linear-gradient(to top, transparent 20%, #000 40%, #000 60%, transparent 80%); mask-image: linear-gradient(to top, transparent 20%, #000 40%, #000 60%, transparent 80%); }
.topbar-fade i:nth-child(3) { -webkit-backdrop-filter: blur(6px);  backdrop-filter: blur(6px);  -webkit-mask-image: linear-gradient(to top, transparent 40%, #000 60%, #000 80%, transparent 100%); mask-image: linear-gradient(to top, transparent 40%, #000 60%, #000 80%, transparent 100%); }
.topbar-fade i:nth-child(4) { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to top, transparent 60%, #000 80%); mask-image: linear-gradient(to top, transparent 60%, #000 80%); }
.topbar-fade i:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to top, transparent 75%, #000 92%); mask-image: linear-gradient(to top, transparent 75%, #000 92%); }

/* Правка 99: внизу главной (Contact + подвал) — те же «холмы под стеклом», что в hero, с той же анимацией
   (морфинг, свет, салатовый ↔ голубой). Сверху растворяются в фоне страницы, книзу уходят почти в самый тёмный цвет.
   Когда холст готов, старый CSS-градиент и пятна убираются (.has-hills); без WebGL остаются они */
.page-end-hills {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none;
  filter: blur(var(--glass, 22px)); transform: scale(1.08);
  opacity: 0; transition: opacity 1.2s var(--ease-soft);
}
.page-end-hills.is-ready { opacity: 1; }
.page-end.has-hills { background: var(--bg); }
.page-end.has-hills::before { display: none; }

/* Правка 101: в кейсах шапка и низ страницы как на главной — правила шапки выше теперь для .home и .case
   (имя Montreal 18 px, Download CV, поля 13 px, мягкий переход под шапкой .topbar-fade);
   в .page-end кейсов тот же холст с холмами (.page-end-hills) */

/* Правка 102: над «Projects» снова подпись «01 Projects», как у остальных разделов (02 About me, 03 Skills…).
   Прилипает теперь обёртка .projects-head (подпись + заголовок вместе), а не один заголовок */
.projects-head { grid-column: 1; grid-row: 1; align-self: end; position: sticky; bottom: 13px; }
.projects-head .projects-title { position: static; }
.projects-head .work-head { margin: 0 0 20px; }
@media (max-width: 1200px) {
  .projects-head { grid-row: auto; position: static; margin-bottom: 40px; }
  .projects-head .projects-title { margin-bottom: 0; }
}

/* Правка 104: в «04 When I’m not designing» большой заголовок, как в остальных разделах:
   «Life off the timeline» (игра слов: таймлайн в After Effects и жизнь вне графика). Стиль как у «What I do» */
.beyond-intro .section-head { margin: 0 0 20px; }
.beyond-title { font-family: var(--font-h2); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-strong); margin: 0; }
:root[data-font="montreal"] .beyond-title { font-weight: 600; letter-spacing: -0.03em; }

/* Правка 105: Download CV в шапке чуть ниже — отступ сверху 13 px, как от правого края (--edge) */
:is(.home, .case) .topbar-cta { align-self: start; margin-top: var(--edge); }
/* Правка 106: имя в шапке выровнено по центру кнопки Download CV (та же высота 30 px и тот же отступ сверху) */
:is(.home, .case) .logo { align-self: start; margin-top: var(--edge); height: 30px; line-height: 1; }

/* Правка 107: в кейсах «Check out some of my other projects» на ~25% меньше (46 → 34 px) и по центру над двумя карточками */
.more h2 { font-size: clamp(24px, 2.4vw, 34px); text-align: center; }

/* Правка 112: в Skills и «When I’m not designing» текст описания сбоку от большого заголовка, а не под ним.
   Сетка та же, что у About / My Experience (--about-left, --about-gap): текст начинается ровно там же,
   где таблица опыта (таблица = 88% правой колонки по центру, поэтому сдвиг (100% − 88%) / 2).
   Первая строка текста стоит на одной базовой линии с первой строкой заголовка (align-self: baseline). */
@media (min-width: 861px) {
  .skillset-intro, .beyond-head {
    display: grid; grid-template-columns: minmax(0, var(--about-left)) minmax(0, 1fr);
    column-gap: var(--about-gap); row-gap: 0; align-items: start;
  }
  .beyond-intro { display: contents; }
  .skillset-intro .section-head, .beyond-intro .section-head { grid-column: 1; grid-row: 1; }
  .skillset-title, .beyond-title { grid-column: 1; grid-row: 2; align-self: baseline; }
  .skillset-sub, .beyond-text {
    grid-column: 2; grid-row: 2; align-self: baseline;
    margin: 0 0 0 calc((100% - var(--about-media-w)) / 2);
  }
  .skillset-sub { max-width: 520px; }
  .beyond-text { width: var(--about-media-w); }
}

/* Правка 113: описание в Skills и «When I’m not designing» начинается по левому краю 4-й клетки сетки навыков
   (карточка 04 Motion Systems): сетка 5 равных колонок, значит 3/5 ширины. Оба текста одной ширины, до 520 px. */
@media (min-width: 861px) {
  .skillset-intro, .beyond-head { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 0; }
  .skillset-sub, .beyond-text { margin-left: 0; width: auto; max-width: 520px; }
}

/* Правка 116: Back to top в одном стиле с Download CV в шапке: «таблетка» с тонкой обводкой, 30 px высотой,
   Montreal 14 px, без тени; отступы от края экрана 13 px (--edge), как у Download CV сверху.
   Под ней лёгкая светлая подложка с размытием, чтобы текст читался поверх фото и тёмного низа страницы. */
.to-top {
  right: var(--edge); bottom: var(--edge); gap: 6px; height: 30px; padding: 0 14px;
  border: 1px solid currentColor; font-family: var(--font-sans); font-size: 14px; font-weight: 400;
  background: rgba(252, 251, 255, .72); box-shadow: none;
  transition: opacity .35s var(--ease-soft), transform .45s var(--ease-out), color .25s, border-color .25s;
}

/* Правка 117: компактный Experience в hero, между текстом и меню справа. Как старый .timeline, только мельче:
   Montreal 13 px, строки 7 px сверху/снизу, ширина 260 px. Низ на одной линии с текстом и меню. */
.hero-exp { width: 260px; font-family: var(--font-montreal); font-size: 13px; line-height: 1.2; color: #000; }
.hero-exp-label { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(0, 0, 0, .5); }
.hero-exp ol { list-style: none; margin: 0; padding: 0; }
.hero-exp li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, .12); }
.hero-exp li:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.hero-exp .yr { color: rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; }
.hero-exp li.now .yr::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: middle; position: relative; top: -1px;
}
/* Правка 118: три блока (текст, Experience, меню) с одинаковыми промежутками — это даёт space-between у .hero-bottom */
@media (max-width: 640px) { .hero-exp { width: 100%; max-width: 360px; } }

/* Правки 119–120: подпись и строки Experience появляются по очереди снизу вверх,
   когда блок попадает в экран (.hero-exp.is-in). Положение блока — правка 120 ниже. */
.hero-intro .hero-exp { margin-top: 32px; }
.hero-exp-label, .hero-exp li { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hero-exp.is-in .hero-exp-label, .hero-exp.is-in li { opacity: 1; transform: none; }
.hero-exp.is-in .hero-exp-label { transition-delay: .1s; }
.hero-exp.is-in li:nth-child(1) { transition-delay: .22s; }
.hero-exp.is-in li:nth-child(2) { transition-delay: .34s; }
.hero-exp.is-in li:nth-child(3) { transition-delay: .46s; }
.hero-exp.is-in li:nth-child(4) { transition-delay: .58s; }
@media (prefers-reduced-motion: reduce) {
  .hero-exp-label, .hero-exp li { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) { .hero-intro .hero-exp { margin-top: 28px; } }

/* Правка 120: Experience не в hero, а под ним — в начале раздела Projects, слева (поле --edge, как у текста hero).
   Сам блок не сдвигается: при прокрутке по очереди появляются подпись и строки (задержки — правка 119). */
.hero-exp.reveal { opacity: 1; transform: none; }
.hero-intro .hero-exp { margin-top: 0; }
.home #work > .hero-exp { margin: 0 0 clamp(96px, 12vw, 160px); }

/* Правки 121–122: меньше пустого места между hero, Experience и карточками проектов:
   отступ над Experience и под ним — clamp(40px, 5vw, 72px) вместо clamp(96px, 12vw, 160px) (на 1440: 72 px вместо 160). */
.home main > section#work { padding-top: clamp(24px, 3vw, 40px); }
.home #work > .hero-exp { margin-bottom: clamp(24px, 3vw, 40px); }
/* Правка 122: ещё выше — отступы над и под Experience 40 px (на 1440), MDS опущена меньше (60 px вместо 120) */
@media (min-width: 1201px) { .projects-block .c1 { margin-top: 60px; } }

/* Правка 123: закреплённое меню справа (JS переносит его в <body>, см. конец js/main.js).
   Режим difference: белый текст = тёмный на светлом фоне, инвертирует картинки под собой.
   Наведение: цвет #00A5BF в режиме difference на светлом фоне даёт коралловый, как обычное наведение. */
.hero-menu.is-fixed {
  position: fixed; top: 200px; z-index: 55; margin: 0;
  color: #fff; mix-blend-mode: difference; opacity: 1; transform: none;
}
.hero-menu.is-fixed a:hover, .hero-menu.is-fixed button:hover { color: #00a5bf; }
.hero-menu-ph { flex: none; }

/* Правка 124: таблица My Experience левее и короче справа, чтобы закреплённое меню (справа, ~113 px от края)
   не наезжало на годы: начинается от начала правой колонки, справа оставлено 140 px. */
@media (min-width: 861px) {
  .exp-table, :root[data-font="montreal"] .exp-table { justify-self: start; width: calc(100% - 140px); }
}

/* Правка 125: таблица My Experience снова начинается по левому краю видео, а справа подходит ближе к меню
   (свободно 124 px от края колонки: до меню ~24 px на 1440). Колонка лет 100 px вместо 120,
   чтобы «Independent & Freelance» оставалась в одну строку. */
@media (min-width: 861px) {
  .exp-table, :root[data-font="montreal"] .exp-table {
    justify-self: start;
    margin-left: calc((100% - var(--about-media-w)) / 2);
    width: calc(100% - (100% - var(--about-media-w)) / 2 - 124px);
  }
  .exp-table .exp-headrow, .exp-table .exp-row { grid-template-columns: 1.15fr 1fr 100px; }
  .exp-table .exp-panel > div { grid-template-columns: 1.15fr 1fr 100px; } /* правка 148: описание по той же сетке, что строка */
}

/* Правка 128: карточки Skills — при наведении «холмы под стеклом» в цветах карточки (холст .skill-hills, js/main.js).
   Появление как у прежнего градиента: проявляется, «садится» из увеличения и из размытия. Стекло — blur 16 px. */
.skill-hills {
  position: absolute; inset: -12%; width: 124%; height: 124%; z-index: -1; pointer-events: none;
  opacity: 0; transform: scale(1.06); filter: blur(28px);
  transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-soft), filter 1s var(--ease-soft);
}
.skillset-card.has-hills::before { display: none; }
@media (hover: hover) {
  .skillset-card.hills-on:hover .skill-hills { opacity: 1; transform: none; filter: blur(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-hills { transform: none; filter: blur(16px); transition: opacity .4s linear; }
}

/* Правка 129: при наведении на карточку с холмами текст у всех одинаковый — тёмный (снизу у всех палитр светлый фон) */
.skillset-card.has-hills { --glow-ink: #171717; }


/* Правка 132 (проба, референс yaaraisraeli.com): «04 When I’m not designing» — фото разбросаны свободно,
   размыты; при наведении проявляются чёткими, с лёгким 3D-наклоном за мышью (JS ставит --rx/--ry).
   Номера {01}…{06} над фото. Только для мыши и шире 860 px; на телефоне прежняя сетка. */
.photo-scatter { counter-reset: ph; }
.photo-scatter figure { counter-increment: ph; }
@media (min-width: 861px) {
  .photo-scatter { display: block; position: relative; aspect-ratio: 16 / 7.8; margin-top: clamp(48px, 6vw, 110px); }
  .photo-scatter figure {
    position: absolute; margin: 0; aspect-ratio: 3 / 4; overflow: visible;
    border: 0; background: none; perspective: 900px;
  }
  .photo-scatter figure::after { display: none; }
  .photo-scatter figure::before {
    content: counter(ph, decimal-leading-zero);
    position: absolute; left: 0; top: -22px;
    font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; line-height: 1; color: var(--ink-strong);
  }
  .photo-scatter img {
    display: block; border-radius: 2px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
    transition: filter .7s var(--ease-soft), opacity .7s var(--ease-soft), transform .8s var(--ease-out);
    will-change: transform, filter;
  }
  .photo-scatter figcaption {
    left: 0; right: auto; top: calc(100% + 12px); bottom: auto; width: 100%; /* правка 136: не шире фото */
    font-size: 14px; line-height: 1.35; color: var(--ink-strong);
  }
  /* Правка 133: глубина. --d — близость к нам (больше = ближе: крупнее, чётче, сильнее двигается),
     --b — размытие. Размеры на ~20% меньше, чем в правке 132 */
  .photo-scatter figure:nth-child(1) { left: 3%;  top: 13%; width: 11.5%; --d: .9;  --b: 20px; }
  .photo-scatter figure:nth-child(2) { left: 24%; top: 2%;  width: 8%;    --d: .55; --b: 20px; }
  .photo-scatter figure:nth-child(3) { left: 40%; top: 27%; width: 14.5%; --d: 1.2; --b: 18px; }
  .photo-scatter figure:nth-child(4) { left: 62%; top: 5%;  width: 8.5%;  --d: .6;  --b: 20px; }
  .photo-scatter figure:nth-child(5) { left: 77%; top: 31%; width: 12%;   --d: 1;   --b: 20px; }
  .photo-scatter figure:nth-child(6) { left: 19%; top: 52%; width: 9.5%;  --d: .75; --b: 20px; }
  .photo-scatter figure { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
  .photo-scatter figure:nth-child(3), .photo-scatter figure:nth-child(5) { z-index: 1; }
}
@media (min-width: 861px) and (hover: hover) {
  .photo-scatter img { filter: blur(var(--b, 22px)); opacity: calc(.55 + var(--d, 1) * .3); }
  /* Правка 133: подсказка — когда блок появляется, одно фото на миг становится чётким (класс is-peek из JS) */
  .photo-scatter figure.is-peek img { filter: blur(0); opacity: 1; transition: filter .6s var(--ease-soft), opacity .6s var(--ease-soft); }
  .photo-scatter figure.is-peek figcaption { opacity: 1; transform: none; }
  .photo-scatter figure:hover, .photo-scatter figure.is-peek { z-index: 2; }
  .photo-scatter figure:hover img { filter: blur(0); opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04); transition: filter .5s var(--ease-soft), opacity .5s var(--ease-soft), transform .25s var(--ease-out); }
  .photo-scatter figure:hover figcaption { opacity: 1; transform: none; }
}
@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: reduce) {
  .photo-scatter img { transform: none !important; transition: filter .3s linear, opacity .3s linear; }
}


/* Правка 138: маленькая кнопка «Show all» в левом нижнем углу блока с фото: убирает размытие со всех фото
   и показывает подписи; повторный клик («Blur») возвращает размытие и смену. Только для мыши и шире 860 px */
.photo-clear { display: none; }
@media (min-width: 861px) and (hover: hover) {
  .photo-clear {
    display: inline-flex; align-items: center; position: absolute; left: 0; top: 82%; z-index: 3; /* правка 139: выше, на уровне низа фото 06 */
    height: 24px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; background: none;
    font-family: "DM Mono", ui-monospace, monospace; font-size: 11px; line-height: 1; color: var(--ink-strong);
    cursor: pointer; transition: color .25s, border-color .25s;
  }
  .photo-clear:hover { color: var(--accent); }
  .photo-scatter.is-clear img { filter: blur(0); opacity: 1; }
  .photo-scatter.is-clear figcaption { opacity: 1; transform: none; }
}


/* Правка 140: текст hero при открытии страницы проявляется из размытия: сначала «I’m Elena»,
   потом по очереди строки описания (размытие 14 px → 0, прозрачность, лёгкий подъём на 10 px) */
.hero-copy p > span { display: block; }
.blur-in { animation: blur-in .9s cubic-bezier(.33, 1, .68, 1) both; } /* правка 141: быстрее и мягче */
.hero-name.blur-in { animation-duration: 1.1s; animation-delay: .2s; }
.hero-copy > p:first-child.blur-in { animation-delay: .5s; }
.hero-copy > p > span.blur-in:first-child { animation-delay: .62s; }
.hero-copy > p > span.blur-in:last-child { animation-delay: .74s; }
@keyframes blur-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(6px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .blur-in { animation: none; } }


/* Правка 142: карточка Revolut Business (кейс «coming soon»): третий ряд слева, обложка — светлый мягкий градиент
   с логотипом по центру (по макету Елены). Не открывается; при наведении поверх проявляется «Coming soon».
   На устройствах без мыши надпись видна всегда, маленькой «таблеткой» внизу слева */
.c5 { grid-column: 1 / span 5; grid-row: 3; margin-top: 80px; }
.scatter-card.c5 { transition-delay: .1s; cursor: default; }
.c5 .scatter-media { aspect-ratio: 4 / 4.6; }
.soon-cover {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, #F3F3F6 0%, #E9E9EE 55%, #DCDCE1 100%);
}
.soon-logo {
  font-family: var(--font-montreal); font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.02em; color: #191C1F;
  transition: filter .6s var(--ease-soft), opacity .6s var(--ease-soft);
}
.soon-logo b { font-weight: 600; letter-spacing: -0.035em; }
.soon-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 8px));
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  background: rgba(252, 251, 255, .75); border: 1px solid rgba(0, 0, 0, .12);
  font-family: var(--font-montreal); font-size: 14px; color: var(--ink-strong); white-space: nowrap;
  opacity: 0; filter: blur(6px);
  transition: opacity .5s var(--ease-soft), transform .6s var(--ease-soft), filter .5s var(--ease-soft);
}
@media (hover: hover) {
  .is-soon:hover .soon-logo { filter: blur(8px); opacity: .45; }
  .is-soon:hover .soon-label { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
}
@media (hover: none) {
  .soon-label { left: 12px; top: auto; bottom: 12px; transform: none; opacity: 1; filter: none; height: 26px; font-size: 12px; }
}
@media (max-width: 760px) {
  .c5 { grid-column: 1; grid-row: auto; margin: 0; }
  .c5 .scatter-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 1200px) and (min-width: 761px) { .c5 { margin-top: 40px; } }


/* Правка 143: Revolut Business первой: обложка — готовая картинка Елены (4:5); при наведении она размывается
   и проявляется «Coming soon». Новый порядок в сетке (шире 760 px):
   1-й ряд: Revolut слева, MDS справа; 2-й: Motion Works слева, Spinner справа; 3-й: AmaCare слева */
.c5 .scatter-media { aspect-ratio: 4 / 5; }
.soon-cover { background: #ECECEF; }
.soon-cover img { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out), filter .6s var(--ease-soft), opacity .6s var(--ease-soft); }
@media (hover: hover) { .is-soon:hover .soon-cover img { filter: blur(8px); opacity: .6; } }
@media (min-width: 761px) {
  .projects-block .scatter .c5 { grid-column: 1 / span 6; grid-row: 1; margin-top: 60px; }
  .projects-block .scatter .c1 { grid-column: 8 / span 5; grid-row: 1; margin-top: 0; }
  .projects-block .scatter .c3 { grid-column: 1 / span 5; grid-row: 2; margin-top: 120px; } /* правка 147: по левой колонке, как Revolut */
  .projects-block .scatter .c2 { grid-column: 8 / span 5; grid-row: 2; margin-top: 60px; }
  .projects-block .scatter .c4 { grid-column: 8 / span 5; grid-row: 3; margin-top: 80px; } /* правка 146: по правой колонке */
}
@media (max-width: 760px) { .c5 .scatter-media { aspect-ratio: 4 / 3; } }


/* Правка 144: карточка Revolut Business — чистая обложка: светлый ровный фон и вырезанный логотип
   (media/images/revolut-business-logo.png, прозрачный PNG) вместо серой картинки; карточка меньше (5 колонок, 4:4.6).
   Курсор над карточкой: оранжевая точка вытягивается в «таблетку» с текстом Coming soon и продолжает быть курсором;
   ушёл с карточки — снова точка. Надпись по центру карточки осталась только для экранов без мыши */
.soon-cover { background: #F6F6F8; }
.soon-cover img.soon-logo-img { position: static; inset: auto; width: 58%; height: auto; object-fit: contain; }
.c5 .scatter-media { aspect-ratio: 4 / 4.6; }
@media (min-width: 761px) { .projects-block .scatter .c5 { grid-column: 1 / span 5; } }
@media (hover: hover) {
  .is-soon:hover .soon-cover img { filter: none; opacity: 1; }
  .soon-label { display: none; }
}
.cursor span {
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  transition: transform .25s var(--ease-out), width .4s var(--ease-out), height .4s var(--ease-out),
              margin .4s var(--ease-out), border-radius .4s var(--ease-out);
}
.cursor span::after {
  content: attr(data-label); font-family: var(--font-montreal); font-size: 14px; line-height: 1; color: #fff;
  opacity: 0; transition: opacity .15s linear;
}
.cursor.is-soon span { width: 116px; height: 34px; margin: -17px 0 0 -58px; border-radius: 999px; transform: none; }
.cursor.is-soon span::after { opacity: 1; transition: opacity .25s linear .12s; }
