/* Complexus — Merchant Bank direction */

:root {
  --ink: #0A0A0A;
  --ivory: #F4F2ED;
  --white: #FFFFFF;
  --graphite: #444444;
  --stone: #D8D4CB;
  --muted-dark: #BDB9B0;   /* body copy on black */
  --label-dark: #8E8A82;   /* labels on black */
  --label-light: #5E5B55;  /* labels on ivory/white */
  --rule-dark: #262626;
  --sans: 'Hanken Grotesk', 'Inter Tight', system-ui, sans-serif;  /* Inter Tight supplies Cyrillic (and Greek) */
  --gutter: clamp(16px, 5vw, 72px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Russian pages: one face for Cyrillic, digits and punctuation alike, with true italics. */
html:lang(ru) { --sans: 'Inter Tight', 'Hanken Grotesk', system-ui, sans-serif; }

body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
/* On ivory and white, links hover to ink (plain links keep their underline); on black, to grey. */
a:hover { color: var(--ink); }
.dark a:hover { color: var(--label-dark); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--ivory); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 12px; }

.wrap { max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
/* Hanken only. Italic is the voice: always one step lighter than the roman around it. */
em, i, .italic { font-style: italic; font-weight: 300; }
h1 em, h2 em, h3 em { font-weight: 300; letter-spacing: -.01em; }
.label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ulink { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 12px; letter-spacing: .2em; }
.dark { background: var(--ink); color: var(--ivory); }
.dark .label { color: var(--label-dark); }
.white { background: var(--white); }

/* ---------- frosted header (after dvo.it) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; color: var(--ivory); background: rgba(10, 10, 10, .14); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(244, 242, 237, .12); transition: background-color .5s ease; }
.site-header.is-solid { background: rgba(10, 10, 10, .28); }
/* over ivory/white sections the glass turns light and everything inside flips to ink */
.site-header, .site-header .nav a, .lang-btn, .nav-toggle { transition: background-color .45s ease, color .45s ease, border-color .45s ease; }
.brand { position: relative; }
.site-header .brand img { transition: opacity .45s ease; }
.site-header .brand img.ink { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-light .brand img.ink { opacity: 1; }
.site-header.is-light .brand img:not(.ink) { opacity: 0; }
.site-header.is-light { background: rgba(255, 255, 255, .26); color: var(--ink); border-bottom-color: rgba(10, 10, 10, .08); }
/* hides on scroll down, returns on scroll up */
.site-header { transition: background-color .45s ease, color .45s ease, border-color .45s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header.is-light .lang-btn, .site-header.is-light .nav-toggle { color: var(--ink); border-color: rgba(10, 10, 10, .35); }
.site-header.is-light .lang-btn:hover, .site-header.is-light .lang-btn[aria-expanded="true"] { background: rgba(10, 10, 10, .06); border-color: rgba(10, 10, 10, .6); }
.site-header.is-light .lang-menu { background: rgba(244, 242, 237, .9); border-color: rgba(10, 10, 10, .12); }
.site-header.is-light .lang-menu a { color: var(--graphite); }
.site-header.is-light .lang-menu a:hover, .site-header.is-light .lang-menu a[aria-current="true"] { color: var(--ink); background: rgba(10, 10, 10, .05); }
.site-header.is-light .lang-menu .code { color: var(--label-light); }
@media (min-width: 861px) {
  .site-header.is-light .nav a { color: var(--label-light); }
  .site-header.is-light .nav a:hover, .site-header.is-light .nav a[aria-current] { color: var(--ink); }
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.header-right { display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 46px; width: auto; }
.brand .brand-mark { display: none; height: 36px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: .22em; color: var(--muted-dark); }
.nav a:hover, .nav a[aria-current] { color: var(--ivory); }
.nav-toggle { display: none; background: none; border: 1px solid #3A3A3A; color: var(--ivory); min-height: 44px; padding: 0 16px; font: 500 12px var(--sans); letter-spacing: .2em; cursor: pointer; }

/* language pill */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; background: transparent; color: var(--ivory); border: 1px solid rgba(244, 242, 237, .42); border-radius: 3px; font: 500 11px var(--sans); letter-spacing: .16em; cursor: pointer; transition: background-color .25s, border-color .25s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(244, 242, 237, .1); border-color: rgba(244, 242, 237, .7); }
.lang-btn .chev { font-size: 14px; line-height: 1; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 14px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: rgba(10, 10, 10, .74); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgba(244, 242, 237, .14); border-radius: 4px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
/* without JavaScript the list opens while focus is inside it */
html:not(.js) .lang:focus-within .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 2px; color: var(--muted-dark); font: 400 15px var(--sans); text-align: start; text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { color: var(--ivory); background: rgba(244, 242, 237, .07); outline: none; }
.lang-menu a[aria-current="true"] { color: var(--ivory); }
.lang-menu .code { font-size: 10px; letter-spacing: .18em; color: var(--label-dark); }
.lang-menu a[aria-current="true"] .code::before { content: "● "; font-size: 7px; vertical-align: 2px; }

/* the hero runs up underneath the glass */
.hero { margin-top: -85px; }
.hero > .wrap { padding-top: 85px; }

/* ---------- load-in screen (after dvo.it) ---------- */
.preloader { display: none; }
.js:not(.intro-seen) .preloader { display: flex; position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.preloader__col { flex: 1 1 0; position: relative; background: var(--ink); transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); }
.preloader__col:not(:last-child)::after { content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%; background: rgba(244, 242, 237, .12); }
.preloader__col:nth-child(2) { transition-delay: .09s; }
.preloader__col:nth-child(3) { transition-delay: .18s; }
.preloader__logo { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(300px, 62vw); height: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; animation: pl-in 1s .25s cubic-bezier(.16, 1, .3, 1) forwards; }
.preloader.out .preloader__col { transform: translateY(-101%); }
.preloader.out .preloader__logo { animation: pl-out .45s cubic-bezier(.7, 0, .84, 0) forwards; }
@keyframes pl-in { from { opacity: 0; transform: translate(-50%, -42%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes pl-out { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -62%); } }
@media (orientation: portrait) { .preloader__col:first-child, .preloader__col:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .preloader__col, .preloader__logo { transition: opacity .4s ease; animation: none; opacity: 1; }
  .preloader.out .preloader__col, .preloader.out .preloader__logo { transform: none; opacity: 0; animation: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-rings { position: absolute; right: -9%; top: 50%; transform: translateY(-46%); height: 128%; width: auto; max-width: none; opacity: .07; pointer-events: none; z-index: 3; will-change: transform; }
.hero-body { will-change: transform; }
.hero > .wrap { z-index: 1; }
.hero > .wrap { position: relative; min-height: 712px; display: flex; flex-direction: column; }
.hero-body { padding-top: clamp(80px, 10vw, 140px); }
.hero h1 { grid-column: span 8; margin: 0; font: 500 clamp(40px, 5.2vw, 74px)/1.08 var(--sans); letter-spacing: -.03em; }
.hero .lede { grid-column: span 5; margin: 4px 0 0; font-weight: 400; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted-dark); }
.hero-spacer { flex-grow: 1; min-height: 72px; }
.hero-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; border-top: 1px solid var(--rule-dark); padding: 26px 0 40px; }
.hero-strip .label { display: block; margin-bottom: 10px; }
.hero-strip p, .hero-strip a.serif { margin: 0; font-size: 17px; line-height: 1.5; text-decoration: none; }
.hero-strip .mail { text-decoration: none; border-bottom: 1px solid #5A5A5A; }


/* ---------- section heads ---------- */
.sec { padding: var(--section) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head .title { display: flex; flex-direction: column; gap: 16px; }
.sec-head h2 { margin: 0; font-weight: 500; letter-spacing: -.02em; font-size: clamp(32px, 3.4vw, 48px); }
.sec-head .note { font: italic 300 17px var(--sans); color: var(--graphite); }

/* ---------- capabilities ---------- */
.cap { display: grid; grid-template-columns: 90px minmax(0, 4fr) minmax(0, 6fr); column-gap: 32px; border-top: 1px solid var(--ink); padding: 34px 0; }
.cap:last-child { border-bottom: 1px solid var(--ink); }
.cap .num { font-weight: 300; font-size: 28px; }
.cap h3 { margin: 0; font: 500 24px/1.25 var(--sans); letter-spacing: -.01em; }
.cap h3 em { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0; color: var(--graphite); }
.cap p { margin: 0; font: 400 17px/1.65 var(--sans); color: #2A2A2A; }

.arr { width: 24px; height: 12px; flex: none; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.svc-card:hover .arr, .rel:hover .arr { transform: translateX(6px); }

/* ---------- capability pages ---------- */
.svc-h1 em { display: block; margin-top: .14em; font-size: .7em; line-height: 1.12; }
.svc-q-label { margin-top: 40px; }
.svc-q { margin-top: 40px; }
.svc-q li { font-size: 17px; }
.svc-note { margin: 0; font: italic 300 17px/1.5 var(--sans); color: var(--graphite); }
.deliver { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; }
.deliver li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; border-top: 1px solid var(--ink); padding: 20px 0; font: 400 19px/1.5 var(--sans); }
.deliver li:last-child { border-bottom: 1px solid var(--ink); }
.deliver .n { font-weight: 300; font-size: 15px; letter-spacing: .08em; color: var(--label-light); }
.svc-scope { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 12px; }
.svc-scope .label { color: var(--label-light); }
.svc-scope p { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--graphite); }
.steps .step-n { display: block; margin-bottom: 18px; font-weight: 200; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.steps > div { padding-top: 22px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rel { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 28px 28px 72px; background: var(--white); text-decoration: none; transition: background-color .5s cubic-bezier(.16, 1, .3, 1), color .5s cubic-bezier(.16, 1, .3, 1); }
.rel:hover { background: var(--ink); color: var(--ivory); }
.rel .num { font-weight: 200; font-size: 44px; line-height: 1; margin-bottom: 18px; }
.rel-name { font: 500 24px/1.2 var(--sans); letter-spacing: -.015em; }
.rel em { font-size: 15px; color: var(--graphite); transition: color .5s; }
.rel:hover em { color: var(--muted-dark); }
.rel .arr { position: absolute; left: 28px; bottom: 30px; }
.addons { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: 64px; }
.addons > .label { grid-column: span 4; color: var(--label-light); padding-top: 20px; }
.addons ul { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; }
.addons li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 24px; border-top: 1px solid var(--ink); padding: 18px 0; font-size: 16px; line-height: 1.55; }
.addons li:last-child { border-bottom: 1px solid var(--ink); }
.addons strong { font-weight: 500; }
.addons li span { color: var(--graphite); }

/* enquiry form: service picker */
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4F2ED' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center / 12px 8px; border: 0; border-bottom: 1px solid #6B6B6B; color: var(--ivory); font: 400 18px var(--sans); padding: 10px 28px 10px 0; min-height: 44px; border-radius: 0; cursor: pointer; }
.field select:focus { outline: none; border-bottom-color: var(--ivory); }
.field select option { background: var(--ink); color: var(--ivory); }

/* ---------- contour texture ---------- */
.topo { position: relative; isolation: isolate; overflow: hidden; }
.topo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .07; pointer-events: none; }
/* One plate per section, so no two read as the same map. */
.topo--archipelago::before { background-image: url(../img/topo-archipelago-ink.svg); }
.topo--ridge::before { background-image: url(../img/topo-ridge-ink.svg); }
.topo--headland::before { background-image: url(../img/topo-headland-ink.svg); }

/* ---------- about page ---------- */
.hero--page > .wrap { min-height: 600px; }
.hero--page .page-label { grid-column: 1 / -1; margin-bottom: -16px; }
.position-label { grid-column: span 3; margin: 0; font-weight: 400; color: var(--label-light); padding-top: 12px; }
.position { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 22px; }
.position p { margin: 0; font: 400 18px/1.7 var(--sans); color: #2A2A2A; max-width: 680px; }
.position .position-lead { font: 500 clamp(28px, 3vw, 42px)/1.15 var(--sans); letter-spacing: -.025em; color: var(--ink); max-width: none; margin-bottom: 12px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.principles > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.principles h3 { margin: 0 0 10px; font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; }
.principles p { margin: 0; font: 400 16px/1.65 var(--sans); color: #2A2A2A; }
.bounds-head { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.bounds-head .label { color: var(--label-light); }
.bounds-head h2 { margin: 0; font: 500 clamp(28px, 3vw, 40px)/1.15 var(--sans); letter-spacing: -.02em; }
.bounds { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; }
.bounds li { border-top: 1px solid var(--ink); padding: 18px 0; font: 400 18px/1.5 var(--sans); }
.bounds li:last-child { border-bottom: 1px solid var(--ink); }

/* ---------- enquiries ---------- */
.enquiries { padding: clamp(80px, 10vw, 144px) 0 clamp(56px, 7vw, 96px); }
.enq-head { grid-column: span 6; display: flex; flex-direction: column; gap: 36px; }
.enq-head img { height: 64px; width: auto; align-self: flex-start; }
.enq-head h2 { margin: 0; font: 500 clamp(34px, 4.4vw, 60px)/1.08 var(--sans); letter-spacing: -.03em; }
.enq-head .contact { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.enq-head .contact a { text-decoration: none; }
.enq-form { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid #6B6B6B; color: var(--ivory); font: 400 18px var(--sans); padding: 10px 0; min-height: 44px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ivory); }
.field textarea { resize: vertical; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot .italic { font: italic 300 14px var(--sans); color: var(--label-dark); }
.btn { background: var(--ivory); color: var(--ink); border: 0; min-height: 48px; padding: 0 32px; font: 500 12px var(--sans); letter-spacing: .22em; cursor: pointer; }
.btn:hover { background: var(--white); }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; font: italic 300 16px var(--sans); min-height: 1.5em; }
.form-status a { color: var(--ivory); }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--ivory); }
.field-err { margin: 0; font: italic 300 15px var(--sans); color: var(--ivory); }
.form-privacy { margin: 0; font: 400 13px/1.6 var(--sans); color: var(--label-dark); }
.form-privacy a { color: var(--muted-dark); }
/* honeypot: off screen, skipped by screen readers (aria-hidden) and the Tab key (tabindex -1) */
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer .wrap { border-top: 1px solid var(--rule-dark); padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--label-dark); }
.site-footer img { height: 40px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }

.cta { padding: clamp(56px, 7vw, 96px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; font: 500 clamp(28px, 3.4vw, 46px)/1.1 var(--sans); letter-spacing: -.025em; max-width: 720px; }

/* ---------- legal, enquiry-result and 404 pages ---------- */
.hero--short > .wrap { min-height: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.hero--short .hero-spacer { display: none; }
.legal-date { grid-column: 1 / -1; margin: 0; color: var(--label-dark); }
.result-link { grid-column: 1 / -1; margin: 12px 0 0; }
.legal-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; border-block-start: 1px solid var(--ink); padding-block: 28px 32px; }
.legal-sec:last-child { border-block-end: 1px solid var(--ink); }
.legal-sec h2 { grid-column: span 4; margin: 0; font: 500 22px/1.3 var(--sans); letter-spacing: -.01em; }
.legal-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 14px; }
.legal-body p { margin: 0; font: 400 17px/1.7 var(--sans); color: #2A2A2A; max-width: 680px; }
.nf-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-block-start: 16px; }
.nf { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-block-start: 1px solid var(--rule-dark); padding-block-start: 18px; }
.nf h1 { margin: 0; font: 500 22px/1.3 var(--sans); }
.nf p { margin: 0; color: var(--muted-dark); font-size: 17px; line-height: 1.6; }

/* ---------- reveal on scroll (progressive: content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .brand img { height: 32px; }
  .header-right { gap: 12px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 84px; z-index: 5; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--rule-dark); padding: 8px var(--gutter) 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--rule-dark); }
  .hero-rings { right: -38%; height: 92%; opacity: .08; }
  .hero > .wrap { min-height: 0; }
  .hero h1, .hero .lede, .position-label, .position, .bounds-head, .bounds, .enq-head, .enq-form { grid-column: 1 / -1; }
  .hero--page .page-label { margin-bottom: 0; }
  .position-label { padding-top: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .cap { grid-template-columns: 44px minmax(0, 1fr); row-gap: 10px; }
  .deliver, .svc-scope, .addons > .label, .addons ul { grid-column: 1 / -1; }
  .addons { row-gap: 16px; }
  .addons > .label { padding-top: 0; }
  .addons li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .rel-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rel { min-height: 0; }
  .deliver li { grid-template-columns: 44px minmax(0, 1fr); font-size: 17px; }
  .cap p { grid-column: 2; }
  .legal-sec { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .legal-sec h2, .legal-body { grid-column: 1 / -1; }
  .nf-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  /* long Russian and Albanian words must not push the page sideways on the narrowest phones */
  /* no automatic hyphens: 'intelli-gence' reads as a typo. Long words may still wrap rather than overflow. */
  h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; }
  .hero h1 { font-size: 34px; }
  .brand .brand-lockup { display: none; }
  .brand .brand-mark { display: block; }
  .nav-toggle { padding: 0 14px; }
}

/* =====================================================================
   October 2026 review (prototype): buttons, map, service grid, timeline,
   team, FAQ, comparison table, contact, legal header, footer sitemap.
   ===================================================================== */

/* ---------- buttons and calls to action ---------- */
a.btn { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding-block: 12px; line-height: 1.5; text-decoration: none; text-align: center; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: #2A2A2A; color: var(--ivory); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 36px 0 0; }
.cta .btn { flex: 0 1 auto; }
.cta p { margin: 16px 0 0; max-width: 620px; font: 400 18px/1.6 var(--sans); color: var(--muted-dark); }

/* ---------- homepage hero: text left, map right ---------- */
.hero--home .hero-body { align-items: center; }
.hero--home h1 { font-size: clamp(36px, 4.2vw, 60px); }
.hero--home .lede { max-width: 520px; margin: 0; }
.hero-strip a { text-decoration: none; border-bottom: 1px solid #5A5A5A; }

/* ---------- service cards (homepage and services page): all four visible ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 44px); background: var(--ivory); color: var(--ink); text-decoration: none;
  transition: background-color .55s cubic-bezier(.16, 1, .3, 1), color .55s cubic-bezier(.16, 1, .3, 1); }
.svc-card:hover, .svc-card:focus-visible { background: var(--ink); color: var(--ivory); }
.svc-card h3 { margin: 0; font: 500 clamp(26px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -.025em; }
.svc-card h3 em { display: block; margin-top: 8px; font-size: .55em; color: var(--graphite); transition: color .55s; }
.svc-card p { margin: 0; font: 400 17px/1.6 var(--sans); color: #2A2A2A; transition: color .55s; }
.svc-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--stone); transition: border-color .55s; }
.svc-card dt { color: var(--label-light); margin-bottom: 6px; transition: color .55s; }
.svc-card dd { margin: 0; font: 500 17px/1.4 var(--sans); }
.svc-card__more { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 8px; font-size: 12px; letter-spacing: .2em; }
.svc-card:hover h3 em, .svc-card:hover p, .svc-card:focus-visible h3 em, .svc-card:focus-visible p { color: var(--muted-dark); }
.svc-card:hover dt, .svc-card:focus-visible dt { color: var(--label-dark); }
.svc-card:hover dl, .svc-card:focus-visible dl { border-color: var(--rule-dark); }
.svc-card:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- light hero (services page and each service page) ---------- */
.hero--light { background: var(--ivory); color: var(--ink); }
.hero--light > .wrap { min-height: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.hero--light .hero-body { padding-top: clamp(40px, 6vw, 88px); align-items: start; }
.hero--light .lede { color: var(--graphite); }
.crumbs { display: flex; gap: 12px; padding-top: 28px; font-size: 14px; color: var(--label-light); }
.crumbs a { color: var(--ink); }
.svc-hero-text { grid-column: span 7; }
.hero--svcs .svc-hero-text { grid-column: span 9; }
.svc-hero-text h1 { margin: 0; }
.svc-hero-text .lede { margin-top: 24px; max-width: 600px; }
.glance { grid-column: 9 / span 4; margin: 0; padding: 28px; background: var(--white); display: flex; flex-direction: column; gap: 18px; }
.glance dt { color: var(--label-light); margin-bottom: 6px; }
.glance dd { margin: 0; font: 400 17px/1.45 var(--sans); }

/* ---------- timeline: steps side by side, one line through them ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.timeline--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.timeline li { position: relative; padding-top: 34px; border-top: 1px solid var(--ink); }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.timeline .tl-n { display: block; margin-bottom: 14px; font-weight: 200; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.timeline h3 { margin: 0 0 10px; font: 500 19px/1.3 var(--sans); letter-spacing: -.01em; }
.timeline p { margin: 0; font: 400 16px/1.6 var(--sans); color: #2A2A2A; }

/* ---------- who we work for, specialties ---------- */
.who > div, .specialties > div { padding-top: 22px; }
.who { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.specialties h3 em { display: block; margin-top: 4px; font-size: 15px; color: var(--graphite); }
.specialties p { font-size: 15px; }

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.person { border-top: 1px solid var(--ink); padding-top: 20px; }
.person h3 { margin: 0; font: 500 24px/1.2 var(--sans); letter-spacing: -.015em; }
.person .role { margin: 6px 0 14px; font: italic 300 16px var(--sans); color: var(--graphite); }
.person p { margin: 0; font: 400 16px/1.65 var(--sans); color: #2A2A2A; }

/* ---------- FAQ ---------- */
.faq { grid-column: 6 / span 7; border-bottom: 1px solid var(--ink); }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 500 19px/1.4 var(--sans); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; flex: none; width: 14px; height: 14px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.2px; background: currentColor; transition: transform .3s ease; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item p { margin: 0 0 22px; max-width: 640px; font: 400 17px/1.7 var(--sans); color: #2A2A2A; }

/* ---------- comparison table and add-on prices ---------- */

/* ---------- enquiry block: what happens next ---------- */
.enq-next { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.enq-next .label { margin: 0; font-weight: 400; }
.enq-next ol { margin: 0; padding: 0; list-style: none; counter-reset: next; display: flex; flex-direction: column; gap: 10px; }
.enq-next li { counter-increment: next; display: grid; grid-template-columns: 32px minmax(0, 1fr); font: 400 17px/1.5 var(--sans); }
.enq-next li::before { content: counter(next, decimal-leading-zero); font-weight: 300; font-size: 14px; color: var(--label-dark); padding-top: 3px; }
.enq-next p { margin: 6px 0 0; font: italic 300 16px/1.6 var(--sans); color: var(--muted-dark); }
.contact-page .enquiries { margin-top: -85px; padding-top: calc(85px + clamp(56px, 7vw, 96px)); }
.contact-page .enq-head h1 { margin: 0; font: 500 clamp(34px, 4.4vw, 60px)/1.08 var(--sans); letter-spacing: -.03em; }

/* ---------- legal pages: a plain header with contents ---------- */
.legal-head { background: var(--white); padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.legal-title { grid-column: span 7; display: flex; flex-direction: column; gap: 16px; }
.legal-title .label { color: var(--label-light); }
.legal-title h1 { margin: 0; font: 500 clamp(34px, 3.6vw, 52px)/1.1 var(--sans); letter-spacing: -.025em; }
.legal-title .lede { margin: 0; font: 400 18px/1.65 var(--sans); color: var(--graphite); max-width: 620px; }
.legal-title .legal-date { color: var(--label-light); }
.legal-toc { grid-column: 9 / span 4; }
.legal-toc h2 { margin: 0 0 12px; font-weight: 400; color: var(--label-light); }
.legal-toc ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.legal-toc a { color: var(--graphite); }
.legal { padding-top: 0; }
.legal-sec { scroll-margin-top: 24px; }

/* ---------- 404: one language at a time, footer at the bottom ---------- */
.nf-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); }
.nf-page main { flex: 1 0 auto; display: flex; flex-direction: column; }
.nf-page .hero--nf { flex: 1 0 auto; }
.nf ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.nf[hidden] { display: none; }
.nf-list.one { grid-template-columns: minmax(0, 1fr); }
.nf-list.one .nf { border-block-start: 0; padding-block-start: 0; }
.nf-list.one .nf h1 { font: 500 clamp(40px, 5.2vw, 74px)/1.08 var(--sans); letter-spacing: -.03em; }

/* ---------- footer: a small sitemap ---------- */
.site-footer .wrap { flex-direction: column; align-items: stretch; padding-top: 48px; }
.foot-map { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--rule-dark); }
.site-footer .foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 64px; }
.foot-cols h2 { margin: 0 0 14px; font-weight: 400; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted-dark); }
.site-footer .foot-nav { justify-content: space-between; }


@media (max-width: 1100px) {
  .timeline, .timeline--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero--home .hero-text, .svc-hero-text, .hero--svcs .svc-hero-text, .glance, .faq, .legal-title, .legal-toc { grid-column: 1 / -1; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .who { grid-template-columns: minmax(0, 1fr); }
  .coverage-body { grid-template-columns: minmax(0, 1fr); }
  .timeline, .timeline--5 { grid-template-columns: minmax(0, 1fr); }
  .addons li { grid-template-columns: minmax(0, 1fr); }
  .site-footer .foot-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- homepage hero: text only ---------- */
.hero--home .hero-text { grid-column: span 9; display: flex; flex-direction: column; gap: 22px; }
.hero--home .lede { max-width: 620px; margin: 0; }
.hero--home .hero-ctas { margin-top: 14px; }

/* ---------- team: condensed, no photos yet ---------- */
.person--card { display: flex; flex-direction: column; gap: 4px; padding: 24px 0 0; color: var(--ink); text-decoration: none; }
.person--card p:not(.role) { margin: 8px 0 0; font-size: 15px; }
.person--card .svc-card__more { margin-top: 14px; }
.person--card:hover .arr { transform: translateX(6px); }
.person--card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.person--full { scroll-margin-top: 100px; }
.person--full p + p { margin-top: 14px; }
.person--full h4 { margin: 24px 0 10px; font-weight: 400; color: var(--label-light); }
.creds { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; font: 400 15px/1.55 var(--sans); color: #2A2A2A; }
.person--full .lead-line { margin-top: 20px; font: italic 300 16px/1.6 var(--sans); color: var(--graphite); }

/* ---------- Where we work: interactive map with a side panel ---------- */
.hero--where > .wrap { padding-bottom: clamp(32px, 4vw, 48px); }
.hero--where .hero-body { padding-top: clamp(40px, 5vw, 72px); row-gap: 24px; }
.wmap-panel .wm-reg[hidden] { display: none; }
.wmap-sec { padding: 0 0 clamp(56px, 7vw, 96px); }
.wmap-grid { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.wmap svg { display: block; width: 100%; height: auto; }
.wm-bg { fill: #1F1F1F; stroke: var(--ink); stroke-width: .7; }
.wm-c path { fill: #8E8A82; stroke: var(--ink); stroke-width: .7; cursor: pointer; transition: fill .2s ease; }
.wm-c path:hover, .wm-c path:focus-visible, .wm-c path.on { fill: var(--ivory); outline: none; }
.wm-c path:focus-visible { stroke: var(--ivory); stroke-width: 2; }
.wmap[data-region="ceurope"] [data-r="ceurope"]:not(.on), .wmap[data-region="baltics"] [data-r="baltics"]:not(.on),
.wmap[data-region="eeurope"] [data-r="eeurope"]:not(.on), .wmap[data-region="russia"] [data-r="russia"]:not(.on),
.wmap[data-region="balkans"] [data-r="balkans"]:not(.on), .wmap[data-region="turkey"] [data-r="turkey"]:not(.on),
.wmap[data-region="caucasus"] [data-r="caucasus"]:not(.on), .wmap[data-region="casia"] [data-r="casia"]:not(.on),
.wmap[data-region="mena"] [data-r="mena"]:not(.on) { fill: #BDB9B0; }
.wm-l text { fill: var(--ink); font: 500 15px var(--sans); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
  paint-order: stroke; stroke: #BDB9B0; stroke-width: 3px; stroke-linejoin: round; }
.wmap-panel { position: sticky; top: 100px; min-height: 220px; padding: 24px; border: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 12px; }
.wmap-panel .wm-reg { margin: 0; }
.wmap-panel h3 { margin: 0; font: 500 26px/1.15 var(--sans); letter-spacing: -.02em; }
.wmap-panel p:last-child { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--muted-dark); }
.wmap-sec .map-foot { margin: 24px 0 0; max-width: 760px; font: italic 300 15px/1.6 var(--sans); color: var(--label-dark); }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.region { border-top: 1px solid var(--ink); padding-top: 18px; scroll-margin-top: 100px; }
.region h3 { margin: 0 0 8px; font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; }
.region-countries { margin: 0 0 12px; font: italic 300 15px/1.5 var(--sans); color: var(--graphite); }
.region-text { margin: 0; font: 400 16px/1.65 var(--sans); color: #2A2A2A; }

@media (max-width: 1100px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .wmap-grid { grid-template-columns: minmax(0, 1fr); }
  .wmap-panel { position: static; min-height: 0; }
  .wm-l text { font-size: 22px; }
  .regions { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Services dropdown in the top menu ---------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-item::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 22px; }   /* keeps hover alive between link and menu */
.sub-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.sub-btn .chev { font-size: 14px; line-height: 1; transform: rotate(90deg); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.has-sub.open .sub-btn .chev { transform: rotate(-90deg); }
.sub { position: absolute; left: -16px; top: calc(100% + 18px); min-width: 250px; margin: 0; padding: 6px; list-style: none;
  background: rgba(10, 10, 10, .86); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(244, 242, 237, .14); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.nav .sub a { display: block; padding: 11px 12px; border-radius: 2px; font: 400 15px var(--sans); letter-spacing: 0; color: var(--muted-dark); }
.nav .sub a:hover, .nav .sub a:focus-visible { color: var(--ivory); background: rgba(244, 242, 237, .07); outline: none; }
.site-header.is-light .sub { background: rgba(244, 242, 237, .92); border-color: rgba(10, 10, 10, .12); }
.site-header.is-light .nav .sub a { color: var(--graphite); }
.site-header.is-light .nav .sub a:hover { color: var(--ink); background: rgba(10, 10, 10, .05); }

/* ---------- Services page: add-ons as their own section ---------- */
.addon-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.addon-cards li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 20px; }
.addon-cards strong { font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; }
.addon-cards span { font: 400 16px/1.65 var(--sans); color: #2A2A2A; }

/* ---------- Services page: questions as a carousel of cards ---------- */
.q-ctrl { display: flex; align-items: center; gap: 10px; }
.q-ctrl[hidden] { display: none; }
.q-count { margin-right: 14px; color: var(--label-light); font-variant-numeric: tabular-nums; }
.q-count [data-q-i] { color: var(--ink); }
.rail-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; background: transparent; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; transition: background-color .3s ease, color .3s ease, opacity .3s ease; }
.rail-btn svg { width: 20px; height: 10px; }
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--ivory); }
.rail-btn:disabled { opacity: .22; cursor: default; }
.q-rail { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.q-rail::-webkit-scrollbar { display: none; }
.q-rail:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
.q-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: clamp(24px, 2.6vw, 36px); background: var(--ivory); }
.q-card .q-n { font-weight: 200; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.q-card h3 { margin: 0; font: 500 21px/1.3 var(--sans); letter-spacing: -.01em; }
.q-card p { margin: 0; font: 400 16px/1.65 var(--sans); color: #2A2A2A; }

@media (max-width: 1100px) { .q-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 860px) {
  .nav-item { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item::after { display: none; }
  .sub-btn { display: none; }
  .sub { position: static; min-width: 0; padding: 0 0 8px 16px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  .nav .sub a { padding: 10px 0; border-top: 0; font-size: 15px; }
  .addon-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .q-card { flex-basis: 86%; min-height: 0; }
  .rail-btn { width: 44px; height: 44px; }
}
