/* ==========================================================================
   PixelLuka Nova: main stylesheet
   ========================================================================== */

:root {
	--ink: #030b1e;
	--ink-2: #06142e;
	--panel: #0a1b3f;
	--line: rgba(128, 170, 255, .16);
	--line-strong: rgba(128, 170, 255, .34);
	--brand: #003777;
	--electric: #2f7bff;
	--signal: #3de6ff;
	--text: #eaf1ff;
	--muted: #93a7cb;
	--paper: #e9f0ff;
	--paper-ink: #0a1b3f;
	--grad: linear-gradient(110deg, var(--electric), var(--signal));
	--font-display: 'Unbounded', 'Trebuchet MS', system-ui, sans-serif;
	--font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: radial-gradient(60rem 36rem at 90% -8%, rgba(47, 123, 255, .16), transparent 62%), var(--ink);
	color: var(--text);
	font: 400 1rem/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

p { margin: 0 0 1.1em; }

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	z-index: 100;
	top: 1rem; left: 1rem;
	width: auto; height: auto;
	margin: 0; padding: .8rem 1.2rem;
	clip: auto; clip-path: none;
	background: var(--signal);
	color: var(--ink);
	font-weight: 700;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Scroll progress ---------------------------------------------------------- */
.progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 2px;
	z-index: 70;
	pointer-events: none;
}
.progress span {
	display: block;
	height: 100%;
	background: var(--grad);
	transform-origin: left;
	transform: scaleX(var(--p, 0));
}

/* Buttons ------------------------------------------------------------------ */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 1.7rem;
	border: 1px solid transparent;
	border-radius: 3px;
	font: 700 .95rem/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform .3s var(--ease), background-position .5s var(--ease), border-color .3s, color .3s, background-color .3s;
}
.btn--sm { padding: .7rem 1.2rem; font-size: .88rem; }
.btn--primary {
	background: var(--grad);
	background-size: 160% 100%;
	color: var(--ink);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn--ghost {
	border-color: var(--line-strong);
	background: rgba(3, 11, 30, .35);
	color: var(--text);
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-2px); }

/* Header ------------------------------------------------------------------- */
/* Mobile-first. The menu-button layout is the default; the full bar switches on from
   1101px, and only while it actually fits (main.js adds .nav-compact when it does not). */

@media (max-width: 600px) { :root { --header-h: 66px; } }

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 60;
	height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
	padding-top: env(safe-area-inset-top, 0px);
	border-bottom: 1px solid transparent;
	transition: border-color .4s;
}
/* The blurred background lives on a pseudo-element. A backdrop-filter on the header itself
   would make it the containing block of the fixed full-screen menu and trap it in the bar. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(3, 11, 30, .8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	opacity: 0;
	transition: opacity .4s;
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }
.site-header.is-scrolled,
.nav-open .site-header { border-color: var(--line); }

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Brand */
.brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: .7rem;
	font: 600 1.15rem/1 var(--font-display);
	letter-spacing: -.02em;
	text-decoration: none;
}
.brand__mark rect { transition: fill .4s, opacity .4s; }
.brand__mark .b1 { fill: var(--electric); }
.brand__mark .b2 { fill: var(--signal); opacity: .5; }
.brand__mark .b3 { fill: var(--signal); opacity: .5; }
.brand__mark .b4 { fill: var(--signal); }
.brand:hover .b1 { fill: var(--signal); }
.brand:hover .b4 { fill: var(--electric); }
.brand:hover .b2, .brand:hover .b3 { opacity: 1; }
.custom-logo-link { display: inline-flex; flex: none; }
.custom-logo { max-height: 44px; width: auto; }
@media (max-width: 480px) {
	.brand { gap: .55rem; font-size: 1.02rem; }
	.brand__mark { width: 24px; height: 24px; }
	.custom-logo { max-height: 34px; }
}

/* Menu button */
.menu-toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px; height: 48px;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--text);
	cursor: pointer;
	transition: border-color .3s, background-color .3s;
}
.menu-toggle:hover { border-color: var(--signal); }
.menu-toggle__bars { display: grid; gap: 6px; width: 20px; }
.menu-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	transition: transform .35s var(--ease);
}
.nav-open .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-open { overflow: hidden; }

/* Header button: shown beside the menu button on tablets, inside the menu on phones. */
.site-header__cta { display: none; flex: none; }
@media (min-width: 600px) {
	.site-header__cta { display: inline-flex; margin-left: auto; }
	.site-header__cta + .menu-toggle { margin-left: 0; }
	.primary-nav__cta { display: none !important; }
}

/* Full-screen menu (default layout) */
.primary-nav {
	position: fixed;
	inset: 0;
	z-index: -1;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding:
		calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem)
		max(var(--gutter), env(safe-area-inset-right, 0px))
		calc(2.5rem + env(safe-area-inset-bottom, 0px))
		max(var(--gutter), env(safe-area-inset-left, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: rgba(3, 11, 30, .98);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform .6s var(--ease), visibility .6s;
}
.admin-bar .primary-nav { padding-top: calc(var(--header-h) + 32px + 1.5rem); }
@media (max-width: 782px) { .admin-bar .primary-nav { padding-top: calc(var(--header-h) + 46px + 1.5rem); } }
.nav-open .primary-nav { transform: none; visibility: visible; }
/* Centre the content when it is short, but let it scroll from the top when it is tall. */
.primary-nav > :first-child { margin-top: auto; }
.primary-nav > :last-child { margin-bottom: auto; }

.nav-list {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 36rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list a {
	display: block;
	padding: .9rem 0;
	color: var(--text);
	font: 500 clamp(1.3rem, 5.5vw, 1.9rem)/1.25 var(--font-display);
	text-decoration: none;
	transition: color .3s;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a { color: var(--signal); }

.primary-nav__cta { display: inline-flex; align-self: flex-start; }

/* Sub-menus: collapsed, opened with the arrow button (added by main.js). */
.nav-list .menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.nav-list .menu-item-has-children > a { flex: 1; min-width: 0; }
.submenu-toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem; height: 3rem;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--text);
	cursor: pointer;
}
.submenu-toggle svg { transition: transform .3s var(--ease); }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.nav-list .sub-menu {
	display: none;
	flex-basis: 100%;
	margin: 0;
	padding: 0 0 .75rem 1rem;
	list-style: none;
}
.nav-list .is-open > .sub-menu { display: block; }
.nav-list .sub-menu a {
	padding: .65rem 0;
	color: var(--muted);
	font: 600 1.05rem/1.3 var(--font-body);
}

/* Full bar: wide screens, while it fits */
@media (min-width: 1101px) {
	html:not(.nav-compact) .menu-toggle,
	html:not(.nav-compact) .primary-nav__cta { display: none !important; }
	html:not(.nav-compact) .site-header__bar { gap: clamp(1rem, 2.2vw, 2rem); }
	html:not(.nav-compact) .site-header__cta { display: inline-flex; margin-left: 0; }

	html:not(.nav-compact) .primary-nav {
		position: static;
		z-index: auto;
		display: block;
		margin-left: auto;
		padding: 0;
		overflow: visible;
		background: none;
		transform: none;
		visibility: visible;
		transition: none;
	}
	html:not(.nav-compact) .primary-nav > :first-child,
	html:not(.nav-compact) .primary-nav > :last-child { margin: 0; }

	html:not(.nav-compact) .nav-list {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: clamp(1rem, 2.2vw, 2rem);
		width: auto;
		max-width: none;
	}
	html:not(.nav-compact) .nav-list > li { flex: none; border-bottom: 0; }
	html:not(.nav-compact) .nav-list a {
		position: relative;
		display: inline-block;
		padding: .4rem 0;
		color: var(--muted);
		font: 600 .95rem/1.4 var(--font-body);
		white-space: nowrap;
	}
	html:not(.nav-compact) .nav-list a::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 2px;
		background: var(--grad);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .4s var(--ease);
	}
	html:not(.nav-compact) .nav-list a:hover,
	html:not(.nav-compact) .nav-list .current-menu-item > a,
	html:not(.nav-compact) .nav-list .current_page_item > a,
	html:not(.nav-compact) .nav-list .current-menu-ancestor > a { color: var(--text); }
	html:not(.nav-compact) .nav-list a:hover::after,
	html:not(.nav-compact) .nav-list .current-menu-item > a::after,
	html:not(.nav-compact) .nav-list .current_page_item > a::after,
	html:not(.nav-compact) .nav-list .current-menu-ancestor > a::after { transform: scaleX(1); }

	/* Dropdowns: hover, keyboard focus, or the arrow button (for touch). */
	html:not(.nav-compact) .nav-list .menu-item-has-children { position: relative; flex-wrap: nowrap; gap: .15rem; }
	html:not(.nav-compact) .submenu-toggle {
		width: 1.5rem; height: 1.5rem;
		border: 0;
		color: var(--muted);
	}
	html:not(.nav-compact) .nav-list .sub-menu {
		position: absolute;
		top: 100%; left: -1rem;
		display: block;
		min-width: 14rem;
		padding: .6rem 1rem;
		background: var(--ink-2);
		border: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	html:not(.nav-compact) .nav-list .menu-item:hover > .sub-menu,
	html:not(.nav-compact) .nav-list .menu-item:focus-within > .sub-menu,
	html:not(.nav-compact) .nav-list .menu-item.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	html:not(.nav-compact) .nav-list .sub-menu a { font-size: .92rem; white-space: nowrap; }
}

/* Hero --------------------------------------------------------------------- */
.pixelfield {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
}

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 9vh, 7rem);
	overflow: hidden;
	isolation: isolate;
}
.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(3, 11, 30, .92) 0%, rgba(3, 11, 30, .55) 46%, rgba(3, 11, 30, 0) 82%),
		linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
.hero__title {
	max-width: 15ch;
	margin-bottom: .5em;
	font-size: clamp(2.4rem, 6.4vw, 5.6rem);
	line-height: 1.04;
}
.w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: .1em;
	margin-bottom: -.1em;
}
.w > span {
	display: inline-block;
	transform: translateY(112%);
	animation: rise .95s var(--ease) forwards;
	animation-delay: calc(.2s + var(--i, 0) * .09s);
}
@keyframes rise { to { transform: none; } }

.hero__text,
.hero__actions {
	opacity: 0;
	animation: settle .9s var(--ease) 1s forwards;
}
.hero__actions { animation-delay: 1.15s; }
@keyframes settle {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
.hero__text {
	max-width: 46ch;
	margin-bottom: 2rem;
	color: #c4d3ee;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--flush { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--panel {
	background: var(--ink-2);
	border-block: 1px solid var(--line);
}
.section__head { max-width: 62ch; }
.section__head--split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(1.5rem, 5vw, 5rem);
	max-width: none;
	align-items: end;
}
.section__title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
.section__lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.section__head--split .section__lede { margin-bottom: 1.6rem; }

@media (max-width: 860px) {
	.section__head--split { grid-template-columns: 1fr; align-items: start; }
}

/* Reveal: used on the three pillars only ----------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Pillars ------------------------------------------------------------------ */
.pillars {
	margin: 3.5rem 0 0;
	list-style: none;
	border-top: 1px solid var(--line);
}
.pillar { border-bottom: 1px solid var(--line); }
.pillar__link {
	position: relative;
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr) 3.2rem;
	gap: 2rem;
	align-items: center;
	padding: 2.6rem 1rem;
	text-decoration: none;
	isolation: isolate;
}
.pillar__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(47, 123, 255, .24), rgba(61, 230, 255, .03));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .7s var(--ease);
}
.pillar__link:hover::before,
.pillar__link:focus-visible::before { transform: scaleX(1); }
.pillar__icon { color: var(--signal); }
.pillar__title { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2.15rem); }
.pillar__text { margin: 0; max-width: 54ch; color: var(--muted); }
.pillar__go {
	display: grid;
	place-items: center;
	width: 3.2rem; height: 3.2rem;
	border: 1px solid var(--line-strong);
	transition: background-color .4s, color .4s, transform .5s var(--ease), border-color .4s;
}
.pillar__link:hover .pillar__go,
.pillar__link:focus-visible .pillar__go {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--ink);
	transform: rotate(-45deg);
}

@media (max-width: 860px) {
	.pillar__link { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem 1.25rem; padding: 2rem .25rem; }
	.pillar__text { grid-column: 1 / -1; }
	.pillar__go { display: none; }
}

/* Process timeline --------------------------------------------------------- */
.process {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.process__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }

.process__steps {
	position: relative;
	margin: 0;
	list-style: none;
	--progress: 1;
}
.js .process__steps { --progress: 0; }
.process__steps::before,
.process__steps::after {
	content: "";
	position: absolute;
	left: 1.3rem; top: 0;
	width: 2px;
}
.process__steps::before { bottom: 0; background: var(--line); }
.process__steps::after {
	height: calc(var(--progress) * 100%);
	background: var(--grad);
	box-shadow: 0 0 16px rgba(61, 230, 255, .7);
}
.step {
	position: relative;
	padding: 0 0 4.5rem 5rem;
}
.step:last-child { padding-bottom: 0; }
.js .step { opacity: .38; transition: opacity .6s; }
.js .step.is-active { opacity: 1; }
.step__num {
	position: absolute;
	left: 0; top: 0;
	display: grid;
	place-items: center;
	width: 2.6rem; height: 2.6rem;
	background: var(--ink-2);
	border: 1px solid var(--line-strong);
	font: 500 .9rem/1 var(--font-display);
	transition: background .5s, color .5s, border-color .5s;
}
.step.is-active .step__num,
.process__steps:not(.is-live) .step__num {
	background: var(--grad);
	border-color: transparent;
	color: var(--ink);
}
.step__title { margin: .2rem 0 .5rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.step__text { margin: 0; max-width: 46ch; color: var(--muted); }

@media (max-width: 860px) {
	.process { grid-template-columns: 1fr; }
	.process__intro { position: static; }
}

/* Stats -------------------------------------------------------------------- */
.stats { padding: clamp(3rem, 6vw, 5rem) 0; }
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
	padding: .5rem clamp(1rem, 2.5vw, 2.2rem);
	border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
	margin: 0 0 .3rem;
	font: 500 clamp(2.2rem, 4.6vw, 4rem)/1 var(--font-display);
	letter-spacing: -.03em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-variant-numeric: tabular-nums;
}
.stat__label { margin: 0; color: var(--muted); font-weight: 600; }

@media (max-width: 760px) {
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Service tiles ------------------------------------------------------------ */
.tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 3.5rem;
	background: var(--line);
	border: 1px solid var(--line);
}
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3rem;
	min-height: 15rem;
	padding: 2rem;
	background: var(--ink);
	text-decoration: none;
	overflow: hidden;
}
.tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 50%), rgba(61, 230, 255, .2), transparent 60%);
	opacity: 0;
	transition: opacity .35s;
	pointer-events: none;
}
.tile:hover::before,
.tile:focus-visible::before { opacity: 1; }
.tile__icon { position: relative; color: var(--signal); }
.tile__title {
	position: relative;
	margin: auto 0 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 11rem; gap: 2rem; } }

/* Clients ------------------------------------------------------------------ */
.clients {
	padding: 3.5rem 0;
	background: var(--paper);
	color: var(--paper-ink);
	overflow: hidden;
}
.clients__title { margin-bottom: 2rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.marquee {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4.5rem;
	margin: 0;
	padding: 0 4.5rem 0 0;
	list-style: none;
	animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img {
	display: block;
	height: 3rem;
	width: auto;
	max-width: 9.5rem;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .72;
	transition: filter .3s, opacity .3s;
}
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Call to action ----------------------------------------------------------- */
.cta {
	position: relative;
	padding: clamp(5rem, 11vw, 9rem) 0;
	overflow: hidden;
	isolation: isolate;
	border-top: 1px solid var(--line);
}
.cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(3, 11, 30, .9), rgba(3, 11, 30, .35));
}
.cta__title { max-width: 18ch; font-size: clamp(2rem, 5vw, 4rem); }
.cta__text { max-width: 44ch; margin-bottom: 2rem; color: #c4d3ee; font-size: 1.15rem; }
.cta__link {
	color: var(--text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: .3em;
	transition: color .3s, text-decoration-color .3s;
}
.cta__link:hover { color: var(--signal); text-decoration-color: var(--signal); }

/* Footer ------------------------------------------------------------------- */
.site-footer {
	background: var(--ink-2);
	border-top: 1px solid var(--line);
	padding-top: clamp(3rem, 6vw, 5rem);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.75rem;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* Tablets: brand across the top, then two columns. */
@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem clamp(2rem, 5vw, 4rem); }
	.site-footer__brand { grid-column: 1 / -1; }
}
/* Desktop: three columns. */
@media (min-width: 1000px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__brand { grid-column: auto; }
}
.site-footer__text { max-width: 40ch; margin: 1.2rem 0 1.4rem; color: var(--muted); }
.footer-title { margin-bottom: 1.2rem; font: 600 1rem/1.2 var(--font-display); }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.footer-list .icon { flex: none; margin-top: .25em; color: var(--signal); }
.footer-list a { color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-list a:hover { color: var(--signal); }
.footer-list a.btn { color: var(--text); margin-top: .4rem; }
.footer-list a.btn:hover { color: var(--signal); }

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.5rem;
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .9rem;
}
.site-footer__base p { margin: 0; }
.to-top {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem .9rem;
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .3s, border-color .3s, color .3s;
}
.to-top:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.social { display: flex; flex-wrap: wrap; gap: .6rem; }
.social__link {
	display: grid;
	place-items: center;
	width: 2.75rem; height: 2.75rem;
	border: 1px solid var(--line-strong);
	color: var(--text);
	transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.social__link:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: translateY(-3px); }

/* Touch screens: bigger tap areas for footer links. */
@media (pointer: coarse) {
	.footer-list li { margin-bottom: .2rem; }
	.footer-list a:not(.btn) { display: inline-block; padding: .55rem 0; }
	.footer-list a.btn { margin-top: .8rem; }
	.to-top { padding: .75rem 1rem; }
}

/* Inner pages -------------------------------------------------------------- */
.page-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--line);
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(3, 11, 30, .9), rgba(3, 11, 30, .3));
}
.page-hero__title { max-width: 20ch; margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.page-hero__lede { max-width: 54ch; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.1rem; }

.entry-content { font-size: 1.08rem; }
.entry-content > :where(:not(.alignwide):not(.alignfull):not(.elementor):not(.wp-block-group):not(.wp-block-cover)) {
	max-width: 72ch;
}
.entry-content--intro { margin-bottom: 3rem; }
.entry-content a { color: var(--signal); }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 2em; }
.entry-content h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-top: 1.8em; }
.entry-content img { height: auto; }
.entry-content blockquote {
	margin: 2rem 0;
	padding: .2rem 0 .2rem 1.5rem;
	border-left: 3px solid var(--signal);
	color: #c4d3ee;
	font-size: 1.2rem;
}
.entry-content pre, .entry-content code { background: var(--panel); border-radius: 3px; }
.entry-content code { padding: .15em .4em; font-size: .92em; }
.entry-content pre { padding: 1.2rem; overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .75rem; border: 1px solid var(--line); text-align: left; }
.entry-content .alignwide { max-width: 1100px; margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .9rem; }

.single__image { margin: 0 0 3rem; }
.single__image img { display: block; width: 100%; max-height: 32rem; object-fit: cover; }
.single__tags { margin-top: 2.5rem; color: var(--muted); }
.single__tags a { margin-right: .6rem; color: var(--signal); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.post-navigation a { display: block; padding: 1.4rem; background: var(--ink); text-decoration: none; font-family: var(--font-display); }
.post-navigation a:hover { background: var(--panel); }
.post-navigation .nav-next { text-align: right; }
.nav-sub { display: block; margin-bottom: .3rem; color: var(--muted); font: 600 .85rem var(--font-body); }

/* Blog grid ---------------------------------------------------------------- */
.posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.post-card { display: flex; flex-direction: column; background: var(--ink); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand), var(--ink-2)); }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.6rem; }
.post-card__date { margin-bottom: .6rem; color: var(--muted); font-size: .88rem; }
.post-card__title { margin-bottom: .7rem; font-size: 1.2rem; line-height: 1.3; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--signal); }
.post-card__excerpt { margin: 0; color: var(--muted); }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.8rem; height: 2.8rem;
	padding: 0 1rem;
	border: 1px solid var(--line-strong);
	text-decoration: none;
	font-weight: 700;
	transition: background-color .3s, color .3s;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.empty { max-width: 40rem; padding: 3rem 0; }

@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } .post-navigation .nav-links { grid-template-columns: 1fr; } }

/* Search form -------------------------------------------------------------- */
.search-form { display: flex; gap: .5rem; max-width: 30rem; margin: 1.5rem 0; }
.search-form label { flex: 1; }
.search-field, .field input, .field select, .field textarea {
	width: 100%;
	padding: .9rem 1rem;
	background: var(--ink-2);
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	color: var(--text);
	font: inherit;
	transition: border-color .3s, box-shadow .3s;
}
.search-field:focus, .field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--signal);
	box-shadow: 0 0 0 3px rgba(61, 230, 255, .18);
}
.search-submit {
	padding: 0 1.4rem;
	background: var(--grad);
	border: 0;
	border-radius: 3px;
	color: var(--ink);
	font: 700 .95rem var(--font-body);
	cursor: pointer;
}

/* Contact ------------------------------------------------------------------ */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.contact__info .footer-list { margin-bottom: 2rem; }
.contact__info .footer-list li { font-size: 1.05rem; }
.contact__form {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--ink-2);
	border: 1px solid var(--line);
}
.field { margin: 0 0 1.25rem; }
.field label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .95rem; }
.field textarea { resize: vertical; min-height: 9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--signal); background: rgba(61, 230, 255, .08); }
.notice--error { border-left-color: #ff6b81; background: rgba(255, 107, 129, .1); }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Services page ------------------------------------------------------------ */
.service-list { margin: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2rem;
	align-items: center;
	padding: 2.2rem 0;
	border-bottom: 1px solid var(--line);
}
.service-row:target { background: linear-gradient(90deg, rgba(47, 123, 255, .18), transparent); }
.service-row__icon { color: var(--signal); }
.service-row__title { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.service-row__text { margin: 0; color: var(--muted); max-width: 52ch; }

@media (max-width: 760px) {
	.service-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .8rem 1.2rem; }
	.service-row__text { grid-column: 1 / -1; }
}

/* Portfolio ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
	padding: .65rem 1.2rem;
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	color: var(--text);
	font: 600 .9rem var(--font-body);
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--signal); }
.filter.is-active { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--panel);
	text-decoration: none;
}
.work.is-hidden { display: none; }
.work img, .work__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work__placeholder { background: linear-gradient(135deg, var(--brand), var(--ink-2)); }
.work:hover img, .work:hover .work__placeholder { transform: scale(1.06); }
.work__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	flex-direction: column;
	padding: 3rem 1.25rem 1.1rem;
	background: linear-gradient(0deg, rgba(3, 11, 30, .92), transparent);
	transform: translateY(35%);
	transition: transform .6s var(--ease);
}
.work:hover .work__caption, .work:focus-visible .work__caption { transform: none; }
.work__title { font: 500 1.1rem/1.3 var(--font-display); }
.work__type { color: var(--signal); font-size: .88rem; font-weight: 600; }

@media (max-width: 960px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } .work__caption { transform: none; } }

/* 404 ---------------------------------------------------------------------- */
.notfound {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 2rem) 0 4rem;
	overflow: hidden;
	isolation: isolate;
}
.notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(3, 11, 30, .85), rgba(3, 11, 30, .25)); }
.notfound__code {
	margin: 0;
	font: 600 clamp(5rem, 22vw, 15rem)/1 var(--font-display);
	letter-spacing: -.05em;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.notfound__title { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.notfound__text { max-width: 44ch; color: var(--muted); }

/* WordPress alignment helpers --------------------------------------------- */
.aligncenter { display: block; margin-inline: auto; }
.sticky, .bypostauthor, .gallery-caption { display: block; }

/* ==========================================================================
   Additional pages
   ========================================================================== */

.section__lede--wide { max-width: 78ch; }
.footer-list li strong { color: var(--text); }
.footer-list li > div { line-height: 1.7; }

/* Home: recent work + blog ------------------------------------------------- */
.teaser {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 3rem;
}
.teaser__item { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); }
.teaser__item:nth-child(even) { transform: translateY(2rem); }
.teaser__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.teaser__item:hover img { transform: scale(1.07); }
.teaser { padding-bottom: 2rem; }
@media (max-width: 760px) {
	.teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.teaser__item:nth-child(even) { transform: none; }
}

/* About -------------------------------------------------------------------- */
.vm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 6vw, 6rem);
}
.vm__item {
	padding-top: 1.8rem;
	border-top: 2px solid;
	border-image: var(--grad) 1;
}
.vm__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.vm__item p { max-width: 54ch; margin: 0; color: var(--muted); font-size: 1.1rem; }

.story {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.story__title { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.story__body p { color: var(--muted); }
.story__body .story__lead { color: var(--text); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.story__body .btn { margin-top: 1rem; }
.service-list--spaced { margin-top: 3rem; }

.team {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 3rem;
}
.member { margin: 0; }
.member__photo {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: linear-gradient(135deg, var(--brand), var(--ink-2));
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initial { font: 600 4rem/1 var(--font-display); color: var(--signal); }
.member__name { display: block; margin-top: 1rem; font: 500 1.1rem/1.3 var(--font-display); }
.member__role { display: block; color: var(--muted); font-size: .95rem; }

@media (max-width: 960px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.vm, .story { grid-template-columns: 1fr; }
	.story__title { position: static; }
}

/* Legal pages -------------------------------------------------------------- */
.legal { display: block; }
.legal.has-toc {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.toc:empty { display: none; }
.toc__title { margin: 0 0 1rem; font: 600 1rem/1.2 var(--font-display); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a {
	display: block;
	padding: .5rem 0 .5rem 1rem;
	border-left: 2px solid var(--line);
	color: var(--muted);
	font-size: .95rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color .3s, border-color .3s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { border-color: var(--signal); color: var(--text); }
.entry-content--legal { font-size: 1rem; }
.entry-content--legal h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.entry-content--legal h2:first-child { margin-top: 0; }
@media (max-width: 860px) {
	.legal.has-toc { grid-template-columns: 1fr; }
	.toc { position: static; }
}

/* Page-builder content (Elementor) on the dark theme ---------------------- */
.entry-content .elementor-widget-text-editor,
.entry-content .elementor-widget-heading .elementor-heading-title,
.entry-content .elementor-icon-list-text,
.entry-content .elementor-widget-text-editor p { color: inherit !important; }

/* Blog --------------------------------------------------------------------- */
.chips, .subnav {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}
.subnav { margin: 2rem 0 0; }
.chips a, .subnav a {
	display: inline-block;
	padding: .6rem 1.2rem;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .3s, color .3s, border-color .3s;
}
.chips a:hover, .subnav a:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.featured-post {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	margin-bottom: 2rem;
	background: var(--ink-2);
	border: 1px solid var(--line);
}
.featured-post__media { display: block; min-height: 18rem; overflow: hidden; background: var(--panel); }
.featured-post__media img, .featured-post__media .post-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.featured-post:hover .featured-post__media img { transform: scale(1.04); }
.featured-post__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 4vw, 3.2rem); }
.featured-post__title { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.featured-post__title a { text-decoration: none; }
.featured-post__title a:hover { color: var(--signal); }
.featured-post__body .post-card__excerpt { margin-bottom: 1.6rem; }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } }

.contact--compact { align-items: center; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-bottom: 2rem;
	color: var(--muted);
	font-size: .92rem;
	font-weight: 600;
}
.post-meta__cat { color: var(--signal); text-decoration: none; }
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.share__label { color: var(--muted); font-weight: 600; }
.case__back { margin-top: 2.5rem; }
.posts--home { margin-top: 3rem; }

/* Contact ------------------------------------------------------------------ */
.method { margin: 0; padding-left: 1.3rem; color: var(--muted); }
.method li { margin-bottom: .9rem; }
.method strong { color: var(--text); }
.method__title { margin-top: 2.5rem; font-size: 1.2rem; }
.contact__info .social { margin-top: 1.5rem; }
.map {
	height: min(28rem, 60vh);
	margin-top: clamp(3rem, 6vw, 5rem);
	border-top: 1px solid var(--line);
	background: var(--ink-2);
}
.map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(.5) invert(.9) hue-rotate(180deg) contrast(.9);
}

/* Portfolio media ---------------------------------------------------------- */
.reels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 3rem;
}
.reel { background: #000; border: 1px solid var(--line); }
.reel video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

.photos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .75rem;
	margin-top: 3rem;
}
.photo {
	position: relative;
	aspect-ratio: 1;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--panel);
	cursor: zoom-in;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo:hover img { transform: scale(1.08); }
.photo__zoom {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(3, 11, 30, .55);
	color: var(--signal);
	opacity: 0;
	transition: opacity .3s;
}
.photo:hover .photo__zoom, .photo:focus-visible .photo__zoom { opacity: 1; }

@media (max-width: 960px) {
	.reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.reels { grid-template-columns: 1fr; }
	.photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lightbox {
	width: 100%; height: 100%;
	max-width: 100vw; max-height: 100vh;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text);
}
.lightbox::backdrop { background: rgba(3, 11, 30, .94); }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem 1rem; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; }
.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	padding: 0;
	background: rgba(3, 11, 30, .75);
	border: 1px solid var(--line-strong);
	color: var(--text);
	cursor: pointer;
	transition: background-color .3s, color .3s;
}
.lightbox__btn:hover { background: var(--signal); color: var(--ink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* WooCommerce (basic compatibility) --------------------------------------- */
.woocommerce, .woocommerce-page { color: var(--text); }
.woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="tel"],
.woocommerce input[type="number"], .woocommerce input[type="password"], .woocommerce select,
.woocommerce textarea, .select2-container--default .select2-selection--single,
.wc-block-components-text-input input {
	background: var(--ink-2);
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	color: var(--text);
	padding: .8rem 1rem;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
	background: var(--grad) !important;
	border: 0;
	border-radius: 3px;
	color: var(--ink) !important;
	font-weight: 700;
}
.woocommerce table.shop_table, .woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }
.woocommerce .price, .woocommerce-Price-amount { color: var(--signal); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--ink-2); border-top-color: var(--signal); color: var(--text); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 500 1rem/1.3 var(--font-display); }

/* ==========================================================================
   Elementor compatibility
   ========================================================================== */

/* Keep content clear of the fixed header, unless the page starts with a PixelLuka header. */
.elementor-page-content { padding-top: var(--header-h); }
@supports selector(:has(a)) {
	.elementor-page-content:has(.elementor > .elementor-element:first-child :is(.hero, .page-hero, .notfound)) { padding-top: 0; }
}

/* PixelLuka widgets draw their own full-width sections: remove Elementor's widget spacing. */
.elementor [class*="elementor-widget-pl-"]:not(:last-child) { margin-block-end: 0; }
.elementor [class*="elementor-widget-pl-"] > .elementor-widget-container { margin: 0; padding: 0; }

/* Elementor resets link styles; restore ours. */
.elementor .btn { text-decoration: none; }
.elementor .btn--primary { color: var(--ink); }
.elementor .btn--ghost { color: var(--text); }
.elementor .btn--ghost:hover { color: var(--signal); }
.elementor .cta__link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); }
.elementor .post-card__title a, .elementor .featured-post__title a { text-decoration: none; }

/* Editor-only hint for empty widgets. */
.pl-hint {
	max-width: 40rem;
	margin: 1.5rem auto;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--line-strong);
	color: var(--muted);
	text-align: center;
}

/* Elementor's own widgets: sensible defaults on the dark theme (low specificity, so any setting wins). */
:where(.elementor-widget-heading .elementor-heading-title) {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -.02em;
}
:where(.elementor-button) { border-radius: 3px; font-weight: 700; }
.elementor .elementor-field-textual {
	background: var(--ink-2);
	border-color: var(--line-strong);
	color: var(--text);
}
.elementor .elementor-field-textual:focus { border-color: var(--signal); }
.elementor .elementor-field-group > label, .elementor .elementor-field-label { color: var(--text); }

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
	.w > span { transform: none; }
	.hero__text, .hero__actions { opacity: 1; }
	.marquee { overflow-x: auto; }
	.marquee__track { animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
