/* Второй проход: никакой цифровой эстетики. Подписи как в каталоге музея, кнопки как таблички, растр заменён плёночным зерном, картины на всю ширину. */
:root { --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .75 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }


/* подписи: каталожная антиква вместо моноширинного */
.mono { font-family: var(--classic); font-weight: 500; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; }
.m-term, .m-term .term-head, .term-body, .bars { font-family: var(--mono) !important; letter-spacing: 0; }
.m-term .term-head { font-size: 11px; letter-spacing: .1em; }
.tabs, .tab, .modes button, .chips button { font-family: var(--classic); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.nums span { font-family: var(--classic); font-size: 12px; letter-spacing: .18em; }

/* кнопки как таблички */
.btn { font-family: var(--classic); font-style: italic; font-weight: 400; font-size: 1.3rem; letter-spacing: .01em; text-transform: none; background: none; border: 1px solid rgba(236,236,232,.55); color: var(--paper); padding: 13px 32px; }
.btn:hover { background: var(--paper); color: var(--asphalt); border-color: var(--paper); }
.btn.red, .btn.line { background: none; color: var(--paper); }
.btn.red { border-color: rgba(158,29,42,.85); } .btn.red:hover { background: var(--spray); color: var(--paper); border-color: var(--spray); }
.access form .btn { color: var(--asphalt); border-color: var(--asphalt); } .access form .btn:hover { background: var(--asphalt); color: var(--paper); }
.m-cta .mono { border-bottom: 1px solid var(--asphalt); }

/* роли в шапке и теги без плашек */
.roles { gap: 6px 0; }
.roles span, .roles span:nth-child(n) { background: none !important; border: 0 !important; padding: 0 !important; transform: none !important; font-family: var(--classic); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.55rem); letter-spacing: .02em; text-transform: none; color: var(--paper); }
.roles span + span::before { content: '·'; margin: 0 .7em; opacity: .55; }
.tag, .tag.red, .arb-vis .tagc { background: none; border: 0; padding: 0; transform: none; font-style: italic; }

/* меандр и растр убраны: тонкая линия и зерно */
.key, .key.light, .ft > .key, .room > .key, footer .key { height: 1px !important; background: rgba(236,236,232,.3) !important; background-image: none !important; opacity: 1 !important; }
.halftone::after, .base::after, .mq-tile::after, .arb-vis .big::after, .mf-bg::after { background: var(--grain) !important; background-size: 220px !important; mix-blend-mode: multiply; opacity: .32 !important; }
.mf-bg::after { mix-blend-mode: screen; opacity: .25 !important; filter: invert(1); }

/* картины на всю ширину позади ролей */
.plate { position: absolute; inset: -5% 0; z-index: 0; overflow: hidden; pointer-events: none; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.62) saturate(.92) contrast(1.08); animation: kb 46s ease-in-out infinite alternate; transform-origin: 62% 50%; }
.plate::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(4,2,2,.94) 0%, rgba(4,2,2,.62) 42%, rgba(4,2,2,.08) 78%); }
.plate::after { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--grain); background-size: 220px; mix-blend-mode: multiply; opacity: .35; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.17) translate(-1.6%, -1.2%); } }
.role .role-in { position: relative; z-index: 2; }
.role-in.one { grid-template-columns: minmax(0, 1fr); } .role-in.one .copy { max-width: 40em; }
.r-gold, .r-arb, .r-law, .r-faust { background: #050303; color: var(--paper); }
.r-arb .btn { color: var(--paper); }
.museum { position: absolute; right: var(--gutter); bottom: 5vh; z-index: 3; text-align: right; font-family: var(--classic); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: rgba(236,236,232,.8); max-width: 22em; }
.museum b { display: block; font-style: normal; font-weight: 500; letter-spacing: .2em; font-size: 11px; text-transform: uppercase; margin-bottom: 4px; opacity: .8; }
.role h2 { font-size: clamp(3.4rem, 8.4vw, 8.8rem); }

/* плашка сотрудничества на главной */
.collab { position: relative; z-index: 2; min-height: 86vh; display: flex; align-items: center; padding: 0 var(--gutter); overflow: hidden; background: #050303; }
.collab .in { position: relative; z-index: 4; max-width: 44em; }
.collab h2 { font-family: var(--classic); font-size: clamp(3.4rem, 9vw, 9.4rem); line-height: .9; text-transform: uppercase; margin: 14px 0 22px; font-weight: 300; }
.collab p { max-width: 30em; opacity: .85; margin-bottom: 30px; font-size: 1.1rem; }
.collab .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* страница сотрудничества */
.wk-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 0 var(--gutter) 10vh; overflow: hidden; z-index: 2; background: #050303; }
.wk-hero .in { position: relative; z-index: 4; max-width: 56em; }
.wk-hero h1 { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(4.2rem, 13vw, 14rem); line-height: .86; text-transform: uppercase; margin-bottom: 24px; }
.wk-hero p { max-width: 32em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); opacity: .88; }
.wk-sec { padding: clamp(80px, 14vh, 170px) var(--gutter); position: relative; z-index: 2; }
.wk-sec .eyebrow { display: block; opacity: .7; margin-bottom: 18px; }
.wk-sec h2 { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(2.8rem, 6.8vw, 7rem); line-height: .94; text-transform: uppercase; max-width: 12em; margin-bottom: clamp(30px, 5vh, 60px); }
.wk-rows { border-top: 1px solid rgba(236,236,232,.35); }
.wk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 56px; padding: 34px 0; border-bottom: 1px solid rgba(236,236,232,.35); align-items: baseline; transition: padding .6s var(--ease), color .5s; }
.wk-row:hover { padding-left: 24px; }
.wk-row h3 { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(1.9rem, 3.8vw, 3.8rem); line-height: 1; text-transform: uppercase; }
.wk-row p { opacity: .82; max-width: 34em; }
.wk-row .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 36px; opacity: .65; }
.wk-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.wk-terms div { padding: 26px 0; border-top: 1px solid rgba(236,236,232,.35); }
.wk-terms h4 { font-family: var(--classic); font-weight: 400 !important; font-size: 1.8rem; margin-bottom: 8px; }
.wk-terms p { opacity: .82; }
.fill-note { font-family: var(--hand); font-style: italic; border-bottom: 1px solid var(--spray); }
@media (max-width: 860px) { .wk-row, .wk-terms { grid-template-columns: 1fr; } .museum { display: none; } .plate::before { background: linear-gradient(0deg, rgba(4,2,2,.92), rgba(4,2,2,.45)); } }

/* подпись на первом экране не заходит под шапку */
.note.a, .note.b { top: max(calc(46% - var(--H) * .66), 84px); }

/* Реально работает: рабочие модули на бумаге */
.live { padding: clamp(90px, 16vh, 190px) var(--gutter); position: relative; z-index: 2; }
.live-head { margin-bottom: clamp(30px, 5vh, 60px); }
.live-head h2 { font-family: var(--classic); font-size: clamp(2.8rem, 6.6vw, 6.8rem); line-height: .94; text-transform: uppercase; max-width: 12em; margin: 14px 0 18px; }
.live-head p { max-width: 36em; opacity: .8; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.ledger { background: var(--paper); color: var(--asphalt); padding: clamp(22px, 2.6vw, 38px); position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.ledger:nth-child(2) { margin-top: 36px; }
.ledger header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(18,18,18,.5); margin-bottom: 20px; }
.ledger header em { font-family: var(--classic); font-style: italic; font-size: 1.3rem; opacity: .75; }
.ledger .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.ledger label { display: grid; gap: 6px; font-family: var(--classic); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #55554f; font-weight: 500; }
.ledger input, .ledger select { font-family: var(--sans); font-weight: 300; font-size: 1.15rem; background: transparent; border: 0; border-bottom: 1px solid var(--asphalt); padding: 6px 0 8px; color: var(--asphalt); border-radius: 0; width: 100%; }
.ledger input:focus, .ledger select:focus { outline: none; border-bottom-color: var(--spray); }
.ledger .out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(18,18,18,.5); }
.ledger .out b { display: block; font-family: var(--classic); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.05; margin-top: 6px; }
.ledger .out .mono { font-size: 10.5px; color: #55554f; }
.ledger .fn { margin-top: 20px; font-size: 13px; opacity: .7; line-height: 1.5; }
.ledger .fn a { border-bottom: 1px solid var(--spray); }
.tmk { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.tmk div { border-top: 1px solid rgba(18,18,18,.5); padding-top: 8px; }
.tmk b { display: block; font-family: var(--classic); font-weight: 400; font-size: 1.5rem; line-height: 1.05; }
.tmk small { font-size: 12px; opacity: .75; } .tmk .dn { color: var(--spray); }
.tst, .tsa { margin-top: 18px; }
.tst .row { display: grid; grid-template-columns: 11em 1fr 5.5em; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(18,18,18,.14); font-size: 14px; }
.tst .sbar { height: 2px; background: rgba(18,18,18,.15); position: relative; } .tst .sbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--asphalt); } .tst .sbar i.low { background: var(--spray); }
.tst em { font-style: normal; text-align: right; }
.tsa .row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; } .tsa b { font-family: var(--classic); font-weight: 400; font-size: 1.7rem; margin-right: 6px; } .tsa small { opacity: .7; display: block; font-size: 12px; margin-top: 4px; }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; } .ledger:nth-child(2) { margin-top: 0; } .ledger .fields, .ledger .out { grid-template-columns: 1fr; } .tmk { grid-template-columns: repeat(2, 1fr); } .tst .row { grid-template-columns: 8em 1fr 4.4em; } }

/* навигация: компактная в средних ширинах, меню на телефоне */
.bar a, .bar button { white-space: nowrap; }
.bar nav { gap: clamp(10px, 1.7vw, 30px); }
.menu-btn { display: none; position: fixed; right: var(--gutter); top: 16px; z-index: 130; width: 46px; height: 40px; background: none; border: 1px solid rgba(236,236,232,.7); cursor: pointer; mix-blend-mode: difference; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); } .menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 24px; }
.menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); } .menu-open .menu-btn span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 125; background: #050303; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gutter); opacity: 0; pointer-events: none; transition: opacity .5s; }
.menu a { font-family: var(--classic); font-weight: 300; font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.05; text-transform: uppercase; color: var(--paper); transform: translateY(24px); opacity: 0; transition: transform .7s var(--ease), opacity .7s; }
.menu-open .menu { opacity: 1; pointer-events: auto; } .menu-open .menu a { transform: none; opacity: 1; } .menu-open .menu a:nth-child(2) { transition-delay: .06s; } .menu-open .menu a:nth-child(3) { transition-delay: .12s; } .menu-open .menu a:nth-child(4) { transition-delay: .18s; } .menu-open .menu a:nth-child(5) { transition-delay: .24s; } .menu-open .menu a:nth-child(6) { transition-delay: .3s; }
@media (max-width: 1180px) { .bar nav a:nth-child(5) { display: none; } }
@media (max-width: 960px) { .bar nav a { display: none; } }
@media (max-width: 860px) { .menu-btn { display: block; } .bar #modeBtn { margin-right: 58px; } }

/* фон-сетка из букв */
#bd { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* пакт: вместо красного пятна золотой шов кинцуги и тёплый свет между пальцами */
.knot b { display: none; }
.knot i { width: calc(var(--W) * .075); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,176,.95) 0 6%, rgba(238,196,100,.6) 24%, rgba(201,162,75,.18) 52%, rgba(201,162,75,0) 72%); filter: none; mix-blend-mode: screen; transform: translate(-50%, -50%) scale(calc(var(--k, 0) * 1)); animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.knot .seam { position: absolute; left: -1.5px; top: calc(var(--H) * -0.44); height: var(--H); width: 3px; transform-origin: 50% 44%; transform: scaleY(var(--d, 0)); background: linear-gradient(180deg, rgba(233,204,133,0), #EBD08A 10%, #C9A24B 50%, #EBD08A 90%, rgba(233,204,133,0)); box-shadow: 0 0 14px 2px rgba(233,204,133,.4); filter: url(#rough); opacity: .95; }

/* пакт: заметный золотой шов, всплеск света и печать после рукопожатия */
.knot .seam { width: calc(5px + var(--flare, 0) * 8px); left: calc(-2.5px - var(--flare, 0) * 4px); background: linear-gradient(180deg, rgba(240,214,140,0), #F6E2A0 8%, #D9B35A 50%, #F6E2A0 92%, rgba(240,214,140,0)); box-shadow: 0 0 calc(22px + var(--flare, 0) * 36px) calc(4px + var(--flare, 0) * 8px) rgba(240,205,120,.55); }
.knot i { transform: translate(-50%, -50%) scale(calc(var(--k, 0) * (1 + var(--flare, 0) * 1.8))); }
.knot .pulse, .canvas .pulse { }
.canvas > .pulse { position: absolute; left: 38.7%; top: 44%; width: calc(var(--W) * .09); aspect-ratio: 1; margin: calc(var(--W) * -.045) 0 0 calc(var(--W) * -.045); border: 1.5px solid rgba(246,226,160,.85); border-radius: 50%; opacity: 0; pointer-events: none; z-index: 6; box-shadow: 0 0 30px rgba(240,205,120,.5); }
#heroSeal { position: absolute; left: 38.7%; top: 63%; width: calc(var(--W) * .15); height: calc(var(--W) * .15); margin: calc(var(--W) * -.075) 0 0 calc(var(--W) * -.075); opacity: 0; z-index: 7; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(0,0,0,.6)); }

.rivet { display: none !important; }

/* главная: новый тезис и раздел «С чем приходят» */
.role h2.long { font-size: clamp(2.6rem, 5.8vw, 6.2rem); }
.net { position: relative; z-index: 2; min-height: 100vh; padding: clamp(80px, 14vh, 170px) var(--gutter); display: flex; align-items: center; overflow: hidden; }
.net-bg { position: absolute; inset: 0; z-index: 0; }
.net-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.8) contrast(1.1); animation: kb 50s ease-in-out infinite alternate; }
.net-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,2,2,.9), rgba(4,2,2,.55) 60%, rgba(4,2,2,.8)), var(--grain); background-size: auto, 220px; }
.net-in { position: relative; z-index: 2; max-width: 62em; }
.net-in h2 { font-family: var(--classic); font-size: clamp(3rem, 7.6vw, 8rem); line-height: .92; text-transform: uppercase; margin: 14px 0 18px; font-weight: 300; }
.net-in .lead { max-width: 34em; opacity: .85; margin-bottom: 28px; }
.net-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.net-chips button { background: none; border: 1px solid rgba(236,236,232,.45); color: var(--paper); padding: 11px 20px; cursor: pointer; font-family: var(--classic); font-style: italic; font-size: 1.15rem; transition: all .35s; }
.net-chips button.on, .net-chips button:hover { background: var(--paper); color: var(--asphalt); border-color: var(--paper); }
.net-ans { max-width: 40em; min-height: 14em; }
.net-ans .q { font-family: var(--classic); font-style: italic; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; margin-bottom: 14px; }
.net-ans .a { max-width: 34em; opacity: .88; margin-bottom: 22px; border-left: 1px solid var(--spray); padding-left: 16px; font-size: 1.05rem; }

/* главная: отрасли и стандарт */
.inds { font-family: var(--classic); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.6rem); opacity: .75; max-width: 40em; margin: -8px 0 26px; line-height: 1.5; }
.std { position: relative; z-index: 2; padding: clamp(80px, 14vh, 170px) var(--gutter); }
.std h2 { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(3rem, 8vw, 8.4rem); line-height: .92; text-transform: uppercase; margin: 14px 0 clamp(30px, 5vh, 60px); max-width: 12em; }
.std-row { display: flex; gap: 14px; height: 66vh; min-height: 440px; }
.std-p { flex: 1; position: relative; overflow: hidden; transition: flex .95s var(--ease); background: #111; }
.std-p:hover { flex: 2.7; }
.std-p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5) contrast(1.15); transform: scale(1.1); transition: filter 1s, transform 1.8s var(--ease); }
.std-p:hover img { filter: grayscale(0) brightness(.78) contrast(1.05); transform: scale(1); }
.std-p::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,2,2,.92), rgba(4,2,2,0) 62%), var(--grain); background-size: auto, 220px; opacity: 1; pointer-events: none; }
.std-p .tx { position: absolute; left: clamp(18px, 2vw, 32px); right: clamp(18px, 2vw, 32px); bottom: clamp(18px, 2.4vw, 34px); z-index: 2; }
.std-p h3 { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(2.4rem, 4.6vw, 4.8rem); line-height: .95; text-transform: uppercase; margin-bottom: 10px; }
.std-p p { max-height: 0; opacity: 0; overflow: hidden; max-width: 28em; transition: max-height .9s var(--ease), opacity .9s; }
.std-p:hover p { max-height: 12em; opacity: .92; }
@media (max-width: 860px) { .std-row { flex-direction: column; height: auto; } .std-p { min-height: 320px; } .std-p p { max-height: none; opacity: .9; } }

/* главная: «Знаю как. Знаю кто.» */
.knows { position: relative; z-index: 2; height: 620vh; background: #050303; }
.kn-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 0 var(--gutter); }
.kn-bg { position: absolute; inset: 0; }
.kn-bg img { position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; opacity: 0; filter: brightness(.5) saturate(.85) contrast(1.1); transition: opacity 1.2s ease; animation: kb 44s ease-in-out infinite alternate; }
.kn-bg img.on { opacity: 1; }
.kn-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,2,2,.92), rgba(4,2,2,.4) 70%, rgba(4,2,2,.2)), var(--grain); background-size: auto, 220px; }
.kn-in { position: relative; z-index: 3; max-width: 62em; }
.kn-h { font-family: var(--classic); font-weight: 300 !important; font-size: clamp(3.4rem, 9.4vw, 10rem); line-height: .9; text-transform: uppercase; margin: 16px 0 24px; }
.kn-p { max-width: 32em; font-size: clamp(1.1rem, 1.6vw, 1.45rem); opacity: .9; line-height: 1.5; border-left: 1px solid var(--spray); padding-left: 18px; }
.kn-dots { display: flex; gap: 10px; margin-top: 34px; }
.kn-dots i { width: 34px; height: 1px; background: rgba(236,236,232,.35); transition: background .5s, width .5s var(--ease); }
.kn-dots i.on { background: var(--paper); width: 70px; }
.kn-foot { position: absolute; left: 0; bottom: -18vh; font-family: var(--classic); font-style: italic; opacity: .6; font-size: 1.1rem; }
@media (max-width: 860px) { .knows { height: 480vh; } .kn-foot { position: static; margin-top: 30px; } }

/* бренд */
.mark { font-size: 19px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.motto { margin-top: 16px; font-family: var(--classic); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: .05em; color: var(--paper); opacity: .85; }
.mark { font-size: 16px; letter-spacing: .18em; white-space: nowrap; }
@media (max-width: 1380px) { .bar nav a:nth-child(4), .bar nav a:nth-child(5) { display: none; } }

/* название без белой плашки: светлые тонкие буквы на тёмной вуали внизу картины */
.strip h1 { background: none; color: var(--paper); box-shadow: none; transform: none; padding: 0; font-weight: 300 !important; letter-spacing: .07em; font-size: clamp(3rem, 10.4vw, 10.6rem); line-height: .94; text-shadow: 0 2px 44px rgba(0,0,0,.65); }
.strip h1 > span + span { padding-left: .85em; }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(4,2,2,.96), rgba(4,2,2,.72) 40%, rgba(4,2,2,0)); }
.strip { z-index: 7; bottom: 6vh; }
.strip .motto { position: relative; }
