:root {
  --bg: #2b3024;        /* тёмный мох */
  --bg-2: #343a2c;
  --card: #3a412f;
  --sand: #e8dcc7;      /* основной текст */
  --oat: #d4b895;
  --muted: #a7a28e;
  --sage: #8b9d83;
  --moss: #606c38;
  --clay: #b08b6e;
  --terra: #c66b3d;     /* акцент */
  --line: rgba(232, 220, 199, 0.14);
  --gutter: clamp(16px, 5vw, 72px);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Epilogue", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 90px; }

body {
  background: var(--bg);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
::selection { background: var(--terra); color: var(--sand); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oat); outline-offset: 4px; border-radius: 12px; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* Пока идёт заставка, анимации первого экрана стоят на паузе */
body:not(.ready) .top,
body:not(.ready) .hero * { animation-play-state: paused !important; }

/* ---------- Заставка ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-inner { display: grid; gap: 14px; justify-items: center; }
.loader-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1;
  color: var(--oat);
  font-variant-numeric: tabular-nums;
}
.loader-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--terra); transform: scaleX(0); transform-origin: left; }

/* ---------- Текстура, курсор, прогресс ---------- */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.03; z-index: 150; }

.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--oat);
  pointer-events: none;
  z-index: 140;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background .45s, opacity .3s;
  opacity: 0;
}
.cursor span {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .45s var(--ease);
  white-space: nowrap;
}
.cursor.big { width: 56px; height: 56px; background: rgba(212, 184, 149, .25); }
.cursor.label { width: 96px; height: 96px; background: var(--oat); }
.cursor.label span { opacity: 1; transform: none; }

.progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--moss), var(--terra));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* ---------- Шапка ---------- */
.top {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: rgba(52, 58, 44, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  z-index: 50;
  animation: drop 1s var(--ease) .3s both;
  transition: background .4s, transform .6s var(--ease);
}
.top.scrolled { background: rgba(43, 48, 36, 0.85); }
.top.hide { transform: translate(-50%, -130%); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand .short { display: none; }
@media (max-width: 560px) { .brand .full { display: none; } .brand .short { display: inline; } }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  overflow: hidden;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: color .3s, background .3s;
}
.nav a:hover { color: var(--sand); background: rgba(232, 220, 199, 0.08); }
.nav a.active { color: var(--bg); background: var(--oat); }

@keyframes drop { from { opacity: 0; transform: translate(-50%, -30px); } }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 100px;
  overflow: hidden;
  isolation: isolate;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -2;
  opacity: .55;
  will-change: transform;
  transition: translate 1.2s var(--ease);
}
.blob-1 { width: 520px; height: 520px; background: var(--moss); top: -120px; right: -80px; animation: breathe 12s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: var(--clay); bottom: -100px; right: 22%; opacity: .35; animation: breathe 15s ease-in-out -4s infinite reverse; }
.blob-3 { width: 300px; height: 300px; background: var(--sage); top: 30%; left: -120px; opacity: .3; animation: breathe 18s ease-in-out -8s infinite; }
@keyframes breathe {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50% 45% 55% 50%; }
  33%      { transform: translate(30px, -40px) scale(1.08); border-radius: 40% 60% 45% 55%; }
  66%      { transform: translate(-20px, 25px) scale(.95); border-radius: 55% 40% 60% 45%; }
}
.hero-rings {
  position: absolute;
  right: -140px; top: 50%;
  width: min(720px, 80vw);
  translate: 0 -50%;
  z-index: -1;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 6 10;
  animation: spin 80s linear infinite, fadeIn 2s ease 1s both;
}
.hero-rings circle:nth-child(2) { stroke-dasharray: 2 8; }
.hero-rings circle:nth-child(3) { stroke-dasharray: none; stroke: rgba(198, 107, 61, .25); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes fadeIn { from { opacity: 0; } }

.hero-inner { max-width: 1000px; }
.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--oat);
  font-weight: 500;
  margin-bottom: 20px;
  animation: rise .9s var(--ease) .3s both;
}
.hero-role::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 107, 61, .6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(198, 107, 61, 0); } }

.hero-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .95;
  letter-spacing: -0.035em;
}
.hero-name .word { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-right: .22em; vertical-align: top; }
.hero-name .word:last-child { margin-right: 0; }
.hero-name .ch { display: inline-block; transform: translateY(110%) rotate(8deg); animation: charUp 1.1s var(--ease) both; }
.hero-name .word:last-child .ch { color: var(--oat); font-style: italic; font-weight: 400; }
.hero-name .ch.settled { animation: none; transform: none; transition: transform .4s var(--ease), color .4s; }
.hero-name .ch:hover { transform: translateY(-.12em) rotate(-4deg) !important; color: var(--terra); }
@keyframes charUp { to { transform: none; } }

.hero-lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  animation: rise 1s var(--ease) .9s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation: rise 1s var(--ease) 1.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Кнопки: заливка расходится кругом от курсора */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  transition: color .45s, border-color .45s, transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  translate: -50% -50%;
  scale: 0;
  z-index: -1;
  transition: scale .6s var(--ease);
}
.btn:hover::before { scale: 40; }
.btn-fill { background: var(--sand); color: var(--bg); }
.btn-fill::before { background: var(--terra); }
.btn-fill:hover { color: var(--sand); }
.btn-line { border: 1px solid var(--line); }
.btn-line::before { background: var(--oat); }
.btn-line:hover { color: var(--bg); border-color: var(--oat); }

.hero-count {
  position: absolute;
  right: var(--gutter);
  bottom: 100px;
  text-align: right;
  animation: rise 1s var(--ease) 1.3s both;
}
.count-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 120px);
  line-height: .9;
  font-style: italic;
  color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.count-label { color: var(--muted); font-size: 14px; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 32px;
  width: 26px; height: 42px;
  border: 1.5px solid var(--muted);
  border-radius: 14px;
  transform: translateX(-50%);
  animation: rise 1s var(--ease) 1.6s both;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--oat);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--sand);
  color: var(--bg);
  transform: rotate(-1.5deg) scale(1.03);
  margin: 20px 0 80px;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { font-style: italic; font-weight: 400; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }

/* ---------- Заголовки, собирающиеся из букв ---------- */
.split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(10deg);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
}
.split.visible .ch { opacity: 1; transform: none; filter: none; }

/* ---------- Работы: список ---------- */
.work { padding: 40px var(--gutter) 40px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.filters button {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .35s;
}
.filters button:hover { color: var(--sand); }
.filters button[aria-pressed="true"] { color: var(--bg); }
.filter-pill {
  position: absolute; top: 0; left: 0;
  border-radius: 999px;
  background: var(--oat);
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease);
}

.works { list-style: none; border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); overflow: hidden; }
.work-row.enter { animation: rowIn .8s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(50px); } }

.work-btn {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto 56px;
  align-items: center;
  gap: 24px;
  padding: 36px 16px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
/* заливка, которая въезжает снизу */
.work-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg-2);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.work-btn:hover::before, .work-btn:focus-visible::before { transform: scaleY(1); }

.w-num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .4s; }
.w-main { min-width: 0; }
.w-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: transform .6s var(--ease), color .4s;
}
.w-desc {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  transition: transform .6s var(--ease) .04s;
}
.w-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 280px; }
.w-tags span {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--oat);
  transition: background .4s, color .4s, border-color .4s;
}
.w-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .4s, border-color .4s, transform .6s var(--ease);
}
.w-arrow svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }

.work-btn:hover .w-num { color: var(--terra); }
.work-btn:hover .w-title { transform: translateX(18px); color: var(--oat); }
.work-btn:hover .w-desc { transform: translateX(18px); }
.work-btn:hover .w-tags span { border-color: rgba(212, 184, 149, .4); }
.work-btn:hover .w-arrow { background: var(--terra); border-color: var(--terra); transform: rotate(-45deg); }

/* превью, которое едет за курсором над списком */
.float-preview {
  position: fixed; top: 0; left: 0;
  width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  scale: .6;
  transition: opacity .35s, scale .5s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.float-preview.on { opacity: 1; scale: 1; }
.float-preview .slide {
  position: absolute; inset: 0;
  transition: transform .7s var(--ease);
}

/* «обложка» работы: картинка или градиент с буквой */
.cover {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--moss), var(--sage) 55%, var(--clay));
}
.cover.alt-1 { background: linear-gradient(135deg, var(--clay), var(--terra) 60%, var(--moss)); }
.cover.alt-2 { background: linear-gradient(135deg, var(--sage), var(--moss) 50%, #3d4530); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .letter {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 160px;
  line-height: 1;
  color: rgba(232, 220, 199, .85);
}

.empty { padding: 40px 0; color: var(--muted); }

/* ---------- Окно просмотра работы ---------- */
.viewer { position: fixed; inset: 0; z-index: 120; }
.viewer[hidden] { display: none; }
.viewer-bg {
  position: absolute; inset: 0;
  background: var(--bg-2);
  clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%));
  transition: clip-path .9s var(--ease-io);
}
.viewer.open .viewer-bg { clip-path: circle(150% at var(--vx, 50%) var(--vy, 50%)); }
.viewer-panel {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--gutter) 64px;
}
.viewer-bar {
  position: sticky; top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 24px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity .5s, transform .7s var(--ease);
}
.viewer.open .viewer-bar { opacity: 1; transform: none; transition-delay: .45s; }
.viewer-count { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--oat); font-variant-numeric: tabular-nums; }
.viewer-nav { display: flex; gap: 10px; }
.round {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(43, 48, 36, .6);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .35s, border-color .35s, transform .5s var(--ease);
}
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--oat); color: var(--bg); border-color: var(--oat); }
.round.close:hover { background: var(--terra); border-color: var(--terra); color: var(--sand); transform: rotate(90deg); }
.round:disabled { opacity: .3; pointer-events: none; }

.viewer-body { max-width: 1200px; margin: 0 auto; }
.v-media {
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 28px);
  transition: clip-path 1.1s var(--ease-io);
}
.v-media .cover { transform: scale(1.25); transition: transform 1.6s var(--ease); }
.v-media .letter { font-size: clamp(140px, 22vw, 320px); }
.viewer.open .v-media { clip-path: inset(0 0 0 0 round 28px); transition-delay: .35s; }
.viewer.open .v-media .cover { transform: none; transition-delay: .35s; }

.v-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 64px; margin-top: 48px; }
.v-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  grid-column: 1 / -1;
}
.v-title .word { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-right: .2em; vertical-align: top; }
.v-title .ch { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.viewer.open .v-title .ch { transform: none; }

.v-text p { color: var(--sand); font-size: clamp(18px, 1.6vw, 21px); }
.v-text p + p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.v-side { display: grid; gap: 22px; align-content: start; }
.v-side dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.v-side dd { font-family: var(--serif); font-size: 22px; }
.v-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.v-tags span { font-family: var(--sans); font-size: 14px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--oat); }
.v-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.v-links .soon { color: var(--muted); font-size: 15px; }
.v-links svg { width: 14px; height: 14px; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.viewer.open .fade-up { opacity: 1; transform: none; }

/* смена работы стрелками */
.viewer-body.swap { animation: swap .7s var(--ease); }
@keyframes swap { 0% { opacity: 1; } 40% { opacity: 0; transform: translateX(var(--dir, 40px)); } 41% { transform: translateX(calc(var(--dir, 40px) * -1)); } 100% { opacity: 1; transform: none; } }

/* ---------- Обо мне / Контакты ---------- */
.about, .contact { padding: 140px var(--gutter) 0; display: grid; grid-template-columns: 1fr 2fr; gap: 32px 48px; }
.about-text {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.about-text .w { opacity: .15; transition: opacity .5s; }
.about-text .w.lit { opacity: 1; }

.contact { padding-bottom: 120px; }
.contact-list { list-style: none; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list .copy {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  transition: color .3s, padding .6s var(--ease);
}
.contact-list a::after, .contact-list .copy::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--oat);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease);
}
.contact-list a:hover, .contact-list .copy:hover { color: var(--oat); padding-left: 24px; }
.contact-list a:hover::after, .contact-list .copy:hover::after { transform: scaleX(1); transform-origin: left; }

/* копирование: значение уезжает вверх, на его место выезжает подсказка */
.c-right { position: relative; display: grid; justify-items: end; overflow: hidden; text-align: right; }
.c-right small { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .4s, color .3s; }
.c-hint { transform: translateY(110%); opacity: 0; color: var(--oat) !important; }
.copy:hover .c-value, .copy:focus-visible .c-value, .copy.copied .c-value { transform: translateY(-110%); opacity: 0; }
.copy:hover .c-hint, .copy:focus-visible .c-hint, .copy.copied .c-hint { transform: none; opacity: 1; }
.copy.copied .c-hint { color: var(--terra) !important; }
.copy.copied { animation: copied .5s var(--ease); }
@keyframes copied { 40% { transform: scale(.98); } }
@media (hover: none) {
  .c-hint { display: none; }
  .copy .c-value, .copy:hover .c-value { transform: none; opacity: 1; }
  .copy.copied .c-value { transform: translateY(-110%); opacity: 0; }
  .copy.copied .c-hint { display: block; }
}

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 130;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.contact-list small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.contact-list .note { display: block; padding: 26px 0; color: var(--muted); }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot-big { padding: 40px 0 8px; }
.foot-track { display: flex; width: max-content; will-change: transform; }
.foot-track span {
  font-family: var(--serif);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  padding-right: .4em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 184, 149, .35);
}
.foot-track span:nth-child(even) { font-style: italic; font-weight: 400; color: rgba(198, 107, 61, .55); -webkit-text-stroke: 0; }
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 var(--gutter);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.to-top:hover { color: var(--sand); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Телефон и планшет ---------- */
@media (max-width: 900px) {
  .work-btn { grid-template-columns: 1fr 48px; gap: 12px 16px; padding: 28px 4px; }
  .w-num { grid-column: 1 / -1; }
  .w-main { grid-column: 1; }
  .w-arrow { grid-column: 2; grid-row: 2; width: 48px; height: 48px; align-self: start; }
  .w-tags { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .work-btn:hover .w-title, .work-btn:hover .w-desc { transform: translateX(8px); }
  .v-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { padding: 10px 10px 10px 18px; }
  .brand { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding-bottom: 120px; }
  .hero-count { position: static; text-align: left; margin-top: 48px; }
  .blob-1 { width: 320px; height: 320px; }
  .about, .contact { grid-template-columns: 1fr; padding-top: 96px; }
  .v-media { aspect-ratio: 4 / 3; border-radius: 20px; }
  .round { width: 44px; height: 44px; }
}
@media (max-width: 420px) { .nav a:nth-child(2) { display: none; } }
@media (hover: none) { .cursor, .float-preview { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-name .ch, .v-title .ch { transform: none; }
  .reveal, .split .ch, .fade-up { opacity: 1; transform: none; filter: none; }
  .about-text .w { opacity: 1; }
  .v-media { clip-path: none; }
  .viewer-bg { clip-path: none; }
  .viewer-bar { opacity: 1; transform: none; }
}
