/* LCS theme — layout and component styles. Motion lives in effects.css. */

:root {
	--lcs-radius: 22px;
	--lcs-ease: cubic-bezier(.2, .7, .2, 1);
	--lcs-glass: rgb(7 11 20 / .72);
	--lcs-ink: #04101c;
}

html { scroll-behavior: smooth; }
/*
 * Large, high-resolution screens (a 4K monitor at 100% scaling is 3840 CSS pixels wide) make a fixed-size page look tiny.
 * Everything is sized in rem, so growing the root size scales the whole page: 100% up to 1600px wide (laptops unchanged,
 * 1920px monitors about 10% larger), about 130% at 2560px, reaching 175% at 3840px. Based on 100%, so a visitor's own browser text size still applies.
 */
html { font-size: clamp(100%, calc(100% + (100vw - 1600px) * 3 / 560), 175%); }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--wp--preset--color--primary); color: var(--lcs-ink); }
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.lcs-main { min-height: 60vh; }

/* ---------- Header ---------- */
.lcs-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding: 1.1rem var(--wp--preset--spacing--40);
	border-bottom: 1px solid transparent;
	transition: padding .35s var(--lcs-ease), background-color .35s, border-color .35s, backdrop-filter .35s;
}
.admin-bar .lcs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lcs-header { top: 46px; } }
.lcs-header.is-scrolled {
	padding-block: .6rem;
	background: var(--lcs-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom-color: var(--wp--preset--color--line);
}
.lcs-header__inner { max-width: 87.5rem; margin-inline: auto; gap: 2rem; }
.lcs-header .wp-block-site-logo img { width: 8.5rem !important; height: auto; transition: width .35s var(--lcs-ease); }
.lcs-footer .wp-block-site-logo img { width: 7.75rem !important; height: auto; }
.lcs-header.is-scrolled .wp-block-site-logo img { width: 7rem !important; }
.lcs-nav { margin-left: auto; }
.lcs-nav .wp-block-navigation-item__content { position: relative; transition: color .2s; }
.lcs-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent); }
.lcs-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--gradient--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--lcs-ease);
}
.lcs-nav > .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.lcs-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 14px;
	padding: .4rem !important;
	box-shadow: 0 24px 60px -20px rgb(0 0 0 / .6);
}
.lcs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem .9rem !important; border-radius: 10px; }
.lcs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface-2); }
.lcs-header__cta .wp-block-button__link { padding: .6em 1.2em; font-size: .95rem; }
@media (max-width: 600px) { .lcs-header__cta { display: none; } }

/* ---------- Typography helpers ---------- */
.lcs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.lcs-eyebrow::before {
	content: "";
	flex: none;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
}
.has-text-align-center.lcs-eyebrow { display: flex; justify-content: center; }
.lcs-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 46ch; }
:is(h1, h2, h3) em {
	font-style: normal;
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lcs-muted { color: var(--wp--preset--color--muted); }

/* ---------- Sections ---------- */
.lcs-section { padding-block: var(--wp--preset--spacing--70) !important; position: relative; }
.lcs-section--alt { background: linear-gradient(180deg, transparent, rgb(14 21 36 / .75) 12%, rgb(14 21 36 / .75) 88%, transparent); }
.lcs-section-head { max-width: 47.5rem; margin-bottom: var(--wp--preset--spacing--50) !important; }
.lcs-section-head h2 { margin-top: .6rem; }
.lcs-split { gap: var(--wp--preset--spacing--60) !important; }

/* ---------- Page hero (inner pages) ---------- */
.lcs-page-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(9rem, 20vh, 13rem) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: radial-gradient(50% 90% at 85% 0%, rgb(43 155 216 / .28), transparent 70%), var(--wp--preset--color--base);
}
.lcs-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgb(120 160 255 / .07) 1px, transparent 1px),
		linear-gradient(90deg, rgb(120 160 255 / .07) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 20%, transparent 75%);
	pointer-events: none;
}
.lcs-page-hero > * { position: relative; }
.lcs-page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); max-width: 20ch; }

/* ---------- Hero (home) ---------- */
.lcs-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: clamp(8rem, 16vh, 11rem) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
	background:
		radial-gradient(60% 55% at 78% 28%, rgb(43 155 216 / .24), transparent 70%),
		radial-gradient(40% 40% at 8% 92%, rgb(34 211 238 / .12), transparent 70%),
		var(--wp--preset--color--base);
}
.lcs-hero > * { width: 100%; position: relative; z-index: 1; }
.lcs-hero > .lcs-network,
.lcs-hero > .lcs-hero__fade {
	position: absolute;
	inset: 0;
	z-index: 0;
	max-width: none !important;
	margin: 0 !important;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.lcs-hero > .lcs-hero__fade { top: auto; height: 35%; background: linear-gradient(transparent, var(--wp--preset--color--base)); }
.lcs-hero h1 { max-width: 13ch; margin-block: 1.2rem 1.4rem; }
.lcs-hero .wp-block-buttons { margin-top: 2.2rem; }
.lcs-hero__badge { margin-top: 2.5rem !important; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.lcs-hero__badge::before { content: "★★★★★"; letter-spacing: .15em; color: var(--wp--preset--color--signal); margin-right: .7rem; }
.lcs-hero__badge strong { color: var(--wp--preset--color--contrast); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .25s var(--lcs-ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { box-shadow: 0 12px 40px -12px rgb(34 211 238 / .75); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 1px solid rgb(232 238 248 / .25) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--accent) !important; }

/* ---------- Cards ---------- */
.is-style-glow-card {
	position: relative;
	padding: var(--wp--preset--spacing--50) !important;
	border-radius: var(--lcs-radius);
	border: 1px solid var(--wp--preset--color--line);
	background: linear-gradient(180deg, var(--wp--preset--color--surface-2), var(--wp--preset--color--surface));
	overflow: hidden;
}
.is-style-glow-card h3 { margin-top: 1.2rem; }
.is-style-glow-card p { color: var(--wp--preset--color--muted); }
/* Equal heights only where the card fills its column; a card beside a heading must not overflow it. */
.wp-block-column > .is-style-glow-card:only-child { height: 100%; }
.lcs-cards > .wp-block-column { display: flex; flex-direction: column; }
.lcs-cards > .wp-block-column > .is-style-glow-card { flex: 1; }
.lcs-icon {
	width: 52px; height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: var(--wp--preset--color--accent);
	background: rgb(43 155 216 / .12);
	border: 1px solid rgb(43 155 216 / .3);
}
.lcs-icon svg { width: 26px; height: 26px; }
.lcs-card-link a { font-weight: 600; text-decoration: none; }
.lcs-card-link a::after { content: " →"; display: inline-block; transition: transform .25s var(--lcs-ease); }
.lcs-card-link a:hover::after { transform: translateX(4px); }
.lcs-checklist { list-style: none; padding-left: 0 !important; }
.lcs-checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .45rem; }
.lcs-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent); font-weight: 700; }
.lcs-chip a, .lcs-chip {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.lcs-chip a {
	display: inline-block;
	padding: .25rem .7rem;
	border-radius: 999px;
	background: rgb(34 211 238 / .1);
	border: 1px solid rgb(34 211 238 / .3);
}
.lcs-chip .wp-block-post-terms__separator { display: none; }

/* ---------- Stats ---------- */
.lcs-stats .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); padding-left: 1.5rem; }
.lcs-counter {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.6rem, 5vw, 4.2rem);
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lcs-stat-label { margin-top: .6rem !important; color: var(--wp--preset--color--muted); }

/* ---------- Partner marquee ---------- */
.lcs-marquee-section {
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--50) !important;
	border-block: 1px solid var(--wp--preset--color--line);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lcs-marquee {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0 !important;
	margin: 1.4rem 0 0 !important;
	max-width: none !important;
}
.lcs-marquee li {
	flex: none;
	padding: 0 clamp(1.5rem, 4vw, 3.5rem);
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.2rem, 2.4vw, 1.9rem);
	font-weight: 600;
	color: rgb(232 238 248 / .5);
	transition: color .3s;
}
.lcs-marquee li:hover { color: var(--wp--preset--color--contrast); }

/* ---------- Case study cards (home bento + archive grid) ---------- */
.lcs-case-card {
	position: relative;
	height: 100%;
	min-height: 18.75rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: var(--lcs-radius);
	border: 1px solid var(--wp--preset--color--line);
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--surface);
}
.lcs-case-card .wp-block-post-featured-image {
	position: absolute !important;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
	aspect-ratio: auto !important;
	height: 100% !important;
}
.lcs-case-card .wp-block-post-featured-image img { width: 100%; height: 100% !important; object-fit: cover; }
.lcs-case-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(7 11 20 / .05) 20%, rgb(7 11 20 / .94) 100%);
}
.lcs-case-card__body { padding: 1.6rem !important; }
.lcs-case-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); margin: .7rem 0 .4rem; }
.lcs-case-card .wp-block-post-title a { color: #fff; text-decoration: none; }
.lcs-case-card .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcs-case-card .wp-block-post-excerpt { color: rgb(232 238 248 / .75); font-size: var(--wp--preset--font-size--small); margin: 0; }
.lcs-case-card .wp-block-post-excerpt__more-text { display: none; }
.lcs-case-card .lcs-chip { position: relative; z-index: 2; }

.lcs-bento .wp-block-post-template {
	display: grid !important;
	grid-template-columns: 1.3fr 1fr 1fr;
	grid-auto-rows: minmax(16.25rem, auto);
	gap: 1.25rem;
	padding: 0;
	list-style: none;
}
.lcs-bento .wp-block-post-template > li { margin: 0; }
.lcs-bento .wp-block-post-template > li:nth-child(1) { grid-row: span 2; }
.lcs-bento .wp-block-post-template > li:nth-child(4) { grid-column: span 2; }
@media (max-width: 900px) {
	.lcs-bento .wp-block-post-template { grid-template-columns: 1fr; }
	.lcs-bento .wp-block-post-template > li:nth-child(n) { grid-row: auto; grid-column: auto; }
}
.lcs-case-grid .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 21.25rem), 1fr));
	gap: 1.25rem;
	padding: 0;
	list-style: none;
}
.lcs-case-grid .lcs-case-card { min-height: 23.75rem; }

/* ---------- Process steps ---------- */
.lcs-steps .wp-block-column { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--wp--preset--color--line); }
.lcs-step-num {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgb(43 155 216 / .7);
}
.lcs-steps h3 { margin-top: 1rem; }
.lcs-steps p:not(.lcs-step-num) { color: var(--wp--preset--color--muted); }

/* ---------- Quotes ---------- */
.lcs-quote {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 2.4rem 2.2rem 2rem !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--lcs-radius);
	background: var(--wp--preset--color--surface);
}
.lcs-quote::before {
	content: "“";
	position: absolute;
	top: .2rem; left: 1.6rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4.5rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	opacity: .6;
}
.lcs-quote p { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.lcs-quote cite { color: var(--wp--preset--color--muted); font-style: normal; font-size: var(--wp--preset--font-size--small); }

/* ---------- CTA panel ---------- */
.lcs-cta {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important;
	border: 1px solid rgb(43 155 216 / .35);
	background:
		radial-gradient(80% 120% at 100% 0%, rgb(43 155 216 / .35), transparent 60%),
		radial-gradient(60% 100% at 0% 100%, rgb(34 211 238 / .16), transparent 60%),
		var(--wp--preset--color--surface);
}
.lcs-cta h2 { max-width: 16ch; }
.lcs-cta p { color: var(--wp--preset--color--muted); max-width: 52ch; }

/* ---------- Timeline ---------- */
.lcs-timeline {
	position: relative;
	list-style: none;
	max-width: 51.25rem;
	padding: 0 0 0 2rem !important;
	border-left: 1px solid var(--wp--preset--color--line);
}
.lcs-timeline li { position: relative; padding: 0 0 2.2rem 1.4rem; color: var(--wp--preset--color--muted); }
.lcs-timeline li::before {
	content: "";
	position: absolute;
	left: calc(-2rem - 6px);
	top: .5rem;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--primary);
	box-shadow: 0 0 0 5px rgb(43 155 216 / .14);
	transition: background-color .6s var(--reveal-delay, 0ms);
}
.lcs-timeline li.is-visible::before { background: var(--wp--preset--color--accent); }
.lcs-timeline strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; color: var(--wp--preset--color--contrast); }

/* ---------- Team ---------- */
.lcs-team-card {
	padding: 1.6rem !important;
	border-radius: 18px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	transition: transform .3s var(--lcs-ease), border-color .3s;
}
.lcs-team-card:hover { transform: translateY(-4px); border-color: rgb(34 211 238 / .45); }
.lcs-avatar {
	width: 60px; height: 60px;
	display: grid;
	place-items: center;
	margin: 0 0 1rem !important;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--lcs-ink);
	background: var(--wp--preset--gradient--brand);
}
.lcs-team-card h3 { font-size: 1.1rem; margin: 0; }
.lcs-team-card p:last-child { margin: .2rem 0 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Client sectors (details) ---------- */
.lcs-sector {
	margin-block: 0 .8rem !important;
	border-radius: 18px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}
.lcs-sector summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.2rem 1.5rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 600;
}
.lcs-sector summary::-webkit-details-marker { display: none; }
.lcs-sector summary::after { content: "+"; font-size: 1.6rem; color: var(--wp--preset--color--accent); transition: transform .3s var(--lcs-ease); }
.lcs-sector[open] summary::after { transform: rotate(45deg); }
.lcs-sector > :not(summary) { padding-inline: 1.5rem; }
.lcs-client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .2rem 2rem; list-style: none; padding: 0 1.5rem 1.4rem !important; }
.lcs-client-list li { padding: .7rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.lcs-client-list strong { display: block; color: var(--wp--preset--color--contrast); font-weight: 600; }
.lcs-client-list li { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Case study filter ---------- */
.lcs-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.lcs-filter button {
	padding: .55rem 1.15rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
	transition: color .2s, border-color .2s, background-color .2s;
}
.lcs-filter button:hover { color: var(--wp--preset--color--contrast); border-color: rgb(34 211 238 / .5); }
.lcs-filter button[aria-pressed="true"] { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--lcs-ink); }

/* ---------- Single case study ---------- */
.lcs-case-hero { padding-top: clamp(9rem, 20vh, 13rem) !important; }
.lcs-case-hero { padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right) !important; }
.lcs-case-hero.wp-block-cover .wp-block-cover__inner-container { width: 100% !important; max-width: 77.5rem; margin-inline: auto !important; }
.single-case_study .wp-block-post-content .wp-block-image img { border-radius: 18px; }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 form > p, .wpcf7 form label { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: .9rem; color: var(--wp--preset--color--muted); }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	margin-top: .4rem;
	padding: .85rem 1rem;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 9.5rem; }
.wpcf7 :is(input, textarea, select):focus { outline: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px rgb(34 211 238 / .15); }
.wpcf7 input[type="submit"] {
	padding: .85em 1.8em;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--lcs-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .25s, box-shadow .25s;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent); box-shadow: 0 12px 40px -12px rgb(34 211 238 / .75); }
.wpcf7-not-valid-tip { color: #ff9a76; font-size: .85rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; border-radius: 12px; }

/* ---------- Footer ---------- */
.lcs-footer {
	margin-top: var(--wp--preset--spacing--70);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	background: linear-gradient(180deg, var(--wp--preset--color--surface), var(--wp--preset--color--base));
}
.lcs-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.lcs-footer ul { list-style: none; padding: 0; }
.lcs-footer li { margin-bottom: .5rem; }
.lcs-footer a { color: var(--wp--preset--color--contrast); text-decoration: none; transition: color .2s; }
.lcs-footer a:hover { color: var(--wp--preset--color--accent); }
.lcs-footer__bottom { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Keep the header CTA on one line on narrow phones. */
.lcs-header .wp-block-button__link { white-space: nowrap; }

/* ---------- Case-study facts ---------- */
.lcs-case-meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); letter-spacing: .02em; margin: .2rem 0 .6rem; }
.lcs-case-hero .lcs-case-meta { color: rgb(232 238 248 / .8); font-size: var(--wp--preset--font-size--medium); }
.lcs-case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--wp--preset--spacing--40); border-block: 1px solid var(--wp--preset--color--line); padding-block: var(--wp--preset--spacing--40); }
.lcs-case-stat .lcs-counter { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--wp--preset--color--accent); margin: 0; line-height: 1.1; }
.lcs-case-stat__label { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); margin: .3rem 0 0; }
.lcs-case-empty { max-width: 35rem; }

/* Four service cards: 4 across on wide screens, 2 on tablets. */
@media (min-width: 782px) and (max-width: 1099px) { .lcs-services .lcs-cards { flex-wrap: wrap !important; } .lcs-services .lcs-cards > .wp-block-column { flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important; } }

/* ---------- Mobile menu (core navigation overlay) ---------- */
.lcs-menu-logo, .lcs-menu-footer, .lcs-subtoggle { display: none; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 0 !important; background: var(--wp--preset--color--base) !important; }
.is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
.is-menu-open .wp-block-navigation__responsive-dialog { min-height: 100dvh; display: flex; flex-direction: column; padding: 1.1rem var(--wp--style--root--padding-right) calc(1.6rem + env(safe-area-inset-bottom)) var(--wp--style--root--padding-left); }
.is-menu-open .lcs-menu-logo { display: block; width: 7.25rem; margin: 0; }
.is-menu-open .lcs-menu-logo img { width: 7.25rem !important; height: auto; }
.is-menu-open .wp-block-navigation__responsive-container-close { top: 1rem !important; right: var(--wp--style--root--padding-right) !important; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--wp--preset--color--line); border-radius: 50%; }
.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 1.6rem !important; flex: 1; display: flex !important; flex-direction: column; align-items: stretch !important; }
.is-menu-open .wp-block-navigation__container { width: 100%; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; }
.is-menu-open .wp-block-navigation__container > li { width: 100%; display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; justify-content: flex-start !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.is-menu-open .wp-block-navigation__container > li > .wp-block-navigation-item__content { flex: 1; font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; font-weight: 500; padding: .9rem 0 !important; text-align: left; }
.is-menu-open .wp-block-navigation__container > li > .wp-block-navigation-item__content::after { display: none; }
.is-menu-open .lcs-subtoggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); border-radius: 50%; cursor: pointer; }
.is-menu-open .lcs-subtoggle svg { width: 20px; height: 20px; }
.is-menu-open .lcs-subtoggle[aria-expanded="true"] { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.is-menu-open .lcs-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.is-menu-open .lcs-subtoggle:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.is-menu-open .has-child > .wp-block-navigation__submenu-container { display: none !important; position: static !important; width: 100% !important; min-width: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 0 .9rem !important; opacity: 1 !important; visibility: visible !important; height: auto !important; }
.is-menu-open .has-child.lcs-sub-open > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; }
.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; color: var(--wp--preset--color--muted); padding: .55rem 0 .55rem 1rem !important; }
.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; color: var(--wp--preset--color--accent); }
.is-menu-open .lcs-menu-footer { display: flex; flex-direction: column; gap: .9rem; margin-top: auto; padding-top: 2rem; }
.is-menu-open .lcs-menu-footer .wp-block-button__link { width: 100%; text-align: center; }
.is-menu-open .lcs-menu-footer a:not(.wp-block-button__link) { color: var(--wp--preset--color--muted); text-decoration: none; }
.is-menu-open .has-child > .wp-block-navigation__submenu-container,
.is-menu-open .wp-block-navigation__submenu-container > li { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }

/* Partner logos: one light tone on the dark theme, heights balanced per wordmark */
.lcs-marquee li { display: flex; align-items: center; }
.lcs-logo { display: block; width: auto; height: 26px; filter: brightness(0) invert(1); opacity: .6; transition: opacity .3s; }
.lcs-marquee li:hover .lcs-logo { opacity: 1; }
.lcs-logo--honeywell { height: 34px; } .lcs-logo--saia { height: 38px; } .lcs-logo--loxone { height: 22px; } .lcs-logo--wago { height: 30px; } .lcs-logo--janitza { height: 34px; }
.lcs-logo-text { font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.lcs-logo--unifi { height: 30px; } .lcs-logo--hikvision { height: 20px; } .lcs-logo--casatunes { height: 30px; } .lcs-logo--akuvox { height: 34px; }
.lcs-logo-text--with-icon { margin-left: .6rem; font-size: 1.25rem; letter-spacing: .02em; text-transform: none; }

/* ---------- Supervisor demo gate ---------- */
.lcs-supervisor-section { padding-top: var(--wp--preset--spacing--50) !important; }
.lcs-gate__intro { max-width: 47.5rem; margin-bottom: var(--wp--preset--spacing--50); }
.lcs-gate__panels { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--wp--preset--spacing--40); align-items: start; }
@media (max-width: 860px) { .lcs-gate__panels { grid-template-columns: minmax(0, 1fr); } }
.lcs-gate__card { border: 1px solid var(--wp--preset--color--line); border-radius: var(--lcs-radius); background: var(--wp--preset--color--surface); padding: var(--wp--preset--spacing--50); }
.lcs-gate__card h3 { margin-top: 0; }
.lcs-gate__card label { display: block; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-bottom: .3rem; }
.lcs-gate__card input:not([type="checkbox"]):not([type="submit"]), .lcs-gate__card select, .lcs-gate__card textarea { width: 100%; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit; }
.lcs-gate__card input:focus-visible, .lcs-gate__card select:focus-visible, .lcs-gate__card textarea:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }
.lcs-gate__consent label { display: flex; gap: .6rem; align-items: flex-start; color: var(--wp--preset--color--contrast); }
.lcs-gate__hp { position: absolute !important; left: -9999px; }
.lcs-gate__notice { padding: .8rem 1rem; border-radius: 10px; }
.lcs-gate__notice--thanks { background: rgb(34 211 238 / .12); border: 1px solid var(--wp--preset--color--accent); }
.lcs-gate__notice--error { background: rgb(240 90 40 / .12); border: 1px solid var(--wp--preset--color--signal); }
.lcs-gate__small { font-size: var(--wp--preset--font-size--small); }
#lcs-demo-login .button, #lcs-demo-lost button, #lcs-demo-setpw button { cursor: pointer; font: inherit; font-weight: 600; color: #05080f; background: var(--wp--preset--color--primary); border: 0; border-radius: 999px; padding: .85em 1.6em; }
#lcs-demo-login .button:hover, #lcs-demo-login .button:focus-visible { background: var(--wp--preset--color--accent); }
#lcs-demo-login .login-remember label { display: flex; gap: .5rem; align-items: center; }
/* On the Supervisor demo the app has its own top bar, so the site header scrolls away instead of covering it. */
body:has(#lcs-supervisor) .lcs-header { position: absolute; }
.lcs-nickname { color: var(--wp--preset--color--accent); }

/*
 * Constrained layouts centre every child narrower than the content width on its own, which staggered
 * eyebrows, headings, intros and buttons on wide screens. Left-align narrow children to the 77.5rem content edge.
 */
.lcs-page-hero.is-layout-constrained > :not(.alignfull):not(.has-text-align-center),
.lcs-hero.is-layout-constrained > :not(.lcs-network):not(.lcs-hero__fade):not(.alignfull),
.is-layout-constrained > .lcs-section-head,
.is-layout-constrained > .wp-block-group.reveal:has(> .lcs-section-head) {
	margin-left: max(0px, calc((100% - 77.5rem) / 2)) !important;
	margin-right: auto !important;
}

/* Contact: two matching cards */
.lcs-contact > .wp-block-column { flex-basis: 50% !important; display: flex; flex-direction: column; }
.lcs-contact > .wp-block-column > .is-style-glow-card { flex: 1; height: auto; }
.lcs-contact__row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.lcs-contact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgb(34 211 238 / .1); color: var(--wp--preset--color--accent); }
.lcs-contact__icon svg { width: 22px; height: 22px; }
.lcs-contact__label { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); letter-spacing: .04em; }
.lcs-contact__value { margin: .2rem 0 0; font-size: var(--wp--preset--font-size--medium); }
.lcs-contact__actions { margin-top: var(--wp--preset--spacing--40); }

/* Service pages: protocol chips, card grids and related projects */
.lcs-dev-cards { gap: var(--wp--preset--spacing--40) !important; margin-top: var(--wp--preset--spacing--50); }
.lcs-related .lcs-case-grid ul { list-style: none; padding: 0; margin: var(--wp--preset--spacing--50) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: var(--wp--preset--spacing--40); }
.lcs-related .lcs-case-card { min-height: 23.75rem; }
.lcs-download { margin-top: var(--wp--preset--spacing--50); gap: var(--wp--preset--spacing--40); }

/* The glass header's blur makes it the containing block for fixed children, which trapped the mobile
   menu inside the header once the page was scrolled. Drop the effect while the menu is open. */
.lcs-header:has(.is-menu-open) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transform: none !important; filter: none !important; }
.lcs-gate__lost { margin-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; }
.lcs-gate__lost summary { cursor: pointer; color: var(--wp--preset--color--accent); font-size: var(--wp--preset--font-size--small); }
.lcs-gate__lost form { margin-top: .8rem; }

/* ---------- Instagram strip ([lcs_instagram], from lcs-core) ---------- */
.lcs-ig { padding-block: var(--wp--preset--spacing--70); }
.lcs-ig__head, .lcs-ig__follow { max-width: 77.5rem; margin-inline: auto; padding-inline: var(--wp--preset--spacing--40); }
.lcs-ig__head h2 { margin: .6rem 0 .8rem; }
.lcs-ig__intro { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--large); max-width: 46ch; margin: 0 0 var(--wp--preset--spacing--50); }
/* Slowly drifting strips (Instagram photos, reviews): effects.js loops them; without motion they scroll by hand. */
.lcs-scroller-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lcs-scroller-viewport:has(.is-running) { overflow: hidden; }
.lcs-scroller { display: flex; gap: 1rem; list-style: none; margin: 0; padding: .5rem 0 1rem; width: max-content; }
.lcs-scroller > li { flex: none; scroll-snap-align: start; }
.lcs-scroller.is-running { animation: lcs-marquee var(--marquee-duration, 60s) linear infinite; }
.lcs-scroller-viewport:is(:hover, :focus-within) .lcs-scroller { animation-play-state: paused; }
.lcs-ig__strip li { width: clamp(13rem, 22vw, 20rem); }
.lcs-ig__strip a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--lcs-radius); border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.lcs-ig__strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--lcs-ease); }
.lcs-ig__strip a:is(:hover, :focus-visible) img { transform: scale(1.06); }
.lcs-ig__caption {
	position: absolute; inset: auto 0 0 0;
	padding: 2.5rem 1rem 1rem;
	font-size: var(--wp--preset--font-size--small); line-height: 1.45; color: #fff;
	background: linear-gradient(180deg, transparent, rgb(4 8 15 / .9));
	opacity: 0; transform: translateY(.5rem); transition: opacity .3s, transform .3s var(--lcs-ease);
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.lcs-ig__strip a:is(:hover, :focus-visible) .lcs-ig__caption { opacity: 1; transform: none; }
.lcs-ig__badge { position: absolute; top: .8rem; right: .8rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; font-size: .75rem; color: #fff; background: rgb(4 8 15 / .6); }
.lcs-ig__follow { margin-top: var(--wp--preset--spacing--40); }
.lcs-ig__button {
	display: inline-block; padding: .85em 1.6em; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 600;
	transition: border-color .25s, color .25s;
}
.lcs-ig__button:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* ---------- Cookie banner and preferences (CookieYes) ----------
 * CookieYes writes its colours inline, so these need !important to follow the site's theme. */
.cky-consent-container .cky-consent-bar, .cky-preference-center {
	background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important;
	border: 1px solid var(--wp--preset--color--line) !important; border-radius: var(--lcs-radius) !important;
	box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8) !important; font-family: var(--wp--preset--font-family--body) !important;
}
.cky-consent-container :is(.cky-title, .cky-notice-des, .cky-notice-des p), [data-cky-tag="powered-by"],
.cky-preference-center :is(.cky-preference-title, .cky-preference-content-wrapper, .cky-preference-content-wrapper p, .cky-accordion-header .cky-accordion-btn, .cky-accordion-header-des, .cky-accordion-header-des p, .cky-always-active, .cky-audit-table *) {
	color: var(--wp--preset--color--contrast) !important; background-color: transparent !important;
}
.cky-consent-container .cky-title, .cky-preference-center .cky-preference-title { font-family: var(--wp--preset--font-family--heading) !important; }
.cky-consent-container .cky-notice-des, .cky-preference-center :is(.cky-preference-content-wrapper, .cky-accordion-header-des) { opacity: .8; }
.cky-btn {
	border-radius: 999px !important; font-weight: 600 !important; padding: .6em 1.2em !important;
	color: var(--wp--preset--color--contrast) !important; background: transparent !important; border: 1px solid var(--wp--preset--color--line) !important;
}
.cky-btn:is(.cky-btn-accept, .cky-btn-preferences) { color: #05080f !important; background: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; }
.cky-btn:hover { opacity: .9; }
.cky-preference-center :is(.cky-preference-header, .cky-footer-wrapper, .cky-accordion, .cky-prefrence-btn-wrapper) { border-color: var(--wp--preset--color--line) !important; background: transparent !important; }
.cky-preference-center .cky-footer-shadow { background: linear-gradient(180deg, transparent, var(--wp--preset--color--surface)) !important; }
.cky-preference-center :is(.cky-btn-close img, .cky-accordion-chevron i) { filter: invert(1); }
.cky-preference-center .cky-show-desc-btn { color: var(--wp--preset--color--accent) !important; }
.cky-preference-center .cky-switch input[type="checkbox"]:checked { background: var(--wp--preset--color--primary) !important; }
.cky-overlay { background: rgb(2 5 10 / .7) !important; }
.cky-btn-revisit-wrapper { background: var(--wp--preset--color--primary) !important; }

/* ---------- Reviews ([lcs_reviews], from lcs-core) ---------- */
.lcs-reviews { padding-block: var(--wp--preset--spacing--70); }
.lcs-reviews__head, .lcs-reviews__actions, .lcs-reviews__static { max-width: 77.5rem; margin-inline: auto; padding-inline: var(--wp--preset--spacing--40); }
.lcs-reviews__head { margin-bottom: var(--wp--preset--spacing--50); }
.lcs-reviews__head h2 { margin: .6rem 0 .8rem; }
.lcs-reviews__summary { display: flex; align-items: center; gap: .7rem; color: var(--wp--preset--color--muted); margin: 0; }
.lcs-reviews__summary .lcs-review__stars { margin: 0; }
.lcs-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--wp--preset--spacing--40); list-style: none; padding: 0; margin: 0; }
.lcs-review {
	display: flex; flex-direction: column; gap: .8rem;
	padding: 1.6rem; border-radius: var(--lcs-radius);
	border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface);
}
.lcs-reviews__strip .lcs-review { width: clamp(18rem, 28vw, 26rem); }
.lcs-review blockquote { margin: 0; flex: 1; }
.lcs-review blockquote p { margin: 0; line-height: 1.6; }
.lcs-reviews__strip .lcs-review blockquote p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.lcs-review__stars { margin: 0; color: #fbbf24; letter-spacing: .12em; }
.lcs-review__stars span { color: var(--wp--preset--color--line); }
.lcs-review__by { margin: 0; display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.lcs-review__by :is(a, strong) { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.lcs-review__by a:hover { color: var(--wp--preset--color--accent); }
.lcs-review__source::before { content: "G"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-right: .35rem; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 700; font-size: .7rem; }
.lcs-reviews__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--wp--preset--spacing--40); }
