/*
 * Demfilz Studio theme styles.
 * Design tokens are CSS custom properties; --accent, --accent-rgb,
 * --accent-hover and --btn-radius are injected from the Customizer.
 */

:root {
	--accent: #2563eb;
	--accent-rgb: 37, 99, 235;
	--accent-hover: #1e50c8;
	--btn-radius: 10px;
	--ink: #0f172a;
	--body: #475569;
	--muted: #64748b;
	--bg: #ffffff;
	--soft: #f6f8fb;
	--line: #e2e8f0;
	--dark: #0b1220;
	--on-dark: #94a3b8;
	--radius: 16px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--shadow-md: 0 12px 32px -14px rgba(15, 23, 42, .2);
	--shadow-lg: 0 26px 60px -24px rgba(15, 23, 42, .3);
	--header-h: 76px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--body);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	margin: 0 0 .6em;
}

p { margin: 0 0 1.2em; }

a { color: var(--accent); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(var(--accent-rgb), .18); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */

.container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
	width: 100%;
	max-width: 820px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.75rem, 8vw, 6.25rem); }
.section-soft { background: var(--soft); }

.section-head {
	max-width: 640px;
	margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
	text-align: center;
}

.section-title {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	letter-spacing: -.025em;
	margin: .55rem 0 0;
}

.section-lede {
	color: var(--muted);
	font-size: 1.05rem;
	margin: .8rem auto 0;
}

.section-foot { text-align: center; margin-top: clamp(2rem, 4vw, 2.75rem); }

.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1023px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
	.grid-3 { grid-template-columns: 1fr; }
}

/* Accessibility */

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

.skip-link {
	left: 1rem;
	top: 1rem;
	z-index: 999;
	background: var(--ink);
	color: #fff;
	padding: .7rem 1.2rem;
	border-radius: 8px;
	text-decoration: none;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	position: fixed !important;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	font-family: var(--font);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.1;
	padding: .8rem 1.4rem;
	border-radius: var(--btn-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }

.btn-solid {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .55);
}

.btn-solid:hover {
	background: var(--accent-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(var(--accent-rgb), .6);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.btn-ghost:hover {
	border-color: rgba(var(--accent-rgb), .55);
	color: var(--accent);
	transform: translateY(-1px);
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2b47; color: #fff; transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(2, 8, 20, .8); }
.btn-light:hover { background: #eef3ff; color: var(--ink); transform: translateY(-1px); }

.btn .btn-icon { flex: none; }
.btn:hover .btn-icon.icon-arrow-right { transform: translateX(3px); }
.btn .btn-icon.icon-arrow-right { transition: transform .2s ease; }

/* Eyebrow + chips */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: rgba(var(--accent-rgb), .1);
	color: var(--accent);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: .38rem .85rem;
	border-radius: 999px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }

.chip {
	padding: .32rem .85rem;
	border-radius: 999px;
	background: rgba(var(--accent-rgb), .08);
	color: var(--accent);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}

.chip:hover { background: rgba(var(--accent-rgb), .16); }

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 60;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.has-sticky-header .site-header { position: sticky; top: 0; }

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	min-height: var(--header-h);
}

.site-branding { display: flex; align-items: center; }

.site-title {
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -.02em;
	color: var(--ink);
	text-decoration: none;
	transition: color .2s ease;
}

.site-title:hover { color: var(--accent); }

.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }

.header-classic .site-nav { margin-left: auto; }
.header-classic .header-actions { margin-left: 0; }
.header-minimal .header-actions { margin-left: auto; }

.nav-menu {
	display: flex;
	gap: .15rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.nav-menu a {
	display: block;
	padding: .55rem .85rem;
	color: var(--ink);
	font-weight: 500;
	font-size: .95rem;
	text-decoration: none;
	border-radius: 9px;
	transition: color .2s ease, background-color .2s ease;
}

.nav-menu a:hover { color: var(--accent); background: rgba(var(--accent-rgb), .07); }

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { color: var(--accent); }

.nav-menu li { position: relative; }

.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-md);
	padding: .4rem;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 70;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a { padding: .55rem .8rem; border-radius: 8px; font-size: .92rem; }

.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Centered header */

.header-centered .header-top {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 1rem 0 .35rem;
}

.header-centered .header-actions-mobile {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.header-centered .header-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-bottom: .8rem;
}

.header-centered .nav-menu { justify-content: center; }

.header-centered .header-actions-desktop {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* Menu toggle */

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #fff;
	cursor: pointer;
	place-items: center;
	transition: border-color .2s ease;
}

.nav-toggle:hover { border-color: rgba(var(--accent-rgb), .5); }

.header-minimal .nav-toggle { display: grid; }
.header-minimal .site-nav { display: none; }

.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle-bars span { height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.header-classic .site-nav,
	.header-centered .header-bottom { display: none; }
	.header-centered .header-top { padding: .55rem 0; }
}

@media (max-width: 680px) {
	.site-header .header-actions .btn { display: none; }
}

/* Transparent header (front page option) */

.has-transparent-header .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.has-transparent-header.has-sticky-header .site-header { position: fixed; }

.has-transparent-header .site-header:not(.is-scrolled) .site-title,
.has-transparent-header .site-header:not(.is-scrolled) .nav-menu > li > a {
	color: #fff;
}

.has-transparent-header .site-header:not(.is-scrolled) .nav-menu > li > a:hover {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.has-transparent-header .site-header:not(.is-scrolled) .nav-toggle {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .3);
}

.has-transparent-header .site-header:not(.is-scrolled) .nav-toggle-bars span { background: #fff; }

.has-transparent-header .site-header.is-scrolled {
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--line);
}

.has-transparent-header .hero { padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)); }

.has-transparent-header .hero-bg {
	background:
		radial-gradient(60rem 40rem at 80% -20%, rgba(var(--accent-rgb), .5), transparent 60%),
		linear-gradient(160deg, var(--dark), #14213f 70%, #182a52);
}

.has-transparent-header .hero-title,
.has-transparent-header .hero .stat-number { color: #fff; }
.has-transparent-header .hero-text { color: rgba(255, 255, 255, .78); }
.has-transparent-header .hero .stat-label { color: rgba(255, 255, 255, .6); }
.has-transparent-header .hero-stats { border-top-color: rgba(255, 255, 255, .14); }
.has-transparent-header .hero .eyebrow { background: rgba(255, 255, 255, .12); color: #cfe0ff; }
.has-transparent-header .hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.has-transparent-header .hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.has-transparent-header .hero-bg::after { opacity: .12; }

/* ---------- Overlay panel ---------- */

.site-panel {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: linear-gradient(160deg, var(--dark), #12203f);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.site-panel[hidden] { display: none; }

.panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: var(--header-h);
}

.site-panel .site-title { color: #fff; }

.panel-close {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .2s ease;
}

.panel-close:hover { background: rgba(255, 255, 255, .16); }

.panel-nav { flex: 1; display: flex; align-items: center; padding-block: 1.5rem; }

.panel-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	width: 100%;
}

.panel-menu > li > a {
	color: #fff;
	font-size: clamp(1.5rem, 4.5vw, 2.3rem);
	font-weight: 700;
	letter-spacing: -.02em;
	text-decoration: none;
	display: inline-block;
	padding: .3rem 0;
	transition: transform .2s ease, color .2s ease;
}

.panel-menu > li > a:hover { transform: translateX(8px); color: #b9cdff; }

.panel-menu .sub-menu {
	list-style: none;
	margin: .1rem 0 .7rem;
	padding: 0 0 0 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .15rem;
}

.panel-menu .sub-menu a { color: var(--on-dark); font-size: 1.05rem; text-decoration: none; }
.panel-menu .sub-menu a:hover { color: #fff; }

.panel-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-bottom: 2rem;
	flex-wrap: wrap;
}

body.panel-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(4rem, 8.5vw, 7rem) 0 clamp(3.75rem, 7.5vw, 6rem);
}

.hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(56rem 36rem at 86% -12%, rgba(var(--accent-rgb), .15), transparent 62%),
		radial-gradient(42rem 30rem at -12% 112%, rgba(var(--accent-rgb), .1), transparent 62%),
		linear-gradient(180deg, #fff, #fbfcff);
}

.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(15, 23, 42, .16) 1px, transparent 1.4px);
	background-size: 26px 26px;
	opacity: .3;
	-webkit-mask-image: radial-gradient(48rem 32rem at 75% 20%, #000, transparent 70%);
	mask-image: radial-gradient(48rem 32rem at 75% 20%, #000, transparent 70%);
}

.hero .container { position: relative; }

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}

.hero-title {
	font-size: clamp(2.35rem, 5.2vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -.032em;
	font-weight: 800;
	margin: 1rem 0 1.1rem;
}

.hero-text { font-size: 1.12rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

.hero-stats {
	display: flex;
	gap: clamp(1.5rem, 4vw, 2.75rem);
	margin-top: 2.5rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line);
	flex-wrap: wrap;
}

.stat-number {
	display: block;
	font-weight: 800;
	font-size: 1.65rem;
	letter-spacing: -.02em;
	color: var(--ink);
}

.stat-label { font-size: .85rem; color: var(--muted); }

/* Hero media */

.hero-photo img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) + 6px);
	box-shadow: var(--shadow-lg);
	display: block;
}

.hero-art { position: relative; height: clamp(19rem, 34vw, 25rem); }

.hero-art-blob {
	position: absolute;
	inset: 7% 3% 9% 11%;
	background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .55) 55%, rgba(var(--accent-rgb), .8));
	border-radius: 30px;
	transform: rotate(-3deg);
	box-shadow: 0 34px 70px -30px rgba(var(--accent-rgb), .55);
}

.hero-art-panel {
	position: absolute;
	top: 13%;
	left: 0;
	width: 58%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	padding: 1.15rem 1.25rem 1.35rem;
}

.art-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line);
	margin-right: 5px;
}

.art-line {
	display: block;
	height: 9px;
	border-radius: 6px;
	background: var(--soft);
	margin-top: .65rem;
}

.w45 { width: 45%; }
.w55 { width: 55%; }
.w70 { width: 70%; }
.w80 { width: 80%; }

.art-bars {
	display: flex;
	gap: .55rem;
	align-items: flex-end;
	height: 104px;
	margin-top: 1.05rem;
}

.art-bars i {
	flex: 1;
	background: linear-gradient(180deg, rgba(var(--accent-rgb), .9), rgba(var(--accent-rgb), .4));
	border-radius: 6px 6px 2px 2px;
}

.hero-art-card {
	position: absolute;
	right: 0;
	bottom: 5%;
	width: 54%;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
	padding: 1rem 1.2rem;
	display: flex;
	gap: .85rem;
	align-items: center;
}

.art-check {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(16, 185, 129, .14);
	color: #059669;
	display: grid;
	place-items: center;
	flex: none;
}

.art-card-lines { flex: 1; }
.art-card-lines .art-line:first-child { margin-top: 0; }

@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media { max-width: 34rem; }
}

/* ---------- Cards ---------- */

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.8rem;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: rgba(var(--accent-rgb), .35);
}

.card-title { font-size: 1.14rem; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.card-title a:hover { color: var(--accent); }

.card-text { color: var(--body); font-size: .96rem; }
.card-text p { margin: 0; }

.card-more {
	margin-top: auto;
	padding-top: 1.1rem;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-weight: 600;
	font-size: .92rem;
	color: var(--accent);
	text-decoration: none;
}

.card-more .icon { transition: transform .2s ease; }
.card-more:hover .icon { transform: translateX(4px); }

.service-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(var(--accent-rgb), .1);
	color: var(--accent);
	margin-bottom: 1.1rem;
	flex: none;
}

.service-icon-lg { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.1rem; }

/* Post cards */

.post-card { padding: 0; overflow: hidden; }

.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-card-body { padding: 1.5rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

.entry-meta {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: .7rem;
}

.entry-meta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.meta-sep { color: var(--line); }

/* Portfolio cards */

.pf-card {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--dark);
	box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}

.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf-card.is-hidden { display: none; }

.pf-link { display: block; position: relative; aspect-ratio: 4 / 3; }

.pf-link img,
.pf-img-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.pf-card:hover .pf-link img { transform: scale(1.05); }

.pf-img-fallback {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #1a2740, var(--dark));
	color: rgba(255, 255, 255, .22);
}

.pf-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 2.6rem 1.4rem 1.25rem;
	background: linear-gradient(180deg, transparent, rgba(4, 9, 18, .88));
	display: flex;
	flex-direction: column;
	gap: .15rem;
	z-index: 1;
}

.pf-title { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.pf-cats { color: rgba(255, 255, 255, .7); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }

/* Portfolio filters */

.pf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	justify-content: center;
	margin-bottom: 2.25rem;
}

.pf-filter {
	padding: .5rem 1.15rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--body);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.pf-filter:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--accent); }
.pf-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pf-empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ---------- CTA band ---------- */

.cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--dark), #14213f);
	border-radius: calc(var(--radius) + 8px);
	padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	text-align: center;
}

.cta-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(32rem 20rem at 82% -10%, rgba(var(--accent-rgb), .4), transparent 62%),
		radial-gradient(26rem 18rem at 8% 110%, rgba(var(--accent-rgb), .28), transparent 62%);
}

.cta-content { position: relative; }

.cta-title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.025em; margin: 0 0 .8rem; }
.cta-text { color: rgba(255, 255, 255, .75); max-width: 36rem; margin: 0 auto 1.7rem; }

/* ---------- Page headers ---------- */

.page-header {
	background: linear-gradient(180deg, #fafbfe, #fff);
	padding: clamp(3rem, 6.5vw, 5rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-title { font-size: clamp(2rem, 4.4vw, 3.05rem); letter-spacing: -.028em; margin: .55rem 0 0; }

.page-lede { color: var(--muted); font-size: 1.07rem; max-width: 46rem; margin-top: .9rem; }

.page-header + .section,
.page-header + div.section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.page-search { margin-top: 1.4rem; }

/* ---------- Content typography ---------- */

.entry-content { font-size: 1.05rem; }

.entry-content h2 { font-size: 1.65rem; margin: 2.2rem 0 .8rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.entry-content h4 { font-size: 1.12rem; margin: 1.5rem 0 .6rem; }

.entry-content a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-hover); }

.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.3rem; }
.entry-content li { margin-bottom: .4rem; }

.entry-content img { border-radius: var(--radius-sm); }

.entry-content blockquote,
.wp-block-quote {
	margin: 1.8rem 0;
	padding: 1.2rem 1.6rem;
	border-left: 4px solid var(--accent);
	background: var(--soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.08rem;
	color: var(--ink);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .9rem; color: var(--muted); font-style: normal; }

.entry-content pre,
.wp-block-code {
	background: var(--dark);
	color: #dbe4f3;
	padding: 1.2rem 1.4rem;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	font-size: .92rem;
	line-height: 1.6;
}

.entry-content code { background: rgba(var(--accent-rgb), .08); color: var(--accent-hover); padding: .15em .4em; border-radius: 5px; font-size: .92em; }
.entry-content pre code { background: none; color: inherit; padding: 0; }

.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .96rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.entry-content th { background: var(--soft); color: var(--ink); }

.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.entry-content dl { margin: 0 0 1.3rem; }
.entry-content dt { font-weight: 700; color: var(--ink); }
.entry-content dd { margin: .2rem 0 .9rem 1.2rem; }

.entry-content figure { margin: 1.8rem 0; }
.entry-content figcaption, .wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }

.entry-content > .alignwide { position: relative; left: 50%; transform: translateX(-50%); width: min(1160px, calc(100vw - 3rem)); }
.entry-content > .alignfull { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; }
.alignleft { float: left; margin: .4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky { position: static; }
.bypostauthor td { position: static; }

.entry-content .wp-block-button__link {
	background: var(--accent);
	color: #fff;
	border-radius: var(--btn-radius);
	padding: .8rem 1.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease;
}

.entry-content .wp-block-button__link:hover { background: var(--accent-hover); }

.entry-hero { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.entry-hero img { width: 100%; height: auto; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-md); display: block; }

.single-meta { margin-top: 1rem; margin-bottom: 0; }

.entry-footer { margin-top: 2rem; }

.section-front-content { padding-top: 0; }

/* ---------- Project layout ---------- */

.project-layout {
	display: grid;
	grid-template-columns: 1.55fr .85fr;
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: start;
}

@media (max-width: 900px) {
	.project-layout { grid-template-columns: 1fr; }
}

.card-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 3vw, 2.1rem);
	box-shadow: var(--shadow-sm);
}

.panel-heading { font-size: 1.18rem; margin: 0 0 1.2rem; }

.details-list { margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .85rem; }

.details-list > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 1px dashed var(--line);
	padding-bottom: .85rem;
}

.details-list dt { color: var(--muted); font-size: .9rem; }
.details-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.other-services { margin-top: 2.5rem; }

/* ---------- Post navigation + pagination ---------- */

.post-navigation { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); padding-top: 1.6rem; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 640px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

.post-navigation a {
	display: block;
	text-decoration: none;
	padding: 1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color .2s ease, box-shadow .2s ease;
	height: 100%;
}

.post-navigation a:hover { border-color: rgba(var(--accent-rgb), .5); box-shadow: var(--shadow-sm); }

.post-navigation .nav-next { text-align: right; }

.nav-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25rem; }
.nav-title { color: var(--ink); font-weight: 600; line-height: 1.35; }

.pagination { margin-top: clamp(2rem, 5vw, 3rem); }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

.page-numbers {
	min-width: 42px;
	height: 42px;
	display: inline-grid;
	place-items: center;
	padding: 0 .85rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	transition: border-color .2s ease, color .2s ease;
}

.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
a.page-numbers:hover { border-color: rgba(var(--accent-rgb), .55); color: var(--accent); }
.page-numbers.dots { border: 0; }

/* ---------- Forms ---------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}

textarea { resize: vertical; min-height: 120px; }

.form-field label,
.comment-form label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: .4rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

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

.form-field { margin: 0 0 1.15rem; }
.req { color: #dc2626; }

.form-submit-row { margin: .4rem 0 0; }

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.form-notice {
	padding: .95rem 1.15rem;
	border-radius: 10px;
	margin-bottom: 1.25rem;
	font-weight: 500;
	font-size: .95rem;
}

.form-notice-success { background: rgba(16, 185, 129, .1); color: #065f46; border: 1px solid rgba(16, 185, 129, .35); }
.form-notice-error { background: rgba(220, 38, 38, .08); color: #991b1b; border: 1px solid rgba(220, 38, 38, .3); }

/* Contact page */

.contact-layout {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 1.75rem;
	align-items: start;
}

@media (max-width: 900px) {
	.contact-layout { grid-template-columns: 1fr; }
}

.contact-page-content { margin-bottom: 2rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.05rem; }

.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }

.contact-ico {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: rgba(var(--accent-rgb), .1);
	color: var(--accent);
	display: grid;
	place-items: center;
	flex: none;
}

.contact-val { padding-top: .4rem; color: var(--body); font-size: .97rem; }
.contact-val a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-val a:hover { color: var(--accent); }

.contact-social { margin-top: 1.5rem; }

/* Search form */

.search-form { display: flex; gap: .6rem; max-width: 30rem; }
.search-field { flex: 1; }

.search-submit {
	width: 49px;
	height: 49px;
	flex: none;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .2s ease;
}

.search-submit:hover { background: var(--accent-hover); }

.content-none { text-align: center; max-width: 30rem; margin: 0 auto; }
.content-none .search-form { margin: 1.4rem auto 0; }

/* 404 */

.error-404 { text-align: center; }
.error-404 .container-narrow > * { margin-left: auto; margin-right: auto; }
.error-code { font-size: clamp(5rem, 15vw, 8.5rem); font-weight: 800; line-height: 1; color: rgba(var(--accent-rgb), .16); margin: 0 0 .5rem; letter-spacing: -.04em; }
.error-404 .search-form { margin-inline: auto; }
.error-actions { margin-top: 1.8rem; }

/* Admin hint */

.admin-hint {
	border: 1px dashed rgba(var(--accent-rgb), .5);
	background: rgba(var(--accent-rgb), .04);
	color: var(--body);
	border-radius: var(--radius-sm);
	padding: 1.4rem 1.6rem;
	text-align: center;
	max-width: 44rem;
	margin: 0 auto;
}

.admin-hint p { margin: 0; }

/* ---------- Gallery + lightbox ---------- */

.gallery-grid { columns: 3; column-gap: 1.25rem; }

@media (max-width: 1023px) { .gallery-grid { columns: 2; } }
@media (max-width: 639px) { .gallery-grid { columns: 1; } }

.gallery-item {
	display: block;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	overflow: hidden;
	break-inside: avoid;
	background: var(--soft);
}

.gallery-img { width: 100%; height: auto; display: block; transition: transform .4s ease, opacity .3s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.03); }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(4, 9, 18, .93);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
	max-width: min(92vw, 1240px);
	max-height: 82vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox-caption {
	position: absolute;
	bottom: 1.3rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .82);
	font-size: .92rem;
	max-width: 84vw;
	text-align: center;
	margin: 0;
}

.lightbox-btn {
	position: absolute;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .2s ease;
	z-index: 2;
}

.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }

.lightbox-close { top: 1.1rem; right: 1.1rem; }
.lightbox-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Comments ---------- */

.comments-area { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); padding-top: 2.25rem; }

.comments-title { font-size: 1.35rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 clamp(1rem, 4vw, 2.25rem); padding: 0; }

.comment-body {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 1.15rem 1.35rem;
	margin-bottom: 1.1rem;
	background: #fff;
}

.comment-meta .avatar { border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.comment-author .fn { font-style: normal; font-weight: 700; color: var(--ink); }
.comment-metadata { font-size: .82rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-top: .6rem; }
.comment-content p:last-child { margin-bottom: 0; }

.reply { margin-top: .5rem; }
.reply a { font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; }

.comment-form .comment-form-comment { margin-bottom: 1rem; }
.comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; margin-bottom: 1rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; color: var(--body); }

.comment-form .submit {
	background: var(--accent);
	color: #fff;
	border: 0;
	padding: .85rem 1.6rem;
	border-radius: var(--btn-radius);
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: background-color .2s ease;
}

.comment-form .submit:hover { background: var(--accent-hover); }

.no-comments { color: var(--muted); }

.page-links { margin: 1.6rem 0; font-weight: 600; }
.page-links a { margin-left: .35rem; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--dark);
	color: var(--on-dark);
	padding: clamp(3rem, 6vw, 4.25rem) 0 1.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.35fr .85fr 1.1fr;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-bottom: 2.4rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer .site-title { color: #fff; }
.site-footer .site-title:hover { color: #b9cdff; }

.footer-text { margin: 1rem 0 1.25rem; font-size: .95rem; max-width: 26rem; }

.footer-heading {
	color: #fff;
	font-size: .88rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin: .35rem 0 1.15rem;
}

.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-menu a { color: var(--on-dark); text-decoration: none; transition: color .2s ease; }
.footer-menu a:hover { color: #fff; }

.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; font-size: .95rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { flex: none; margin-top: .25rem; color: #7ea4ff; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding: 2.2rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-size: .95rem;
}

.footer-widgets .widget-title {
	color: #fff;
	font-size: .88rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin: 0 0 1rem;
}

.footer-widgets a { color: var(--on-dark); }
.footer-widgets a:hover { color: #fff; }
.footer-widgets p { margin: 0 0 .6rem; }
.footer-widgets p:last-child { margin-bottom: 0; }

.footer-widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1.5rem;
	flex-wrap: wrap;
}

.copyright { margin: 0; font-size: .88rem; }

.to-top { display: inline-flex; gap: .45rem; align-items: center; color: var(--on-dark); text-decoration: none; font-size: .88rem; transition: color .2s ease; }
.to-top:hover { color: #fff; }

/* Social icons */

.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }

.social-link {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: inline-grid;
	place-items: center;
	background: var(--soft);
	color: var(--body);
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.social-link:hover { background: rgba(var(--accent-rgb), .12); color: var(--accent); transform: translateY(-2px); }

.site-footer .social-link,
.site-panel .social-link {
	background: rgba(255, 255, 255, .07);
	color: #cbd5e1;
}

.site-footer .social-link:hover,
.site-panel .social-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Reveal animation ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .card, .pf-card, .pf-link img, .gallery-img, .post-thumb img { transition: none !important; }
}
