/* BadRabbit — обложка зина, тело журнала. */

:root {
  --paper: #0c0c0c;      /* Deep Void */
  --paper-2: #0c0c0c;
  --ink: #ead6d4;        /* заголовки и главный текст */
  --ink-2: #cfb0ad;      /* текст постов */
  --muted: #ac7e7c;      /* Dusty Rose */
  --faint: #8a6f6d;
  --rule: #241d1d;
  --line: #403736;       /* броня: рамки и полосы */
  --armor: #351212;      /* броня: тёмные блоки */
  --steel: #242424;
  --acc: #d33637;        /* Bright Red */
  --acc-hi: #f26b6b;     /* красный для мелкого текста на тёмном: контраст ≥ 4.5 */
  --on-acc: #fff4f3;
  --ink-muted: #ac7e7c;

  --f-poster: 'Space Grotesk', 'Inter Tight', system-ui, sans-serif;
  --f-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, sans-serif;
  --f-read: 'Literata', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --b: 2px solid var(--line);
  --gut: clamp(16px, 4vw, 28px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--acc); }

.acc { background: var(--acc); color: var(--on-acc); }
.ink { background: var(--armor); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 12px; background: var(--acc); color: var(--on-acc); font-weight: 700; }
.skip:focus { left: 8px; }

/* Кросс-документные переходы: страница не «мигает» при навигации. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 260ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gut);
  border-bottom: var(--b);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  font-size: 13px;
}
.logo { font: 700 17px/1 var(--f-poster); letter-spacing: -.02em; text-decoration: none; }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  position: relative; padding: 6px 10px; text-decoration: none; font-weight: 500;
}
.nav nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--acc);
  transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
.nav nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover::after { transform: scaleX(1); }
}

/* ── Hero ────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 300px; border-bottom: var(--b); }
.hero-l { position: relative; padding: 34px var(--gut) 28px; border-right: var(--b); overflow: hidden; }
.poster {
  margin: 0; font: 700 clamp(64px, 12vw, 148px)/.86 var(--f-poster); letter-spacing: -.055em;
}
.poster .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.poster .ln > span { display: inline-block; }
.poster em { font-style: normal; padding: 0 .08em; position: relative; z-index: 0; background: none; }
.poster em::before {
  content: ''; position: absolute; inset: .06em -.02em .02em; background: var(--acc); z-index: -1;
  transform-origin: left;
}
.lead { margin: 18px 0 0; max-width: 34ch; font: italic 400 clamp(17px, 2vw, 21px)/1.45 var(--f-read); color: var(--muted); }

.sticker {
  position: absolute; top: 30px; right: 30px;
  padding: 8px 12px; border: var(--b);
  font: 700 12px/1.2 var(--f-head); text-transform: uppercase; text-align: center; text-decoration: none;
  transform: rotate(6deg);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
  cursor: pointer; user-select: none; touch-action: none;
}
@media (hover: hover) and (pointer: fine) {
  .sticker:hover { transform: rotate(-3deg) scale(1.06); box-shadow: 6px 6px 0 var(--ink); }
}
.sticker:active { transform: rotate(-3deg) scale(.97); box-shadow: 2px 2px 0 var(--ink); }

.hero-r { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 22px 0; }
.av {
  width: 58px; height: 58px; border: var(--b);
  background: repeating-linear-gradient(45deg, var(--acc) 0 6px, var(--paper) 6px 12px);
  background-size: 200% 200%;
  animation: stripes 6s linear infinite;
}
@keyframes stripes { to { background-position: 100% 100%; } }
.hero-r p { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.hero-r p a { font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px -22px 0; border-top: var(--b); }
.stats div { padding: 12px 0; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dd { margin: 0; font: 700 26px/1.1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { order: 2; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats div { display: flex; flex-direction: column-reverse; }

/* ── Ticker ──────────────────────────────────────────── */
.ticker { overflow: hidden; border-bottom: var(--b); font: 12px/1 var(--f-mono); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker ul { display: flex; gap: 40px; margin: 0; padding: 11px 20px; list-style: none; white-space: nowrap; }
.ticker li::before { content: '●'; margin-right: 10px; color: var(--acc); }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Featured ────────────────────────────────────────── */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; border-bottom: var(--b); }
.feat-l { padding: 30px var(--gut); }
.k { font: 700 11px/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.k span { padding: 2px 7px; }
.k .outline { border: 1.5px solid var(--line); color: var(--muted); }
.k a { color: var(--muted); text-decoration: none; }
.k a::before { content: '#'; }
.k a:hover { color: var(--ink); }
.feat h2 { margin: 14px 0 0; font: 800 clamp(28px, 3.6vw, 44px)/1.04 var(--f-head); letter-spacing: -.035em; }
.feat h2 a { text-decoration: none; }
.feat p { margin: 12px 0 0; max-width: 46ch; color: var(--ink-muted); font: 16px/1.55 var(--f-read); }
.go, .btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px;
  font: 700 13px/1 var(--f-ui); text-decoration: none; border: 0;
  transition: transform 160ms var(--ease-out);
}
.go span { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .go:hover span { transform: translateX(4px); } }
.go:active, .btn:active { transform: scale(.97); }
.feat-r { padding: 26px 26px; border-left: 2px solid #4a1c1c; display: flex; align-items: center; }
.term { margin: 0; font: 13px/1.85 var(--f-mono); color: var(--acc-hi); white-space: pre-wrap; }
.term i { color: var(--muted); font-style: normal; }
.term span { display: inline-block; }
.term .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Body: feed + side ───────────────────────────────── */
.body { display: grid; grid-template-columns: 1fr 300px; }
.body.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.feed { padding: 22px var(--gut) 34px; border-right: var(--b); min-width: 0; }
.body.single .feed { border-right: 0; }

.chips { position: relative; display: inline-flex; gap: 6px; margin-bottom: 6px; }
.chip {
  position: relative; z-index: 1;
  padding: 6px 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 600 12px/1 var(--f-ui); cursor: pointer;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.chip i { font-style: normal; opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { color: var(--on-acc); border-color: var(--acc); }
.chip:active { transform: scale(.97); }
.chip-ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; background: var(--acc);
  transition: transform 320ms var(--ease-out), width 320ms var(--ease-out);
}
/* Без JS индикатора нет — подсвечиваем активный чип сам по себе. */
html:not(.js) .chip[aria-pressed="true"] { background: var(--acc); }

.wk {
  margin: 22px 0 0; padding-bottom: 7px; border-bottom: var(--b);
  font: 600 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
}
.rows { margin: 0; padding: 0; list-style: none; }
.row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.row .d { font: 12px/1 var(--f-mono); color: var(--faint); }
.row .t { text-decoration: none; min-width: 0; }
.row .tt {
  font: 600 19px/1.28 var(--f-read);
  background: linear-gradient(var(--acc), var(--acc)) 0 88% / 0 .38em no-repeat;
  transition: background-size 320ms var(--ease-out);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (hover: hover) and (pointer: fine) {
  .row .t:hover .tt { background-size: 100% .38em; }
}
.row small { display: block; margin-top: 3px; font: 13px/1.45 var(--f-ui); color: var(--muted); }
.tg {
  font: 700 10px/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border: 1.5px solid var(--line); color: var(--muted); white-space: nowrap;
}
.row[hidden], .week[hidden] { display: none; }
.empty { color: var(--muted); }

.side { padding: 22px 22px 34px; }
.side h4, .page-h h4 {
  margin: 0; padding-bottom: 7px; border-bottom: var(--b);
  font: 600 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
}
.proj { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.proj b { display: block; font: 700 17px/1.2 var(--f-head); letter-spacing: -.02em; transition: transform 220ms var(--ease-out); }
.proj span { font-size: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .proj:hover b { transform: translateX(4px); } }
.bar { display: block; height: 4px; margin-top: 8px; background: var(--steel); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); transform: scaleX(var(--p)); transform-origin: left; }

/* ── Post ────────────────────────────────────────────── */
.progress { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 4px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--acc); box-shadow: 0 0 12px rgba(211, 54, 55, .6); transform: scaleX(0); transform-origin: left; }

body.post { background: var(--paper-2); }
.art { max-width: 720px; margin: 0 auto; padding: 44px var(--gut) 64px; }
.art-h h1 { margin: 16px 0 0; font: 800 clamp(34px, 5.6vw, 58px)/1.02 var(--f-head); letter-spacing: -.04em; text-wrap: balance; }
.meta { margin: 16px 0 0; padding-bottom: 16px; border-bottom: var(--b); font: 13px/1.4 var(--f-ui); color: var(--faint); }

.prose { font: 18.5px/1.68 var(--f-read); color: var(--ink-2); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font: 800 28px/1.15 var(--f-head); letter-spacing: -.03em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font: 700 21px/1.25 var(--f-head); letter-spacing: -.02em; color: var(--ink); }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); transition: text-decoration-color 160ms ease, background-color 160ms ease; }
.prose a:hover { text-decoration-color: var(--ink); background: var(--acc); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin-left: 0; padding: 2px 0 2px 18px; border-left: 5px solid var(--acc); font-style: italic; font-size: 20px; color: var(--ink); }
.prose hr { border: 0; border-top: var(--b); margin: 2.2em 0; }
.prose :not(pre) > code { font: .84em var(--f-mono); padding: .1em .35em; background: var(--steel); color: var(--ink); border-radius: 3px; }
.prose pre {
  position: relative; overflow-x: auto; padding: 18px 20px; border-radius: 4px;
  background: #141212 !important; color: #ece4e5; border: 1px solid var(--line);
  font: 13.5px/1.65 var(--f-mono);
}
.prose pre code { font: inherit; }
.prose table { width: 100%; border-collapse: collapse; font: 14.5px/1.45 var(--f-ui); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: var(--b); font-weight: 700; }
.prose .callout { padding: 14px 16px; border: 1.5px dashed var(--line); font: 15px/1.55 var(--f-ui); }

.copy {
  position: absolute; top: 8px; right: 8px; padding: 5px 9px; border: 1px solid #3a2b2f; background: #1f1619; color: #d3c5c8;
  font: 600 11px/1 var(--f-ui); cursor: pointer; opacity: 0; transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.prose pre:hover .copy, .copy:focus-visible { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.copy:active { transform: scale(.95); }
.copy[data-done] { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }

.src { margin-top: 34px; padding: 14px 16px; border: 1.5px dashed var(--line); color: var(--ink-2); font: 14px/1.55 var(--f-ui); }
.src + .src { margin-top: 12px; }
.src a { word-break: break-word; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.pn a { display: block; padding: 14px 16px; border: var(--b); text-decoration: none; font: 600 15px/1.35 var(--f-head); transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.pn small { display: block; margin-bottom: 4px; font: 600 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.pn-next { text-align: right; }
@media (hover: hover) and (pointer: fine) { .pn a:hover { box-shadow: 4px 4px 0 var(--acc); transform: translate(-2px, -2px); } }
.pn a:active { transform: scale(.98); box-shadow: none; }

/* ── Page header, projects, tags ─────────────────────── */
.page-h { padding: 40px var(--gut) 26px; border-bottom: var(--b); }
.page-h h1 { margin: 0; font: 800 clamp(40px, 7vw, 84px)/.95 var(--f-head); letter-spacing: -.045em; }
.page-h .lead { max-width: 52ch; }
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

.pgrid { overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pcard { padding: 24px var(--gut); border-right: var(--b); border-bottom: var(--b); margin-right: -2px; }
.pcard-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pcard h2 { margin: 0; font: 800 32px/1 var(--f-head); letter-spacing: -.04em; }
.pcard p { margin: 12px 0 0; font: 16px/1.55 var(--f-read); color: var(--ink-2); }
.pcard ul { margin: 16px 0 0; padding: 0; list-style: none; }
.pcard li a { display: block; padding: 8px 0; border-top: 1px solid var(--rule); text-decoration: none; font: 15px/1.35 var(--f-read); }
.pcard li time { font: 12px var(--f-mono); color: var(--faint); margin-right: 8px; }
@media (hover: hover) and (pointer: fine) { .pcard li a:hover { background: var(--acc); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px var(--gut) 40px; margin: 0; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); text-decoration: none; font: 600 13px/1 var(--f-ui); transition: transform 160ms var(--ease-out); }
.tags a:active { transform: scale(.97); }
.tags i { font-style: normal; opacity: .55; margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .tags a:hover { background: var(--acc); } }

/* ── Фигуры в постах ─────────────────────────────────── */
.prose .fig { margin: 1.8em 0; }
.prose .fig img { display: block; width: 100%; height: auto; border: var(--b); background: #efe3e1; }
.prose .fig figcaption { margin-top: 8px; font: 13px/1.45 var(--f-ui); color: var(--muted); }
.prose .fig figcaption::before { content: '↑ '; color: var(--ink); font-weight: 700; }

/* ── Поля поста (только десктоп) ─────────────────────── */
.rail { display: none; }
@media (min-width: 1280px) {
  .post-grid { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: 24px; }
  .post-grid .art { margin: 0; }
  .rail { display: block; padding-top: 44px; }
  .rail-in { position: sticky; top: 96px; }
  .rail-l .rail-in { display: flex; flex-direction: column; align-items: flex-end; padding-right: 8px; }
  .rail-r .rail-in { padding-left: 8px; max-width: 280px; }
}

/* Ева: белый фон картинки растворяется в бумаге через multiply. */
.eva { position: relative; isolation: isolate; display: flex; justify-content: center; width: 220px; transform-origin: 50% 100%; }
.eva img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(300px, 38vh); animation: eva-float 4.2s ease-in-out infinite alternate; }
.eva::before {
  content: ''; position: absolute; inset: 8% -18% 6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(211, 54, 55, .28), rgba(211, 54, 55, 0));
}
.eva-glow {
  position: absolute; left: 6%; right: 6%; bottom: -16px; height: 38px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 54, 55, .85), rgba(211, 54, 55, 0));
  animation: eva-glow 4.2s ease-in-out infinite alternate;
}
@keyframes eva-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes eva-glow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.82); opacity: .6; } }

.bubble {
  position: relative; max-width: 220px; margin: 0 0 14px; padding: 10px 12px;
  background: var(--steel); color: var(--ink); border: var(--b); box-shadow: 3px 3px 0 var(--acc);
  font: 600 13px/1.4 var(--f-ui); text-align: left;
  transform-origin: 70% 100%;
}
.bubble::after {
  content: ''; position: absolute; bottom: -10px; right: 46px; width: 16px; height: 16px;
  background: var(--steel); border-right: var(--b); border-bottom: var(--b); transform: rotate(45deg);
}
.js .bubble { opacity: 0; transform: scale(.94) translateY(6px); }
.js.ready .bubble { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out) 900ms, transform 500ms cubic-bezier(.34, 1.56, .64, 1) 900ms; }

.topic {
  display: block; width: 150px; height: auto; margin: 0 0 20px; max-height: 130px; object-fit: contain;
  /* Вырубная обводка «стикера»: без неё чёрные линии теряются на тёмном фоне. */
  filter: drop-shadow(2px 0 0 #ead6d4) drop-shadow(-2px 0 0 #ead6d4) drop-shadow(0 2px 0 #ead6d4) drop-shadow(0 -2px 0 #ead6d4) drop-shadow(4px 4px 0 rgba(211, 54, 55, .55));
  transform: rotate(-5deg); transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
@media (hover: hover) and (pointer: fine) { .topic:hover { transform: rotate(4deg) scale(1.06); } }

.toc h4 {
  margin: 0 0 8px; padding-bottom: 7px; border-bottom: var(--b);
  font: 600 11px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  position: relative; display: block; padding: 6px 0 6px 26px; text-decoration: none;
  font: 13px/1.35 var(--f-ui); color: var(--muted); transition: color 160ms ease;
}
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 7px; font: 11px var(--f-mono); color: var(--faint); }
.toc a::after {
  content: ''; position: absolute; left: 22px; top: 6px; bottom: 6px; width: 3px; background: var(--acc);
  transform: scaleY(0); transform-origin: top; transition: transform 260ms var(--ease-out);
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.toc a[aria-current="true"]::after { transform: scaleY(1); }

.nf-eva { width: auto; max-width: min(280px, 70vw); max-height: 300px; margin-top: 24px; animation: eva-float 4.2s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .eva img, .eva-glow, .nf-eva { animation: none; }
  .js .bubble { transform: none !important; }
}

/* ── Footer ──────────────────────────────────────────── */
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--gut); background: var(--steel); color: var(--muted); border-top: 2px solid var(--acc); font: 12px/1.5 var(--f-mono);
}

/* ── Motion (включается JS, иначе всё видно сразу) ───── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bar i { transform: scaleX(0); transition: transform 900ms var(--ease-out) 150ms; }
.js .in .bar i, .js .bar.in i { transform: scaleX(var(--p)); }

.js .poster .ln > span { transform: translateY(105%); }
.js .poster em::before { transform: scaleX(0); }
.js.ready .poster .ln > span { transform: none; transition: transform 800ms var(--ease-out); }
.js.ready .poster .ln:nth-child(2) > span { transition-delay: 90ms; }
.js.ready .poster em::before { transform: scaleX(1); transition: transform 600ms var(--ease-in-out) 520ms; }
.js .hero .lead, .js .hero-r { opacity: 0; transform: translateY(10px); }
.js.ready .hero .lead, .js.ready .hero-r { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 300ms, transform 600ms var(--ease-out) 300ms; }
.js.ready .hero-r { transition-delay: 420ms; }
.js .sticker { opacity: 0; transform: rotate(-20deg) scale(.9) translateY(-14px); }
.js.ready .sticker { opacity: 1; transform: rotate(6deg); transition: opacity 300ms ease 700ms, transform 700ms cubic-bezier(.34, 1.56, .64, 1) 700ms, box-shadow 260ms var(--ease-out); }
.js.ready .sticker.settled { transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }

.js .art-h > * { opacity: 0; transform: translateY(12px); }
.js.ready .art-h > * { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js.ready .art-h > :nth-child(2) { transition-delay: 70ms; }
.js.ready .art-h > :nth-child(3) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal, .js .poster .ln > span, .js .hero .lead, .js .hero-r, .js .sticker, .js .art-h > * { transform: none !important; transition: opacity 200ms ease !important; }
  .js .poster em::before { transform: none; }
  .ticker-track { animation: none; }
  .ticker ul + ul { display: none; }
  .ticker { overflow-x: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero, .feat, .body { grid-template-columns: 1fr; }
  .hero-l { border-right: 0; border-bottom: var(--b); }
  .hero-r { padding: 20px var(--gut) 0; }
  .stats { margin: 18px calc(-1 * var(--gut)) 0; }
  .feat-r { border-left: 0; border-top: 2px solid #4a1c1c; padding: 20px var(--gut); }
  .feed { border-right: 0; border-bottom: var(--b); }
  .side { padding: 22px var(--gut) 34px; }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; padding-bottom: 8px; }
  .nav nav { justify-content: flex-start; margin-left: -10px; }
  .sticker { position: static; display: inline-block; margin-top: 20px; transform: rotate(-2deg); }
  .js.ready .sticker { transform: rotate(-2deg); }
  .row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .row .d { grid-column: 1 / -1; }
  .row .tt { font-size: 17.5px; }
  .prose { font-size: 17.5px; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
}
