/* =================================================================
   Sonero — main stylesheet
   1. Custom properties
   2. Reset & base
   3. Typography
   4. Layout helpers
   5. Buttons & forms
   6. Header & navigation
   7. Hero
   8. Sections (stats, services, work, process, cta)
   9. Cards
   10. Blog / single / pages
   11. Footer
   12. Utilities, accessibility, motion
   ================================================================= */

/* ---------------------------- 1. Tokens ------------------------- */
:root {
	--bg:            #0b0c10;
	--bg-alt:        #111319;
	--surface:       #15171f;
	--surface-2:     #1c1f2a;
	--border:        rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.16);
	--text:          #f3f4f7;
	--text-muted:    #a2a7b4;
	--text-faint:    #6b7180;
	--accent:        #7c5cff;
	--accent-2:      #34e1c4;
	--accent-soft:   rgba(124, 92, 255, 0.14);

	--container:     1180px;
	--container-narrow: 760px;
	--radius:        16px;
	--radius-sm:     10px;
	--radius-lg:     28px;

	--font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Space Grotesk", var(--font-sans);

	--shadow:    0 10px 40px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--step: clamp(1rem, 2.5vw, 1.5rem);
}

/* ---------------------------- 2. Reset -------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text); }

ul, ol { margin: 0; padding: 0; }

::selection { background: var(--accent); color: #fff; }

/* ------------------------- 3. Typography ------------------------ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
	color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	border-left: 3px solid var(--accent);
	background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.1rem;
	font-style: italic;
	color: var(--text-muted);
}

code, pre, kbd {
	font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
	font-size: 0.92em;
}
code { background: var(--surface-2); padding: 0.15em 0.45em; border-radius: 6px; }
pre {
	background: var(--surface-2);
	padding: 1.25rem;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	border: 1px solid var(--border);
}
pre code { background: none; padding: 0; }

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head--row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	max-width: none;
	flex-wrap: wrap;
}
.section__eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	color: var(--accent);
	margin: 0 0 0.75rem;
}
.section__title { margin: 0 0 0.6rem; }
.section__intro { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* ----------------------- 5. Buttons & forms -------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1;
	padding: 0.95em 1.5em;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
	white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }

.button--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.button--primary:hover { background: #6a47ff; color: #fff; box-shadow: 0 12px 30px rgba(124, 92, 255, 0.45); }

.button--ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--border-strong);
}
.button--ghost:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.button--small { padding: 0.7em 1.15em; font-size: 0.9rem; }
.button--large { padding: 1.1em 2em; font-size: 1.05rem; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="tel"], textarea, select {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 0.85em 1em;
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
::placeholder { color: var(--text-faint); }

/* --------------------- 6. Header & navigation ------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 12, 16, 0.72);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.site-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }
.custom-logo { max-height: 40px; width: auto; }

.main-navigation { margin-left: auto; }
.primary-menu {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
}
.primary-menu a {
	display: block;
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.97rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--text); background: var(--surface-2); }

.site-header__cta .button { display: inline-flex; }

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	width: 46px;
	height: 46px;
	padding: 0;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-toggle__bars span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------- 7. Hero -------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(5rem, 12vw, 9rem);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
}
.hero__orb--1 { width: 480px; height: 480px; background: var(--accent); top: -120px; right: -80px; }
.hero__orb--2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -160px; left: -100px; opacity: 0.35; }
.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	opacity: 0.6;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 0.5rem 1rem;
	border-radius: 999px;
	margin-bottom: 1.75rem;
}
.hero__eyebrow .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 0 4px rgba(52, 225, 196, 0.18);
}
.hero__title {
	font-size: clamp(2.6rem, 6.5vw, 5rem);
	line-height: 1.04;
	margin: 0 0 1.5rem;
	background: linear-gradient(180deg, #fff 30%, #b9b5d6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__subtitle {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	color: var(--text-muted);
	max-width: 620px;
	margin: 0 0 2.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------- 8. Stats -------------------------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	padding-block: 0;
}
.stat {
	background: var(--bg-alt);
	padding: clamp(2rem, 4vw, 3rem) 1.5rem;
	text-align: center;
}
.stat__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.03em;
}
.stat__label { display: block; color: var(--text-muted); font-size: 0.95rem; margin-top: 0.35rem; }

/* ------------------------- Services --------------------------- */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.service-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	background: var(--surface-2);
}
.service-card__index {
	font-family: var(--font-display);
	font-size: 0.85rem;
	color: var(--accent);
	letter-spacing: 0.1em;
}
.service-card__title { margin: 0.75rem 0 0.6rem; }
.service-card__desc { color: var(--text-muted); font-size: 0.98rem; margin: 0; }

/* --------------------------- Work ----------------------------- */
.work__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.work__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	color: var(--text-muted);
}
.work__empty .button { margin-top: 1rem; }

.work-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.75rem;
}
.work-filter {
	font-family: var(--font-display);
	font-size: 0.9rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-muted);
}
.work-filter:hover, .work-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* -------------------------- Process --------------------------- */
.process__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	list-style: none;
	counter-reset: step;
}
.process__step {
	position: relative;
	padding: 2rem 1.5rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface);
}
.process__num {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 700;
	color: var(--accent);
	display: block;
	margin-bottom: 0.75rem;
}
.process__title { margin: 0 0 0.5rem; font-size: 1.2rem; }
.process__desc { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* ---------------------------- CTA ----------------------------- */
.cta__panel {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 20% 10%, rgba(124, 92, 255, 0.3), transparent 55%),
		radial-gradient(circle at 85% 90%, rgba(52, 225, 196, 0.22), transparent 55%),
		var(--surface);
	border: 1px solid var(--border-strong);
}
.cta__title { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 1rem; }
.cta__text { color: var(--text-muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }

/* --------------------------- 9. Cards ------------------------- */
.project-card { border-radius: var(--radius); overflow: hidden; }
.project-card__link { display: block; color: inherit; }
.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--surface-2);
}
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-card__img { transform: scale(1.06); }
.project-card__placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	padding: 1.5rem; text-align: center;
	font-family: var(--font-display); font-weight: 600; color: var(--text-faint);
	background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.project-card__arrow {
	position: absolute;
	top: 1rem; right: 1rem;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(11, 12, 16, 0.55);
	backdrop-filter: blur(6px);
	color: #fff; font-size: 1.1rem;
	opacity: 0; transform: translateY(6px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-card:hover .project-card__arrow { opacity: 1; transform: translateY(0); }
.project-card__body { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.25rem 0; }
.project-card__title { font-size: 1.2rem; margin: 0; }
.project-card__title:hover { color: var(--accent); }
.project-card__cat { color: var(--text-muted); font-size: 0.9rem; margin: 0.2rem 0 0; }
.project-card__year { color: var(--text-faint); font-size: 0.9rem; font-family: var(--font-display); }

/* Post cards */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 0.6rem; }
.post-card__cat { color: var(--accent); }
.post-card__title { font-size: 1.35rem; margin: 0 0 0.75rem; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { color: var(--text-muted); font-size: 0.97rem; margin: 0 0 1.25rem; }
.post-card__more { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }

/* ------------------- 10. Blog / single / pages ---------------- */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-block: clamp(3rem, 7vw, 5rem); align-items: start; }
.content-area .posts-grid { grid-template-columns: 1fr; }

.page-header { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); }
.archive-description, .archive-header__intro { color: var(--text-muted); max-width: 640px; }

.single-entry { padding-block: clamp(2.5rem, 6vw, 4rem); }
.entry-header { margin-bottom: 2rem; }
.entry-meta { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 1rem; }
.entry-meta a { color: var(--text-muted); }
.entry-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.post-thumbnail { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.post-thumbnail img { width: 100%; }

.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.3rem; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content img, .entry-content figure { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content .alignwide { width: min(100%, 1000px); margin-inline: auto; }

.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.entry-footer a { color: var(--text-muted); }
.entry-footer .cat-links, .entry-footer .tags-links { display: inline-flex; gap: 0.4rem; }

.post-navigation { margin: 3rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; }
.nav-subtitle { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.nav-title { color: var(--text); font-family: var(--font-display); font-weight: 600; }

/* Project single */
.project-single { padding-block: clamp(2.5rem, 6vw, 4rem); }
.project-single__back { font-family: var(--font-display); font-size: 0.9rem; color: var(--text-muted); }
.project-single__header { max-width: 760px; margin-bottom: 2.5rem; }
.project-single__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0 0.75rem; }
.project-single__lede { font-size: 1.25rem; color: var(--text-muted); margin: 0; }
.project-single__cover { margin: 0 0 3rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.project-single__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.project-single__aside { position: sticky; top: 100px; }

.project-meta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 1.25rem; }
.project-meta__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.project-meta__row:last-child { border-bottom: 0; }
.project-meta dt { color: var(--text-faint); font-size: 0.9rem; }
.project-meta dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.project-live { width: 100%; }

.related-work { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); margin-top: 3rem; }
.related-work__title { margin-bottom: 2rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 3.5rem; }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 0.75rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-family: var(--font-display); font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--text); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Comments */
.comments-area { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.comments-title { margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-list ol { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); }
.comment-author .avatar { border-radius: 50%; }
.comment-meta { font-size: 0.85rem; color: var(--text-faint); margin: 0.25rem 0 0.75rem; }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }

/* Search form */
.search-form__inner { display: flex; gap: 0.5rem; }
.search-form__inner .search-field { flex: 1; }
.no-results .search-form, .error-404 .search-form { margin: 1.5rem 0; max-width: 480px; }

/* 404 */
.error-404 { text-align: center; padding-block: clamp(3rem, 9vw, 7rem); }
.error-404__code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 10rem); font-weight: 700; line-height: 1; color: var(--accent); margin: 0; opacity: 0.85; }
.error-404 .search-form { margin-inline: auto; }

/* Sidebar & widgets */
.sidebar { display: grid; gap: 1.75rem; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.widget-title { font-size: 1.05rem; margin: 0 0 1rem; }
.widget ul { list-style: none; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text-muted); }
.widget a:hover { color: var(--accent); }

/* --------------------------- 11. Footer ----------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.site-footer__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.site-footer__tag { color: var(--text-muted); max-width: 360px; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin-top: 1.25rem; }
.social-links a {
	display: inline-flex; align-items: center;
	font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
	padding: 0.5rem 1rem; border-radius: 999px;
	border: 1px solid var(--border); color: var(--text-muted);
}
.social-links a:hover { border-color: var(--accent); color: var(--text); }

.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-menu, .site-footer__nav ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-menu a, .site-footer__nav a { color: var(--text-muted); }
.footer-menu a:hover { color: var(--accent); }

.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; }
.site-footer__bottom p { margin: 0; color: var(--text-faint); font-size: 0.88rem; }

/* Back to top */
.back-to-top {
	position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--accent); color: #fff; border: 0;
	font-size: 1.2rem; cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #6a47ff; transform: translateY(-3px); }

/* ----------------- 12. Utilities & 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 {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* Reveal-on-scroll animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--text-faint); text-align: center; margin-top: 0.5rem; }
.sticky .post-card { border-color: var(--accent); }
.bypostauthor { display: block; }
.page-links { margin-top: 1.5rem; display: flex; gap: 0.5rem; align-items: center; }
.page-links a, .page-links > span { padding: 0.4rem 0.7rem; border: 1px solid var(--border); border-radius: 6px; }

/* --------------------------- Responsive ----------------------- */
@media (max-width: 980px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.work__grid { grid-template-columns: repeat(2, 1fr); }
	.process__list { grid-template-columns: repeat(2, 1fr); }
	.content-area { grid-template-columns: 1fr; }
	.project-single__body { grid-template-columns: 1fr; }
	.project-single__aside { position: static; }
	.site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
	.site-header__cta { display: none; }
	.menu-toggle { display: inline-flex; order: 3; }
	.main-navigation { margin-left: 0; }
	.primary-menu {
		position: fixed;
		inset: 76px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--bg-alt);
		border-bottom: 1px solid var(--border);
		padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
	}
	.primary-menu.is-open { max-height: 80vh; opacity: 1; visibility: visible; overflow-y: auto; }
	.primary-menu a { padding: 0.9rem 0.5rem; border-radius: var(--radius-sm); font-size: 1.05rem; }

	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.services__grid, .work__grid, .posts-grid, .process__list { grid-template-columns: 1fr; }
	.section__head--row { flex-direction: column; align-items: flex-start; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.site-footer__bottom { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
