/* МТК-8 · прототип двух экранов. Только токены design-core 1.1.1; шрифты — бренд-стеки с системным запасом. */
:root {
  --graphite: #435059; --graphite-rgb: 67, 80, 89;
  --paper: #F7F9EF; --paper-rgb: 247, 249, 239;
  --telegrey: #CFD0CF; --telegrey-rgb: 207, 208, 207;
  --window: #9DA3A8; --window-rgb: 157, 163, 168;
  --bluegrey: #5D8970; --brass: #D2B773; --brass-rgb: 210, 183, 115;
  --red: #A02128; --red-rgb: 160, 33, 40;
  --font-display: "Nolde", Georgia, serif;
  --font-text: "21 Cent", "Helvetica Neue", Arial, sans-serif;
  --font-caption: "20 Kopeek", "Helvetica Neue", Arial, sans-serif;
}
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; color: var(--paper); font-family: var(--font-text); touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; background: var(--graphite); overflow: hidden; transform-origin: center center; }
.layer { position: absolute; inset: 0; transition: opacity .6s ease; }
.layer.out { opacity: 0; pointer-events: none; }
.lines { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; overflow: visible; }
.pp { position: absolute; text-align: center; transition: opacity .45s; }
.pp .ph { width: 100%; aspect-ratio: 4/5; background: rgba(var(--window-rgb), .35); border: 2px solid transparent; box-sizing: border-box; overflow: hidden; }
.pp img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); pointer-events: none; }
.pp .nm { font-family: var(--font-caption); font-size: 15px; line-height: 1.1; margin-top: 3px; white-space: nowrap; }
.pp .sub { font-size: 12px; color: var(--telegrey); white-space: nowrap; }
.pp.sm .nm { font-size: 12px; white-space: normal; width: calc(100% + 10px); margin-left: -5px; hyphens: auto; -webkit-hyphens: auto; }
.pp.mapp .nm { font-size: 12px; margin-left: -40px; margin-right: -40px; }
.pp.big .nm { font-size: 30px; }
.pp.dim { opacity: .35; } /* приглушение невыбранного — блоком (портрет + имя), .25–.45 (design-core 1.2.2) */
.pp.hot .ph { border-color: var(--brass); }
.band { position: absolute; }
.lab { position: absolute; font-family: var(--font-caption); color: var(--telegrey); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hint { position: absolute; font-size: 14px; color: var(--telegrey); white-space: nowrap; }
.caption { position: absolute; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--paper); font-size: 28px; }
.ttl { position: absolute; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--paper); font-size: 28px; }
.grp { position: absolute; border-top: 2px solid var(--window); padding-top: 6px; }
.grp .gl { font-family: var(--font-caption); font-size: 17px; color: var(--paper); text-transform: uppercase; letter-spacing: .05em; }
.grp .gs { font-size: 14px; color: var(--telegrey); margin-top: 2px; }
.more { position: absolute; font-size: 16px; color: var(--telegrey); }
.link-dot { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--telegrey); opacity: .6; }
.link-dot.off { color: var(--red); opacity: 1; }
/* тач */
.btn { position: absolute; font-family: var(--font-caption); font-size: 18px; color: var(--paper); border: 1px solid rgba(var(--paper-rgb), .45); border-radius: 30px; padding: 0 26px; height: 52px; line-height: 52px; box-sizing: border-box; background: rgba(var(--graphite-rgb), .7); white-space: nowrap; }
.btn.on { background: var(--brass); border-color: var(--brass); color: var(--graphite); }
.scroll { position: absolute; overflow-y: auto; touch-action: pan-y; scrollbar-width: auto; }
.scroll::-webkit-scrollbar { width: 9px; }
.scroll::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 5px; }
.bio { font-size: 17px; line-height: 1.5; color: var(--paper); padding-right: 18px; white-space: pre-line; }
.facts li { font-size: 17px; line-height: 1.45; margin-bottom: 12px; }
.overlay { position: absolute; inset: 0; background: rgba(var(--graphite-rgb), .97); }
/* статья на стене: две колонки на страницу, листается сдвигом */
.artview { position: absolute; overflow: hidden; }
.art { position: absolute; left: 0; top: 0; height: 850px; width: 1804px; column-width: 680px; column-gap: 444px; column-fill: auto; font-size: 22px; line-height: 1.45; color: var(--paper); transition: transform .6s ease; }
.art p { margin: 0 0 14px; text-indent: 1.4em; }
.art h4 { font-family: var(--font-caption); color: var(--telegrey); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; margin: 18px 0 8px; break-after: avoid; }
.art ul { margin: 0; padding-left: 1.1em; } .art li { margin-bottom: 10px; }
.pass { position: absolute; font-size: 17px; line-height: 1.35; color: var(--paper); }
.pass b { display: block; font-family: var(--font-caption); font-weight: 400; color: var(--telegrey); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; }
.pageno { position: absolute; font-family: var(--font-caption); color: var(--telegrey); font-size: 16px; }
.gcap { position: absolute; left: 0; width: 1920px; text-align: center; top: 22px; }
.gcap .a { font-family: var(--font-caption); color: var(--paper); font-size: 24px; text-transform: uppercase; letter-spacing: .05em; }
.gcap .b { color: var(--paper); font-size: 18px; margin-top: 2px; }
.dim2 { opacity: .35 !important; }
.grp.on { border-top-color: var(--brass); }
/* пульт: крупные кнопки-плитки */
.tile { position: absolute; box-sizing: border-box; border: 1px solid rgba(var(--paper-rgb), .4); border-radius: 14px; padding: 12px 18px; background: rgba(var(--graphite-rgb), .6); }
.tile.on { background: var(--brass); color: var(--graphite); border-color: var(--brass); }
.tile .a { font-family: var(--font-caption); font-size: 20px; } .tile .b { font-size: 14px; opacity: .8; margin-top: 2px; }
.big-btn { position: absolute; font-family: var(--font-caption); font-size: 30px; border-radius: 40px; height: 84px; line-height: 84px; padding: 0 44px; border: 1px solid rgba(var(--paper-rgb), .5); background: rgba(var(--graphite-rgb), .7); box-sizing: border-box; white-space: nowrap; }
.big-btn.off { opacity: .3; }

.legend { position: absolute; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--telegrey); }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.side { position: absolute; left: 1400px; top: 0; width: 520px; height: 1080px; background: rgba(0,0,0,.14); border-left: 1px solid rgba(var(--paper-rgb), .12); }
.chip2 { position: absolute; box-sizing: border-box; border: 1px solid rgba(var(--paper-rgb), .4); border-radius: 22px; padding: 0 16px; height: 44px; line-height: 44px; font-size: 15px; white-space: nowrap; background: rgba(var(--graphite-rgb), .6); }
.chip2.on { background: var(--brass); color: var(--graphite); border-color: var(--brass); }

/* v3 · временные цвета течений (ЧЕРНОВИК, НЕ КАНОН — decisions п.29): рамка портрета в цвете течения, выбор — латунь */
.pp.cur .ph { border-color: var(--cur); }
.pp.hot .ph { border-color: var(--brass); border-width: 3px; }
/* линза «Суперсвязные»: латунное кольцо с числом */
.pp.ring .ph { border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 3px rgba(var(--graphite-rgb), .9); }
.ringn { position: absolute; right: -10px; top: -8px; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: var(--paper); color: var(--graphite); font-family: var(--font-caption); font-size: 13px; font-weight: 700; text-align: center; padding: 0 3px; }
/* отметки: суперсвязной · мост между течениями */
.marks { position: absolute; font-size: 15px; }
.mark { display: inline-block; border: 1px solid var(--telegrey); color: var(--paper); border-radius: 14px; padding: 2px 12px; margin: 2px 4px; font-family: var(--font-caption); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
/* «Больше всего общего»: карточка поверх карты */
.card { position: absolute; background: rgba(var(--graphite-rgb), .96); border: 1px solid var(--window); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.card .ch { font-family: var(--font-caption); color: var(--paper); text-transform: uppercase; letter-spacing: .05em; font-size: 22px; margin: 18px 24px 2px; }
.card .cs { font-size: 15px; color: var(--telegrey); margin: 0 24px; }
.cname { position: absolute; font-family: var(--font-caption); font-size: 20px; color: var(--paper); white-space: nowrap; }
.creason { position: absolute; font-size: 16px; line-height: 1.3; color: var(--telegrey); }
/* «Откуда пришли идеи» */
.gen { position: absolute; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--paper); color: var(--graphite); font-size: 12px; font-weight: 700; text-align: center; }
.chain { position: absolute; font-size: 20px; color: var(--paper); line-height: 1.3; }
/* «Сравнить двух людей» */
.ccol { position: absolute; }
.crow2 { position: relative; margin-bottom: 18px; font-size: 22px; line-height: 1.3; color: var(--paper); }
.crow2 b { display: block; font-family: var(--font-caption); font-weight: 400; color: var(--telegrey); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.crow2.same { box-shadow: -14px 0 0 -10px var(--paper); } /* совпадает с соседом: бумажная черта слева */
.crow2.same div { font-weight: 600; }
.mid { position: absolute; text-align: center; }
.mid .mh { font-family: var(--font-caption); color: var(--telegrey); text-transform: uppercase; letter-spacing: .05em; font-size: 22px; margin: 30px 0 10px; }
.mid .mv { font-size: 25px; line-height: 1.35; color: var(--paper); }
/* «Его время» */
.ev { position: absolute; font-size: 14px; line-height: 1.2; color: var(--paper); }
.ev b { font-family: var(--font-caption); color: var(--telegrey); }
.ev .age { color: var(--paper); font-size: 14px; margin-top: 2px; }
.ev.theme b { color: var(--paper); } .ev.theme { font-weight: 600; }
.tlname { position: absolute; text-align: right; font-family: var(--font-caption); font-size: 14px; color: var(--paper); white-space: nowrap; }
.tlname span { display: block; font-size: 11px; color: var(--telegrey); }
.pp.tl .nm { display: none; }
.tlmain { position: absolute; font-family: var(--font-caption); font-size: 16px; color: var(--graphite); }
/* пульт v3: плитки вопросов, отметки, крестик */
.tile.q .a { font-size: 17px; white-space: nowrap; } .tile.q .b { font-size: 14px; }
.mk { position: absolute; font-size: 14px; color: var(--telegrey); line-height: 1.3; }
.mk .mark { margin: 0 0 4px; }
.xbtn { position: absolute; width: 52px; height: 52px; line-height: 50px; text-align: center; border-radius: 26px; border: 1px solid rgba(var(--paper-rgb), .45); font-size: 22px; color: var(--paper); box-sizing: border-box; }
/* плашка течения (п.33): цветной квадрат + имя бумагой; буквы предметным цветом не красим */
.curtag { display: inline-flex; align-items: center; gap: .4em; margin-right: .8em; color: var(--paper); white-space: nowrap; }
.curtag i { display: inline-block; width: .8em; height: .8em; border-radius: 2px; flex: none; }

/* ===== СТЕНА · профиль «проекция 3 м» (вердикт дизайнера, decisions п.32; числа предварительные до замера зала) =====
   Единицы сцены 1920 (×2 = px 4K). Текст «из зала» ≥35 · «подошедшему» (имена, паспорт, подписи) ≥21 · заголовок Nolde ≥42.
   Текст — paper / telegrey без альфы. Пульт (0,5 м) живёт по своим размерам выше. */
.wall .ttl, .wall .caption { font-size: 42px; line-height: 1.15; }
.wall .hint, .wall .lab, .wall .legend, .wall .more, .wall .pageno { font-size: 21px; color: var(--telegrey); }
.wall .lab { letter-spacing: .03em; }
.wall .blab { position: absolute; font-family: var(--font-caption); font-size: 21px; line-height: 1.15; color: var(--paper); }
.wall .blab .curtag { white-space: normal; align-items: flex-start; margin: 0 0 4px; }
.wall .blab .curtag i { margin-top: .2em; }
.wall .pp .nm { font-size: 21px; line-height: 1.15; }
.wall .pp.sm .nm { font-size: 21px; width: auto; margin: 3px -40px 0; white-space: nowrap; }
.wall .pp.mapp .nm { font-size: 21px; position: absolute; left: 50%; transform: translateX(-50%); width: max-content; margin: 3px 0 0; } /* рамка = текст: проверка наложений меряет буквы */
.wall .pp.big .nm { font-size: 36px; }
.wall .grp .gl, .wall .grp .gs { font-size: 21px; }
.wall .gcap .a { font-size: 35px; } .wall .gcap .b { font-size: 24px; }
.wall .pass { font-size: 21px; } .wall .pass b { font-size: 21px; }
.wall .art h4 { font-size: 21px; }
.wall .mark { font-size: 21px; padding: 2px 14px; }
.wall .ringn { font-size: 21px; min-width: 30px; height: 30px; line-height: 30px; border-radius: 15px; right: -14px; top: -12px; }
.wall .gen { font-size: 21px; min-width: 28px; height: 28px; line-height: 28px; border-radius: 14px; }
.wall .card .ch { font-size: 28px; } .wall .card .cs { font-size: 21px; }
.wall .cname { font-size: 24px; } .wall .creason { font-size: 21px; color: var(--telegrey); }
.wall .chain { font-size: 24px; }
.wall .crow2 { font-size: 24px; } .wall .crow2 b { font-size: 21px; }
.wall .mid .mh { font-size: 24px; } .wall .mid .mv { font-size: 28px; }
.wall .ev, .wall .ev .age { font-size: 21px; }
.wall .tlname { font-size: 21px; } .wall .tlname span { font-size: 21px; color: var(--telegrey); }
.wall .tlmain { font-size: 21px; }
.wall .link-dot { font-size: 14px; opacity: 1; }
/* портреты в группах «Связей»: имя до двух строк, перенос по дефису, по центру своего шага */
.wall .pp.grpp .nm { position: absolute; left: 50%; transform: translateX(-50%); white-space: normal; overflow-wrap: anywhere; margin: 3px 0 0; }
.wall .grp .gs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall .grp .gl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall .ev.right { text-align: right; }
.wall .gcap { top: 40px; }
.wall .pp.crow .nm { display: none; } /* в карточке имя стоит рядом крупнее */
/* линза «Из какой среды» */
.wall .blab b { font-weight: 400; display: block; }
.wall .blab .cnt { color: var(--telegrey); margin-top: 2px; }
.wall .finding { position: absolute; font-size: 24px; color: var(--paper); white-space: nowrap; }
.pp.nodata .ph { border-style: dashed; border-color: var(--telegrey); }
.mid .more2 { position: static; color: var(--telegrey); }
.wall .agetick { position: absolute; font-family: var(--font-caption); font-size: 21px; color: var(--paper); }
.wall .agetick.theme { font-weight: 700; }
/* выбранный крупно — карточка в колонке подписей (п.58) */
.wall .pp.selcard .nm { font-size: 24px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; margin-top: 6px; }
.wall .pp.selcard .yrs { color: var(--telegrey); font-size: 21px; margin-top: 2px; }
.wall .pp.selcard .ct { font-size: 21px; margin-top: 4px; }
.wall .pp.selcard .ct .curtag { white-space: normal; justify-content: center; }
.wall .card.withsel .ch, .wall .card.withsel .cs { margin-left: 104px; }
/* «Ссылка и эмиграция»: подписи мест */
.wall .geolab { position: absolute; font-family: var(--font-caption); font-size: 21px; color: var(--paper); white-space: nowrap; }
.wall .geolab.dim { opacity: .35; }
.wall .selbg { position: absolute; background: rgba(var(--graphite-rgb), .97); border: 2px solid var(--window); box-sizing: border-box; }
.wall .pp.selcard .ct { color: var(--telegrey); }
/* «Путь человека» (п.64–66) и карта мест на точках (п.63) */
.wall .geolab.now { font-size: 24px; background: rgba(var(--graphite-rgb), .85); padding: 0 6px; }
.wall .pp.pathme { z-index: 5; }
.wall .pp.pathme .nm { display: none; }
.wall .pathrow { position: absolute; font-size: 21px; line-height: 1.2; color: var(--telegrey); white-space: nowrap; max-width: 700px; overflow: hidden; text-overflow: ellipsis; }
.wall .pathrow .y { display: inline-block; width: 128px; }
.wall .pathrow.on { color: var(--paper); }
.wall .pp .nsub { color: var(--telegrey); font-size: 21px; }
/* связи выбранного — варианты со скрытием (?links=ah|bh|ch|d) и пустыми рамками (?links=e) */
.pp.gone { display: none; }
.pp.ghost .ph { background: none; border: 2px solid rgba(var(--telegrey-rgb), .35); }
.pp.ghost img, .pp.ghost .nm { visibility: hidden; }
