/* Shared navigation */
:root {
    --language-bar-height: 32px;
    --header-height: calc(80px + var(--language-bar-height));
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.site-head { grid-template-rows: var(--language-bar-height) minmax(0, 1fr); }
.language-bar {
    height: var(--language-bar-height);
    background: #080808;
    border-bottom: 1px solid #ffffff15;
}
.language-bar-inner { display: flex; height: 100%; justify-content: flex-end; }
.language-menu { position: relative; z-index: 7; font-size: 13px; }
.language-menu summary, .language-options a {
    display: flex;
    height: 100%;
    gap: 10px;
    align-items: center;
    padding-inline: 10px;
    color: var(--text);
    white-space: nowrap;
}
.language-menu summary { cursor: pointer; list-style: none; }
.language-menu summary::marker { content: ""; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-chevron {
    width: 6px;
    height: 6px;
    margin: -3px 2px 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}
.language-menu[open] .language-chevron { transform: translateY(3px) rotate(225deg); }
.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px #0006;
}
.language-menu:not([open]) > .language-options { display: none; }
.language-options a {
    min-height: 36px;
    border-radius: 5px;
    text-decoration: none;
}
.language-options a:hover { background: var(--raised); }

body:not(.bp-modern-home) .site-head {
    margin-bottom: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.site-head:has(.nav-group[open]) { background: #101112ed; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
/* Use text and an active state for disclosure, without native triangles. */
.nav-group { position: relative; }
.nav-group > summary,
.mobile-nav > summary,
.mobile-group > summary {
    display: block;
    list-style: none;
    cursor: pointer;
}
.nav-group > summary::marker,
.mobile-nav > summary::marker,
.mobile-group > summary::marker { content: ""; }
.nav-group > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker,
.mobile-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary {
    position: relative;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.nav-group > summary:hover { background: var(--raised); }
.nav-group[open] > summary {
    background: var(--raised);
    color: var(--accent);
}
.nav-group[open] > summary::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 1px;
    background: currentColor;
    content: "";
}
.nav-dropdown {
    position: absolute;
    z-index: 6;
    top: 100%;
    left: 0;
    display: grid;
    gap: 2px;
    width: min(320px, 35vw);
    padding: 8px;
    border: 1px solid #46433b;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 14px 36px #0007;
}
.nav-group:not([open]) > .nav-dropdown { display: none; }
.desktop-nav .nav-dropdown a {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    color: var(--text);
    line-height: 1.35;
}
.desktop-nav .nav-dropdown a:hover,
.desktop-nav .nav-dropdown a:focus-visible { background: var(--raised); }
.nav-dropdown small { color: var(--subtle); font-size: 12px; }
.mobile-nav nav { max-height: calc(100dvh - var(--header-height) - 12px); overflow: auto; }
.mobile-group { padding-inline: 6px; }
.mobile-group + .mobile-group { border-top: 1px solid var(--line); }
.mobile-group > summary { padding: 10px 8px; border-radius: 6px; font-weight: 650; }
.mobile-group[open] > summary { background: var(--raised); color: var(--accent); }
.mobile-group a { color: var(--subtle); }
.admin-bar .site-head { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-height) + 48px); }
.hero.hero-en h1 { font-size: clamp(38px, 5.3vw, 80px); }

/* Editorial templates */
.bp-container, .bp-v2-page .container {
    width: min(1312px, calc(100% - clamp(32px, 8vw, 128px)));
    margin-inline: auto;
}
.bp-v2-page .hero.hero-inner {
    min-height: auto;
    padding-block: clamp(44px, 7vw, 96px);
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse at 89% 0, #282318, transparent 62%), var(--surface);
}
.bp-v2-page .inner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
}
.bp-v2-page .inner-copy { min-width: 0; }
.bp-v2-page .topic-strip, .bp-v2-page .eyebrow-dot { display: none; }
.inner-visual, .body-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}
.inner-visual { aspect-ratio: 4 / 3; }
.inner-visual img, .body-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inner-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, #0a0a0a40);
    pointer-events: none;
    content: "";
}
.bp-v2-page .body-visual-wrap { padding-bottom: clamp(26px, 4vw, 60px); }
.body-visual { aspect-ratio: 2.65; }
.bp-v2-page .publication-cover {
    width: auto;
    max-width: 100%;
    height: clamp(126px, 15vw, 195px);
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 16px;
}
.bp-v2-page .breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin-bottom: clamp(21px, 4vw, 40px); color: var(--subtle); font-size: 13px; }
.bp-v2-page .breadcrumbs a { color: var(--text); }
.bp-v2-page .breadcrumbs a:hover { color: var(--accent); }
.bp-v2-page .hero-eyebrow, .bp-v2-page .kicker, .bp-v2-page .tag {
    display: block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}
.bp-v2-page .hero.hero-inner h1 {
    max-width: 23ch;
    margin: 13px 0 18px;
    font-size: clamp(33px, 4.5vw, 66px);
    overflow-wrap: anywhere;
    letter-spacing: -.063em;
    line-height: 1.02;
    text-wrap: balance;
}
.bp-v2-page .hero-period { color: var(--accent); }
.bp-v2-page .hero-lead { max-width: 67ch; color: var(--subtle); font-size: clamp(16px, 1.65vw, 20px); }
.bp-v2-page .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.bp-v2-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #6d6046;
    border-radius: 8px;
    background: var(--raised);
    color: var(--text);
    font: 700 14px/1.35 var(--font);
    text-decoration: none;
    text-align: center;
}
.bp-v2-page button.button { cursor: pointer; }
.bp-v2-page .button:hover { border-color: var(--accent); }
.bp-v2-page .button-dark, .bp-v2-page .button-light { border-color: var(--accent); background: var(--accent); color: #1b1710; }
.bp-v2-page .button-dark:hover, .bp-v2-page .button-light:hover { background: #f3d795; }
.bp-v2-page .section { padding-block: clamp(36px, 5.8vw, 80px); }
.bp-v2-page .section + .section { border-top: 1px solid var(--line); }
.bp-v2-page .section-tight { padding-top: 20px; }
.bp-v2-page .section h2, .bp-content h1, .bp-single h1, .bp-archive h1, .bp-404 h1 {
    margin-block: 10px 14px;
    font-size: clamp(28px, 3.65vw, 54px);
    line-height: 1.06;
    font-weight: 650;
    letter-spacing: -.052em;
    text-wrap: balance;
}
.bp-v2-page .section h3 { margin-bottom: 8px; font-size: clamp(19px, 2.15vw, 28px); line-height: 1.16; letter-spacing: -.035em; }
.bp-v2-page .section p, .bp-v2-page .section li { color: var(--subtle); }
.bp-v2-page .section p + p { margin-top: 12px; }
.bp-v2-page .section-intro { max-width: 760px; margin-bottom: 22px; }
.bp-v2-page .section-intro:only-child { margin-bottom: 0; }
.bp-v2-page .section-intro p { max-width: 68ch; }
.bp-v2-page .section-intro .profile-card { margin-top: 22px; }
.bp-v2-page .cards-grid, .bp-v2-page .metric-cards, .bp-v2-page .publication-list, .bp-v2-page .bp-report-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 12px;
}
.bp-v2-page .service-card, .bp-v2-page .info-panel, .bp-v2-page .metric-card,
.bp-v2-page .publication, .bp-v2-page .profile-card, .bp-v2-page .bp-report-related-card {
    padding: clamp(17px, 2.65vw, 31px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.bp-v2-page .service-card { display: flex; flex-direction: column; align-items: start; }
.bp-v2-page .service-card:focus-within { border-color: var(--accent); }
.bp-v2-page .service-card .card-end { margin-top: auto; padding-top: 14px; }
.bp-v2-page .card-link, .bp-v2-page .text-link, .bp-v2-page .section p a { color: var(--accent); text-underline-offset: 3px; }
.bp-v2-page .card-link { display: inline-block; padding-block: 5px; font-weight: 700; font-size: 14px; }
.bp-v2-page .split, .bp-v2-page .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 5vw, 72px);
}
.bp-v2-page .info-panel .kicker, .bp-v2-page .publication .tag { margin-bottom: 9px; }
.bp-v2-page .tick-list { padding-left: 19px; margin-bottom: 0; }
.bp-v2-page .tick-list li + li { margin-top: 7px; }
.bp-v2-page .ink-section, .bp-v2-page .bp-report-related { background: var(--surface); }
.bp-v2-page .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.bp-v2-page .step { padding-top: 14px; border-top: 1px solid #655538; }
.bp-v2-page .step-number { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 700; }
.bp-v2-page .faq { border-top: 1px solid var(--line); }
.bp-v2-page .faq:last-child { border-bottom: 1px solid var(--line); }
.bp-v2-page .faq summary { padding: 13px 0; cursor: pointer; font-weight: 700; }
.bp-v2-page .faq-answer { padding: 0 0 13px 16px; }
.bp-v2-page .metric-card strong { display: block; color: var(--accent); font-size: clamp(33px, 5vw, 62px); line-height: 1.1; letter-spacing: -.055em; }
.bp-v2-page .metric-card span { color: var(--subtle); }
.bp-v2-page .data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.bp-v2-page table { width: 100%; border-collapse: collapse; background: var(--surface); text-align: left; }
.bp-v2-page td, .bp-v2-page th { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bp-v2-page th { color: var(--accent); }
.bp-v2-page .profile-card { display: flex; gap: 16px; }
.bp-v2-page .profile-avatar { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #2d2619; color: var(--accent); font-weight: 700; }
.bp-v2-page .cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 19px; padding: clamp(19px, 4.3vw, 55px); border: 1px solid #615237; border-radius: 16px; background: #232017; }
.bp-v2-page .cta-inner .button { flex-shrink: 0; }
.bp-v2-page .demo-form { display: grid; max-width: 820px; gap: 16px; padding: clamp(17px, 3vw, 31px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bp-v2-page .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-v2-page .demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.bp-v2-page .demo-form input, .bp-v2-page .demo-form select, .bp-v2-page .demo-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.bp-v2-page .demo-form textarea { resize: vertical; }
.bp-v2-page .demo-form .button { justify-self: start; }
.bp-v2-page .demo-warning { padding: 10px 13px; border-left: 2px solid var(--accent); background: #262015; font-size: 13px; }
.bp-v2-page .demo-feedback { font-size: 14px; }

/* WordPress pages outside the supplied editorial routes */
.bp-site-main { min-height: 45vh; }
.bp-content, .bp-page-section, .bp-single, .bp-archive, .bp-404 { padding-block: clamp(36px, 7vw, 94px); }
.bp-post-content { max-width: 78ch; }
.bp-post-content > * + *, .bp-page-section .bp-container > * + *, .bp-content > * + * { margin-top: 16px; }
.bp-featured-image img { height: auto; border-radius: 12px; margin-bottom: 22px; }
.bp-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-block: 22px; }
.bp-post-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bp-post-card h2 { font-size: 21px; }
.bp-post-card p { margin-top: 8px; color: var(--subtle); }
.bp-product-list { display: flex; flex-wrap: wrap; list-style: none; gap: 12px; padding: 0; }
.bp-404 a { display: inline-block; color: var(--accent); margin-top: 12px; }

/* Footer */
.bp-footer-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr 1.25fr; gap: 20px; }
.bp-footer-brand .logo { margin-bottom: 12px; }
.bp-footer-brand p { max-width: 33ch; }
.bp-footer-social { display: flex; gap: 10px; margin-top: 11px; }
.bp-footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; }
.bp-footer-social img { width: 15px; height: 15px; object-fit: contain; }
.bp-footer-col h3 { font-size: 14px; margin-bottom: 7px; }
.bp-footer-col ul { list-style: none; padding: 0; margin: 0; }
.bp-footer-col li { font-size: 13px; color: var(--subtle); margin-bottom: 4px; }
.bp-contact-list li { display: flex; align-items: start; gap: 6px; }
.bp-contact-list img { width: 13px; height: 15px; margin-top: 3px; }
.bp-network-section, .bp-footer-bottom { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; }
.bp-network-section { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.bp-network-kicker { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.bp-network-name, .bp-network-description { display: block; }
.bp-network-name { font-weight: 700; }
.bp-network-description { font-size: 13px; color: var(--subtle); }
.bp-footer-bottom, .bp-footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.bp-footer-bottom a { font-size: 12px; }

@media (max-width: 900px) {
    .desktop-nav, .nav-actions .headcta { display: none; }
    .nav-actions { margin-left: auto; }
    .navrow { position: relative; }
    .mobile-nav { display: block; }
    .mobile-nav > summary { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; }
    .mobile-nav[open] > summary { background: var(--raised); color: var(--accent); }
    .mobile-nav nav { position: absolute; top: calc(100% + 4px); left: 0; right: 0; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
    .mobile-nav a { display: block; padding: 8px; text-decoration: none; }
    .bp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 760px) {
    :root { --header-height: calc(62px + var(--language-bar-height)); }
    .bp-v2-page .inner-layout { grid-template-columns: minmax(0, 1fr); }
    .inner-visual { aspect-ratio: 3 / 2; }
    .body-visual { aspect-ratio: 16 / 9; }
    .hero.hero-en h1 { font-size: clamp(35px, 7vw, 58px); }
    .bp-v2-page .split, .bp-v2-page .faq-layout, .bp-v2-page .form-row { grid-template-columns: 1fr; }
    .bp-v2-page .cta-inner { flex-direction: column; align-items: start; }
    .bp-network-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-network-intro { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
@media (max-width: 390px) { .bp-footer-grid { grid-template-columns: 1fr; } }

/* About and consultation */
.about-hero {
    padding-block: clamp(40px, 7vw, 102px);
    background: radial-gradient(ellipse at 80% 20%, #262218, transparent 60%), var(--surface);
    border-bottom: 1px solid var(--line);
}
.about-hero-grid, .about-main-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: clamp(24px, 6vw, 84px);
}
.about-hero h1 {
    margin-block: 12px 18px;
    font-size: clamp(42px, 6vw, 88px);
    line-height: .98;
    letter-spacing: -.065em;
}
.about-hero h1 span { color: var(--accent); }
.about-subtitle { margin-bottom: 10px; font-size: clamp(20px, 2.5vw, 32px); }
.about-portrait {
    margin: 0;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0a0a0a;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: right 36%; }
.about-main-grid { align-items: start; }
.about-team {
    padding: clamp(22px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.bp-v2-page .about-team h2 { margin-top: 0; font-size: clamp(24px, 3vw, 40px); }
.bp-live-form {
    max-width: 760px;
    padding: clamp(18px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}
.home-consultation h2 { margin-bottom: 20px; }
.bp-live-form .wpcf7-form p + p { margin-top: 14px; }
.bp-live-form :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea) {
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.bp-live-form input[type=submit] {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #18140d;
    font: 700 14px var(--font);
    cursor: pointer;
}
.bp-live-form input[type=submit]:disabled { opacity: .55; }
.bp-live-form .wpcf7-not-valid-tip { color: #ffb6ab; }
@media (max-width: 760px) {
    .about-hero-grid, .about-main-grid { grid-template-columns: 1fr; }
    .about-portrait { aspect-ratio: 16 / 10; }
}

.bp-v2-page .consultation-hero .inner-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.consultation-form { width: 100%; box-shadow: 0 16px 38px #0003; }
.consultation-form h2 { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.consultation-form label { font-size: 14px; }
.consultation-form textarea { max-height: 160px; resize: vertical; }
@media (max-width: 760px) {
    .bp-v2-page .consultation-hero .inner-layout { grid-template-columns: minmax(0, 1fr); }
}
