:root {
	--site-bg: #171717;
	--site-surface: #1d1d1d;
	--site-text: #ffffff;
	--site-muted: rgba(255, 255, 255, 0.76);
	--site-border: #252039;
	--site-accent: #6e53f9;
	--site-accent-alt: #6869ac;
	--site-overlay: rgba(0, 0, 0, 0.72);
	--site-header-bg: rgba(23, 23, 23, 0.9);
	--site-header-border: rgba(255, 255, 255, 0.07);
	--site-nav-color: #ffffff;
	--site-logo-color: #6e53f9;
	--site-menu-text: #ffffff;
	--site-menu-dot: #6e53f9;
	--site-mobile-bg: #171717;
	--site-toggle-surface: rgba(255, 255, 255, 0.12);
	--site-toggle-bubble-bg: rgba(255, 255, 255, 0.92);
	--site-toggle-bubble-text: #282a2f;
	--site-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

html.is-light-theme {
	--site-bg: #ffffff;
	--site-surface: #ffffff;
	--site-text: #282a2f;
	--site-muted: rgba(40, 42, 47, 0.74);
	--site-border: #e9e9f3;
	--site-accent: #6869ac;
	--site-accent-alt: #6e53f9;
	--site-overlay: rgba(17, 24, 39, 0.45);
	--site-header-bg: rgba(255, 255, 255, 0.92);
	--site-header-border: rgba(40, 42, 47, 0.08);
	--site-nav-color: #282a2f;
	--site-logo-color: #6869ac;
	--site-menu-text: #282a2f;
	--site-menu-dot: #6869ac;
	--site-mobile-bg: #ffffff;
	--site-toggle-surface: rgba(104, 105, 172, 0.12);
	--site-toggle-bubble-bg: #f4f5fb;
	--site-toggle-bubble-text: #282a2f;
	--site-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

html {
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--site-bg);
	color: var(--site-text);
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body,
button,
input,
textarea,
select {
	font: inherit;
}

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

.wp-site-blocks,
.wp-block-group,
main,
.site-main {
	color: var(--site-text);
}

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

a:hover {
	opacity: 0.92;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	padding: 0 !important;
	background: var(--site-header-bg);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--site-header-border);
}

.site-header-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 18px 28px;
	min-height: 88px;
}

.site-branding-link {
	text-decoration: none;
}

.site-branding-text {
	display: inline-block;
	font-size: clamp(1.8rem, 3vw, 3rem);
	line-height: 1;
	font-weight: 700;
	color: var(--site-logo-color);
	letter-spacing: 0.02em;
	font-family: "Brush Script MT", "Segoe Script", cursive;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 2vw, 40px);
}

.site-nav-link,
.mobile-menu-link {
	position: relative;
	text-decoration: none;
	color: var(--site-nav-color);
	font-size: 1rem;
	font-weight: 700;
	transition: color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active,
.mobile-menu-link:hover,
.mobile-menu-link.is-active {
	color: var(--site-accent);
}

.site-nav-link.is-active::after,
.site-nav-link:hover::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -16px;
	width: 100%;
	height: 4px;
	background: var(--site-accent);
	border-radius: 999px;
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.menu-button {
	position: relative;
	width: 72px;
	height: 72px;
	cursor: pointer;
	text-align: center;
	color: var(--site-menu-text);
	background: transparent;
	border: 0;
	padding: 0;
}

.menu-button .letter {
	position: absolute;
	font-size: 14px;
	transition: opacity 0.3s ease;
	color: var(--site-menu-text);
	line-height: 1;
}

.e { top: 16%; left: 50%; transform: translateX(-50%); }
.m { top: 50%; left: 24%; transform: translateY(-50%); }
.n { top: 50%; right: 24%; transform: translateY(-50%); }
.u { bottom: 16%; left: 50%; transform: translateX(-50%); }

.dot {
	position: absolute;
	width: 8px;
	height: 8px;
	background-color: var(--site-menu-dot);
	transition: opacity 0.3s ease;
}

.dot-top { top: 6px; left: 50%; transform: translateX(-50%); }
.dot-bottom { bottom: 6px; left: 50%; transform: translateX(-50%); }
.dot-left { left: 6px; top: 50%; transform: translateY(-50%); }
.dot-right { right: 6px; top: 50%; transform: translateY(-50%); }
.dot-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.menu-button:hover .dot {
	opacity: 0;
}

.menu-button::before,
.menu-button::after {
	content: "";
	position: absolute;
	height: 2px;
	width: 36px;
	background-color: var(--site-menu-dot);
	transform: translateX(-50%) scaleX(0);
	transition: transform 0.3s ease;
	left: 50%;
}

.menu-button::before {
	top: 12px;
}

.menu-button::after {
	bottom: 12px;
}

.menu-button:hover::before,
.menu-button:hover::after {
	transform: translateX(-50%) scaleX(1);
}

.menu-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
	letter-spacing: 2px;
	opacity: 0;
	transition: opacity 0.3s ease;
	color: var(--site-menu-text);
}

.menu-button:hover .letter {
	opacity: 0;
}

.menu-button:hover .menu-text {
	opacity: 1;
}

.mobile-menu-panel {
	display: none;
	border-top: 1px solid var(--site-header-border);
	background: var(--site-mobile-bg);
}

.mobile-menu-panel.is-open {
	display: block;
}

.mobile-menu-inner {
	display: grid;
	gap: 16px;
	padding: 18px 28px 28px;
}

.footer-shell {
	border-top: 1px solid var(--site-border);
	padding: 32px 24px 40px;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-copy {
	margin: 0;
	color: var(--site-muted);
}

.footer-theme-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.theme-toggle-bubble {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--site-toggle-bubble-bg);
	color: var(--site-toggle-bubble-text);
	font-weight: 600;
	line-height: 1;
	box-shadow: var(--site-shadow);
}

.theme-toggle-bubble::after {
	content: "";
	position: absolute;
	right: -10px;
	top: 50%;
	width: 16px;
	height: 16px;
	background: var(--site-toggle-bubble-bg);
	transform: translateY(-50%) rotate(45deg);
	border-radius: 3px;
}

.theme-toggle-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	border: 1px solid var(--site-border);
	background: var(--site-toggle-surface);
	color: var(--site-text);
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle-button:hover {
	transform: translateY(-2px);
}

.theme-toggle-button__inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #282a2f;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

html.is-light-theme .theme-toggle-button__inner {
	background: #ffffff;
}

.theme-toggle-icon {
	position: relative;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
}

.theme-toggle-icon::before,
.theme-toggle-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

html:not(.is-light-theme) .theme-toggle-icon {
	background: currentColor;
	box-shadow:
		0 -12px 0 -7px currentColor,
		0 12px 0 -7px currentColor,
		12px 0 0 -7px currentColor,
		-12px 0 0 -7px currentColor,
		8px 8px 0 -7px currentColor,
		-8px 8px 0 -7px currentColor,
		8px -8px 0 -7px currentColor,
		-8px -8px 0 -7px currentColor;
}

html.is-light-theme .theme-toggle-icon {
	background: currentColor;
	border-color: currentColor;
}

html.is-light-theme .theme-toggle-icon::after {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	left: 62%;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.project-card-item {
	background: var(--site-surface);
	border: 1px solid var(--site-border);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	box-shadow: var(--site-shadow);
}

.project-card-thumb img,
.project-popup-featured-image img,
.project-performance-item img {
	width: 100%;
	display: block;
	border-radius: 14px;
}

.project-card-title,
.project-modal-title,
.project-performance-title,
.project-performance-label {
	color: var(--site-text);
}

.project-card-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.project-card-description p,
.project-grid-empty p {
	margin: 0;
	color: var(--site-muted);
}

.project-card-actions {
	margin-top: auto;
}

.project-popup-trigger,
.project-popup-visit a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--site-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	border: 0;
	cursor: pointer;
}

.project-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.project-modal.is-active {
	display: block;
}

.project-modal-overlay {
	position: absolute;
	inset: 0;
	background: var(--site-overlay);
}

.project-modal-dialog {
	position: relative;
	z-index: 2;
	width: min(1000px, calc(100% - 32px));
	max-height: calc(100vh - 40px);
	margin: 20px auto;
	background: var(--site-surface);
	color: var(--site-text);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--site-shadow);
	border: 1px solid var(--site-border);
}

.project-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--site-border);
}

.project-modal-title {
	margin: 0;
	font-size: 1.5rem;
}

.project-modal-close {
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--site-text);
}

.project-modal-content {
	padding: 24px;
	overflow-y: auto;
	color: var(--site-text);
}

.project-popup-featured-image img,
.project-popup-description,
.project-popup-visit {
	margin-bottom: 24px;
}

.project-popup-description p,
.project-popup-description li,
.project-popup-description h1,
.project-popup-description h2,
.project-popup-description h3,
.project-popup-description h4,
.project-popup-description h5,
.project-popup-description h6 {
	color: inherit;
}

.project-performance-section {
	margin-top: 24px;
}

.project-performance-title {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

.project-performance-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.project-performance-grid.has-single {
	grid-template-columns: minmax(0, 420px);
	justify-content: center;
}

.project-performance-item img {
	border: 1px solid var(--site-border);
}

.project-performance-label {
	margin: 0 0 10px;
	font-weight: 600;
}

body.project-modal-open {
	overflow: hidden;
}

.abduls-projects-section {
	margin-top: 32px;
}

.projects-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.projects-toolbar-tabs {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.projects-filter-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--site-border);
	background: transparent;
	color: var(--site-text);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s ease;
}

.projects-filter-tab:hover,
.projects-filter-tab.is-active {
	background: var(--site-text);
	color: var(--site-bg);
	border-color: var(--site-text);
}

.projects-filter-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.15);
	font-size: 12px;
	line-height: 1;
}

.projects-filter-tab.is-active .projects-filter-tab__count,
.projects-filter-tab:hover .projects-filter-tab__count {
	background: rgba(255, 255, 255, 0.18);
}

.projects-toolbar-search {
	margin-left: auto;
}

.projects-search-input {
	width: min(320px, 100%);
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--site-border);
	background: var(--site-surface);
	color: var(--site-text);
	outline: none;
}

.projects-search-input:focus {
	border-color: var(--site-accent);
	box-shadow: 0 0 0 3px rgba(110, 83, 249, 0.12);
}

.projects-results {
	position: relative;
	min-height: 120px;
}

.projects-results.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.project-grid-empty {
	padding: 48px 20px;
	text-align: center;
	border: 1px dashed var(--site-border);
	border-radius: 16px;
	background: var(--site-surface);
}

@media (max-width: 1120px) {
	.site-header-inner {
		grid-template-columns: 1fr auto;
	}

	.desktop-nav {
		display: none;
	}
}

@media (min-width: 1121px) {
	.mobile-menu-panel,
	.menu-button {
		display: none;
	}
}

@media (max-width: 991px) {
	.project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.site-header-inner,
	.mobile-menu-inner {
		padding-left: 18px;
		padding-right: 18px;
	}

	.site-header-inner {
		min-height: 78px;
	}

	.menu-button {
		width: 64px;
		height: 64px;
	}

	.projects-toolbar {
		align-items: stretch;
	}

	.projects-toolbar-search {
		width: 100%;
		margin-left: 0;
	}

	.projects-search-input,
	.project-grid {
		width: 100%;
	}

	.project-grid,
	.project-performance-grid,
	.footer-inner {
		grid-template-columns: 1fr;
	}

	.project-grid {
		display: grid;
	}

	.project-modal-dialog {
		width: calc(100% - 20px);
		margin: 10px auto;
		max-height: calc(100vh - 20px);
	}

	.project-modal-header,
	.project-modal-content {
		padding: 18px;
	}

	.project-performance-grid {
		display: grid;
	}

	.footer-inner,
	.footer-theme-toggle-wrap {
		justify-content: center;
	}

	.theme-toggle-bubble {
		padding: 12px 16px;
	}

	.theme-toggle-button {
		width: 58px;
		height: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

.home-main {
	padding: 0 0 40px;
}

.home-content-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.hero-section {
	padding: clamp(20px, 3vw, 42px) 0 24px;
}

.hero-shell {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(26px, 3vw, 60px);
	min-height: calc(100vh - 120px);
}

.hero-copy {
	align-self: center;
}

.hero-eyebrow,
.hero-specialized {
	margin: 0 0 26px;
	font-size: clamp(1.25rem, 1.6vw, 1.8rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--site-text);
}

.hero-title {
	margin: 0;
	display: grid;
	gap: 2px;
	font-size: clamp(3rem, 6vw, 6rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.hero-title__accent {
	color: var(--site-accent);
}

.hero-title__muted {
	color: #8f9094;
}

html.is-light-theme .hero-title__muted {
	color: #6f7480;
}

.hero-description,
.hero-richtext {
	max-width: 640px;
	font-size: clamp(1.08rem, 1.5vw, 1.45rem);
	line-height: 1.62;
	color: var(--site-text);
}

.hero-description {
	margin: 30px 0 0;
}

.hero-richtext p {
	margin: 0 0 24px;
}

.hero-richtext p:last-child {
	margin-bottom: 0;
}

.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 34px;
}

.hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 64px;
	padding: 16px 30px;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	font-weight: 700;
	transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-button:hover {
	transform: translateY(-2px);
	opacity: 1;
}

.hero-button--primary {
	min-width: 270px;
	background: color-mix(in srgb, var(--site-accent) 68%, white 32%);
	color: #ffffff;
	box-shadow: var(--site-shadow);
}

.hero-button--ghost {
	padding: 0;
	min-height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--site-text);
	font-size: clamp(1.25rem, 1.7vw, 2rem);
}

.hero-button--ghost:hover {
	color: var(--site-accent);
	transform: none;
}

.hero-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	font-size: 1rem;
}

.hero-specialized {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--site-accent);
}

.hero-specialized__icon {
	color: var(--site-muted);
	font-size: 1.1em;
}

.hero-media {
	align-self: end;
}


.hero-image-placeholder {
	position: relative;
	aspect-ratio: 4 / 5.5;
	border: 1px dashed var(--site-border);
	border-radius: 32px;
	background:
		radial-gradient(circle at top, rgba(110, 83, 249, 0.12), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.hero-image-placeholder__text {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 12px 18px;
	border-radius: 999px;
	border: 1px solid var(--site-border);
	background: var(--site-surface);
	color: var(--site-muted);
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.hero-image-frame {
	margin: 0;
	display: flex;
	align-items: end;
	justify-content: center;
	min-height: min(70vh, 760px);
}

.hero-image-block {
	width: min(100%, 480px);
}

@media (max-width: 1320px) {
	.hero-shell {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 0.68fr) minmax(0, 0.9fr);
		gap: 32px;
	}

	.hero-title {
		font-size: clamp(2.9rem, 5.1vw, 5.25rem);
	}
}

@media (max-width: 1120px) {
	.hero-section {
		padding-top: 16px;
	}

	.hero-shell {
		min-height: auto;
		grid-template-columns: minmax(0, 1fr) minmax(260px, 0.76fr);
		grid-template-areas:
			"intro media"
			"details media";
		align-items: start;
	}

	.hero-copy--intro {
		grid-area: intro;
	}

	.hero-copy--details {
		grid-area: details;
	}

	.hero-media {
		grid-area: media;
		align-self: stretch;
	}

	.hero-image-frame {
		min-height: 100%;
	}

}

@media (max-width: 767px) {
	.home-content-shell,
	.hero-shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hero-shell {
		grid-template-columns: 1fr;
		grid-template-areas:
			"intro"
			"details"
			"media";
		gap: 28px;
	}

	.hero-copy {
		align-self: start;
	}

	.hero-eyebrow,
	.hero-specialized {
		margin-bottom: 16px;
		font-size: 1.1rem;
	}

	.hero-description,
	.hero-richtext {
		font-size: 1rem;
		line-height: 1.55;
	}

	.hero-description {
		margin-top: 18px;
	}

	.hero-actions {
		margin-top: 22px;
	}

	.hero-button--primary {
		min-width: 0;
		width: 100%;
		max-width: 280px;
	}

	.hero-button--ghost {
		font-size: 1rem;
	}

	.hero-media {
		max-width: 280px;
		width: 100%;
		margin: 0 auto;
	}

	.hero-image-frame {
		max-height: none;
		min-height: 0;
	}

	.hero-image-placeholder__text {
		white-space: normal;
		max-width: 180px;
	}
}
