/* =========================================================
   Novgor Agency — shared inner-page components
   (page hero, curtain transition, about, services, contact,
   insights, article, legal). Loaded after style.css.
   ========================================================= */

[hidden] { display: none !important; }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 280; display: grid; place-items: center;
  background: #0e0e0e; transform: translateY(100%); pointer-events: none; will-change: transform;
}
.curtain__mark { width: 56px; height: auto; filter: drop-shadow(0 0 .6px #c4a465) drop-shadow(0 0 .6px #c4a465); }
.from-nav .curtain { transform: none; }
.visited .loader { display: none !important; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(150px, 22vh, 220px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.page-hero .hero__bg { z-index: -1; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--text); }
.page-hero__title { font-size: clamp(52px, 9vw, 132px); line-height: .92; letter-spacing: .01em; }
.page-hero__title em { background: linear-gradient(100deg, #f4f1ea 0%, #f4f1ea 30%, #8b867e 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero__kicker { display: block; margin-bottom: 22px; font-size: var(--t-body-sm); font-weight: 450; letter-spacing: .03em; line-height: 1.4; color: var(--champ); }
.page-hero__lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.page-hero__lead { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.4; letter-spacing: .01em; color: var(--text); max-width: 520px; }
.page-hero__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.page-hero__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.page-hero__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body-sm); letter-spacing: .03em; color: var(--muted); }
.page-hero__facts b { color: var(--ink); font-weight: 500; letter-spacing: .01em; }
.page-hero--compact { padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero--compact .page-hero__title { font-size: clamp(48px, 7vw, 106px); }

/* ---------- Two-column intro ---------- */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-split .h-lg { max-width: 560px; }
.intro-split__body { display: grid; gap: 20px; font-size: 18px; line-height: 1.65; color: var(--text); }
.intro-split__body p:first-child { font-size: clamp(20px, 1.9vw, 23px); line-height: 1.45; color: var(--ink); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.value__num { font-size: var(--t-caption); letter-spacing: .03em; color: var(--champ); margin-bottom: auto; }
.value h3 { font-size: clamp(26px, 2.6vw, 33px); line-height: 1.15; letter-spacing: .01em; }
.value p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 440px; }
.value__shape { position: absolute; right: 28px; top: 28px; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.value__shape::after { content: ""; position: absolute; inset: 14px; border-radius: inherit; background: var(--ink); opacity: .9; }
.value:nth-child(2) .value__shape { border-radius: 14px; }
.value:nth-child(2) .value__shape::after { background: var(--champ); border-radius: 6px; }
.value:nth-child(3) .value__shape::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.value:nth-child(4) .value__shape { border-radius: 28px 28px 0 0; }

/* ---------- Ecosystem (3 columns) ---------- */
.branches__grid--3 { grid-template-columns: repeat(3, 1fr); }
.branch--core { background: var(--ink); box-shadow: none; }
.branch--core h3 { color: #0b0b0b; }
.branch--core p { color: #4a4640; }
.branch--core .branch__label { color: #6f6146; }
.branch--core .link-arrow { color: #0b0b0b; }
.branch--core .link-arrow:hover { background: rgba(0,0,0,.06); }
.branch--core .branch__shape { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.branch--core .branch__shape::after { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

.qa__a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- Footer socials ---------- */
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.footer__social a:hover { background: var(--ink); color: #0b0b0b; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Compact ecosystem strip ---------- */
.eco { padding-block: clamp(48px, 7vw, 96px); }
.eco__bar { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--surface); box-shadow: var(--hair); }
.eco__title { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: .01em; color: var(--ink); }
.eco__title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 0 4px rgba(200,180,138,.14); }
.eco__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eco__list a { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; height: 100%; min-height: 168px; padding: 24px; border-radius: var(--r-card); background: var(--tint); box-shadow: var(--hair); transition: background-color .4s, box-shadow .4s, transform .5s var(--ease); }
.eco__list a:hover { background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-4px); }
.eco__list b { display: block; font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; color: var(--ink); letter-spacing: .01em; line-height: 1.15; }
.eco__list small { display: block; margin-top: 6px; font-size: var(--t-body-sm); letter-spacing: .03em; color: var(--muted); }
.eco__list i { margin-top: auto; font-style: normal; font-size: 18px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.eco__list a:hover i { transform: translateX(6px); color: var(--ink); }
.eco__list .is-current a { background: var(--ink); box-shadow: none; }
.eco__list .is-current b { color: #0b0b0b; }
.eco__list .is-current small, .eco__list .is-current i { color: #5a5751; }
@media (max-width: 900px) {
  .eco__list { grid-template-columns: 1fr; }
  .eco__list a { min-height: 0; gap: 20px; }
}

/* ---------- Remote band ---------- */
.remote { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px 64px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 24px; background: var(--surface); box-shadow: var(--hair); }
.remote__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.remote__item { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--tint); box-shadow: var(--hair); }
.remote__item svg { width: 24px; height: 24px; color: var(--champ); }
.remote__item b { font-size: 17px; }
.remote__item span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc__nav { position: sticky; top: 120px; display: grid; gap: 2px; }
.svc__nav a { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ash); transition: color .4s; }
.svc__nav a span { font-size: var(--t-caption); letter-spacing: .03em; }
.svc__nav a:hover, .svc__nav a.is-active { color: var(--ink); }
.svc__nav a.is-active span { color: var(--champ); }
.svc__blocks { display: grid; gap: 16px; }
.svc-block { padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; background: var(--surface); box-shadow: var(--hair); display: grid; gap: 24px; scroll-margin-top: 110px; }
.svc-block__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.svc-block__num { font-size: clamp(56px, 6vw, 88px); line-height: .85; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.svc-block__tag { font-size: var(--t-caption); letter-spacing: .03em; color: var(--champ); padding: 6px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(200,180,138,.35); white-space: nowrap; }
.svc-block > p { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 680px; }
.svc-block__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-block__col { padding: 20px; border-radius: var(--r-card); background: var(--tint); box-shadow: var(--hair); }
.svc-block__col h3 { font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 450; }
.svc-block--core { background: linear-gradient(160deg, #1d1d1c, #121212 60%); box-shadow: inset 0 0 0 1px var(--line-2); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role { padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; display: grid; gap: 20px; align-content: start; }
.role--us { background: var(--ink); color: #3a3733; }
.role--us h3 { color: #0b0b0b; }
.role--us .ticks li { color: #2a2724; }
.role--us .ticks li::before { border-color: #0b0b0b; }
.role--you { background: var(--surface); box-shadow: var(--hair); }
.role__label { font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.role--us .role__label { color: #6f6146; }
.role h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: .01em; }
.role .ticks { gap: 14px; }
.role .ticks li { font-size: 16px; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps-row--3 { grid-template-columns: repeat(3, 1fr); }
.steps-row li { padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--hair); display: grid; gap: 12px; align-content: start; min-height: 240px; }
.steps-row b { font-size: 56px; line-height: .9; font-weight: 500; color: var(--ink); }
.steps-row h3 { font-size: 20px; line-height: 1.25; }
.steps-row p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 16px; align-items: start; }
.panel { padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; background: var(--surface); box-shadow: var(--hair); }
.panel__head { display: grid; gap: 10px; margin-bottom: 32px; }
.panel__head p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-size: var(--t-body-sm); letter-spacing: .03em; color: var(--text); }
.field label small { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; letter-spacing: .01em; color: var(--ink);
  padding: 15px 16px; border: 0; outline: 0; border-radius: var(--r-input);
  background: rgba(244,241,234,.05); box-shadow: var(--hair);
  transition: box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23cfcac1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: #161616; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field input:hover, .field select:hover, .field textarea:hover { background-color: rgba(244,241,234,.07); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px rgba(244,241,234,.45); background-color: rgba(244,241,234,.07); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { box-shadow: inset 0 0 0 1px #e8907f; }
.field__error { font-size: var(--t-caption); letter-spacing: .03em; color: #f0a596; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(244,241,234,.04); cursor: pointer; display: grid; place-items: center; transition: background-color .3s; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.8px solid #0b0b0b; border-bottom: 1.8px solid #0b0b0b; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.field.is-invalid .check input { box-shadow: inset 0 0 0 1px #e8907f; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; grid-column: 1 / -1; }
.form-actions p { font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send-error { grid-column: 1 / -1; font-size: 14px; color: #f0a596; }
.form-send-error a { color: var(--ink); text-decoration: underline; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.form-success { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 3vw, 40px) 0; }
.form-success__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.form-success__check svg { width: 28px; height: 28px; }
.form-success__check path { fill: none; stroke: #0b0b0b; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; }
.form-success p { color: var(--text); max-width: 480px; line-height: 1.6; }

.contact-side { display: grid; gap: 16px; }
.call-card { position: relative; overflow: hidden; display: grid; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--ink); color: #3a3733; }
.call-card h2 { color: #0b0b0b; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; letter-spacing: .01em; }
.call-card p { color: #4a4640; line-height: 1.55; }
.call-card .btn { --bg: #0b0b0b; --fg: var(--ink); --hover: #262626; justify-self: start; margin-top: 6px; }
.call-card__rings { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.call-card__rings::after { content: ""; position: absolute; inset: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.channels { display: grid; gap: 0; padding: 8px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--hair); }
.channel { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.channel:last-child { border-bottom: 0; }
.contact-grid > *, .channel > span { min-width: 0; }
.channel b { overflow-wrap: anywhere; }
.channel__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); box-shadow: var(--hair); color: var(--champ); }
.channel__icon svg { width: 18px; height: 18px; }
.channel small { display: block; font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.channel b { font-size: 16px; font-weight: 450; letter-spacing: .01em; }
.channel__go { font-size: 18px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
a.channel:hover .channel__go { transform: translateX(4px); color: var(--ink); }
.side-note { padding: 20px 24px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.side-note b { color: var(--ink); }

/* ---------- Insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--t-body-sm); letter-spacing: .03em; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, color .3s; }
.filters button:hover { background: var(--tint); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #0b0b0b; box-shadow: none; }
.feature-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--hair); margin-bottom: 16px; }
.feature-post__cover { aspect-ratio: 16 / 11; border-radius: var(--r-card); background: radial-gradient(70% 70% at 30% 20%, #262625, #101010); display: grid; place-items: center; overflow: hidden; position: relative; }
.feature-post__cover span { font-size: clamp(120px, 14vw, 200px); color: var(--ink); line-height: 1; transition: transform 1s var(--ease); }
.feature-post__cover::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.feature-post:hover .feature-post__cover span { transform: scale(1.08) rotate(-6deg); }
.feature-post__body { display: grid; gap: 16px; padding: 8px clamp(0px, 2vw, 24px) 8px 0; }
.feature-post__body h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: .01em; }
.feature-post__body p { color: var(--muted); line-height: 1.6; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.post__tag { display: inline-flex; width: fit-content; font-size: var(--t-caption); letter-spacing: .03em; color: var(--champ); }
.post--soon { cursor: default; }
.post--soon .post__cover { opacity: .55; }
.post--soon .post__more { color: var(--muted); }
.post--soon:hover .post__cover { border-radius: var(--r-card); }
.post--soon:hover .post__cover span { transform: none; }
.filters-empty { padding: 40px 0; color: var(--muted); }

/* ---------- Article ---------- */
.read-progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 2px; background: var(--champ); transform-origin: left; transform: scaleX(0); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.article-meta span { font-size: var(--t-caption); letter-spacing: .03em; padding: 7px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.article { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); justify-content: center; align-items: start; }
.toc { position: sticky; top: 120px; display: grid; gap: 4px; font-size: 14px; }
.toc p { font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.35; transition: color .3s; }
.toc a:hover { color: var(--ink); }

.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: .01em; margin-top: 2.2em; scroll-margin-top: 110px; }
.prose h3 { font-size: 22px; line-height: 1.3; letter-spacing: .01em; margin-top: 1.8em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--champ); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 36px; }
.prose ol li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: 12px; letter-spacing: .03em; color: var(--champ); }
.prose strong { color: var(--ink); }
.prose .lede { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink); }
.callout { padding: 24px 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.callout p { margin: 0; }
.callout b { display: block; font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--champ); margin-bottom: 8px; font-weight: 450; }
.table-wrap { overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--hair); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table th { font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 450; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); }
.article-end { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

/* ---------- Article media & SEO blocks ---------- */
.article-cover { margin: 0; }
.article-cover img, .article-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--hair); }
.article-cover img { aspect-ratio: 16 / 8; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.article-cover figcaption, .article-figure figcaption { margin-top: 10px; font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.article-cover figcaption a, .article-figure figcaption a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.article-figure { margin: 2em 0; }
.article-figure img { aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.updated { font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.keypoints { padding: 24px 28px; border-radius: var(--r-card); background: linear-gradient(160deg, #1b1b1a, #121212 70%); box-shadow: inset 0 0 0 1px var(--line-2); }
.keypoints > b { display: block; font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--champ); margin-bottom: 12px; font-weight: 450; }
.keypoints ul { gap: .45em; }
.keypoints li { font-size: 16px; line-height: 1.55; }
.related { margin-top: clamp(64px, 8vw, 112px); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.post__img { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--hair); }
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) contrast(1.05) brightness(.9); transition: transform 1s var(--ease), filter .6s; }
.post:hover .post__img img { transform: scale(1.06); filter: saturate(1) contrast(1.05) brightness(1); }
.feature-post__img { aspect-ratio: 16 / 11; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.feature-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) contrast(1.05) brightness(.9); transition: transform 1.2s var(--ease); }
.feature-post:hover .feature-post__img img { transform: scale(1.05); }
@media (max-width: 900px) { .related__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .related__grid { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__updated { font-size: var(--t-caption); letter-spacing: .03em; color: var(--muted); }
.info-list { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; border-radius: var(--r-card); box-shadow: var(--hair); overflow: hidden; font-size: 16px; }
.info-list dt, .info-list dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: 14px; letter-spacing: .03em; background: var(--surface); }
.info-list dd { color: var(--ink); }
.info-list dt:last-of-type, .info-list dd:last-of-type { border-bottom: 0; }

/* ---------- Compact CTA (inner pages) ---------- */
.cta--compact { min-height: 0; }
.cta--compact .cta__inner { padding-block: clamp(48px, 7vw, 112px); }
.cta--compact .cta__title { font-size: clamp(40px, 6vw, 88px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .branches__grid--3 { grid-template-columns: 1fr 1fr; }
  .branches__grid--3 .branch--core { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page-hero__side { grid-template-columns: 1fr; }
  .intro-split, .values, .roles, .feature-post, .remote { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .remote__items { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__nav { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; }
  .article, .legal { grid-template-columns: minmax(0, 1fr); }
  .article > *, .legal > * { min-width: 0; }
  .toc { position: static; }
  .branches__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding-top: 130px; }
  .page-hero__title { font-size: clamp(40px, 11.5vw, 72px); }
  .page-hero__title .line__in { white-space: normal; }
  .form-grid, .svc-block__cols { grid-template-columns: 1fr; }
  .post-grid, .steps-row { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .info-list dt { border-bottom: 0; padding-bottom: 4px; }
  .info-list dd { padding-top: 4px; }
  .value { min-height: 0; }
  .value__num { padding-bottom: 40px; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .curtain { display: none; }
}

/* ---------- Coherent photo treatment (blog & articles) ----------
   Every photo gets the same warm black-and-white grade so images from
   different photographers read as one series on the matte-black site. */
.post__img, .feature-post__img, .article-cover, .article-figure { position: relative; }
.post__img img, .feature-post__img img, .article-cover img, .article-figure img,
.post:hover .post__img img, .feature-post:hover .feature-post__img img {
  filter: grayscale(1) sepia(.22) contrast(1.08) brightness(.8);
}
.post__img::after, .feature-post__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(11,11,11,0) 45%, rgba(11,11,11,.45)), linear-gradient(135deg, rgba(200,180,138,.1), rgba(11,11,11,0) 60%);
}
.post:hover .post__img img, .feature-post:hover .feature-post__img img { filter: grayscale(1) sepia(.22) contrast(1.1) brightness(.92); }
