/*
Theme Name: Broes Consulting
Theme URI: https://broes.consulting
Author: Arnaud Broes
Description: Lean block theme for broes.consulting. No page builder, no front-end jQuery, self-hosted fonts.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: broes-consulting
*/

:root { --bg: #ffffff; --soft: #e8effa; --line: #cfdcee; --grid: #dce6f5; --ink: #0f1d33; --mute: #4a5b78; --accent: #1f4fd8; --btn: #14285a; --mark: #f6dc82; --head: 'Schibsted Grotesk', system-ui, sans-serif; --body: 'Schibsted Grotesk', system-ui, sans-serif; --mono: 'Spline Sans Mono', ui-monospace, monospace; --r: 2px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group, .wp-block-columns, .wp-block-list { margin: 0; }
p, h1, h2, h3, h4, ul, ol { margin-block: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 32px; width: 100%; }
.sec { padding-block: 72px; }
.sec--tint { background: var(--soft); }
.sec__head { margin-bottom: 36px; max-width: 640px; }
.h-xl { font-family: var(--head); font-weight: 800; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.02em; }
.h-l { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.h-m { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.25; }
.lead { font-size: 20px; line-height: 1.5; color: var(--mute); max-width: 36em; }
.small { font-size: 14.5px; color: var(--mute); }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wp-block-button__link { display: inline-flex; align-items: center; background: var(--btn); color: #fff !important; border: 2px solid var(--btn); border-radius: var(--r); padding: 15px 22px; font: 600 16px/1 var(--body); text-decoration: none; }
.wp-block-button__link:hover { background: #0e1d44; border-color: #0e1d44; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(15, 29, 51, .06); }

/* Header */
.hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr .hdr__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.hdr .wp-block-site-logo { margin-right: auto; line-height: 0; }
.hdr .wp-block-site-logo img { height: 42px; width: auto; }
.hdr .wp-block-navigation { font-family: var(--mono); font-size: 15px; font-weight: 500; gap: 38px; }
.hdr .wp-block-navigation a { position: relative; text-decoration: none; padding-block: 6px; }
.hdr .wp-block-navigation a::before, .hdr .wp-block-navigation a::after { position: absolute; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0; transition: opacity .15s, transform .15s; }
.hdr .wp-block-navigation a::before { content: '<'; left: -13px; transform: translate(6px, -50%); }
.hdr .wp-block-navigation a::after { content: '/>'; right: -19px; transform: translate(-6px, -50%); }
.hdr .wp-block-navigation a:hover::before, .hdr .wp-block-navigation a:hover::after, .hdr .wp-block-navigation a[aria-current='page']::before, .hdr .wp-block-navigation a[aria-current='page']::after { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 961px) { .hdr .wp-block-navigation .wp-block-navigation__container > li:last-child { display: none; } }
.hdr .wp-block-buttons { margin-top: 0; }
.hdr .wp-block-button__link { padding: 10px 20px; font-size: 15px; font-family: var(--mono); font-weight: 600; }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding-block: 40px; font-size: 15px; color: var(--mute); }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ftr h2 { font: 700 15px/1.4 var(--body); color: var(--ink); margin-bottom: 8px; }
.ftr li { margin-bottom: 4px; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }

/* Hero */
.heroA { position: relative; padding-block: 72px 80px; }
.heroA::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; opacity: .85; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 100%); pointer-events: none; }
.heroA > * { position: relative; }
.heroA__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.heroA .lead { margin-top: 22px; color: var(--ink); }
.spec { background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 22px 24px; box-shadow: 8px 8px 0 var(--ink); font-family: var(--mono); font-size: 14.5px; }
.spec h2 { font: 600 14px/1.3 var(--mono); margin-bottom: 14px; color: var(--mute); letter-spacing: 0; }
.spec__row { display: grid; grid-template-columns: 11em 1fr; gap: 10px 18px; margin-bottom: 10px; }
.spec__row p:first-child { color: var(--mute); }
.spec mark { background: var(--mark); color: var(--ink); padding: 1px 6px; font-weight: 600; border-radius: 3px; }

/* Services */
.svc { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 2px; background: #fff; overflow: hidden; }
.svc__item { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc__item:nth-child(2n) { border-right: 0; }
.svc__item:nth-last-child(-n+2) { border-bottom: 0; }
.svc__item h3 { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.2; }
.svc__item p { margin-top: 8px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px !important; }
.chips li { font-size: 12.5px; line-height: 1; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--ink); margin: 0; }

/* Work */
.sec--tint .chips li { background: #fff; }
.work { display: grid; gap: 24px; }
.work--lead { grid-template-columns: repeat(3, 1fr); }
.work--more { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wk h3 { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.25; margin-top: 14px; }
.wk h3 a { text-decoration: none; }
.wk h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wk p { margin-top: 6px; color: var(--mute); font-size: 15px; }
.wk .shot { aspect-ratio: 16 / 10; border: 2px solid var(--ink); border-radius: 2px; overflow: hidden; background: #fff; }
.wk .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wk--priv { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.wk--priv h3 { margin-top: 0; font-size: 17px; }
.wk--priv p { font-size: 14.5px; }
.work__sub { margin-top: 44px !important; margin-bottom: 14px !important; font: 700 17px/1.3 var(--head); color: var(--mute); }

/* Products */
.sec--prod { padding-block: 104px; }
.sec--prod .sec__head { margin-bottom: 40px; }
.prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.prod h3 { font-family: var(--head); font-weight: 700; font-size: 24px; margin-bottom: 12px; }
.prod h3 a { text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prod p { color: var(--mute); line-height: 1.7; }
.prod img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; object-fit: cover; }
.sec--prod .wp-block-buttons { margin-top: 56px; }

/* CTA with steps */
.cta { background: var(--soft); color: var(--ink); padding-block: 72px; border-top: 1px solid var(--line); }
.cta .lead { margin-top: 12px; }
.ctasteps { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
.ctasteps .lead { max-width: none; font-size: 18px; white-space: nowrap; }
.ctasteps__t { font: 700 17px/1.3 var(--head); color: var(--mute); margin-bottom: 10px !important; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s); font: 700 15px/1 var(--head); color: var(--accent); grid-row: 1 / span 2; margin-top: 3px; }
.steps li strong { display: block; font: 700 18px/1.3 var(--head); grid-column: 2; }
.steps li span { display: block; color: var(--mute); font-size: 15.5px; margin-top: 2px; grid-column: 2; }

/* Page heads */
.phead { padding-block: 64px 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.phead .lead { margin-top: 14px; }
.phead h1 { font-size: clamp(34px, 4.6vw, 56px); }

/* Service detail */
.sd { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding-block: 40px; border-top: 1px solid var(--line); }
.sd:first-of-type { border-top: 0; }
.sd h2 { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.15; }
.sd .lead { font-size: 18px; margin-top: 10px; }
.sd h3 { font: 700 15px/1.4 var(--body); margin-top: 14px; }
.sd h3:first-child { margin-top: 0; }
.sd p { color: var(--mute); }

/* About, resume, contact */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.about img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r); }
.prose p + p { margin-top: 14px; }
.prose a, .ext { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cv { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.cv h2 { margin-bottom: 12px; }
.cv__job { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); }
.cv__when { font-size: 14.5px; color: var(--mute); }
.cv__job h3 { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.cv__job ul { margin-top: 8px; }
.cv__job li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 16px; }
.cv__job li::before { content: ''; width: 6px; height: 6px; background: var(--accent); position: absolute; left: 0; top: 10px; }
.cv section + section { margin-top: 36px; }
.cv__side h2 { margin: 24px 0 8px; }
.cv__side h2:first-child { margin-top: 0; }
.cv__side p { color: var(--mute); font-size: 16px; margin-bottom: 8px; }
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.aside h2 { font: 700 18px/1.3 var(--head); margin-bottom: 6px; }
.aside p { color: var(--mute); }

/* Contact form (rendered by the mu-plugin) */
.bc-form { display: grid; gap: 18px; }
.bc-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.bc-form input[type=text], .bc-form input[type=email], .bc-form input[type=url], .bc-form select, .bc-form textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; }
.bc-form textarea { min-height: 150px; resize: vertical; }
.bc-form button { font: 600 16px/1 var(--body); background: var(--btn); color: #fff; border: 2px solid var(--btn); border-radius: var(--r); padding: 15px 22px; cursor: pointer; }
.bc-form button:hover { background: #0e1d44; }
.bc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bc-note { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.bc-note--ok { border-color: #2f7d4f; }
.bc-note--err { border-color: #b3402b; }

/* 404 */
.nf { padding-block: 96px; }

/* Mobile */
@media (max-width: 760px) {
	.wrap { padding-inline: 20px; }
	.sec { padding-block: 48px; }
	.sec--prod { padding-block: 64px; }
	.hdr .hdr__in { min-height: 64px; gap: 12px; }
	.hdr .wp-block-site-logo img { height: 34px; }
	.hdr .wp-block-buttons { display: none; }
	.heroA { padding-block: 40px 48px; background-size: 32px 32px; }
	.heroA__in, .about, .cv, .contact, .sd, .ftr__in, .ctasteps { grid-template-columns: 1fr; gap: 28px; }
	.ctasteps { gap: 40px; }
	.ctasteps .lead { white-space: normal; }
	.spec { padding: 16px 18px; font-size: 13.5px; }
	.spec__row { grid-template-columns: 1fr; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 0; }
	.spec__row:first-of-type { border-top: 0; padding-top: 0; }
	.svc { grid-template-columns: 1fr; }
	.svc__item { border-right: 0; padding: 22px; }
	.svc__item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
	.work--lead, .work--more, .prod { grid-template-columns: 1fr; }
	.prod { gap: 44px; }
	.cv__job { grid-template-columns: 1fr; gap: 6px; }
	.about img { max-width: 220px; }
	.wp-block-buttons .wp-block-button, .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
	.phead { padding-block: 40px 28px; }
	.h-xl { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.contact { margin-top: 40px; }
.contact ~ *, .sec .lead + p { margin-top: 16px; }

.who { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px; box-shadow: 5px 5px 0 var(--line); }
.who img { width: 96px; height: 115px; object-fit: cover; border-radius: 4px; display: block; }
.who__text p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.who__text p:last-child { margin-bottom: 0; color: var(--mute); }
.how { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 8px; }
.how__item h3 { font-size: 20px; margin: 0 0 8px; }
.how__item h3::before { content: '</>'; display: block; font: 600 15px/1 var(--mono); color: var(--accent); margin-bottom: 10px; }
.how__item p { margin: 0; color: var(--mute); font-size: 16px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } .who { grid-template-columns: 72px 1fr; padding: 16px; } .who img { width: 72px; height: 86px; } .how::before { display: none; } }

.how::before { content: '</>'; position: absolute; right: 0; top: -150px; font: 700 150px/1 var(--mono); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--line); pointer-events: none; }
.sec__head .lead { margin-top: 12px; }

.who { display: block; padding: 24px; }
.who__top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.who img { width: 100px; height: 120px; object-fit: cover; border-radius: 6px; display: block; }
.who__name { font: 700 24px/1.2 var(--head); margin: 0; }
.who__role { margin: 4px 0 0; font: 500 13.5px/1.4 var(--mono); color: var(--accent); }
.who__text p { margin: 0; }
.who > p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; }
.who .who__more { margin: 16px 0 0; }
.who__more a { font: 600 14px/1 var(--mono); color: var(--btn); text-decoration: none; border-bottom: 2px solid var(--mark); padding-bottom: 2px; }
.who__more a:hover { background: var(--mark); }

.hdr .wp-block-navigation .current-menu-item > a::before, .hdr .wp-block-navigation .current-menu-item > a::after { opacity: 1; transform: translate(0, -50%); }

.svc__item .chips { margin-top: 16px; }
@media (max-width: 640px) { .who img { width: 72px; height: 86px; } .who__name { font-size: 21px; } }

.who { border-width: 2px; border-radius: 2px; box-shadow: 8px 8px 0 var(--ink); }

.hdr .wp-block-button__link, .wp-block-button__link { border-radius: 2px; }

.who__logos { display: block; padding-top: 4px; border-top: 0; }
.who__logos > div, .who__item { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border: 0; border-top: 1px dashed var(--line); border-radius: 0; background: none; }
.who__logos img { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; background: none; }
.who__logos p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.2; }
.who__logos a { text-decoration: none; }
.who__logos a:hover { text-decoration: underline; }
.who__logos .who__tag { font: 500 12.5px/1.2 var(--mono); color: var(--mute); }

.prose .h-m { margin: 36px 0 10px; }
.prose > p:first-child { margin-bottom: 8px; }

.wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px 32px; background: #fff; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 6px; padding-top: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--mono); font-size: 22px; font-weight: 600; padding-block: 10px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { margin-top: 12px; padding: 12px 20px; background: var(--btn); color: #fff; border-radius: 2px; }
.wp-block-navigation__responsive-container.is-menu-open a::before, .wp-block-navigation__responsive-container.is-menu-open a::after { display: none; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 16px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 16px 24px !important; }



.hdr .pll-switcher { display: block; flex: 0 0 auto; width: auto; margin: 0; }
.hdr .pll-switcher ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font: 600 13px/1 var(--mono); }
.hdr .pll-switcher a { display: block; padding: 7px 8px; text-decoration: none; color: var(--mute); border-radius: 2px; text-transform: uppercase; }
.hdr .pll-switcher a:hover { color: var(--ink); background: var(--soft); }
.hdr .pll-switcher .current-lang a { color: var(--ink); background: var(--mark); }
@media (max-width: 760px) { .hdr .hdr__in { gap: 8px; } .hdr .pll-switcher a { padding: 6px 5px; } .hdr .wp-block-site-logo { margin-right: auto; } }
.hdr .pll-switcher ul { flex-direction: row !important; flex-wrap: nowrap; align-items: center; }
.hdr .pll-switcher li { display: block; margin: 0; }

.ftr .wp-block-social-links { gap: 14px; margin-top: 18px; padding: 0; font-size: 26px; }
.ftr .wp-block-social-links .wp-social-link { background: none; color: var(--ink); }
.ftr .wp-block-social-links .wp-social-link a { padding: 4px; color: inherit; }
.ftr .wp-block-social-links .wp-social-link:hover { color: var(--accent); transform: none; }

.faq { columns: 2; column-gap: 28px; max-width: none; }
.faq .wp-block-details { break-inside: avoid; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 0 18px; }
.faq .wp-block-details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font: 700 17px/1.4 var(--head); padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font: 500 22px/1.4 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq .wp-block-details p { margin: 0 0 16px; color: var(--mute); max-width: none; }
@media (max-width: 760px) { .faq { columns: 1; } }

.sd .sd__ex { margin: 0; padding-left: 0; list-style: none; }
.sd .sd__ex li { margin: 0 0 4px; }
.sec .wp-block-buttons { margin-top: 28px; }

/* No limitations section: one icon per column */
.how__item h3::before { content: ''; display: block; width: 52px; height: 52px; margin: 0 0 18px; font: 0; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 30px 30px; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--btn); }
.how > .how__item:nth-child(1) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314285a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4v13l3.3-3 2.4 5.2 2.3-1-2.4-5.1H17z' fill='%23f6dc82'/%3E%3Cpath d='M15.5 5.2l1.2-1.6M18 7.5l1.8-.7M13.5 3.2l.3-1.9' stroke='%231f4fd8'/%3E%3C/svg%3E"); }
.how > .how__item:nth-child(2) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314285a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 11.5a7.5 7.5 0 0 0-13-4.6L4.5 9'/%3E%3Cpath d='M4.5 4.5V9H9'/%3E%3Cpath d='M4.5 12.5a7.5 7.5 0 0 0 13 4.6l2-2.1'/%3E%3Cpath d='M19.5 19.5V15H15' stroke='%231f4fd8'/%3E%3C/svg%3E"); }
.how > .how__item:nth-child(3) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314285a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.7-3.1 8-7.5 9.5-4.4-1.5-7.5-4.8-7.5-9.5V6z' fill='%23f6dc82'/%3E%3Cpath d='M8.5 12.2l2.5 2.5 4.6-5' stroke='%231f4fd8'/%3E%3C/svg%3E"); }
.how > .how__item:nth-child(4) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314285a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 2.5L5.5 13.5h5.8l-1 8 8.2-11.5h-5.8z' fill='%23f6dc82'/%3E%3Cpath d='M3 8.5h3M2 12h2.5M3 15.5h3' stroke='%231f4fd8'/%3E%3C/svg%3E"); }

.ftr .ftr__legal { font: 500 12.5px/1.7 var(--mono); color: #66738c; margin-top: 10px; user-select: all; }

@media (max-width: 420px) { .h-xl { font-size: clamp(28px, 8.6vw, 38px); overflow-wrap: anywhere; hyphens: auto; } .heroA__in > * { min-width: 0; } }
.ftr .wp-block-social-links { margin-left: -4px; }

/* ---- Home: How a project runs (flow) ---- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: f; padding: 0; margin: 0; list-style: none; }
.flow li { counter-increment: f; background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 20px; display: grid; gap: 6px; align-content: start; box-shadow: 5px 5px 0 var(--btn); margin: 0; }
.flow li::before { content: counter(f); font: 600 14px/1 var(--mono); color: var(--accent); }
.flow li strong { font: 700 19px/1.25 var(--head); display: block; }
.flow li span { color: var(--mute); font-size: 15.5px; }

/* ---- How I work, Working with me ---- */
.how-work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-work__item h3 { font: 700 19px/1.3 var(--head); margin: 0 0 6px; }
.how-work__item p { color: var(--mute); font-size: 16px; margin: 0; }
.about-more { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ---- Portfolio groups and private client cards ---- */
.work__grp { margin: 52px 0 6px; }
.work__grp:first-child { margin-top: 0; }
.work__lead { margin: 0 0 22px; }
.work--lead + .work__sub { margin-top: 36px; }
.mc-a { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.mc-a > div { background: var(--soft); border-radius: 2px; padding: 22px; }
.mc-a__tag { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--mute); margin: 0 0 12px; }
.mc-a__lock { display: inline-block; width: 12px; height: 12px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5b78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E"); }
.mc-a h3 { font: 700 17px/1.3 var(--head); margin: 0 0 8px; }
.mc-a p:not(.mc-a__tag) { font-size: 15px; color: var(--mute); margin: 0; }
.wk__more { margin: 12px 0 0; }
.wk__more a { font: 600 14px/1 var(--mono); color: var(--btn); text-decoration: none; border-bottom: 2px solid var(--mark); padding-bottom: 2px; }
.wk__more a:hover { background: var(--mark); }

/* ---- Contact: steps strip ---- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 56px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; counter-reset: s2; }
.strip li { counter-increment: s2; font-size: 13.5px; color: var(--mute); line-height: 1.45; margin: 0; padding: 0; border: 0; display: block; }
.strip li::before { content: counter(s2) '  '; font: 600 12px/1.5 var(--mono); color: var(--accent); }
.strip li strong { color: var(--ink); font-weight: 600; }

/* ---- Case studies ---- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.gal__i { display: block; line-height: 0; cursor: zoom-in; }
.gal__i img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 var(--btn); transition: transform .15s, box-shadow .15s; }
.gal__i:hover img { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--btn); }
.cs { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--mute); }
.facts dd { margin: 2px 0 0; font: 600 17px/1.35 var(--head); }
.facts dd a { text-decoration: underline; }
.cs-body { max-width: 700px; }
.cs-sec { margin-bottom: 40px; }
.cs-sec h2 { font: 700 26px/1.2 var(--head); margin: 0 0 12px; letter-spacing: -.01em; }
.cs-sec p { font-size: 18px; line-height: 1.65; }
.cs-sec a { text-decoration: underline; }
.cs-sec .bul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cs-sec .bul li { font-size: 17px; line-height: 1.6; padding-left: 22px; position: relative; margin: 0; }
.cs-sec .bul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--mark); border: 1.5px solid var(--ink); border-radius: 2px; }
.ba { display: flex; gap: 28px; margin-top: 24px; }
.ba figure { margin: 0; flex: 0 0 auto; }
.ba img { width: 230px; height: auto; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 5px 5px 0 var(--btn); display: block; }
.ba figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); max-width: 230px; }
.ba b { display: block; color: var(--ink); font: 600 13px/1.4 var(--mono); }

/* ---- Lightbox ---- */
dialog.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 28px; background: rgba(11, 20, 38, .88); display: none; place-items: center; z-index: 9999; margin: 0; }
dialog.lb[open] { display: grid; }
dialog.lb::backdrop { background: transparent; }
.lb img { max-width: min(1200px, 100%); max-height: calc(100vh - 100px); border: 3px solid #fff; border-radius: 3px; box-shadow: 8px 8px 0 #14285a; background: #fff; }
.lb .lb__x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; font: 600 26px/1 system-ui; border: 2px solid #fff; background: #14285a; color: #fff; border-radius: 3px; cursor: pointer; padding: 0; }
.lb p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font: 500 14px/1.4 var(--body); margin: 0; padding: 0 70px; }

@media (max-width: 900px) { .flow, .how-work { grid-template-columns: 1fr 1fr; } .cs { grid-template-columns: 1fr; gap: 28px; } .gal { grid-template-columns: 1fr 1fr; } .gal__i:last-child { display: none; } }
@media (max-width: 640px) { .flow, .how-work, .mc-a { grid-template-columns: 1fr; } .strip { grid-template-columns: 1fr 1fr; } .ba { gap: 16px; } .ba img { width: 100%; } .ba figure { flex: 1 1 0; min-width: 0; } .gal { grid-template-columns: 1fr; } .gal__i:last-child { display: block; } }

.ftr .ftr__mail { margin-top: 0; }
.ftr .ftr__mail a { color: inherit; text-decoration: none; }
.ftr .ftr__mail a:hover { text-decoration: underline; }

.phead .lead { max-width: none; }

/* ---- Review round 2: tablet header, hero grid, no odd hyphens, nav bracket labels, tap targets ---- */
@media (min-width: 600px) and (max-width: 960px) {
	.hdr .wp-block-navigation__responsive-container-open { display: flex !important; }
	.hdr .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.hdr .wp-block-buttons { display: block; }
	.hdr .hdr__in { gap: 12px; }
	.hdr .wp-block-button__link { white-space: nowrap; padding: 10px 16px; }
}
.hdr .wp-block-button__link { white-space: nowrap; }
.heroA__in { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
@media (max-width: 900px) { .heroA__in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .h-xl { hyphens: manual; overflow-wrap: break-word; } }
.hdr .wp-block-navigation a::before { content: '<' / ''; }
.hdr .wp-block-navigation a::after { content: '/>' / ''; }
@media (max-width: 960px) { .hdr .wp-block-navigation__responsive-container-open, .hdr .wp-block-navigation__responsive-container-close { padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; } }
.hdr .pll-switcher a { padding-block: 10px; }
.lb:focus-visible, .lb button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (min-width: 961px) and (max-width: 1240px) {
	.hdr .hdr__in { gap: 14px; }
	.hdr .wp-block-navigation { gap: 24px; font-size: 14px; }
	.hdr .wp-block-navigation__container { gap: 24px; flex-wrap: nowrap; }
	.hdr .wp-block-button__link { padding: 10px 16px; }
}

.bc-privacy { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.bc-privacy a { text-decoration: underline; }
