/* ============================================================
   Атласы невидимого — обложка серии
   Ручная работа: бумага, высокая печать, скотч и красный карандаш.
   ============================================================ */

:root {
  --paper: #efe7d6;
  --paper-2: #e6dcc6;
  --paper-3: #f6f0e3;
  --ink: #1b1916;
  --ink-soft: #5b5347;
  --ink-faint: rgba(27, 25, 22, 0.18);
  --red: #d42a1e;
  --red-deep: #a81d14;
  --blue: #1f4f8f;
  --tape: rgba(226, 214, 176, 0.72);

  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --serif: "Old Standard TT", "PT Serif", Georgia, "Times New Roman", serif;
  --mono: "PT Mono", "Courier New", ui-monospace, monospace;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  background-color: var(--paper);
  /* бумага: волокна, зерно, лёгкое потемнение к краям */
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(120, 90, 40, 0.14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .06' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-attachment: fixed, scroll, scroll;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.hand { font-family: var(--hand); font-weight: 500; letter-spacing: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
  font-family: var(--mono); text-decoration: none;
}
.skip:focus { top: 12px; }

a { color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 4px; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  transition: filter .35s ease;
}

/* скотч */
.tape {
  position: absolute; z-index: 2;
  width: 118px; height: 30px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(80, 60, 20, .18);
  clip-path: polygon(3% 0, 97% 4%, 100% 20%, 96% 42%, 100% 64%, 97% 100%, 2% 96%, 0 74%, 4% 50%, 0 24%);
  pointer-events: none;
}
.tape::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.12) 9px 10px);
}

/* ---------------- Герой ---------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 18px 0 40px;
}

.hero-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
  filter: url(#wobble);
}

.hero-head {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap;
  padding-top: 40px;
}

.hero-kicker {
  position: relative;
  margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; color: var(--red);
  transform: rotate(-4deg); transform-origin: left bottom;
}
.kicker-arrow {
  position: absolute; left: 100%; top: 40%;
  width: 90px; height: 40px; margin-left: 6px; color: var(--red);
  filter: url(#wobble);
}

.hero-warn {
  display: flex; align-items: center; gap: 12px;
  max-width: 330px; margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--red);
  font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em;
  transform: rotate(1.6deg);
  background: var(--paper-3);
  filter: url(#wobble);
}
.hero-warn b {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; background: var(--red); color: var(--paper);
  font-size: 22px; font-family: var(--display);
}

.hero-title { margin: 18px 0 0; font-weight: 400; }

.hero-stage { display: block; position: relative; }
.hero-word {
  display: block;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 18.5vw; line-height: .95; letter-spacing: -0.01em;
  white-space: nowrap;
}
.has-plates .hero-word { position: absolute; inset: 0; color: transparent; overflow: hidden; }
.hero-canvas { display: block; }
.has-plates .hero-stage { cursor: crosshair; }

.hero-line {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(34px, 7vw, 106px); line-height: 1.02;
  margin-top: .1em;
}
.hero-line em { position: relative; color: var(--red); white-space: nowrap; }
.scribble {
  position: absolute; left: -2%; right: -4%; bottom: -.16em;
  width: 106%; height: .24em; color: var(--red);
  filter: url(#wobble);
  overflow: visible;
}

.hero-under {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin: 30px 0 auto;
}
.eras-label { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.eras-label span { color: var(--ink); }
.eras-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.era-btn {
  position: relative;
  display: grid; justify-items: center; gap: 0;
  min-width: 70px; padding: 6px 10px 4px;
  background: var(--paper-3); color: var(--ink);
  border: 1.5px solid var(--ink); cursor: pointer;
  font-size: 14px; line-height: 1.1;
  transition: transform .15s, background .15s, color .15s;
}
.era-btn:nth-child(odd) { transform: rotate(-1.5deg); }
.era-btn:nth-child(even) { transform: rotate(1.2deg); }
.era-btn:hover { transform: rotate(0) translateY(-2px); }
.era-btn .era-name { font-size: 17px; color: var(--ink-soft); white-space: nowrap; }
.era-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.era-btn[aria-pressed="true"] .era-name { color: var(--paper); }
.eras-hint { margin: 10px 0 0; font-size: 21px; color: var(--red); transform: rotate(-1deg); }

.hero-stamp {
  display: inline-block;
  color: var(--red);
  border: 4px double currentColor; border-radius: 6px;
  padding: 8px 18px 6px;
  font-size: clamp(22px, 3vw, 36px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1; text-align: center;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  filter: url(#ink-edge);
  animation: stamp-in .5s .5s cubic-bezier(.2,1.6,.4,1) both;
}
.hero-stamp small { display: block; font-size: .38em; letter-spacing: .12em; margin-top: 6px; font-weight: 400; }

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-9deg) scale(2.6); }
  to   { opacity: .9; transform: rotate(-9deg) scale(1); }
}

/* ---------------- Бумажная лента ---------------- */

.ticker-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 30px 0;
  overflow: hidden;
}
.ticker {
  width: 110%; margin-left: -5%;
  background: var(--paper-3);
  color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 3px 8px rgba(80, 60, 20, .18);
  overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  padding: 16px 0 14px;
  font-size: clamp(14px, 1.5vw, 18px); letter-spacing: .04em; white-space: nowrap;
  animation: ticker 70s linear infinite;
}
.ticker-track span { padding-right: .5em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Манифест ---------------- */

.manifesto { position: relative; padding: 72px 0 24px; }
.manifesto-sheet {
  position: relative;
  max-width: 1040px;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 60px);
  background: var(--paper-3);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -12px rgba(80, 60, 20, .35);
  transform: rotate(-0.5deg);
}
.manifesto-sheet .tape--l { left: -30px; top: 16px; transform: rotate(-34deg); }
.manifesto-sheet .tape--r { right: -26px; top: -10px; transform: rotate(28deg); }
.manifesto-lead {
  font-size: clamp(23px, 3vw, 40px);
  line-height: 1.25;
  margin: 0 0 28px;
}
.manifesto-punch {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 6.4vw, 96px); line-height: .95; margin: 0 0 24px;
}
.manifesto-punch span { color: var(--red); display: block; }
.manifesto-note { font-size: 14px; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.margin-note {
  position: absolute; right: 0; bottom: -8px;
  margin: 0; max-width: 260px;
  font-size: 26px; line-height: 1.05; color: var(--red);
  transform: rotate(-5deg);
}

/* ---------------- Секции ---------------- */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
  margin: 88px 0 28px;
}
.section-head--sub { margin-top: 56px; }
.section-head h2,
.colophon h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(42px, 6vw, 84px);
  margin: 0; line-height: .95;
}
.section-head .h-sub { font-size: clamp(32px, 4.2vw, 56px); }
.sec-no { display: block; font-size: 13px; font-weight: 400; color: var(--red); letter-spacing: .14em; margin-bottom: 6px; }
.hint { margin: 0; font-size: 13px; color: var(--ink-soft); max-width: 46ch; }
.hint.hand { font-size: 24px; color: var(--red); transform: rotate(-2deg); }

/* ---------------- Картотека: папки ---------------- */

.catalog {
  list-style: none; margin: 0; padding: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr));
  gap: 96px 56px;
}

.folder {
  --tilt: 0deg;
  --manila: #d6b576;
  --manila-2: #caa564;
  position: relative;
  min-width: 0;
  transform: rotate(var(--tilt));
  transition: transform .3s cubic-bezier(.3,1.4,.5,1);
}
.folder.is-open { transform: rotate(0deg); z-index: 5; }

.folder-body {
  position: relative;
  aspect-ratio: 5 / 4.1;
  perspective: 1600px;
}

/* задник с корешком-вкладкой */
.folder-back {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .1 0 0 0 .25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    var(--manila-2);
  border-radius: 3px 6px 6px 6px;
  box-shadow: 0 16px 24px -14px rgba(70, 45, 10, .55), inset 0 0 0 1px rgba(90, 60, 20, .25);
}
.folder-tab {
  position: absolute; bottom: 100%; left: var(--tab);
  padding: 6px 16px 4px 26px;
  background: var(--manila-2);
  border-radius: 7px 7px 0 0;
  font-size: 12px; letter-spacing: .14em; color: #3c2a10;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.folder-tab::before {
  /* цветная наклейка тома */
  content: ""; position: absolute; left: 9px; top: 50%; width: 10px; height: 10px; margin-top: -6px;
  border-radius: 50%; background: var(--spine); box-shadow: 0 0 0 1.5px rgba(255,255,255,.6);
}

/* лист внутри папки */
.sheet {
  position: absolute; inset: 12px 12px 10px;
  display: block; overflow: hidden;
  color: inherit; text-decoration: none;
  container-type: inline-size;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .3s ease;
}
.folder.is-open .sheet { cursor: pointer; }
.folder.is-open .sheet:hover { transform: translateY(-4px); }
.sheet p { margin: 0; }
.s-in { position: relative; height: 100%; }

/* обложка откидывается вверх на петле */
.folder-cover {
  position: absolute; inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, 1.25, .45, 1);
  pointer-events: none;
}
.folder.is-open .folder-cover { transform: rotateX(172deg); }
.cover-front, .cover-inside {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 3px 6px 6px 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.01 .45' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .12 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #e2c388, var(--manila) 60%, #cfa965);
  box-shadow: inset 0 0 0 1px rgba(90, 60, 20, .3), inset 0 -18px 30px -20px rgba(90, 60, 20, .5);
}
.cover-inside { transform: rotateX(180deg); background-color: #d9bd83; }

.cover-front { padding: 16px 18px; color: #2d2110; }
.cf-top {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  padding-bottom: 8px; border-bottom: 1.5px solid rgba(45, 33, 16, .55);
  margin: 0 0 14px;
}
.cf-label {
  display: grid; gap: 2px;
  width: fit-content; max-width: 88%;
  padding: 10px 16px 8px;
  background: #f6f0e1;
  border: 1px solid rgba(45, 33, 16, .3);
  box-shadow: 1px 2px 0 rgba(45, 33, 16, .18);
  transform: rotate(-1.2deg);
}
.cf-label .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b5a3c; }
.cf-label strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; color: var(--ink); }
.cf-label em { font-style: normal; font-size: 21px; line-height: 1; color: var(--red); }
.cf-hook { margin: 14px 0 0; max-width: 30ch; font-style: italic; font-size: 16px; line-height: 1.3; }
.cf-note { position: absolute; right: 18px; top: 44%; font-size: 20px; color: #1f4f8f; transform: rotate(-6deg); }
.cover-front .stamp { position: absolute; right: 16px; bottom: 18px; }
/* нитяная завязка на двух пуговицах */
.cf-tie {
  position: absolute; left: 50%; bottom: 14px; width: 60px; height: 30px; margin-left: -30px;
  background:
    radial-gradient(circle at 12px 15px, #8a6a3a 0 5px, #6e5128 5px 7px, transparent 7.5px),
    radial-gradient(circle at 48px 15px, #8a6a3a 0 5px, #6e5128 5px 7px, transparent 7.5px);
}
.cf-tie::after {
  content: ""; position: absolute; left: 10px; top: 6px; width: 46px; height: 22px;
  border: 1.5px solid #efe6cf; border-radius: 50% 40% 60% 45%;
  transform: rotate(-8deg);
  filter: url(#wobble);
}

.cover-inside { padding: 16px 18px; color: #2d2110; }
.ci-title { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.ci-rows p {
  display: flex; justify-content: space-between; gap: 8px; margin: 0;
  padding: 3px 0; border-bottom: 1px solid rgba(45, 33, 16, .3);
  font-size: 13px;
}
.ci-rows .hand { font-size: 20px; line-height: 1; color: #1f4f8f; }
.ci-tech { margin: 12px 0 0; font-size: 19px; line-height: 1.1; color: #2d2110; }

/* кнопка-«петля» для клавиатуры и экранных дикторов */
.folder-toggle {
  position: absolute; inset: 0; z-index: 3; width: 100%;
  background: transparent; border: 0; cursor: pointer;
}
.folder.is-open .folder-toggle { pointer-events: none; }
.folder-toggle:focus-visible { outline: 2px dashed var(--red); outline-offset: 6px; }

.folder-meta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-top: 18px;
}
.fm-meta { margin: 0; font-size: 12.5px; line-height: 1.5; min-width: 0; }
.fm-meta div { display: grid; grid-template-columns: 62px 1fr; gap: 6px; }
.fm-meta dt { color: var(--ink-soft); }
.fm-meta dd { margin: 0; }
.folder-meta .btn { flex: none; }

.btn {
  position: relative;
  font-family: var(--mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  padding: 12px 20px; border: 0; background: transparent; color: var(--ink);
  cursor: pointer;
}
.btn span { position: relative; z-index: 1; }
.btn-ring {
  position: absolute; left: -8px; top: -6px; width: calc(100% + 16px); height: calc(100% + 12px);
  color: var(--ink); filter: url(#wobble); overflow: visible;
  transition: color .15s;
}
.btn:hover .btn-ring, .btn:focus-visible .btn-ring { color: var(--red); }
.btn:hover { color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* штамп */
.stamp {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; line-height: 1.1; text-align: center;
  padding: 5px 9px;
  border: 3px double currentColor; border-radius: 4px;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  filter: url(#ink-edge);
  pointer-events: none;
}
.stamp small { display: block; font-size: 10px; letter-spacing: .06em; font-weight: 400; }
.stamp--out { color: var(--red); }
.stamp--press { color: var(--blue); transform: rotate(6deg); }

.catalog--plain { display: block; padding: 0 0 0 1.2em; }
.catalog--plain li { margin: 8px 0; font-size: 20px; }

/* ---------------- Листы в вёрстке томов ---------------- */

/* I · HAEMA — чёрный лист, ASCII из букв генома, ксерокс */
.sheet--haema {
  background: #000; color: #d9d9d9;
  font-family: var(--mono);
}
.sheet--haema > .s-in {
  padding: 6cqw 6cqw; }
.sheet--haema::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sheet--haema .s-kicker { font-size: 3cqw; letter-spacing: .12em; text-transform: uppercase; color: #9c9c9c; margin-bottom: 2.4cqw; }
.s-ascii { margin: 0; font-family: var(--mono); font-size: 2.55cqw; line-height: 1; color: #f2f2f2; white-space: pre; overflow: hidden; }
.s-ascii span { display: block; }
.s-ascii--2 { margin: 1.5cqw 0 3cqw; color: #bdbdbd; font-size: 2.04cqw; }
.sheet--haema .s-scrawl { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 5.4cqw; line-height: 1; color: #eeeae0; transform: rotate(-3deg); margin-bottom: 2.4cqw; }
.sheet--haema .s-lead { font-size: 3cqw; line-height: 1.5; color: #d9d9d9; }
.sheet--haema .s-lead em { font-style: normal; color: #f2f2f2; text-decoration: underline; text-underline-offset: 2px; }

/* II · MYCELIUM — ризограф, полевой определитель */
.sheet--mycelium {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    #ece2cb;
  background-size: 180px;
  color: #1c3a2a;
  font-family: "Literata", "PT Serif", Georgia, serif;
}
.sheet--mycelium > .s-in {
  padding: 5cqw; }
.sheet--mycelium .s-card {
  position: relative; height: 100%;
  padding: 5cqw 5.5cqw;
  background: #f3ecdc;
  border: 1px solid rgba(28,58,42,.28);
  box-shadow: 1.5cqw 1.5cqw 0 -1px transparent;
  outline: 1px dotted #ff4fa3; outline-offset: .8cqw;
}
.sheet--mycelium .s-kicker { font-family: "Spectral SC", "Literata", serif; font-weight: 700; font-size: 2.6cqw; letter-spacing: .06em; color: #1f4b8f; padding-bottom: 2cqw; border-bottom: 1px solid rgba(28,58,42,.28); }
.sheet--mycelium .s-title {
  margin-top: 2cqw;
  font-weight: 800; font-size: 13.5cqw; line-height: 1; letter-spacing: .01em; color: #11281d;
  text-shadow: -.5cqw .2cqw 0 #ff4fa3, .45cqw .35cqw 0 rgba(42, 92, 170, .75);
}
.sheet--mycelium .s-latin { font-style: italic; font-size: 4.6cqw; color: #b0105a; margin-top: 1cqw; }
.sheet--mycelium .s-sub { font-weight: 600; font-size: 5cqw; line-height: 1.15; margin-top: 3cqw; }
.sheet--mycelium .s-marks { display: flex; flex-wrap: wrap; gap: 1.6cqw; margin-top: 4cqw; max-width: 62cqw; }
.sheet--mycelium .s-marks span { font-family: "Spectral SC", serif; font-weight: 700; font-size: 2.6cqw; letter-spacing: .08em; padding: .6cqw 1.6cqw; border: 2px solid currentColor; }
.s-marks .g { color: #1e5b3f; } .s-marks .b { color: #1f4b8f; } .s-marks .p { color: #b0105a; }
.sheet--mycelium .s-stamp {
  position: absolute; right: 4cqw; bottom: 3cqw;
  font-family: "Spectral SC", serif; font-size: 2.8cqw; line-height: 1.2; text-align: center; letter-spacing: .1em;
  color: rgba(255, 79, 163, .75); border: 1.5px solid currentColor; padding: 1cqw 2cqw; transform: rotate(-7deg);
}

/* III · Ночная смена — советский научпоп, плакатный шрифт */
.sheet--night {
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(90, 70, 30, .1) 50%, transparent 50.4%),
    linear-gradient(180deg, transparent 49.6%, rgba(90, 70, 30, .08) 50%, transparent 50.4%),
    #efe6cf;
  color: #1c1a17;
}
.sheet--night > .s-in {
  padding: 5cqw 6cqw; }
.sheet--night .s-mast {
  display: flex; justify-content: space-between; gap: 2cqw;
  font-family: var(--display); font-weight: 500; font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase;
  border-top: 1.4cqw solid #1c1a17; border-bottom: 1px solid #1c1a17;
  padding: 1.4cqw 0;
}
.sheet--night .s-kicker { margin-top: 4cqw; font-family: var(--display); font-weight: 700; font-size: 3.6cqw; letter-spacing: .06em; text-transform: uppercase; color: #1f3b8f; }
.sheet--night .s-title { margin-top: 1cqw; font-family: "Russo One", "Arial Black", sans-serif; text-transform: uppercase; line-height: .92; transform: rotate(-3deg); transform-origin: left; }
.sheet--night .s-title span { display: block; font-size: 15cqw; }
.sheet--night .s-title .r { color: #b3261e; text-shadow: .7cqw .7cqw 0 rgba(31, 59, 143, .28); }
.sheet--night .s-title .b { color: #1f3b8f; margin-left: 7cqw; text-shadow: .7cqw .7cqw 0 rgba(179, 38, 30, .28); }
.sheet--night .s-third { display: flex; align-items: center; gap: 3cqw; margin-top: 4cqw; }
.sheet--night .s-third b { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 11cqw; line-height: 1; color: #c98a1b; -webkit-text-stroke: .3cqw #1c1a17; text-shadow: .6cqw .6cqw 0 rgba(31, 59, 143, .28); }
.sheet--night .s-third span { font-family: var(--display); font-weight: 700; font-size: 3.4cqw; line-height: 1.15; text-transform: uppercase; max-width: 30ch; }

/* IV · Кабинет восприятия: разум — швейцарский гротеск и жёсткая тень */
.sheet--mind { background: #f4f2ed; font-family: "Onest", system-ui, sans-serif; color: #0d0d0d; }
.sheet--mind > .s-in { padding: 6cqw 8cqw 8cqw 6cqw; }
.sheet--mind .s-card {
  position: relative; height: 100%;
  padding: 5cqw;
  background: #f4f2ed;
  border: 2px solid #0d0d0d;
  box-shadow: 2.2cqw 2.2cqw 0 #0d0d0d;
}
.sheet--mind .s-card::before { content: ""; position: absolute; left: -2px; top: -2px; width: 12cqw; height: 1.6cqw; background: #0047ab; }
.sheet--mind .s-kicker { font-size: 2.5cqw; letter-spacing: .06em; text-transform: uppercase; color: #55524c; }
.sheet--mind .s-title { margin-top: 2.5cqw; font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 8.6cqw; line-height: .98; letter-spacing: -.01em; }
.sheet--mind .s-sub { margin-top: 3cqw; font-weight: 700; font-size: 4.2cqw; line-height: 1.15; }
.sheet--mind .s-note { display: flex; gap: 2cqw; margin-top: 3cqw; padding-top: 2.5cqw; border-top: 2px solid #0d0d0d; font-size: 3cqw; line-height: 1.4; }
.sheet--mind .s-note i { flex: none; width: 2.8cqw; height: 2.8cqw; margin-top: .6cqw; border-radius: 50%; background: #0047ab; box-shadow: 0 0 0 .5cqw #f4f2ed, 0 0 0 .8cqw #0d0d0d; }

/* V · Кабинет восприятия: испытуемый — бланк теста и оп-арт */
.sheet--cabinet { background: #e2d9c3; color: #121212; font-family: "PT Serif", Georgia, serif; }
.sheet--cabinet > .s-in { padding: 0 5cqw 5cqw; }
.sheet--cabinet .s-run {
  display: flex; justify-content: space-between;
  margin: 0 -5cqw; padding: 2cqw 5cqw;
  border-bottom: 2px solid #121212;
  font-family: var(--mono); font-size: 2.6cqw;
}
.sheet--cabinet .s-top { display: grid; grid-template-columns: 1fr 25cqw; gap: 4cqw; align-items: start; margin-top: 4cqw; }
.sheet--cabinet .s-kicker { font-family: var(--mono); font-size: 2.5cqw; letter-spacing: .12em; text-transform: uppercase; }
.sheet--cabinet .s-title { margin-top: 1.5cqw; font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 900; font-size: 8cqw; line-height: 1; letter-spacing: -.02em; }
.s-checker { width: 25cqw; height: 25cqw; border: 2px solid #121212; display: block; }
.sheet--cabinet .s-form {
  position: relative; margin-top: 4cqw;
  padding: 1.5cqw 3cqw 2cqw;
  background: #efe8d6; border: 1px solid #121212; box-shadow: 1cqw 1cqw 0 -1px #efe8d6, 1cqw 1cqw 0 0 #121212;
  font-family: var(--mono); font-size: 2.6cqw;
}
.sheet--cabinet .s-form p { display: grid; grid-template-columns: 38% 1fr; padding: 1.3cqw 0; border-bottom: 1px dotted rgba(18,18,18,.4); }
.sheet--cabinet .s-form p:first-child { display: flex; justify-content: space-between; border-bottom: 3px double #121212; text-transform: uppercase; }
.sheet--cabinet .s-form p:last-of-type { border-bottom: 0; }
.sheet--cabinet .s-form .dim { color: rgba(18,18,18,.55); }
.sheet--cabinet .s-stamp {
  position: absolute; right: 3cqw; bottom: 1.2cqw;
  font-family: var(--mono); font-size: 2.8cqw; letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid #121212; outline: 1px solid #121212; outline-offset: 2px;
  padding: .6cqw 2cqw; transform: rotate(-9deg); opacity: .8;
}

/* VI · BLOB — кассета, гранж, буквы-вырезки */
.sheet--blob {
  background: #0d0c07; color: #efe6c6;
  font-family: "PT Serif", Georgia, serif;
}
.sheet--blob > .s-in {
  padding: 5cqw 5cqw; }
.sheet--blob::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
}
.sheet--blob .s-rec { position: absolute; right: 4cqw; top: 3.5cqw; font-family: var(--mono); font-weight: 700; font-size: 3cqw; background: #16140c; padding: .8cqw 2cqw; }
.sheet--blob .s-rec i { display: inline-block; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #b3200f; margin-right: 1.5cqw; vertical-align: .2cqw; }
.sheet--blob .s-tape { position: absolute; left: 6cqw; top: 6cqw; width: 26cqw; height: 5.5cqw; background: rgba(160, 160, 150, .55); transform: rotate(-9deg); }
.sheet--blob .s-label { display: inline-block; margin-top: 9cqw; font-family: var(--mono); font-size: 3cqw; background: #0d0c07; padding: .8cqw 2cqw; border: 1px solid #2a271a; transform: rotate(-1.5deg); }
.sheet--blob .s-title { margin-top: 3cqw; font-size: 15cqw; line-height: .9; color: #d9b23a; text-transform: uppercase; white-space: nowrap; text-shadow: .5cqw .3cqw 0 #9a4119; }
.sheet--blob .cp { display: inline-block; margin-left: -.03em; }
.sheet--blob .cp.inv { background: #d9b23a; color: #0d0c07; padding: 0 .04em; text-shadow: none; }
.sheet--blob .s-sub { margin-top: 2.5cqw; font-family: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 10cqw; line-height: .85; white-space: nowrap; }
.sheet--blob .s-sub span { display: inline-block; }
.sheet--blob .s-sub .a { color: #f4e7ae; transform: rotate(-2deg); }
.sheet--blob .s-sub .b { font-family: "Rubik Glitch", sans-serif; font-weight: 400; color: #c0582a; font-size: .7em; transform: translateY(-.2em) rotate(6deg); }
.sheet--blob .s-sub .c { font-family: "Dela Gothic One", sans-serif; font-weight: 400; color: #0d0c07; background: #d9b23a; padding: 0 .12em; font-size: .9em; transform: rotate(1.5deg); }
.sheet--blob .s-col { margin-top: 4cqw; padding: 2.5cqw 3cqw; max-width: 80cqw; border-left: 1cqw solid #d9b23a; background: rgba(22,20,12,.9); font-size: 2.9cqw; line-height: 1.55; color: #efe6c6; }
.sheet--blob .s-marker { margin-top: 3cqw; font-family: var(--hand); font-weight: 700; font-size: 5.5cqw; color: #d9b23a; transform: rotate(-4deg); transform-origin: left; }

/* VII · Жгучий атлас — рыночная этикетка и поп-графика */
.sheet--pepper { background: #f3ecdf; color: #1b1712; font-family: "Golos Text", system-ui, sans-serif; }
.sheet--pepper > .s-in { padding: 0 6cqw 5cqw; }
.sheet--pepper .s-mast {
  display: flex; align-items: baseline; gap: 2.4cqw; flex-wrap: wrap;
  margin: 0 -6cqw; padding: 2.6cqw 6cqw; border-bottom: 2px solid #1b1712;
  font-family: var(--mono); font-size: 2.3cqw; text-transform: uppercase; letter-spacing: .08em; color: #4a4238;
}
.sheet--pepper .s-mast b { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 3.2cqw; letter-spacing: .02em; color: #1b1712; }
.sheet--pepper .s-kicker { margin-top: 7cqw; font-family: "JetBrains Mono", var(--mono); font-weight: 700; font-size: 2.5cqw; text-transform: uppercase; letter-spacing: .08em; color: #b3120f; }
.sheet--pepper .s-title { margin-top: 1.4cqw; font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 17cqw; line-height: .95; letter-spacing: -.04em; white-space: nowrap; }
.sheet--pepper .mis { position: relative; display: inline-block; isolation: isolate; }
.sheet--pepper .mis::before, .sheet--pepper .mis::after { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; mix-blend-mode: multiply; }
.sheet--pepper .mis::before { color: #ff4fa3; transform: translate(-.045em, .03em); }
.sheet--pepper .mis::after { color: #ffc21a; transform: translate(.05em, -.025em); }
.sheet--pepper .dot { color: #e0231f; }
.sheet--pepper .s-lede { margin-top: 3cqw; max-width: 54cqw; font-size: 2.9cqw; line-height: 1.45; }
.sheet--pepper .s-lede em { font-style: normal; background: linear-gradient(transparent 62%, #ffc21a 62%); }
.sheet--pepper .s-warn {
  position: absolute; right: 5cqw; bottom: 5cqw; width: 40cqw;
  padding: 2cqw 2.6cqw;
  background: #ffc21a; border: 2px solid #1b1712; box-shadow: 1.2cqw 1.2cqw 0 #ff4fa3;
  transform: rotate(2deg);
  font-family: "JetBrains Mono", var(--mono); font-size: 2.1cqw;
}
.sheet--pepper .s-warn p { display: flex; justify-content: space-between; gap: 1cqw; padding: .4cqw 0; }
.sheet--pepper .s-warn b { white-space: nowrap; }
.sheet--pepper .s-warn .w-head { justify-content: flex-start; align-items: center; gap: 1.6cqw; margin-bottom: 1cqw; padding-bottom: 1.2cqw; border-bottom: 2px solid #1b1712; font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 3.2cqw; text-transform: uppercase; }
.sheet--pepper .s-warn .w-head i { font-style: normal; display: grid; place-items: center; width: 5cqw; height: 4.4cqw; background: #1b1712; color: #ffc21a; clip-path: polygon(50% 0, 100% 100%, 0 100%); font-size: 2.6cqw; font-weight: 900; padding-top: 1.2cqw; }

/* VIII · MORS — готическая рукопись: темнота, свеча, кость и кровь */
.sheet--mors {
  isolation: isolate; /* зерно и виньетка листа не должны лезть поверх обложки */
  background: #0a0807; color: #9a8b74; font-family: "Old Standard TT", Georgia, serif;
}
.sheet--mors > .s-in { padding: 15cqw 6cqw 4cqw 8cqw; }
.sheet--mors::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(200,134,47,.12), transparent 55%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.6) 82%, rgba(0,0,0,.9) 100%);
}
.sheet--mors::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: overlay; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sheet--mors .s-hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 3.6cqw 5cqw 0 6cqw;
}
.sheet--mors .s-brand b { display: block; font: 400 5.6cqw/1 "UnifrakturMaguntia", "Old English Text MT", serif; color: #e4d8bf; text-shadow: 0 0 3cqw rgba(200,134,47,.35); }
.sheet--mors .s-brand small { display: block; margin-top: .9cqw; font: 400 1.35cqw/1 "PT Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #5f5242; }
.sheet--mors .s-trk { text-align: right; font: 400 1.8cqw/1 "PT Mono", monospace; letter-spacing: .1em; color: #5f5242; }
.sheet--mors .s-trk b { font-weight: 400; color: #c8862f; }
.sheet--mors .s-trk small { display: block; margin-top: 1cqw; font: 700 3cqw/1 "Caveat", cursive; letter-spacing: .02em; color: #9a8b74; }
.sheet--mors .s-bg {
  position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font: 400 80cqw/1 "UnifrakturMaguntia", serif; color: transparent;
  -webkit-text-stroke: 1px rgba(200,134,47,.1); pointer-events: none;
}
.sheet--mors .s-drip { position: absolute; z-index: 2; left: 3.4cqw; top: -15cqw; width: 1px; height: 30cqw; background: linear-gradient(rgba(139,26,26,.2), #8b1a1a); }
.sheet--mors .s-drip::after { content: ""; position: absolute; left: -.8cqw; bottom: -1.2cqw; width: 1.7cqw; height: 2cqw; border-radius: 50% 50% 55% 55% / 40% 40% 60% 60%; background: #b52a22; box-shadow: 0 0 1.4cqw rgba(181,42,34,.7); }
.sheet--mors .s-rail { position: absolute; z-index: 2; right: 2.6cqw; top: 26cqw; display: grid; justify-items: end; gap: .6cqw; font: 400 2cqw/1 "Old Standard TT", serif; color: #5f5242; }
.sheet--mors .s-rail .on { color: #b52a22; text-shadow: 0 0 1cqw rgba(181,42,34,.8); font-size: 2.6cqw; }
.sheet--mors .s-rail i { margin-right: 1.4cqw; font: 700 2.2cqw/1 "Cormorant Garamond", serif; color: #e4d8bf; text-shadow: none; vertical-align: .2cqw; }
.sheet--mors :is(.s-kicker, .s-title, .s-scrawl, .s-lead, .s-glass) { position: relative; z-index: 1; }
.sheet--mors .s-kicker { display: flex; align-items: center; gap: 2cqw; margin-bottom: 1cqw; font: 400 1.6cqw/1 "PT Mono", monospace; letter-spacing: .22em; text-transform: uppercase; color: #c8862f; }
.sheet--mors .s-kicker i { width: 6cqw; height: 1px; background: #c8862f; opacity: .5; }
.sheet--mors .s-title .bl {
  display: block; font: 400 21cqw/.9 "UnifrakturMaguntia", "Old English Text MT", serif; color: #e4d8bf;
  text-shadow: 0 0 6cqw rgba(200,134,47,.3), 0 .5cqw 0 rgba(0,0,0,.6);
}
.sheet--mors .s-title .ru { display: block; margin-top: .4cqw; font: 500 italic 4.2cqw/1.1 "Cormorant Garamond", "Old Standard TT", serif; color: #9a8b74; }
.sheet--mors .s-scrawl {
  display: inline-block; position: relative; margin: 1.4cqw 0 2.4cqw;
  font: 700 4.8cqw/1.15 "Caveat", cursive; color: #b52a22;
  transform: rotate(-2deg); transform-origin: left; text-shadow: 0 0 2cqw rgba(181,42,34,.3);
}
.sheet--mors .s-scrawl::after { content: ""; position: absolute; left: -1cqw; right: -1.5cqw; bottom: -.6cqw; height: .45cqw; border-radius: 50%; background: #b52a22; transform: rotate(-1.5deg); }
.sheet--mors .s-lead { max-width: 52cqw; font-size: 2.45cqw; line-height: 1.6; color: #9a8b74; }
.sheet--mors .s-lead em { color: #e4d8bf; }
.sheet--mors .s-glass { position: absolute; right: 9cqw; top: 20cqw; margin: 0; width: 22cqw; text-align: center; }
.sheet--mors .s-glass svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 2.5cqw rgba(200,134,47,.2)); }
.sheet--mors .s-glass .frame { fill: none; stroke: #e4d8bf; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#wobble); }
.sheet--mors .s-glass .glint { fill: none; stroke: #e4d8bf; stroke-width: 1.2; opacity: .5; }
.sheet--mors .s-glass .sand { fill: #c8862f; }
.sheet--mors .s-glass .stream { stroke: #e8b45a; stroke-width: 1.8; stroke-dasharray: 3 4; animation: mors-sand .5s linear infinite; }
@keyframes mors-sand { to { stroke-dashoffset: -14; } }
.sheet--mors figcaption { margin-top: 1.4cqw; font: 400 2.6cqw/1 "Marck Script", "Caveat", cursive; color: #c8862f; transform: rotate(-3deg); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .sheet--mors .s-glass .stream { animation: none; } }

/* лист, вынутый из папки, разворачивается на экран */
.sheet--launch {
  position: fixed; z-index: 60; margin: 0; inset: auto;
  transform-origin: 50% 50%;
  transition: transform .65s cubic-bezier(.6, 0, .2, 1);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

/* ---------------- Как сделан ---------------- */

.howto-list { list-style: none; margin: 0; padding: 0; }
.howto-list li {
  display: grid;
  grid-template-columns: 70px minmax(200px, 300px) 1fr;
  gap: 6px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--ink-faint);
  align-items: baseline;
}
.howto-list li:last-child { border-bottom: 1px solid var(--ink-faint); }
.howto-list .h-code { font-size: 13px; color: var(--red); letter-spacing: .1em; }
.howto-list .h-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.howto-list .h-tech { font-size: 18px; }
.howto-list .h-kind {
  display: inline-block; margin-right: 10px;
  font-size: 22px; line-height: 1; color: var(--red);
  border-bottom: 2px solid currentColor;
  transform: rotate(-2deg);
}

@media (max-width: 759px) {
  .howto-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------------- Колофон ---------------- */

.colophon {
  position: relative;
  margin-top: 96px;
  padding: 36px 28px 24px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(31, 79, 143, .16) 27px 28px),
    var(--paper-3);
  background-position: 0 62px;
  transform: rotate(0.5deg);
  filter: drop-shadow(0 14px 18px rgba(80, 60, 20, .25));
}
.colophon::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 56px; width: 1.5px; background: rgba(212, 42, 30, .35);
}
.colophon .tape--c { top: -14px; left: 50%; margin-left: -59px; transform: rotate(-3deg); }
.colophon h2 { margin-bottom: 20px; }
.colophon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px 28px;
}
.colophon-grid p { margin: 0; font-size: 17px; }
.mark { font-size: 12px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: 2px; white-space: nowrap; }
.mark-yes { color: #2f6b3c; }
.mark-no { color: var(--red-deep); }

.imprint {
  margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--ink-faint);
  font-size: 12px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center;
}
.imprint-stamp {
  color: var(--red-deep); border: 2px solid currentColor; padding: 3px 8px; transform: rotate(-3deg);
  text-transform: uppercase; letter-spacing: .1em; filter: url(#ink-edge);
}

/* ============================================================
   «Заглянуть в книгу»: перекраска обложки в стиль тома
   ============================================================ */

.fx {
  position: fixed; inset: 0; z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.fx.on { opacity: 1; transition-duration: .08s; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-tag {
  position: absolute; right: 16px; top: 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 9px; background: var(--ink); color: var(--paper);
  transform: rotate(-1deg);
}

/* I · HAEMA — ASCII-шум и ксерокопия */
body[data-fx="ascii"] .page { filter: grayscale(1) contrast(1.9) brightness(1.05); }
body[data-fx="ascii"] .fx { background: rgba(236, 232, 222, 0.16); }

/* II · MYCELIUM — ризограф, сдвиг красок */
body[data-fx="riso"] .page { filter: saturate(1.4) hue-rotate(-12deg); }
body[data-fx="riso"] .page :is(h1, h2, h3, p, dd, dt, span, li, button, a) {
  text-shadow: -3px 2px 0 rgba(255, 72, 176, 0.75), 3px -1px 0 rgba(0, 120, 191, 0.7);
}
body[data-fx="riso"] .fx { background: rgba(255, 72, 176, 0.12); }
body[data-fx="riso"] .fx canvas { mix-blend-mode: multiply; }

/* III · Ночная смена — растр и красный кирпич */
body[data-fx="raster"] .page { filter: sepia(.6) contrast(1.15); }
body[data-fx="raster"] .fx canvas { mix-blend-mode: multiply; }
body[data-fx="raster"] .fx { background: rgba(236, 222, 190, 0.10); }

/* IV · Кабинет восприятия: разум — муар */
body[data-fx="moire"] .page { filter: grayscale(1) contrast(1.3); }
body[data-fx="moire"] .fx canvas { mix-blend-mode: difference; }

/* V · Кабинет восприятия: испытуемый — клякса */
body[data-fx="blot"] .page { filter: grayscale(1) contrast(1.15); }
body[data-fx="blot"] .fx canvas { mix-blend-mode: multiply; }

/* VII · Жгучий атлас — жар */
body[data-fx="heat"] .page { filter: saturate(1.6) contrast(1.05) sepia(.25) hue-rotate(-12deg); }
body[data-fx="heat"] .fx canvas { mix-blend-mode: multiply; }

/* VIII · MORS — свет гаснет до одной свечи */
body[data-fx="mors"] .page { filter: sepia(.7) brightness(.5) contrast(1.25); }
body[data-fx="mors"] .fx { background: rgba(7, 6, 11, 0.45); }

/* VI · BLOB — VHS-дрожь */
body[data-fx="vhs"] .page {
  filter: saturate(1.8) contrast(1.15) hue-rotate(8deg);
  animation: vhs-jitter .16s steps(2) infinite;
}
body[data-fx="vhs"] .page :is(h1, h2, h3, p, dd, dt, span, li, button, a) {
  text-shadow: 2px 0 0 rgba(255, 0, 60, .7), -2px 0 0 rgba(0, 220, 255, .7);
}
body[data-fx="vhs"] .fx { background: rgba(20, 0, 60, 0.14); }

@keyframes vhs-jitter {
  0%   { transform: translate(0, 0) skewX(0deg); }
  25%  { transform: translate(-3px, 1px) skewX(-.6deg); }
  50%  { transform: translate(2px, 0) skewX(.3deg); }
  75%  { transform: translate(-1px, -1px) skewX(0deg); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   Телефон
   ============================================================ */

@media (max-width: 759px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-bottom: 20px; }
  .hero-bar-mid { display: none; }
  .hero-head { padding-top: 48px; }
  .hero-warn { max-width: none; width: 100%; transform: rotate(.8deg); }
  .kicker-arrow { width: 64px; }
  .hero-under { margin-top: 24px; }
  .hero-stamp { font-size: 20px; padding: 6px 12px 4px; }
  .era-btn { min-width: 0; flex: 1 1 28%; }
  .manifesto { padding-top: 40px; padding-bottom: 64px; }
  .manifesto-sheet { transform: none; }
  .manifesto-sheet .tape--l { left: -12px; }
  .manifesto-sheet .tape--r { right: -8px; }
  .margin-note { bottom: 4px; font-size: 22px; }
  .section-head { margin-top: 64px; }
  .catalog { gap: 64px; padding-top: 36px; }
  .folder-meta { flex-direction: column; }
  .colophon { padding: 28px 16px 18px; transform: none; }
  .colophon::before { left: 10px; }
  .fx-tag { left: 16px; right: 16px; top: 12px; font-size: 11px; }
}

/* ============================================================
   Меньше движения
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  body[data-fx="vhs"] .page { animation: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; white-space: normal; padding: 14px 16px; }
  .ticker-track span[aria-hidden] { display: none; }
  .folder-cover { transition: none; }
  .sheet--launch { transition: none; }
}
