/*
Theme Name: Dempo
Theme URI: https://dempo.es
Author: Dempo
Description: Block theme for dempo.es. Engineering software for business-critical platforms. Works with the Dempo Site plugin (case studies, dynamic blocks).
Version: 1.8.3
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: dempo
*/

/* =========================================================
   Tokens. Light page by default; .theme-dark re-points the same
   tokens for dark islands (hero bands, careers, header).
   ========================================================= */
:root {
	--c-bg: #ffffff;
	--c-bg-alt: #e9edeb;
	--c-ink: #00333f;
	--c-ink-body: #234a54;
	--c-ink-soft: #5b727a;
	--c-accent: #377fc2;
	--c-accent-strong: #2b6aa3;
	--c-accent-ink: #ffffff;
	--c-button: #3077b8; /* brand blue darkened just enough for 4.5:1 with white text */
	--c-line: rgba(0, 0, 0, .12);
	--c-surface: #f4f6f5;
	--c-bg-glass: rgba(255, 255, 255, .85);

	--shadow-sm: 0 4px 14px rgba(0, 0, 0, .08);
	--shadow-md: 0 10px 30px rgba(0, 0, 0, .1);

	--font-display: var(--wp--preset--font-family--montserrat, Montserrat, Arial, sans-serif);
	--font-text: var(--wp--preset--font-family--inter, Inter, Arial, sans-serif);

	--max: 1200px;
	--max-narrow: 760px;
	--pad: clamp(1rem, 4vw, 2.5rem);
	--radius: 10px;
	--gap: 20px;
	--sec-gap: clamp(1.5rem, 5vw, 4rem);
	--sec-flow: clamp(1.75rem, 4vw, 2.75rem);
	--header-h: 68px;
}

.theme-dark {
	--c-bg: #00333f;
	--c-bg-alt: #0a4552;
	--c-ink: #ffffff;
	--c-ink-body: #e0e1dd;
	--c-ink-soft: #a2b5bb;
	--c-accent-strong: #6aa7db;
	--c-line: rgba(255, 255, 255, .14);
	--c-surface: #0e4e5d;
	--c-bg-glass: rgba(0, 51, 63, .85);
}
.dark-band { background: var(--c-bg); color: var(--c-ink-body); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); }
body {
	margin: 0;
	font-family: var(--font-text);
	color: var(--c-ink-body);
	background: var(--c-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--c-ink); }
mark.pending, .pending { background: #fff4e5; color: #7a4100; padding: 0 .3em; border-radius: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--max-narrow); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.lead { font-size: 1.25rem; color: var(--c-ink-soft); }
.eyebrow {
	display: block;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: .78rem;
	font-weight: 700;
	color: var(--c-ink-soft);
	margin: 0 0 1.25rem;
}
.note { font-size: .88rem; color: var(--c-ink-soft); }

/* Section types: title column + content column, or title stacked on content */
.sec-grid { display: grid; grid-template-columns: 2fr 3fr; gap: var(--sec-gap); align-items: start; }
.sec-head, .sec-body { min-width: 0; }
.sec-head > :last-child { margin-bottom: 0; }
.sec-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.sec-body > * { margin: 0; }
.sec-stack .sec-head { margin-bottom: var(--sec-flow); }

.panel { background: var(--c-surface); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.panel-media { margin: 0 0 var(--sec-flow); }
.panel-media img, .case-media img { width: 100%; border-radius: var(--radius); background: var(--c-bg-alt); }
.panel-media img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; }
.panel-media.is-life img { object-position: 50% 45%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	/* Solid, no backdrop-filter: a filter would trap the fixed mobile menu overlay inside the header. */
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-line);
	transition: background-color .3s ease, border-color .3s ease;
}
.site-header.theme-dark { background: #00333f; border-bottom-color: rgba(255, 255, 255, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-grid; align-items: center; justify-items: start; }
.logo img { height: 28px; width: auto; grid-area: 1 / 1; transition: opacity .3s ease; }
.logo .logo-light { opacity: 0; }
.site-header:not(.theme-dark) .logo .logo-dark { opacity: 0; }
.site-header:not(.theme-dark) .logo .logo-light { opacity: 1; }

.site-header { color: var(--c-ink-body); }
.site-header .wp-block-navigation { font-family: var(--font-display); font-size: .95rem; }
.site-header .wp-block-navigation__container { gap: 1.75rem; align-items: center; }
.site-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--c-ink-soft); font-weight: 600; transition: color .2s; }
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--c-ink); }
.site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content { background: var(--c-button); color: #fff; padding: .45rem .9rem; border-radius: 8px; }
.site-header .wp-block-navigation .nav-cta .wp-block-navigation-item__content:hover { color: #fff; opacity: .92; }
.logo { flex: none; }
.site-header .wp-block-navigation-item__content { white-space: nowrap; }
/* Six items need ~1000px: below that, use the hamburger (WordPress only switches below 600px). */
@media (min-width: 600px) and (max-width: 999px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.site-header .wp-block-navigation__responsive-container-open { color: var(--c-ink); }
.site-header .wp-block-navigation__responsive-container-close { color: #fff; } /* the open overlay is always petrol */
.site-header .wp-block-navigation__responsive-container.is-menu-open { padding: calc(var(--header-h) + 1rem) var(--pad) 2rem; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; }
.site-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; font-size: 1.25rem; }

/* ---------- Breadcrumbs (in each page header, where the small label used to be) ---------- */
.breadcrumbs { margin: 0 0 1.25rem; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; color: var(--c-ink-soft); white-space: nowrap; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.breadcrumbs li + li::before { content: "›"; opacity: .7; }
.breadcrumbs a { color: var(--c-ink-soft); transition: color .2s; }
.breadcrumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-ink-body); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-button__link, .btn {
	display: inline-block;
	transition: transform .15s, opacity .2s;
}
.wp-block-button__link:hover, .btn:hover { transform: translateY(-2px); opacity: .92; }
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--c-ink);
	box-shadow: inset 0 0 0 1px var(--c-line);
}
.hero-actions, .btn-row { margin-top: 1.75rem; }
.sec-body .btn-row, .midcta-box .btn-row { margin-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero-title {
	font-weight: 900;
	font-size: clamp(40px, 5.2vw, 80px);
	line-height: .98;
	letter-spacing: -0.022em;
	max-width: 17ch;
}
.hero-accent, .hero-title mark { color: var(--c-accent); background: none; }
.hero-sub { font-size: 1.25rem; color: var(--c-ink-soft); max-width: 40ch; margin: 1rem 0 0; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 50%; }

/* ---------- Proof band ---------- */
.proof-band { padding-top: 0; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.proof > * { display: flex; flex-direction: column; gap: .5rem; }
.proof p { margin: 0; }
.proof-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; color: var(--c-ink); }
.proof-label { color: var(--c-ink-soft); font-size: .95rem; line-height: 1.45; }
.proof-trust { margin: 2rem 0 0; color: var(--c-ink-soft); font-size: .9rem; }

/* ---------- Cards: stats, challenge, customers ---------- */
.stat, .customer-tile {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: color .2s, border-color .2s, transform .15s;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { text-align: center; padding: 1.75rem 1rem; box-shadow: inset 0 2px 0 0 var(--c-accent); }
.stat > * { margin: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; color: var(--c-ink); }
.fact .stat-num { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.stat-label { display: block; margin-top: .5rem; color: var(--c-ink-soft); font-size: .95rem; }
.stat-link { margin-top: 1rem; font-family: var(--font-display); font-size: .9rem; font-weight: 700; color: var(--c-accent-strong); }

/* Service words with a glyph (Build / Modernise / Evolve) */
.stat-num[class*="glyph-"] { display: inline-flex; align-items: center; gap: .3em; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.stat-num[class*="glyph-"]::before {
	content: "";
	width: .78em;
	height: .78em;
	flex: none;
	background: var(--c-accent);
	-webkit-mask: var(--glyph) center / contain no-repeat;
	mask: var(--glyph) center / contain no-repeat;
}
.glyph-plus { --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'><path d='M12 4v16M4 12h16'/></svg>"); }
.glyph-refresh { --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12a8 8 0 1 1-2.6-5.9'/><path d='M20 3.5v4h-4'/></svg>"); }
.glyph-arrow { --glyph: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 18L18 6'/><path d='M8 6h10v10'/></svg>"); }

.challenge { background: var(--c-bg-alt); }
.challenge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.challenge-grid .stat { text-align: left; }
.ch-num { font-family: var(--font-display); font-weight: 800; color: var(--c-accent-strong); font-size: .95rem; }
.ch-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--c-ink); margin: .5rem 0 !important; }

/* Case study tiles (rendered by the dempo/case-grid block) */
.customer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); perspective: 1100px; }
.customer-grid li[hidden] { display: none; }
.customer-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--c-ink-soft); }
.customer-tile:hover { color: var(--c-ink); border-color: var(--c-accent); transform: translateY(-2px); }
.customer-thumb { width: 100%; aspect-ratio: 750 / 476; object-fit: cover; }
.customer-thumb--empty { display: block; background: var(--c-bg-alt); }
.customer-name { padding: .9rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.customer-tag { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-soft); padding: 0 1rem; }
.customer-headline { display: block; padding: .25rem 1rem 1rem; font-size: .92rem; color: var(--c-ink-body); }
.see-all { display: inline-block; margin-top: var(--sec-flow); font-family: var(--font-display); font-weight: 700; color: var(--c-accent-strong); }
.see-all a { color: inherit; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: inherit; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--c-line); background: transparent; color: var(--c-ink-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--c-button); border-color: var(--c-button); color: #fff; }

/* Entrance: tiles fan in when the grid scrolls into view (front end only) */
.js-reveal .customer-grid.is-animated li {
	opacity: 0;
	transform: translateY(48px) rotateX(24deg) rotate(var(--tilt, 0deg)) scale(.9);
	transform-origin: center bottom;
}
.customer-grid li:nth-child(3n+1) { --tilt: -8deg; }
.customer-grid li:nth-child(3n+3) { --tilt: 8deg; }
.customer-grid li:nth-child(2) { --d: .06s; }
.customer-grid li:nth-child(3) { --d: .12s; }
.customer-grid li:nth-child(4) { --d: .18s; }
.customer-grid li:nth-child(5) { --d: .24s; }
.customer-grid li:nth-child(6) { --d: .30s; }
.js-reveal .customer-grid.is-animated.tiles-in li { animation: tile-in .75s cubic-bezier(.22, .61, .36, 1) var(--d, 0s) both; }
@keyframes tile-in {
	from { opacity: 0; transform: translateY(48px) rotateX(24deg) rotate(var(--tilt, 0deg)) scale(.9); }
	to { opacity: 1; transform: none; }
}

/* ---------- Mid-page CTA ---------- */
.midcta { padding-top: 0; }
.midcta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--radius);
	background: var(--c-bg-alt);
	border: 1px solid var(--c-line);
	box-shadow: inset 0 3px 0 0 var(--c-accent);
}
.midcta-title { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.midcta-main { display: flex; align-items: center; gap: 1.5rem; flex: 1 1 420px; }
.midcta-main .midcta-photo { margin: 0; flex: none; width: 168px; }
.midcta-main .midcta-photo img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
@media (max-width: 560px) { .midcta-main { flex-direction: column; align-items: flex-start; } }
.midcta-box p { margin: .4rem 0 0; color: var(--c-ink-body); }

/* ---------- Lists: why, steps, chips ---------- */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.why-list strong { display: block; color: var(--c-ink); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: .2rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1.25rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .15rem; font-family: var(--font-display); font-weight: 800; color: var(--c-accent-strong); }
.steps strong { display: block; color: var(--c-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: .15rem; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); font-size: .9rem; color: var(--c-ink-body); }

/* ---------- Comparison table (core/table with .cmp) ---------- */
.cmp { max-width: 1040px; margin: 0; }
.cmp table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; padding: 1.1rem 1.5rem 1.1rem 0; border: 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.cmp thead { border: 0; }
.cmp thead th { padding-top: 0; border-bottom: 3px solid var(--c-ink); font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-soft); }
.cmp thead th:last-child { color: var(--c-accent-strong); }
.cmp td:first-child { color: var(--c-ink-soft); }
.cmp td:last-child { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }

/* ---------- Project metadata & technology ---------- */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem 2rem; width: 100%; }
.meta p { margin: 0; }
.meta-label, .tech-label { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-soft); }
.meta-value { margin-top: .3rem !important; color: var(--c-ink); }
.meta-value a { text-decoration: underline; }
.tech { width: 100%; border-top: 1px solid var(--c-line); }
.tech-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--c-line); align-items: start; }
.tech-row > * { margin: 0; }
.tech-label { padding-top: .55rem; }

/* ---------- Quote ---------- */
.panel .wp-block-quote, .quote { margin: 0; padding: 0; border: 0; }
.wp-block-quote.quote p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--c-ink); }
.wp-block-quote.quote cite { display: block; margin-top: 1rem; font-style: normal; color: var(--c-ink-soft); font-size: .95rem; }

/* ---------- Case study pages ---------- */
.case-hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.case-hero .container > :last-child { margin-bottom: 0; }
.case-title { font-weight: 900; font-size: clamp(38px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.02em; max-width: 20ch; margin: 0; }
.case-sub { font-size: 1.2rem; color: var(--c-ink-soft); max-width: 46ch; margin: 1.25rem 0 0; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .4rem .9rem; border: 1px solid var(--c-line); border-radius: 999px; font-size: .88rem; color: var(--c-ink-body); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.case-media-wrap { padding-top: 0; }
.case-media img, .case-media .case-media__img { aspect-ratio: 21 / 9; object-fit: cover; }
.case-media--empty { aspect-ratio: 21 / 9; border-radius: var(--radius); background: var(--c-bg-alt); }

.funders { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1rem; }
.funders figure { margin: 0; }
.funders img { height: 72px; width: auto; border-radius: 4px; }
.funders .is-junta img { height: 92px; margin-block: -10px; }

/* ---------- Careers ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.role {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 1.75rem;
	display: flex; flex-direction: column; gap: 1rem;
	box-shadow: inset 0 2px 0 0 var(--c-accent);
}
.role > * { margin: 0; }
.role h3 { font-size: 1.35rem; }
.role .customer-tag { padding: 0; }
.role h4 { margin-top: .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-soft); }
.role ul { padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--c-ink-body); font-size: .95rem; }
.role .wp-block-buttons { margin-top: auto; }

/* ---------- Benefits marquee ---------- */
.marquee {
	display: flex; flex-direction: column; gap: var(--gap);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: var(--gap); width: max-content; will-change: transform; }
.js-reveal .marquee-track { animation: marquee-left 40s linear infinite; }
.js-reveal .marquee-row--reverse .marquee-track { animation: marquee-right 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.benefit-tile { position: relative; flex: 0 0 auto; width: 300px; height: auto; }
.benefit-tile::before {
	content: "";
	display: block;
	aspect-ratio: 750 / 476;
	background: linear-gradient(135deg, #0a4552, var(--c-accent));
}
.benefit-tile::after {
	content: "";
	position: absolute;
	top: calc(300px * 476 / 750 / 2 - 23px);
	left: calc(50% - 23px);
	width: 46px; height: 46px;
	background: #fff;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}
.benefit-tile .customer-name { margin: 0; }
.icon-book { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>"); }
.icon-bulb { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5.76.76 1.23 1.52 1.41 2.5'/></svg>"); }
.icon-clock { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>"); }
.icon-home { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/><polyline points='9 22 9 12 15 12 15 22'/></svg>"); }
.icon-agile { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 4 23 10 17 10'/><polyline points='1 20 1 14 7 14'/><path d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/></svg>"); }
.icon-calendar { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>"); }
.icon-health { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/><path d='M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27'/></svg>"); }
.icon-card { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><line x1='2' y1='10' x2='22' y2='10'/></svg>"); }
.icon-sun { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/></svg>"); }
.icon-monitor { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='14' rx='2' ry='2'/><line x1='8' y1='21' x2='16' y2='21'/><line x1='12' y1='17' x2='12' y2='21'/></svg>"); }
.icon-chat { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>"); }
.icon-growth { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><polyline points='23 6 13.5 15.5 8.5 10.5 1 18'/><polyline points='17 6 23 6 23 12'/></svg>"); }
.icon-contract { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='8' y1='13' x2='16' y2='13'/><line x1='8' y1='17' x2='13' y2='17'/></svg>"); }
.icon-office { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='2' width='16' height='20' rx='2'/><path d='M9 22v-4h6v4'/><path d='M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/></svg>"); }

/* ---------- Contact form ---------- */
.contact-details .section-title { margin-bottom: 2rem; }
.contact-details .meta-label { margin: 1.5rem 0 0; }
.contact-details .meta-value { margin: .3rem 0 0; }
.contact-details a { text-decoration: underline; }
.contact-panel { width: 100%; }
.contact-form { display: grid; gap: 1.25rem; }
.contact-form .form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form .field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.contact-form .field.is-full { grid-column: 1 / -1; }
.contact-form .field[hidden] { display: none; }
.contact-form label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.contact-form .req { color: var(--c-accent-strong); }
.contact-form .opt { font-weight: 400; color: var(--c-ink-soft); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea, .contact-form select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--c-ink); background: var(--c-bg);
	border: 1px solid rgba(0, 0, 0, .25); border-radius: 8px; padding: .75rem .9rem;
	transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b727a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; }
.contact-form select:invalid, .contact-form select option[value=""] { color: var(--c-ink-soft); }
.contact-form ::placeholder { color: #8a9ca2; }
.contact-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.contact-form .form-required-note { font-size: .88rem; color: var(--c-ink-soft); }
.contact-form .field-count { align-self: flex-end; font-size: .85rem; color: var(--c-ink-soft); }
.contact-form .field-count.is-over { color: #b3261e; }
.contact-done { outline: none; }
.contact-done .section-title { font-size: 1.6rem; margin-bottom: .75rem; }
.contact-done .lead { margin: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-button); box-shadow: 0 0 0 3px rgba(48, 119, 184, .25); }
.contact-form .field [aria-invalid="true"] { border-color: #b3261e; } /* beats the input[type] rule */
.contact-form .field-error { color: #b3261e; font-size: .85rem; }
.contact-form .field--consent label { flex-direction: row; display: flex; gap: .6rem; align-items: flex-start; font-family: var(--font-text); font-weight: 400; font-size: .95rem; color: var(--c-ink-body); }
.contact-form .field--consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--c-button); flex: none; }
.contact-form .field--consent a { text-decoration: underline; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0; padding: 1rem 1.25rem; border-radius: 8px; font-weight: 500; }
.form-notice.is-success { background: #e6f2ea; color: #1e5b33; }
.form-notice.is-error { background: #fbeaea; color: #8a1c17; }
.contact-form.is-sent .form-fields, .contact-form.is-sent .field--consent, .contact-form.is-sent .wp-block-buttons { display: none; }
.privacy-note { margin: 1.5rem 0 0; line-height: 1.5; }
.privacy-note a { text-decoration: underline; }
@media (max-width: 780px) {
	.contact-layout .sec-body { order: -1; } /* form before the contact details on phones */
	.contact-form .form-fields { grid-template-columns: 1fr; }
}

/* ---------- Leadership ---------- */
.photo-wide { margin: 0 0 var(--sec-flow); border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt); }
.photo-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 50%; }
.photo-wide--tall img { aspect-ratio: 16 / 9; object-position: 50% 45%; }
.photo-wide.is-services img { object-position: 50% 68%; }
.photo-wide.is-why img { object-position: 50% 55%; }
.photo-wide.is-model img { object-position: 50% 38%; }
.photo-wide.is-careers-hero { margin: 2.5rem 0 0; }
.photo-wide.is-careers-hero img { object-position: 50% 40%; }
@media (max-width: 780px) { .photo-wide img { aspect-ratio: 16 / 10; } }
.leadership-lead { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; }

/* ---------- Insights cards (dempo/post-grid) ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.blog-filters button { font: inherit; font-family: var(--font-display); font-weight: 600; font-size: .88rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--c-line); background: transparent; color: var(--c-ink-body); cursor: pointer; }
.blog-filters button[aria-pressed="true"] { background: var(--c-button); border-color: var(--c-button); color: #fff; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.posts li[hidden] { display: none; }
.post { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: inset 0 3px 0 0 var(--c-accent); transition: border-color .2s, transform .15s; }
.post:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.post-thumb { margin: -1.75rem -1.75rem .5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--c-bg-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-soft); }
.post-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--c-ink); }
.post p { margin: 0; color: var(--c-ink-body); flex-grow: 1; }
.post-read { font-family: var(--font-display); font-weight: 700; color: var(--c-accent-strong); }
.post a.post-cover { position: absolute; inset: 0; border-radius: inherit; }
.post a.post-cover:focus-visible { outline: 3px solid var(--c-button); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.art-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; color: var(--c-ink-soft); font-size: .92rem; }
.art-meta span + span::before { content: "·"; margin-right: 1.25rem; opacity: .7; }
.art-cover { margin: 0 0 2.5rem; max-width: 960px; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt); }
.art-cover img { width: 100%; height: 100% !important; object-fit: cover; }
.art-body { max-width: 720px; }
.art-body > .wp-block-post-content > p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--c-ink); margin: 0 0 2.5rem; }
.art-body h2 { font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; margin: 2.75rem 0 1rem; }
.art-body h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.3; margin: 2rem 0 .75rem; }
.art-body p { font-size: 1.08rem; line-height: 1.75; color: var(--c-ink-body); margin: 0 0 1.1rem; }
.art-body ul, .art-body ol { margin: 0 0 1.25rem; padding-left: 1.25rem; display: grid; gap: .6rem; }
.art-body li { font-size: 1.05rem; line-height: 1.65; color: var(--c-ink-body); }
.art-body li strong { color: var(--c-ink); font-family: var(--font-display); }
.art-body a { color: var(--c-accent-strong); text-decoration: underline; }
.art-body blockquote { margin: 2rem 0; padding: 0 0 0 1.25rem; border-left: 4px solid var(--c-accent); }
.art-body blockquote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--c-ink); }
.art-body figure { margin: 2rem 0; }
.art-body img { border-radius: var(--radius); }
.art-body figcaption { margin-top: .5rem; font-size: .88rem; color: var(--c-ink-soft); }
.art-author { margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--c-line); color: var(--c-ink-soft); font-size: .95rem; }
.art-author a { color: var(--c-accent-strong); text-decoration: underline; }
.article { padding-bottom: 0; }

/* ---------- Simple pages (legal, blog) ---------- */
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.page-body > .wp-block-post-content > * { max-width: var(--max-narrow); }
.page-body h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.page-body h3 { font-size: 1.25rem; margin-top: 2rem; }
.page-body a { color: var(--c-accent-strong); text-decoration: underline; }
.post-list { display: grid; gap: 2rem; }
.post-list .wp-block-post-title { font-size: 1.5rem; margin: 0 0 .5rem; }
.page-body .post-list .wp-block-post-title a { color: var(--c-ink); text-decoration: none; }
.page-body .post-list .wp-block-post-title a:hover { color: var(--c-accent-strong); }
.post-list .wp-block-post-excerpt__excerpt { margin: 0; }
.page-body .wp-block-query-pagination { margin-top: 3rem; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { color: var(--c-ink-soft); border-top: 1px solid var(--c-line); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.footer-col h3 { font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col p, .footer-col li { font-size: .95rem; margin: 0; }
.footer-col a { color: var(--c-ink-soft); }
.footer-col a:hover { color: var(--c-ink); }
.footer-col address { font-style: normal; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (front end only: .js-reveal is set by site.js) ---------- */
.js-reveal .section:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.js-reveal .section { transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js-reveal .section:not(.is-visible) { opacity: 1; transform: none; }
	.js-reveal .customer-grid.is-animated li { opacity: 1; transform: none; animation: none !important; }
	.js-reveal .marquee-track { animation: none; }
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media img { aspect-ratio: 4 / 3; }
	.proof, .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
	.sec-grid { grid-template-columns: 1fr; }
	.stats-grid, .customer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.proof, .challenge-grid, .stats-grid, .customer-grid { grid-template-columns: 1fr; }
	.cmp thead { display: none; }
	.cmp tr { display: grid; gap: .25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--c-line); }
	.cmp td { padding: 0; border: 0; }
	.tech-row { grid-template-columns: 1fr; gap: .5rem; }
}
