:root {
    --ink: #121412;
    --ink-soft: #4f554f;
    --paper: #f6f4ef;
    --paper-2: #ece9e1;
    --white: #ffffff;
    --line: rgba(18, 20, 18, 0.14);
    --line-light: rgba(255, 255, 255, 0.18);
    --accent: #a98856;
    --accent-dark: #7a603b;
    --green-black: #17201b;
    --container: 1240px;
    --narrow: 820px;
    --radius: 0px;
    --shadow: 0 18px 60px rgba(20, 24, 21, 0.08);
    --serif: Iowan Old Style, Baskerville, "Times New Roman", Times, serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
button, input, textarea, select { font: inherit; }
address { font-style: normal; }

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}
.container--narrow { width: min(calc(100% - 48px), var(--narrow)); }

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    transform: translateY(-140%);
    z-index: 9999;
    background: var(--white);
    padding: 10px 14px;
    border: 1px solid var(--ink);
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 244, 239, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header--scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(18,20,18,.04); }
.site-header__inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
}
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 50px; width: auto; }
.brand-logo { display:inline-flex; align-items:center; text-decoration:none; }
.brand-logo img { width:185px; height:auto; max-height:54px; }

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}
.wordmark__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1;
}
.wordmark__text { font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; }
.wordmark--light { color: var(--white); }

.site-nav { justify-self: center; }
.site-nav__list,
.site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .02em;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-dark); }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone { text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 14px 22px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .015em;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.button:hover, .button:focus-visible { background: transparent; color: var(--ink); transform: translateY(-1px); }
.button--small { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.button--outline { background: transparent; color: var(--ink); }
.button--outline:hover { background: var(--ink); color: var(--white); }
.button--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.button--light:hover { background: transparent; color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 750; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link--dark { color: var(--ink); }

.hero {
    padding: 68px 0 88px;
    background:
        radial-gradient(circle at 70% 18%, rgba(169,136,86,.13), transparent 26%),
        linear-gradient(180deg, var(--paper) 0%, #f1eee7 100%);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 76px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-dark);
}
.eyebrow--light { color: #d4c2a5; }
.hero h1,
.page-hero h1,
.section-heading h2,
.approach-panel h2,
.experts-copy h2,
.contact-cta h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}
.hero h1 { max-width: 780px; font-size: clamp(52px, 6.3vw, 92px); }
.hero__lead { max-width: 670px; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 34px; }
.hero__note { margin: 18px 0 0; color: var(--ink-soft); font-size: 13px; }
.hero__visual { position: relative; min-height: 610px; }
.hero__image--primary {
    position: absolute;
    inset: 0 0 34px 50px;
    background:
        linear-gradient(180deg, rgba(18,20,18,.05), rgba(18,20,18,.25)),
        var(--legimia-image) center 28% / cover no-repeat;
    box-shadow: var(--shadow);
}
.hero__visual::before {
    content: "";
    position: absolute;
    width: 58%;
    height: 54%;
    left: 0;
    bottom: 0;
    background: var(--accent);
    z-index: 0;
}
.hero__location-card {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: min(370px, 82%);
    padding: 28px 30px;
    background: var(--green-black);
    color: var(--white);
}
.hero__location-card span, .hero__location-card small { display: block; color: rgba(255,255,255,.68); font-size: 12px; }
.hero__location-card strong { display: block; margin: 7px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 25px; }

.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar__grid > div { min-height: 108px; display: flex; align-items: center; gap: 16px; padding: 24px 24px 24px 0; border-right: 1px solid var(--line); }
.trust-bar__grid > div:not(:first-child) { padding-left: 24px; }
.trust-bar__grid > div:last-child { border-right: 0; }
.trust-bar strong { color: var(--accent-dark); font-family: var(--serif); font-weight: 400; font-size: 20px; }
.trust-bar span { font-size: 13px; font-weight: 700; line-height: 1.35; }

.section { padding: 120px 0; }
.section-heading { margin-bottom: 54px; }
.section-heading--split { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 80px; align-items: end; }
.section-heading--align-end { align-items: end; }
.section-heading h2, .experts-copy h2 { font-size: clamp(44px, 5vw, 68px); }
.section-heading > p { margin: 0; color: var(--ink-soft); font-size: 18px; }

.services-section { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
    position: relative;
    min-height: 330px;
    padding: 34px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.service-card:hover, .service-card:focus-visible { background: var(--green-black); color: var(--white); outline: none; }
.service-card__index { color: var(--accent-dark); font-family: var(--serif); }
.service-card h3 { margin: 54px 0 14px; font-family: var(--serif); font-size: 32px; line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.service-card p { color: var(--ink-soft); font-size: 15px; }
.service-card:hover p, .service-card:focus-visible p { color: rgba(255,255,255,.72); }
.service-card__link { position: absolute; left: 34px; bottom: 30px; font-size: 13px; font-weight: 750; }
.section-cta { margin-top: 30px; display: flex; justify-content: flex-end; }

.approach-section { background: var(--green-black); color: var(--white); }
.approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.approach-panel { min-height: 530px; padding-right: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.approach-panel h2 { max-width: 560px; font-size: clamp(54px, 5.8vw, 82px); }
.approach-copy { padding-top: 2px; }
.lead-copy { margin: 0 0 50px; font-size: 21px; line-height: 1.6; color: rgba(255,255,255,.78); }
.experts-copy .lead-copy { color: var(--ink-soft); }
.process-list { border-top: 1px solid var(--line-light); }
.process-list > div { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.process-list > div > span { color: #d4c2a5; font-family: var(--serif); }
.process-list h3 { margin: 0 0 5px; font-family: var(--serif); font-weight: 400; font-size: 25px; }
.process-list p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }

.experts-section { background: var(--paper-2); }
.experts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.experts-photo {
    min-height: 650px;
    background:
        linear-gradient(180deg, rgba(18,20,18,.03), rgba(18,20,18,.14)),
        var(--legimia-image) center / cover no-repeat;
}
.experts-copy { padding-right: 60px; }
.experts-copy .lead-copy { margin: 26px 0 34px; }

.location-section { background: var(--paper); }
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.location-card { min-height: 300px; padding: 34px; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; }
.location-card__city { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: var(--accent-dark); }
.location-card h3 { margin: 48px 0 15px; font-family: var(--serif); font-weight: 400; font-size: 33px; }
.location-card address { color: var(--ink-soft); }
.location-card a { margin-top: auto; padding-top: 26px; font-size: 13px; font-weight: 750; text-decoration: none; }

.article-section { background: var(--white); }
.article-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: var(--paper); }
.article-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__media img { transform: scale(1.025); }
.article-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e2ded3, #f1eee7); }
.article-card__body { padding: 28px; }
.article-card__meta { color: var(--accent-dark); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
.article-card h2, .article-card h3 { margin: 14px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -.02em; }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card p { color: var(--ink-soft); font-size: 14px; }
.article-card__link { display: inline-block; margin-top: 8px; text-decoration: none; font-weight: 750; font-size: 13px; }

.contact-cta { padding: 92px 0; background: var(--ink); color: var(--white); }
.contact-cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: center; }
.contact-cta h2 { max-width: 700px; font-size: clamp(48px, 5.8vw, 76px); }
.contact-cta p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.68); font-size: 18px; }
.contact-cta__actions { display: grid; gap: 14px; }
.contact-call { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.contact-call span { color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.contact-call strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }

.site-footer { background: #0c0f0d; color: rgba(255,255,255,.78); padding: 76px 0 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 50px; }
.site-footer__brand p { max-width: 360px; }
.site-footer a { color: inherit; }
.footer-heading { margin: 0 0 14px; color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.site-footer address { font-size: 14px; }
.site-footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 30px; font-size: 12px; }
.footer-menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }

.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumbs .container { display: flex; gap: 9px; padding-top: 11px; padding-bottom: 11px; font-size: 12px; color: var(--ink-soft); }
.breadcrumbs a { text-decoration: none; }
.page-hero { padding: 88px 0 72px; background: var(--paper-2); }
.page-hero h1 { font-size: clamp(48px, 6vw, 78px); }
.page-hero--article { padding-bottom: 58px; }
.article-meta { display: flex; gap: 18px; margin-top: 24px; color: var(--ink-soft); font-size: 13px; }
.content-main { min-height: 60vh; }
.prose { padding-top: 72px; padding-bottom: 110px; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.prose h2 { margin-top: 2.4em; font-size: 42px; }
.prose h3 { margin-top: 2em; font-size: 31px; }
.prose h4 { margin-top: 1.8em; font-size: 24px; }
.prose p, .prose li { color: #343934; }
.prose a { color: var(--accent-dark); }
.prose blockquote { margin: 42px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 28px; line-height: 1.35; }
.prose img { margin: 40px auto; }
.article-featured-image { margin-top: 42px; }
.article-featured-image img { width: 100%; max-height: 680px; object-fit: cover; }
.archive-grid { padding-top: 70px; padding-bottom: 50px; }
.pagination-wrap { padding-bottom: 90px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--white); }
.error-hero { min-height: 58vh; display: flex; align-items: center; }
.error-hero p { color: var(--ink-soft); }

@media (max-width: 1100px) {
    .site-header__inner { grid-template-columns: auto auto 1fr; gap: 20px; }
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; justify-self: end; align-items: center; gap: 9px; background: none; border: 0; padding: 10px; cursor: pointer; }
    .nav-toggle__label { font-size: 12px; font-weight: 750; }
    .nav-toggle__icon { width: 22px; height: 14px; display: flex; flex-direction: column; justify-content: space-between; }
    .nav-toggle__icon span { height: 1px; background: var(--ink); width: 100%; }
    .nav-open .site-nav { display: block; position: fixed; inset: 88px 0 auto; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
    .nav-open .site-nav__list, .nav-open .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
    .nav-open .site-nav li { border-bottom: 1px solid var(--line); }
    .nav-open .site-nav a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 27px; font-weight: 400; }
    .site-header__actions { justify-self: end; }
    .hero__grid { gap: 40px; grid-template-columns: 1fr .9fr; }
    .hero__visual { min-height: 520px; }
    .section-heading--split { gap: 50px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid { gap: 60px; }
    .experts-grid { gap: 50px; }
    .experts-copy { padding-right: 0; }
}

@media (max-width: 820px) {
    body { font-size: 16px; }
    .container, .container--narrow { width: min(calc(100% - 32px), var(--container)); }
    .site-header__inner { min-height: 74px; grid-template-columns: auto 1fr auto; }
    .site-header__actions { display: none; }
    .nav-open .site-nav { inset: 74px 0 auto; }
    .wordmark__text { font-size: 25px; }
    .wordmark__mark { width: 34px; height: 34px; }
    .hero { padding: 52px 0 62px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 500px; margin-top: 10px; }
    .hero__image--primary { left: 28px; }
    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar__grid > div:nth-child(2) { border-right: 0; }
    .trust-bar__grid > div:nth-child(3), .trust-bar__grid > div:nth-child(4) { border-top: 1px solid var(--line); }
    .section { padding: 82px 0; }
    .section-heading--split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 280px; }
    .approach-grid { grid-template-columns: 1fr; }
    .approach-panel { min-height: auto; padding-right: 0; }
    .approach-panel h2 { margin-top: 130px; }
    .experts-grid { grid-template-columns: 1fr; }
    .experts-photo { min-height: 500px; }
    .location-grid, .article-grid, .archive-grid { grid-template-columns: 1fr; }
    .contact-cta__grid { grid-template-columns: 1fr; gap: 50px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 51px; }
    .hero__visual { min-height: 430px; }
    .hero__image--primary { left: 20px; bottom: 30px; }
    .hero__location-card { width: 91%; padding: 22px; }
    .hero__actions { align-items: stretch; flex-direction: column; }
    .hero__actions .button { width: 100%; }
    .hero__actions .text-link { align-self: flex-start; }
    .trust-bar__grid { grid-template-columns: 1fr; }
    .trust-bar__grid > div, .trust-bar__grid > div:not(:first-child) { padding: 20px 0; border-right: 0; border-top: 1px solid var(--line); }
    .trust-bar__grid > div:first-child { border-top: 0; }
    .service-card { padding: 28px; }
    .service-card__link { left: 28px; }
    .approach-panel h2 { margin-top: 90px; }
    .experts-photo { min-height: 420px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__brand { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
    .contact-call { grid-template-columns: 1fr; gap: 4px; }
    .contact-call strong { font-size: 20px; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* v0.2: service, people and SEO migration templates */
.page-hero__split { display:grid; grid-template-columns:1.1fr .9fr; gap:90px; align-items:end; }
.page-hero__split > p { margin:0; max-width:560px; color:var(--ink-soft); font-size:19px; }
.page-hero--services { padding:100px 0 84px; }
.services-index-section { background:var(--white); }
.service-index-grid { border-top:1px solid var(--line); }
.service-index-card { display:grid; grid-template-columns:72px 1fr auto; gap:28px; align-items:start; padding:34px 12px 34px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.service-index-card:hover h2, .service-index-card:focus-visible h2 { color:var(--accent-dark); }
.service-index-card__number { font-family:var(--serif); color:var(--accent-dark); font-size:20px; }
.service-index-card h2 { margin:0 0 8px; font-family:var(--serif); font-size:34px; font-weight:400; line-height:1.08; }
.service-index-card p { margin:0; max-width:720px; color:var(--ink-soft); font-size:15px; }
.service-index-card > span:last-child { font-size:22px; }

.service-hero { padding:92px 0 74px; background:var(--paper-2); }
.service-hero__grid { display:grid; grid-template-columns:1.25fr .75fr; gap:90px; align-items:end; }
.service-hero h1 { margin:0; max-width:800px; font-family:var(--serif); font-weight:400; line-height:.98; letter-spacing:-.045em; font-size:clamp(50px,6vw,80px); }
.service-hero__contact { border-left:1px solid var(--line); padding-left:34px; display:grid; gap:8px; }
.service-hero__contact span { color:var(--accent-dark); text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:800; }
.service-hero__contact strong { font-family:var(--serif); font-size:24px; font-weight:400; line-height:1.2; }
.service-hero__contact a { width:max-content; text-decoration:none; font-weight:750; }
.service-layout { display:grid; grid-template-columns:minmax(0,820px) minmax(260px,1fr); gap:90px; align-items:start; }
.service-main.prose { width:auto; margin:0; }
.service-sidebar { position:sticky; top:120px; padding-top:72px; padding-bottom:110px; }
.service-sidebar__box { padding:30px; border:1px solid var(--line); background:var(--white); }
.service-sidebar__box h2 { margin:0 0 14px; font-family:var(--serif); font-size:31px; font-weight:400; line-height:1.1; }
.service-sidebar__box p:not(.eyebrow) { color:var(--ink-soft); font-size:14px; }
.service-sidebar__box .button { margin-top:10px; width:100%; }

.people-hero { padding:100px 0 84px; }
.people-section { background:var(--white); }
.people-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.person-card { display:grid; grid-template-columns:minmax(220px,.85fr) 1.15fr; min-height:360px; background:var(--paper); }
.person-card__media { min-height:100%; overflow:hidden; background:var(--paper-2); }
.person-card__media img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.person-card__body { padding:34px; display:flex; flex-direction:column; }
.person-card h2 { margin:0; font-family:var(--serif); font-size:34px; font-weight:400; line-height:1.08; }
.person-card__title { margin:8px 0 22px; color:var(--accent-dark); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.person-card__body > p:not(.person-card__title) { color:var(--ink-soft); font-size:14px; }
.person-card__contacts { margin-top:auto; display:grid; gap:5px; padding-top:22px; border-top:1px solid var(--line); }
.person-card__contacts a { text-decoration:none; font-size:13px; font-weight:700; overflow-wrap:anywhere; }
.people-support-heading { margin-top:100px; }
.support-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.support-card { padding:30px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; align-content:start; gap:6px; min-height:200px; }
.support-card h3 { margin:0 0 4px; font-family:var(--serif); font-size:28px; font-weight:400; }
.support-card p { margin:0 0 18px; color:var(--ink-soft); font-size:13px; }
.support-card a { font-size:13px; text-decoration:none; overflow-wrap:anywhere; }

@media (max-width:1100px) {
    .page-hero__split, .service-hero__grid { gap:50px; }
    .people-grid { grid-template-columns:1fr; }
}
@media (max-width:820px) {
    .brand-logo img { width:155px; }
    .page-hero__split, .service-hero__grid, .service-layout { grid-template-columns:1fr; gap:28px; }
    .service-hero__contact { border-left:0; border-top:1px solid var(--line); padding:24px 0 0; }
    .service-sidebar { position:static; padding-top:0; padding-bottom:80px; }
    .person-card { grid-template-columns:1fr; }
    .person-card__media { aspect-ratio:16/10; }
    .support-grid { grid-template-columns:1fr; }
}
@media (max-width:520px) {
    .service-index-card { grid-template-columns:42px 1fr; gap:14px; }
    .service-index-card > span:last-child { display:none; }
    .service-index-card h2 { font-size:28px; }
    .person-card__body { padding:26px; }
}


/* Static build additions */
body { overflow-x:hidden; }
.site-header__inner { grid-template-columns:auto 1fr auto; }
.site-nav__list { flex-wrap:wrap; justify-content:center; }
.site-nav__list a[aria-current="page"] { color:var(--accent-dark); }
.brand-logo img { width:190px; }
.inline-contact { margin:58px 0; padding:38px; background:var(--paper-2); border-left:3px solid var(--accent); }
.inline-contact h2 { margin:.15em 0 .3em; font-family:var(--serif); font-size:38px; font-weight:400; line-height:1.05; }
.inline-contact p { max-width:650px; }
.inline-contact__actions { display:flex; flex-wrap:wrap; gap:22px; align-items:center; margin-top:24px; }
.prose .service-index-grid { margin:50px calc((820px - min(820px, 100%))/2) 50px 0; }
.prose figure { margin:42px 0; }
.prose figcaption { font-size:13px; color:var(--ink-soft); margin-top:8px; }
.prose table { width:100%; border-collapse:collapse; margin:32px 0; }
.prose th,.prose td { padding:12px 14px; border:1px solid var(--line); text-align:left; vertical-align:top; }
.prose ul,.prose ol { padding-left:1.35em; }
.prose iframe { max-width:100%; }
.page-hero__description { max-width:700px; margin:26px 0 0; color:var(--ink-soft); font-size:19px; }
.article-author { margin-top:18px; font-size:13px; color:var(--ink-soft); }
.article-author strong { color:var(--ink); }
.article-layout { display:grid; grid-template-columns:minmax(0,820px) minmax(240px,1fr); gap:80px; align-items:start; }
.article-aside { padding-top:72px; position:sticky; top:110px; }
.article-aside__box { border:1px solid var(--line); padding:28px; background:var(--white); }
.article-aside__box h2 { font:400 29px/1.1 var(--serif); margin:0 0 12px; }
.article-aside__box p { color:var(--ink-soft); font-size:14px; }
.related-section { padding:80px 0 100px; background:var(--white); }
.related-section h2 { font:400 44px/1.05 var(--serif); margin:0 0 34px; }
.blog-tools { display:flex; gap:14px; align-items:center; margin:0 0 40px; }
.search-input { width:min(100%,560px); min-height:52px; padding:12px 16px; border:1px solid var(--line); background:var(--white); color:var(--ink); }
.article-card[hidden] { display:none !important; }
.article-card__tags { margin-top:10px; font-size:11px; color:var(--ink-soft); }
.contact-page-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; align-items:start; }
.contact-details { display:grid; gap:18px; }
.contact-office { padding:28px; border:1px solid var(--line); background:var(--white); }
.contact-office h2 { font:400 31px/1.1 var(--serif); margin:0 0 12px; }
.contact-form { background:var(--white); border:1px solid var(--line); padding:34px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field { display:grid; gap:7px; }
.form-field--full { grid-column:1/-1; }
.form-field label { font-size:13px; font-weight:750; }
.form-field input,.form-field select,.form-field textarea { width:100%; padding:12px 13px; border:1px solid var(--line); background:#fff; color:var(--ink); }
.form-field textarea { min-height:160px; resize:vertical; }
.form-note { margin:16px 0 0; font-size:12px; color:var(--ink-soft); }
.form-status { display:none; margin:16px 0 0; padding:12px; background:var(--paper-2); }
.form-status.is-visible { display:block; }
.location-hero { padding:98px 0 78px; background:var(--paper-2); }
.location-hero__grid { display:grid; grid-template-columns:1.1fr .9fr; gap:80px; align-items:end; }
.location-hero h1 { margin:0; font:400 clamp(52px,6vw,82px)/.98 var(--serif); letter-spacing:-.045em; }
.location-hero__address { border-left:1px solid var(--line); padding-left:30px; }
.location-content { display:grid; grid-template-columns:1.1fr .9fr; gap:80px; }
.location-content__main h2 { font:400 44px/1.06 var(--serif); margin:0 0 20px; }
.location-services { background:var(--white); }
.location-services .service-grid { grid-template-columns:repeat(3,1fr); }
.static-notice { padding:14px 18px; background:#fff8e7; border:1px solid #e7d8b3; color:#5d4b2d; font-size:13px; margin-bottom:24px; }
.footer-links { display:grid; gap:8px; }
.footer-links a { text-decoration:none; font-size:14px; }
.footer-links a:hover { color:#fff; }
.page-404 { min-height:65vh; display:grid; place-items:center; text-align:center; }
.page-404 h1 { font:400 clamp(72px,12vw,160px)/.8 var(--serif); margin:0; }
.page-404 h2 { font:400 40px/1 var(--serif); }
.no-results { padding:32px; border:1px solid var(--line); background:var(--paper); }
@media (max-width:1000px) {
  .article-layout,.contact-page-grid,.location-hero__grid,.location-content { grid-template-columns:1fr; gap:36px; }
  .article-aside { position:static; padding-top:0; padding-bottom:80px; }
  .location-hero__address { border-left:0; border-top:1px solid var(--line); padding:24px 0 0; }
  .location-services .service-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:820px) {
  .site-header__inner { grid-template-columns:auto auto; }
  .site-nav { grid-column:1/-1; }
  .form-grid { grid-template-columns:1fr; }
  .form-field--full { grid-column:auto; }
  .location-services .service-grid { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .inline-contact { padding:26px; }
  .inline-contact__actions { flex-direction:column; align-items:stretch; }
  .inline-contact__actions .text-link { align-self:flex-start; }
}

/* v1.0.2: homepage hero uses the real group photo from the WordPress uploads. */
.hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1.08fr);
    gap: 54px;
}
.hero__visual {
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 44px 0 84px 36px;
}
.hero__visual::before {
    width: 66%;
    height: 48%;
    left: 0;
    bottom: 34px;
}
.hero__team-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero__team-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1428 / 467;
    object-fit: contain;
    object-position: center;
    background: #f4f1eb;
}
.hero__location-card {
    left: 0;
    bottom: 0;
    width: min(410px, 78%);
}
@media (max-width: 1100px) {
    .hero__grid { grid-template-columns: 1fr .95fr; gap: 38px; }
    .hero__visual { min-height: 420px; padding-left: 24px; }
}
@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 390px; padding: 34px 0 82px 20px; }
}
@media (max-width: 520px) {
    .hero__visual { min-height: 330px; padding: 26px 0 90px 14px; }
    .hero__location-card { width: 92%; }
}


/* v1.0.3: editorial homepage collage, using only Legimia upload photos. */
.hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(600px, 1.12fr);
    gap: 42px;
}
.hero-collage {
    position: relative;
    min-height: 650px;
    display: block;
    padding: 0;
    isolation: isolate;
}
.hero-collage::before { display: none; }
.hero-collage__accent {
    position: absolute;
    z-index: -1;
    left: 2%;
    top: 15%;
    width: 46%;
    height: 58%;
    background: #ad8e5e;
}
.hero-collage__group,
.hero-collage__portrait {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #ece9e2;
    border: 4px solid rgba(255,255,255,.92);
    box-shadow: 0 16px 45px rgba(26,25,22,.14);
}
.hero-collage__group img,
.hero-collage__portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.hero-collage__group {
    z-index: 1;
    top: 0;
    left: 9%;
    width: 91%;
    height: 365px;
}
.hero-collage__group img { object-position: center 48%; }
.hero-collage__portrait { z-index: 2; background: #f0eee9; }
.hero-collage__portrait--one { left: 13%; top: 323px; width: 23%; height: 258px; }
.hero-collage__portrait--one img { object-position: 23% center; }
.hero-collage__portrait--two { left: 34%; top: 383px; width: 20%; height: 212px; }
.hero-collage__portrait--two img { object-position: 58% center; }
.hero-collage__portrait--three { left: 52%; top: 356px; width: 20%; height: 224px; }
.hero-collage__portrait--three img { object-position: 46% center; }
.hero-collage__portrait--four { left: 70%; top: 387px; width: 16.5%; height: 190px; }
.hero-collage__portrait--four img { object-position: 50% 30%; }
.hero-collage__portrait--five { right: 0; top: 328px; width: 17.5%; height: 238px; }
.hero-collage__portrait--five img { object-position: 50% 28%; }
.hero-collage__location-card {
    z-index: 4;
    left: 31%;
    bottom: 0;
    width: min(430px, 65%);
    padding: 27px 30px 25px;
    box-shadow: 0 14px 34px rgba(18,20,18,.18);
}
.hero-collage__location-card::after {
    content: "";
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 72px;
    height: 2px;
    background: #ad8e5e;
}
@media (max-width: 1240px) {
    .hero__grid { grid-template-columns: minmax(0,1fr) minmax(500px,.95fr); gap: 34px; }
    .hero-collage { min-height: 575px; }
    .hero-collage__group { height: 320px; }
    .hero-collage__portrait--one { top: 282px; height: 228px; }
    .hero-collage__portrait--two { top: 338px; height: 185px; }
    .hero-collage__portrait--three { top: 315px; height: 198px; }
    .hero-collage__portrait--four { top: 342px; height: 170px; }
    .hero-collage__portrait--five { top: 288px; height: 210px; }
}
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero-collage { min-height: 650px; max-width: 760px; width: 100%; margin: 28px auto 0; }
    .hero-collage__group { height: 365px; }
    .hero-collage__portrait--one { top: 323px; height: 258px; }
    .hero-collage__portrait--two { top: 383px; height: 212px; }
    .hero-collage__portrait--three { top: 356px; height: 224px; }
    .hero-collage__portrait--four { top: 387px; height: 190px; }
    .hero-collage__portrait--five { top: 328px; height: 238px; }
}
@media (max-width: 680px) {
    .hero-collage {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 0 145px;
    }
    .hero-collage__accent { display: none; }
    .hero-collage__group,
    .hero-collage__portrait {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        border-width: 2px;
        box-shadow: 0 8px 24px rgba(26,25,22,.10);
    }
    .hero-collage__group { grid-column: 1 / -1; aspect-ratio: 1428 / 467; }
    .hero-collage__portrait { aspect-ratio: 4 / 5; }
    .hero-collage__portrait--five { grid-column: 1 / -1; width: calc(50% - 5px); justify-self: center; }
    .hero-collage__portrait--one img { object-position: 22% center; }
    .hero-collage__location-card { left: 4%; bottom: 0; width: 92%; }
}


/* v1.0.4: cleaner editorial team collage - one group + one aligned staff row. */
.hero-collage--clean {
    min-height: 575px;
    padding-left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}
.hero-collage--clean .hero-collage__accent {
    left: 0;
    top: 86px;
    width: 30%;
    height: 340px;
    opacity: .96;
}
.hero-collage--clean .hero-collage__group {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1428 / 467;
    border: 3px solid rgba(255,255,255,.95);
    box-shadow: 0 14px 38px rgba(26,25,22,.12);
}
.hero-collage--clean .hero-collage__group img {
    object-fit: cover;
    object-position: center center;
}
.hero-collage__members {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 92%;
    margin-left: auto;
}
.hero-collage__member {
    margin: 0;
    min-width: 0;
    background: #f0eee9;
    border: 2px solid rgba(255,255,255,.96);
    box-shadow: 0 8px 20px rgba(26,25,22,.09);
    overflow: hidden;
}
.hero-collage__member img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #ece9e2;
}
.hero-collage__member:nth-child(1) img { object-position: 23% center; }
.hero-collage__member:nth-child(2) img { object-position: 58% center; }
.hero-collage__member:nth-child(3) img { object-position: 46% center; }
.hero-collage__member:nth-child(4) img { object-position: 50% 28%; }
.hero-collage__member:nth-child(5) img { object-position: 50% 26%; }
.hero-collage__member figcaption {
    min-height: 34px;
    padding: 7px 8px 6px;
    background: rgba(250,249,246,.98);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}
.hero-collage--clean .hero-collage__location-card {
    position: relative;
    inset: auto;
    z-index: 3;
    width: 76%;
    margin: 2px 0 0 auto;
    padding: 22px 26px 20px;
    box-shadow: 0 10px 28px rgba(18,20,18,.14);
}
.hero-collage--clean .hero-collage__location-card::after {
    right: 22px;
    bottom: 21px;
    width: 58px;
}
@media (max-width: 1240px) {
    .hero-collage--clean { min-height: 535px; }
    .hero-collage__member figcaption { font-size: 10px; padding-inline: 5px; }
}
@media (max-width: 980px) {
    .hero-collage--clean {
        min-height: auto;
        max-width: 780px;
        width: 100%;
        margin: 28px auto 0;
        padding-left: 4%;
    }
}
@media (max-width: 680px) {
    .hero-collage--clean {
        display: flex;
        min-height: auto;
        gap: 8px;
        padding: 0;
    }
    .hero-collage--clean .hero-collage__accent { display: none; }
    .hero-collage--clean .hero-collage__group {
        width: 100%;
        aspect-ratio: 1428 / 467;
        border-width: 2px;
    }
    .hero-collage__members {
        width: 100%;
        margin: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .hero-collage__member:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
    .hero-collage__member img { aspect-ratio: 1 / 1; }
    .hero-collage__member figcaption { min-height: 30px; font-size: 9px; }
    .hero-collage--clean .hero-collage__location-card {
        position: relative;
        inset: auto;
        width: 100%;
        margin: 0;
    }
}


/* v1.0.5: simplify hero staff strip by removing name cards. */
.hero-collage__member {
    background: transparent;
    border: 1px solid rgba(255,255,255,.92);
    box-shadow: 0 6px 16px rgba(26,25,22,.07);
}
.hero-collage__member img {
    aspect-ratio: 4 / 3;
}
.hero-collage__member figcaption { display: none !important; }
@media (max-width: 680px) {
    .hero-collage__member img { aspect-ratio: 1 / 1; }
}

/* v1.0.6: darker premium homepage hero. */
.hero {
    color: #f7f4ec;
    background:
        radial-gradient(circle at 76% 16%, rgba(169,136,86,.20), transparent 28%),
        radial-gradient(circle at 8% 86%, rgba(169,136,86,.07), transparent 32%),
        linear-gradient(135deg, #202720 0%, #171d19 56%, #111612 100%);
}
.hero .eyebrow { color: #c8aa7b; }
.hero h1 { color: #fbf8f1; }
.hero__lead { color: rgba(255,255,255,.76); }
.hero__note { color: rgba(255,255,255,.57); }
.hero .button {
    border-color: #f2ede2;
    background: #f2ede2;
    color: #151a16;
}
.hero .button:hover,
.hero .button:focus-visible {
    border-color: rgba(255,255,255,.82);
    background: transparent;
    color: #fff;
}
.hero .text-link { color: #f6f2e9; }
.hero__visual::before,
.hero-collage--clean .hero-collage__accent { background: #8c7047; }
.hero-collage__member { border-color: rgba(255,255,255,.72); }
.hero__location-card { background: #0f1511; }

/* v1.0.6: Legimia lead assistant. */
.legimia-chat {
    --chat-bg: #f7f4ed;
    --chat-ink: #151a16;
    --chat-muted: #697068;
    --chat-dark: #151c17;
    --chat-dark-2: #202920;
    --chat-gold: #a98856;
    --chat-line: rgba(21,26,22,.13);
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2200;
    font-family: var(--sans);
    color: var(--chat-ink);
}
.legimia-chat__launcher {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: var(--chat-dark);
    color: #fff;
    box-shadow: 0 14px 40px rgba(10,16,12,.24);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: .005em;
}
.legimia-chat__launcher:hover,
.legimia-chat__launcher:focus-visible { background: var(--chat-dark-2); }
.legimia-chat__launcher-mark {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1;
}
.legimia-chat__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(410px, calc(100vw - 28px));
    height: min(650px, calc(100vh - 36px));
    display: none;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid rgba(21,26,22,.10);
    background: var(--chat-bg);
    box-shadow: 0 26px 80px rgba(10,16,12,.28);
}
.legimia-chat.is-open .legimia-chat__panel { display: grid; }
.legimia-chat.is-open .legimia-chat__launcher { visibility: hidden; }
.legimia-chat__header {
    position: relative;
    padding: 21px 54px 19px 22px;
    background: linear-gradient(135deg, #1b241d, #111713);
    color: #fff;
}
.legimia-chat__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #cdb386;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.legimia-chat__brand-mark {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(205,179,134,.72);
    color: #fff;
    font-family: var(--serif);
    font-size: 17px;
}
.legimia-chat__title {
    margin: 0;
    color: #fff;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.08;
}
.legimia-chat__subtitle {
    margin: 7px 0 0;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    line-height: 1.45;
}
.legimia-chat__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.legimia-chat__messages {
    overflow-y: auto;
    padding: 18px 17px 12px;
    scroll-behavior: smooth;
}
.legimia-chat__message {
    max-width: 88%;
    margin: 0 0 11px;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.legimia-chat__message--assistant {
    margin-right: auto;
    border: 1px solid var(--chat-line);
    border-bottom-left-radius: 4px;
    background: #fff;
}
.legimia-chat__message--user {
    margin-left: auto;
    border-bottom-right-radius: 4px;
    background: var(--chat-dark);
    color: #fff;
}
.legimia-chat__message--system {
    max-width: 100%;
    padding: 8px 0;
    color: var(--chat-muted);
    background: transparent;
    font-size: 12px;
}
.legimia-chat__typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.legimia-chat__typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7f877f;
    animation: legimia-chat-dot 1.1s infinite ease-in-out;
}
.legimia-chat__typing span:nth-child(2) { animation-delay: .13s; }
.legimia-chat__typing span:nth-child(3) { animation-delay: .26s; }
@keyframes legimia-chat-dot { 0%, 80%, 100% { opacity:.25; transform:translateY(0); } 40% { opacity:1; transform:translateY(-2px); } }
.legimia-chat__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 14px;
}
.legimia-chat__quick button,
.legimia-chat__lead-cta {
    border: 1px solid rgba(21,26,22,.19);
    background: transparent;
    color: var(--chat-ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
}
.legimia-chat__quick button { padding: 8px 10px; border-radius: 999px; }
.legimia-chat__quick button:hover { border-color: var(--chat-gold); background: rgba(169,136,86,.08); }
.legimia-chat__lead-box {
    margin: 14px 0 8px;
    padding: 15px;
    border: 1px solid rgba(169,136,86,.38);
    background: #f0eadf;
}
.legimia-chat__lead-box strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
}
.legimia-chat__lead-box p { margin: 6px 0 11px; color: #596058; font-size: 12px; line-height: 1.45; }
.legimia-chat__lead-cta { padding: 9px 11px; background: var(--chat-dark); color: #fff; border-color: var(--chat-dark); }
.legimia-chat__lead-form {
    display: none;
    margin-top: 12px;
    gap: 8px;
}
.legimia-chat__lead-form.is-open { display: grid; }
.legimia-chat__field { display: grid; gap: 4px; }
.legimia-chat__field label { color: #4d554d; font-size: 11px; font-weight: 750; }
.legimia-chat__field input,
.legimia-chat__field select,
.legimia-chat__field textarea {
    width: 100%;
    min-height: 41px;
    padding: 9px 10px;
    border: 1px solid rgba(21,26,22,.18);
    border-radius: 0;
    outline: none;
    background: #fff;
    color: var(--chat-ink);
    font: inherit;
    font-size: 13px;
}
.legimia-chat__field textarea { min-height: 65px; resize: vertical; }
.legimia-chat__field input:focus,
.legimia-chat__field select:focus,
.legimia-chat__field textarea:focus { border-color: var(--chat-gold); box-shadow: 0 0 0 2px rgba(169,136,86,.12); }
.legimia-chat__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    color: #5c625c;
    font-size: 10px;
    line-height: 1.4;
}
.legimia-chat__consent input { margin-top: 2px; }
.legimia-chat__consent a { color: inherit; }
.legimia-chat__submit {
    min-height: 42px;
    border: 1px solid var(--chat-dark);
    background: var(--chat-dark);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
}
.legimia-chat__submit[disabled] { opacity: .55; cursor: wait; }
.legimia-chat__privacy-note {
    margin: 10px 0 0;
    color: #747a74;
    font-size: 10px;
    line-height: 1.4;
}
.legimia-chat__composer-wrap {
    border-top: 1px solid var(--chat-line);
    background: rgba(255,255,255,.84);
    padding: 10px 12px 11px;
}
.legimia-chat__composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}
.legimia-chat__composer textarea {
    width: 100%;
    max-height: 110px;
    min-height: 44px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--chat-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
}
.legimia-chat__send {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    background: var(--chat-dark);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.legimia-chat__send[disabled] { opacity: .5; cursor: wait; }
.legimia-chat__microcopy { margin: 6px 0 0; color: #808680; font-size: 9.5px; line-height: 1.3; }

@media (max-width: 620px) {
    .legimia-chat { right: 12px; bottom: 12px; }
    .legimia-chat__launcher { min-height: 50px; padding: 11px 15px; }
    .legimia-chat__panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border: 0;
    }
}


/* v1.0.7: dark top header only, restore light homepage hero. */
.site-header {
    background: linear-gradient(135deg, #1b241d 0%, #111713 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header--scrolled {
    border-bottom-color: rgba(255,255,255,.10);
    box-shadow: 0 8px 30px rgba(0,0,0,.20);
}
.site-header .brand-logo img { filter: brightness(0) invert(1); }
.site-header .site-nav a,
.site-header .header-phone,
.site-header .nav-toggle,
.site-header .nav-toggle__label {
    color: #f7f4ec;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible,
.site-header .site-nav__list a[aria-current="page"] { color: #d4c2a5; }
.site-header .button--small {
    border-color: #f2ede2;
    background: #f2ede2;
    color: #151a16;
}
.site-header .button--small:hover,
.site-header .button--small:focus-visible {
    border-color: rgba(255,255,255,.82);
    background: transparent;
    color: #fff;
}
@media (max-width: 1100px) {
    .site-header .nav-toggle__icon span { background: #f7f4ec; }
}

.hero {
    color: var(--ink);
    background:
        radial-gradient(circle at 70% 18%, rgba(169,136,86,.13), transparent 26%),
        linear-gradient(180deg, var(--paper) 0%, #f1eee7 100%);
}
.hero .eyebrow { color: var(--accent-dark); }
.hero h1 { color: var(--ink); }
.hero__lead { color: var(--ink-soft); }
.hero__note { color: var(--ink-soft); }
.hero .button {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.hero .button:hover,
.hero .button:focus-visible {
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
}
.hero .text-link { color: inherit; }
.hero__visual::before,
.hero-collage--clean .hero-collage__accent { background: var(--accent); }
.hero-collage__member { border-color: rgba(255,255,255,.92); }
.hero__location-card { background: var(--green-black); }

/* v1.0.8: mobile chat sizing and keyboard behaviour. */
.legimia-chat__messages {
    overscroll-behavior: contain;
    min-height: 0;
}
@media (max-width: 620px) {
    .legimia-chat {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }
    .legimia-chat__panel {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        top: auto;
        width: auto;
        height: min(720px, 82dvh, calc(var(--chat-vv-height, 100dvh) - 16px));
        max-height: calc(var(--chat-vv-height, 100dvh) - 16px);
        border: 1px solid rgba(21,26,22,.12);
        box-shadow: 0 18px 56px rgba(10,16,12,.28);
    }
    .legimia-chat__header {
        padding: 14px 46px 13px 16px;
    }
    .legimia-chat__brand {
        margin-bottom: 4px;
        font-size: 10px;
    }
    .legimia-chat__brand-mark {
        width: 23px;
        height: 23px;
        font-size: 16px;
    }
    .legimia-chat__title {
        font-size: 24px;
    }
    .legimia-chat__subtitle {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.38;
    }
    .legimia-chat__close {
        top: 9px;
        right: 9px;
    }
    .legimia-chat__messages {
        padding: 13px 12px 10px;
    }
    .legimia-chat__message {
        max-width: 92%;
        margin-bottom: 9px;
        padding: 10px 11px;
        font-size: 13px;
    }
    .legimia-chat__quick {
        gap: 6px;
        margin-bottom: 10px;
    }
    .legimia-chat__quick button {
        padding: 7px 9px;
        font-size: 11px;
    }
    .legimia-chat__lead-box {
        margin-top: 10px;
        padding: 13px;
    }
    .legimia-chat__composer-wrap {
        padding: 8px 10px 9px;
    }
    .legimia-chat__composer textarea {
        min-height: 40px;
        font-size: 16px; /* prevents iOS zoom when the keyboard opens */
    }
    .legimia-chat__send {
        width: 40px;
        height: 40px;
    }
    .legimia-chat__microcopy {
        margin-top: 4px;
        font-size: 8.5px;
    }
    .legimia-chat.is-keyboard-open .legimia-chat__panel {
        height: calc(var(--chat-vv-height, 100dvh) - 12px);
        max-height: calc(var(--chat-vv-height, 100dvh) - 12px);
        bottom: 6px;
    }
    .legimia-chat.is-keyboard-open .legimia-chat__header {
        padding-top: 10px;
        padding-bottom: 9px;
    }
    .legimia-chat.is-keyboard-open .legimia-chat__brand,
    .legimia-chat.is-keyboard-open .legimia-chat__subtitle {
        display: none;
    }
    .legimia-chat.is-keyboard-open .legimia-chat__title {
        font-size: 20px;
    }
}


/* v1.0.9: homepage/content changes from the annotated review PDF. */
@media (min-width: 821px) {
    .site-header .button--small {
        min-height: 50px;
        padding: 12px 22px;
        font-size: 13.5px;
    }
    .hero__actions .button {
        min-height: 62px;
        padding: 17px 28px;
        font-size: 15px;
    }
}

/* v1.0.12: bright white / cool grey / restrained steel-blue visual system. */
:root {
    --ink: #182027;
    --ink-soft: #5f6b74;
    --paper: #f7f8f9;
    --paper-2: #edf0f2;
    --white: #ffffff;
    --line: rgba(24,32,39,.13);
    --line-light: rgba(255,255,255,.18);
    --accent: #7892a3;
    --accent-dark: #4f6f82;
    --green-black: #2c3942;
    --shadow: 0 18px 55px rgba(36,51,61,.10);
}
body { background:#fff; color:var(--ink); }
.site-header { background:#2a353d; border-bottom-color:rgba(255,255,255,.08); backdrop-filter:none; }
.site-header--scrolled { background:#263139; border-bottom-color:rgba(255,255,255,.12); box-shadow:0 8px 30px rgba(20,29,35,.16); }
.site-header .brand-logo img { filter:brightness(0) invert(1); }
.site-header .site-nav a,.site-header .header-phone,.site-header .nav-toggle,.site-header .nav-toggle__label { color:#fff; }
.site-header .site-nav a:hover,.site-header .site-nav a:focus-visible,.site-header .site-nav__list a[aria-current="page"] { color:#b9ccd8; }
.site-header .button--small { border-color:#fff; background:#fff; color:#28343c; }
.site-header .button--small:hover,.site-header .button--small:focus-visible { background:transparent; color:#fff; }
.site-header__specialists { background:#eef1f3; color:#4b5861; border-bottom:1px solid rgba(24,32,39,.08); }
.site-header__specialists-inner { min-height:31px; display:flex; align-items:center; justify-content:flex-end; gap:16px; font-size:11px; }
.site-header__specialists-inner > span { color:#7d8991; text-transform:uppercase; letter-spacing:.11em; font-size:9px; font-weight:800; }
.site-header__specialists a { color:#526b7b; text-decoration:none; font-weight:700; }
.site-header__specialists a:hover { color:#263d4b; }

.hero { padding:74px 0 86px; color:var(--ink); background:linear-gradient(135deg,#fff 0%,#f7f8f9 62%,#edf1f3 100%); }
.hero .eyebrow { color:var(--accent-dark); }
.hero h1 { color:#172027; }
.hero__lead,.hero__note { color:var(--ink-soft); }
.hero .button { border-color:#25313a; background:#25313a; color:#fff; }
.hero .button:hover,.hero .button:focus-visible { border-color:#587488; background:#587488; color:#fff; }
.hero .text-link { color:#354955; }
.hero__grid { grid-template-columns:minmax(0,.88fr) minmax(560px,1.22fr); gap:58px; }
.hero-photo-feature { position:relative; min-height:auto; padding:0 0 66px 28px; }
.hero-photo-feature__accent { position:absolute; z-index:0; left:0; top:42px; width:42%; height:64%; background:#dce4e9; }
.hero-photo-feature__image { position:relative; z-index:1; margin:0; overflow:hidden; background:#eef1f3; box-shadow:var(--shadow); border:1px solid rgba(38,58,70,.09); }
.hero-photo-feature__image img { width:100%; aspect-ratio:3/1; object-fit:cover; object-position:center 42%; }
.hero-photo-feature__meta { position:absolute; z-index:2; right:0; bottom:0; width:min(460px,78%); padding:22px 26px; background:#fff; border-left:4px solid var(--accent); box-shadow:0 14px 36px rgba(38,54,64,.12); }
.hero-photo-feature__meta span,.hero-photo-feature__meta small { display:block; color:#6c7880; font-size:11px; }
.hero-photo-feature__meta span { text-transform:uppercase; letter-spacing:.13em; font-weight:800; color:var(--accent-dark); }
.hero-photo-feature__meta strong { display:block; margin:5px 0 4px; color:#243039; font:400 24px/1.15 var(--serif); }
.trust-bar { background:#f8f9fa; }
.trust-bar strong,.service-card__index,.location-card__city,.article-card__meta { color:var(--accent-dark); }
.services-section,.article-section { background:#fff; }
.service-card { background:#fff; }
.service-card:hover,.service-card:focus-visible { background:#526a79; color:#fff; }
.service-card:hover p,.service-card:focus-visible p { color:rgba(255,255,255,.78); }
.approach-section { background:#e9edf0; color:#1f2a31; }
.approach-section .eyebrow--light { color:#5c7a8c; }
.approach-section .lead-copy { color:#56636c; }
.process-list { border-top-color:rgba(39,52,61,.16); }
.process-list > div { border-bottom-color:rgba(39,52,61,.16); }
.process-list > div > span { color:#658498; }
.process-list p { color:#64717a; }
.experts-section,.page-hero,.service-hero,.location-hero { background:#f0f2f4; }
.location-section { background:#fafbfb; }
.article-card__placeholder { background:linear-gradient(135deg,#dce2e6,#f4f6f7); }
.contact-cta { background:#587383; color:#fff; }
.contact-cta .eyebrow--light { color:#dbe7ed; }
.site-footer { background:#2a3339; }
.inline-contact { background:#eef2f4; border-left-color:#6d8999; }
.page-numbers.current { background:#516c7c; }
.prose a { color:#4b7187; }

.legimia-chat { --chat-bg:#f5f7f8; --chat-ink:#1d272e; --chat-muted:#6d7880; --chat-dark:#334650; --chat-dark-2:#425a68; --chat-gold:#6c899a; --chat-line:rgba(31,43,50,.13); }
.legimia-chat__header { background:linear-gradient(135deg,#445a67,#2f404a); }
.legimia-chat__brand { color:#d7e4eb; }
.legimia-chat__brand-mark { border-color:rgba(215,228,235,.72); }
.legimia-chat__lead-box { border-color:rgba(108,137,154,.36); background:#edf2f4; }
.legimia-chat__quick button:hover { background:rgba(108,137,154,.09); }

@media (max-width:1100px) {
  .site-header .nav-toggle__icon span { background:#fff; }
  .site-header { position:sticky; }
  .nav-open .site-nav { position:absolute; top:100%; left:0; right:0; inset:auto 0 auto 0; padding:18px 24px 26px; background:#2a353d; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.12); box-shadow:0 18px 36px rgba(20,29,35,.2); }
  .nav-open .site-nav li { border-bottom-color:rgba(255,255,255,.12); }
  .nav-open .site-nav a { color:#fff; }
  .nav-open .site-nav a:hover,.nav-open .site-nav a:focus-visible { color:#c8d9e2; }
  .hero__grid { grid-template-columns:1fr; }
  .hero-photo-feature { width:min(100%,900px); margin:10px auto 0; }
}
@media (max-width:820px) {
  .site-header__specialists-inner { justify-content:center; gap:10px; min-height:34px; }
  .site-header__specialists-inner > span { display:none; }
  .site-header__specialists a { font-size:10px; }
  .hero { padding-top:46px; }
  .hero-photo-feature { padding-left:14px; padding-bottom:58px; }
  .hero-photo-feature__accent { top:25px; width:34%; height:58%; }
  .hero-photo-feature__meta { width:88%; padding:18px 20px; }
  .hero-photo-feature__meta strong { font-size:21px; }
}
@media (max-width:560px) {
  .site-header__specialists-inner { justify-content:space-between; }
  .hero-photo-feature { padding-left:0; padding-bottom:0; display:grid; gap:0; }
  .hero-photo-feature__accent { display:none; }
  .hero-photo-feature__image img { aspect-ratio:16/9; object-position:center center; }
  .hero-photo-feature__meta { position:relative; inset:auto; width:100%; box-shadow:none; border-left:0; border-top:3px solid var(--accent); }
}


/* v1.0.15 — modern language selector in top utility bar */
.site-header__specialists-inner {
  justify-content: space-between;
  gap: 18px;
}
.site-header__specialists-links {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid rgba(82,107,123,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 3px rgba(24,32,39,.05);
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: #526b7b;
  font-size: 10px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.language-switch a:hover,
.language-switch a:focus-visible {
  color: #263d4b;
  background: #f3f6f8;
  outline: none;
}
.language-switch a.is-active,
.language-switch a[aria-current="page"] {
  color: #fff;
  background: #526b7b;
  box-shadow: 0 1px 4px rgba(38,61,75,.18);
}
@media (max-width: 700px) {
  .site-header__specialists-inner {
    justify-content: space-between;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-header__specialists-links {
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }
  .site-header__specialists-links > span { display: none; }
  .site-header__specialists-links a {
    font-size: 9px;
    white-space: nowrap;
  }
  .language-switch a {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9.5px;
  }
}
@media (max-width: 420px) {
  .site-header__specialists-links { gap: 6px; }
  .site-header__specialists-links a { font-size: 8.5px; }
  .language-switch a { padding: 0 7px; }
}

/* v1.0.16 — refined, minimal language selector */
.site-header__specialists {
  background: #f3f5f6;
  border-bottom: 1px solid #dfe4e7;
}
.site-header__specialists-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-header__specialists-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.site-header__specialists-links > span {
  color: #8a959c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-header__specialists .site-header__specialists-links a {
  color: #506571;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.site-header__specialists .site-header__specialists-links a:hover,
.site-header__specialists .site-header__specialists-links a:focus-visible {
  color: #263b47;
}
.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  padding: 0 0 0 16px;
  margin-left: auto;
  border: 0;
  border-left: 1px solid #cbd3d8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header__specialists .language-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b878e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: none;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.site-header__specialists .language-switch a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 1px;
  height: 14px;
  background: #d5dce0;
}
.site-header__specialists .language-switch a:hover,
.site-header__specialists .language-switch a:focus-visible {
  color: #263b47;
  background: transparent;
  outline: none;
}
.site-header__specialists .language-switch a.is-active,
.site-header__specialists .language-switch a[aria-current="page"] {
  color: #304f61;
  background: transparent;
  box-shadow: inset 0 -2px 0 #6f8999;
}
@media (max-width: 700px) {
  .site-header__specialists-inner {
    min-height: 38px;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header__specialists-links {
    gap: 8px;
    overflow: hidden;
  }
  .site-header__specialists-links > span { display: none; }
  .site-header__specialists .site-header__specialists-links a {
    font-size: 8.7px;
  }
  .language-switch {
    padding-left: 8px;
  }
  .site-header__specialists .language-switch a {
    min-height: 38px;
    padding: 0 7px;
    font-size: 9px;
  }
  .site-header__specialists .language-switch a + a::before {
    top: 12px;
  }
}
@media (max-width: 420px) {
  .site-header__specialists .site-header__specialists-links a {
    font-size: 8px;
  }
  .site-header__specialists .language-switch a {
    padding: 0 6px;
    font-size: 8.6px;
  }
}


/* v1.0.17 — keep the whole utility cluster on the right */
.site-header__specialists-inner {
  justify-content: flex-end;
}
.site-header__specialists-links {
  margin-left: auto;
}
.language-switch {
  margin-left: 2px;
}
@media (max-width: 700px) {
  .site-header__specialists-inner {
    justify-content: flex-end;
  }
  .site-header__specialists-links {
    margin-left: 0;
  }
  .language-switch {
    margin-left: 0;
  }
}


/* v1.0.18 — black navbar, updated hero image order on mobile, and homepage polish */
.site-header {
  background: #000;
  border-bottom-color: rgba(255,255,255,.12);
}
.site-header--scrolled {
  background: #000;
  border-bottom-color: rgba(255,255,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.site-header .button--small {
  color: #000;
}
@media (max-width: 820px) {
  .hero__grid { gap: 24px; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; margin-top: 0; }
}


/* v1.0.19 — mobile layout fixes and restored dark-blue navigation */
.site-header, .site-header--scrolled { background:#2a353d; }
.site-header--scrolled { box-shadow:0 8px 30px rgba(20,29,35,.16); }
@media (max-width:820px) {
  .hero { padding:0 0 58px; }
  .hero__grid { display:flex; flex-direction:column; gap:30px; }
  .hero__visual { order:1; width:100%; margin:0; padding:0; min-height:0; }
  .hero__content { order:2; padding-top:8px; }
  .hero-photo-feature__image { border-left:0; border-right:0; box-shadow:none; }
  .hero-photo-feature__image img { width:100%; height:auto; aspect-ratio:auto; object-fit:contain; object-position:center; }
  .hero-photo-feature__accent { display:none; }
  .hero-photo-feature__meta { position:relative; inset:auto; width:100%; box-shadow:none; border-left:0; border-top:3px solid var(--accent); }
  .hero h1 { font-size:clamp(42px,12vw,58px); line-height:.98; overflow-wrap:anywhere; }
  .page-hero h1,.service-hero h1,.location-hero h1 { font-size:clamp(39px,10.5vw,58px); line-height:1; overflow-wrap:anywhere; }
  .section-heading h2,.experts-copy h2,.approach-panel h2,.contact-cta h2 { font-size:clamp(38px,10vw,54px); line-height:1.02; }
  .article-card__media img,.article-featured-image img { width:100%; height:auto; object-fit:cover; }
  .person-card__media { aspect-ratio:auto; min-height:0; }
  .person-card__media img { width:100%; height:auto; object-fit:contain; object-position:center top; }
  .site-header__specialists-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
  .site-header__specialists-links { min-width:0; flex-wrap:wrap; row-gap:4px; }
}
@media (max-width:520px) {
  .container,.container--narrow { width:min(calc(100% - 28px),var(--container)); }
  .site-header__specialists-links a { font-size:8.3px !important; }
  .site-header__specialists .language-switch a { font-size:8.3px; padding:0 5px; }
  .hero__actions { gap:14px; }
  .hero__lead { font-size:18px; }
  .page-hero,.service-hero,.location-hero { padding:60px 0 48px; }
  .prose { padding-top:42px; padding-bottom:72px; }
  .prose h2 { font-size:34px; }
  .prose h3 { font-size:28px; }
  .service-index-card,.service-card,.article-card__body,.person-card__body { overflow-wrap:anywhere; }
}


/* v1.0.20 — dedicated mobile portrait hero image */
.hero-photo-feature__image picture {
  display:block;
  width:100%;
}


/* v1.0.21 — compact, editorial mobile homepage layout */
@media (max-width: 820px) {
  /* Keep the utility links + language control in one compact right-aligned row. */
  .site-header__specialists-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }
  .site-header__specialists-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
    overflow: visible;
  }
  .site-header__specialists-links > span { display: none; }
  .site-header__specialists .site-header__specialists-links a {
    font-size: 8.8px !important;
    line-height: 1;
  }
  .language-switch {
    margin-left: 0;
    padding-left: 8px;
  }
  .site-header__specialists .language-switch a {
    min-height: 34px;
    padding: 0 6px;
    font-size: 8.8px;
  }
  .site-header__specialists .language-switch a + a::before {
    top: 10px;
  }

  /* Shorter primary navbar. */
  .site-header__inner {
    min-height: 60px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .brand-logo img {
    width: 148px;
    max-height: 43px;
  }
  .nav-toggle {
    padding: 8px 0 8px 8px;
    gap: 8px;
  }
  .nav-toggle__label { font-size: 11px; }
  .nav-toggle__icon { width: 24px; height: 15px; }

  /* Full-bleed, cropped portrait: all people remain visible but excess wall/floor is removed. */
  .hero { padding-top: 0; }
  .hero__grid { gap: 22px; }
  .hero__visual.hero-photo-feature {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
  }
  .hero-photo-feature__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    box-shadow: none;
  }
  .hero-photo-feature__image picture {
    width: 100%;
    height: 100%;
  }
  .hero-photo-feature__image picture img,
  .hero-photo-feature__image > img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 62%;
  }
  .hero-photo-feature__meta { display: none; }
  .hero__content { padding-top: 2px; }
  .hero h1 {
    font-size: clamp(39px, 11vw, 50px);
    line-height: .98;
  }
  .hero__lead {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.5;
  }
  .hero__actions { margin-top: 25px; }
  .hero__note { margin-top: 13px; }

  /* Compact chat launcher: don't cover the team photo. */
  .legimia-chat {
    left: auto;
    right: 14px;
    bottom: 14px;
  }
  .legimia-chat__launcher {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    gap: 0;
    justify-content: center;
    font-size: 0;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(22,34,42,.24);
  }
  .legimia-chat__launcher-mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
}

@media (max-width: 430px) {
  .site-header__specialists-inner {
    min-height: 32px;
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .site-header__specialists-links { gap: 7px; }
  .site-header__specialists .site-header__specialists-links a {
    font-size: 7.8px !important;
  }
  .language-switch { padding-left: 6px; }
  .site-header__specialists .language-switch a {
    min-height: 32px;
    padding: 0 5px;
    font-size: 8px;
  }
  .site-header__inner { min-height: 58px; }
  .brand-logo img { width: 138px; max-height: 40px; }
  .hero h1 { font-size: clamp(37px, 10.8vw, 46px); }
}


/* v1.0.22 — use the portrait team photo as the desktop hero too. */
@media (min-width: 821px) {
  .hero-photo-feature__image {
    aspect-ratio: 4 / 5;
    max-height: 720px;
  }
  .hero-photo-feature__image picture,
  .hero-photo-feature__image picture img,
  .hero-photo-feature__image > img {
    width: 100%;
    height: 100%;
  }
  .hero-photo-feature__image picture img,
  .hero-photo-feature__image > img {
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 58%;
  }
}


/* v1.0.23 — slightly smaller desktop portrait hero. */
@media (min-width: 821px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr);
    gap: 64px;
  }
  .hero__visual.hero-photo-feature {
    width: min(100%, 600px);
    margin-left: auto;
  }
  .hero-photo-feature__image {
    max-height: 650px;
  }
}

/* v1.0.27 — black mobile navbar only; desktop keeps the dark-blue header. */
@media (max-width: 820px) {
  .site-header,
  .site-header--scrolled {
    background: #000 !important;
    border-bottom-color: rgba(255,255,255,.14) !important;
  }
  .site-header .brand-logo img {
    filter: brightness(0) invert(1);
  }
  .site-header .nav-toggle,
  .site-header .nav-toggle__label,
  .site-header .site-nav a {
    color: #fff !important;
  }
  .site-header .nav-toggle__icon span {
    background: #fff !important;
  }
  .nav-open .site-nav {
    background: #000 !important;
    border-top-color: rgba(255,255,255,.12) !important;
    border-bottom-color: rgba(255,255,255,.12) !important;
  }
  .nav-open .site-nav li {
    border-bottom-color: rgba(255,255,255,.14) !important;
  }
  .nav-open .site-nav a:hover,
  .nav-open .site-nav a:focus-visible,
  .nav-open .site-nav__list a[aria-current="page"] {
    color: #c7d6df !important;
  }
}
