/* ==========================================================================
   BWP Portfolio — "Midnight Engineer" design system
   Tokens: bg #0B0F1A · surface #FFF · tint #EEF5FE · accent #1F7CFF
   Type: Plus Jakarta Sans (800 headings / 400 body) · radius 10/16/28
   ========================================================================== */

:root {
	--bg-dark: #0b0f1a;
	--bg-dark-soft: #111726;
	--surface: #ffffff;
	--tint: #eef5fe;
	--ink: #0e1524;
	--ink-muted: #5a6478;
	--ink-inverse: #ffffff;
	--ink-inverse-muted: #9aa5b8;
	--accent: #1f7cff;
	--accent-strong: #1257b8;
	--line: #e3e9f2;
	--line-dark: rgba(255, 255, 255, 0.12);
	--font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 28px;
	--w-container: 1180px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--accent);
	text-decoration: none;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 999;
	background: var(--accent);
	color: #fff;
	padding: 8px 16px;
	border-radius: var(--r-sm);
	width: auto; height: auto;
	clip: auto;
}

.container {
	max-width: var(--w-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.section {
	padding-block: 96px;
}

.section--tint {
	background: var(--tint);
}

.h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.eyebrow {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 8px;
}

.eyebrow--dark {
	color: var(--accent);
}

.section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}

.section-head--left {
	text-align: left;
	margin-inline: 0;
}

.section-head__lead {
	color: var(--ink-muted);
	margin: 0;
}

.section-more {
	text-align: center;
	margin-top: 48px;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	font: 600 1rem/1.2 var(--font-sans);
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
	background: var(--accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-strong);
	color: #fff;
	transform: translateY(-2px);
}

.btn--ghost {
	border-color: currentColor;
	color: inherit;
	background: transparent;
}

.btn--ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn--lg {
	padding: 15px 30px;
	font-size: 1.05rem;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 15, 26, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line-dark);
	transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink-inverse);
	font-weight: 700;
	font-size: 1.1rem;
}

.brand:hover {
	color: #fff;
}

.brand__mark {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 700;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-list {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	color: var(--ink-inverse-muted);
	font-weight: 500;
	font-size: 0.98rem;
	transition: color 0.2s;
}

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

.nav-cta {
	padding: 10px 20px;
	font-size: 0.95rem;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
}

.nav-toggle span {
	width: 22px; height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.hero {
	position: relative;
	background: var(--bg-dark);
	color: var(--ink-inverse);
	padding: 72px 0 96px;
	overflow: hidden;
}

.hero__deco {
	position: absolute;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: clamp(14rem, 30vw, 26rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px rgba(31, 124, 255, 0.28);
	user-select: none;
	pointer-events: none;
}

.hero__deco--tl {
	top: -40px;
	left: 2%;
	transform: rotate(180deg);
}

.hero__deco--br {
	bottom: -60px;
	right: 2%;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr minmax(300px, 420px) 1fr;
	align-items: center;
	gap: 32px;
	z-index: 1;
}

.hero__name {
	font-size: clamp(2.8rem, 7vw, 5rem);
	margin: 0;
	letter-spacing: -0.03em;
}

.hero__line {
	display: block;
}

.hero__line--second {
	margin-left: 0.75em;
}

.hero__media {
	margin: 0;
	justify-self: center;
}

.hero__img,
.hero__avatar {
	width: min(380px, 78vw);
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
	border-radius: var(--r-lg);
	border: 1px solid var(--line-dark);
}

.hero__avatar {
	display: grid;
	place-items: center;
	font-size: 7rem;
	font-weight: 800;
	color: var(--accent);
	background:
		radial-gradient(120% 120% at 20% 0%, rgba(31, 124, 255, 0.22), transparent 55%),
		var(--bg-dark-soft);
}

.hero__role {
	color: var(--accent);
	font-weight: 700;
	font-size: 1.3rem;
	margin-bottom: 6px;
}

.hero__tagline {
	color: var(--ink-inverse-muted);
	font-size: 1.15rem;
	max-width: 34ch;
	margin-bottom: 24px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---------- Client logos ---------- */

.logos {
	background: var(--bg-dark);
	color: var(--ink-inverse);
	padding: 8px 0 56px;
	border-top: 1px solid var(--line-dark);
}

.logos__hint {
	text-align: center;
	color: var(--ink-inverse-muted);
	font-size: 0.9rem;
	margin-bottom: 20px;
}

.logos__marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logos__track {
	display: flex;
	gap: 56px;
	width: max-content;
	animation: bwp-marquee 32s linear infinite;
	padding-inline: 28px;
}

.logos__item {
	display: grid;
	place-items: center;
	min-height: 44px;
	opacity: 0.85;
}

.logos__item img {
	max-height: 40px;
	width: auto;
	filter: grayscale(1) brightness(2.2);
}

.logos__word {
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	color: var(--ink-inverse-muted);
	white-space: nowrap;
}

@keyframes bwp-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

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

/* ---------- Services ---------- */

.services__grid {
	display: grid;
	grid-template-columns: minmax(280px, 420px) 1fr;
	gap: 64px;
	align-items: start;
}

.services__intro .btn {
	margin-top: 8px;
}

.service-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 4px;
	border-bottom: 1px solid var(--line);
	color: inherit;
	transition: transform 0.22s var(--ease);
}

.service-row:first-child {
	border-top: 1px solid var(--line);
}

.service-row:hover {
	transform: translateX(6px);
}

.service-row__title {
	font-size: 1.35rem;
	margin: 0 0 6px;
	color: inherit;
	transition: color 0.2s;
}

.service-row:hover .service-row__title {
	color: var(--accent);
}

.service-row__desc {
	color: var(--ink-muted);
	margin: 0;
	max-width: 56ch;
}

.service-row__arrow {
	font-size: 1.4rem;
	line-height: 1;
	color: var(--ink-muted);
	transition: color 0.2s, transform 0.22s var(--ease);
}

.service-row:hover .service-row__arrow {
	color: var(--accent);
	transform: translate(3px, -3px);
}

/* ---------- Process ---------- */

.process__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	counter-reset: step;
}

.process-step {
	position: relative;
	text-align: center;
	padding-top: 8px;
}

.process-step__num {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--accent);
	font-size: 0.95rem;
	display: block;
	margin-bottom: 14px;
}

.process-step__line {
	position: absolute;
	top: 14px;
	left: calc(50% + 34px);
	right: calc(-50% + 34px);
	height: 1px;
	background: linear-gradient(90deg, rgba(31, 124, 255, 0.55), rgba(31, 124, 255, 0.12));
}

.process-step:last-child .process-step__line {
	display: none;
}

.process-step__icon {
	display: inline-grid;
	place-items: center;
	width: 58px; height: 58px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: #fff;
	margin-bottom: 16px;
	transition: transform 0.22s var(--ease);
}

.process-step:hover .process-step__icon {
	transform: translateY(-4px) scale(1.04);
}

.process-step__icon svg {
	width: 28px; height: 28px;
}

.process-step__title {
	font-size: 1.05rem;
	margin-bottom: 6px;
}

.process-step__desc {
	font-size: 0.9rem;
	color: var(--ink-muted);
	margin: 0;
	line-height: 1.55;
}

/* ---------- Projects ---------- */

.projects__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.project-card__media {
	display: block;
	aspect-ratio: 16 / 10.5;
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--tint);
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--ease);
}

.project-card:hover .project-card__media img {
	transform: scale(1.04);
}

.project-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--accent);
	background:
		radial-gradient(120% 120% at 85% 10%, rgba(31, 124, 255, 0.14), transparent 50%),
		var(--tint);
}

.project-card__body {
	padding-top: 20px;
}

.project-card__meta {
	display: flex;
	gap: 14px;
	font-size: 0.88rem;
	color: var(--ink-muted);
	margin-bottom: 8px;
}

.project-card__meta span:first-child {
	color: var(--accent);
	font-weight: 600;
}

.project-card__title {
	font-size: 1.5rem;
	margin-bottom: 8px;
}

.project-card__title a {
	color: inherit;
}

.project-card__title a:hover {
	color: var(--accent);
}

.project-card__desc {
	color: var(--ink-muted);
	margin-bottom: 12px;
}

.project-card__link {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* ---------- Testimonials slider ---------- */

.tslider {
	max-width: 880px;
	margin-inline: auto;
}

.tslider__track {
	display: grid;
}

.tslide {
	display: none;
	grid-template-columns: 180px 1fr;
	gap: 36px;
	align-items: center;
}

.tslide.is-active {
	display: grid;
	animation: bwp-fade 0.35s var(--ease);
}

@keyframes bwp-fade {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.tslide__photo img,
.tslide__avatar {
	width: 180px; height: 180px;
	object-fit: cover;
	border-radius: 50%;
}

.tslide__avatar {
	display: grid;
	place-items: center;
	font-size: 3.4rem;
	font-weight: 800;
	color: #fff;
	background: var(--accent);
}

.tslide__name {
	font-size: 1.35rem;
	margin-bottom: 2px;
}

.tslide__role {
	color: var(--ink-muted);
	margin-bottom: 10px;
}

.tslide__stars {
	margin-bottom: 14px;
	letter-spacing: 3px;
}

.star {
	color: #c9d4e5;
	font-size: 1.05rem;
}

.star--on {
	color: var(--accent);
}

.tslide__quote p {
	color: var(--ink);
	font-size: 1.02rem;
	margin: 0;
}

.tslider__dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 36px;
}

.tslider__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #c9d4e5;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}

.tslider__dot.is-active {
	background: var(--accent);
	transform: scale(1.25);
}

/* ---------- Insights ---------- */

.insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.insight-card {
	color: inherit;
	display: block;
}

.insight-card__thumb {
	margin: 0 0 16px;
	aspect-ratio: 16 / 10;
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--tint);
}

.insight-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--ease);
}

.insight-card:hover .insight-card__thumb img {
	transform: scale(1.04);
}

.insight-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%; height: 100%;
	font-family: var(--font-mono);
	font-size: 2rem;
	color: var(--accent);
}

.insight-card__meta {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 0.88rem;
	color: var(--ink-muted);
	margin-bottom: 8px;
}

.insight-card__meta time {
	color: var(--accent);
	font-weight: 600;
}

.insight-card__title {
	font-size: 1.18rem;
	line-height: 1.35;
	margin: 0;
	transition: color 0.2s;
}

.insight-card:hover .insight-card__title {
	color: var(--accent);
}

.insight-card__excerpt {
	color: var(--ink-muted);
	font-size: 0.95rem;
	margin: 8px 0 0;
}

/* ---------- Work With Me (footer form) ---------- */

.wwm {
	background: var(--bg-dark);
	color: var(--ink-inverse);
	padding: 96px 0 88px;
}

.wwm__grid {
	display: grid;
	grid-template-columns: minmax(300px, 5fr) 7fr;
	gap: 64px;
	align-items: start;
}

.wwm__title {
	color: var(--ink-inverse);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.wwm__lead {
	color: var(--ink-inverse-muted);
	max-width: 40ch;
}

.wwm__points {
	list-style: none;
	margin: 20px 0 24px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.wwm__points li {
	padding-left: 28px;
	position: relative;
	color: var(--ink-inverse-muted);
}

.wwm__points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	font-weight: 700;
}

.wwm__direct {
	color: var(--ink-inverse-muted);
	font-size: 0.95rem;
}

.wwm__form-wrap {
	background: var(--bg-dark-soft);
	border: 1px solid var(--line-dark);
	border-radius: var(--r-md);
	padding: 32px;
}

.wwm__form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wwm__form .field {
	margin: 0 0 16px;
}

.wwm__form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink-inverse-muted);
	margin-bottom: 6px;
}

.wwm__form input,
.wwm__form select,
.wwm__form textarea {
	width: 100%;
	background: var(--bg-dark);
	border: 1px solid var(--line-dark);
	border-radius: var(--r-sm);
	color: var(--ink-inverse);
	padding: 12px 14px;
	font: 400 1rem/1.5 var(--font-sans);
	transition: border-color 0.2s;
}

.wwm__form input:focus,
.wwm__form select:focus,
.wwm__form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.wwm__form select option {
	background: var(--bg-dark);
	color: var(--ink-inverse);
}

.hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.form-banner {
	border-radius: var(--r-sm);
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.form-banner--ok {
	background: rgba(24, 160, 92, 0.14);
	border: 1px solid rgba(24, 160, 92, 0.45);
	color: #7fe0ac;
}

.form-banner--err {
	background: rgba(229, 72, 77, 0.12);
	border: 1px solid rgba(229, 72, 77, 0.45);
	color: #ff9ea1;
}

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

.site-footer {
	background: var(--bg-dark);
	color: var(--ink-inverse);
	border-top: 1px solid var(--line-dark);
	padding: 48px 0 32px;
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	flex-wrap: wrap;
}

.site-footer__copy {
	color: var(--ink-inverse-muted);
	margin: 4px 0 0;
	font-size: 0.95rem;
}

.site-footer__social {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.site-footer__social a,
.footer-social-menu a {
	color: var(--ink-inverse-muted);
	font-weight: 500;
	font-size: 0.95rem;
}

.site-footer__social a:hover,
.footer-social-menu a:hover {
	color: var(--accent);
}

.footer-social-menu {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__legal {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line-dark);
}

.site-footer__legal p {
	color: var(--ink-inverse-muted);
	font-size: 0.88rem;
	margin: 0;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
	background: var(--bg-dark);
	color: var(--ink-inverse);
	padding: 88px 0 72px;
}

.page-hero__title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin-bottom: 12px;
}

.page-hero__lead {
	color: var(--ink-inverse-muted);
	font-size: 1.1rem;
	max-width: 60ch;
	margin-bottom: 24px;
}

.page-hero__meta {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	color: var(--ink-inverse-muted);
	font-size: 0.95rem;
	margin: 0;
}

.page-hero__meta span::before {
	content: "·";
	margin-right: 18px;
	color: var(--accent);
}

.page-hero__meta > :first-child::before {
	content: none;
}

.crumbs {
	display: inline-block;
	color: var(--ink-inverse-muted);
	font-size: 0.9rem;
	margin-bottom: 20px;
}

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

/* ---------- Prose (article body) ---------- */

.prose {
	max-width: 760px;
}

.prose--narrow {
	max-width: 720px;
}

.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }

.prose img {
	border-radius: var(--r-md);
}

.prose blockquote {
	margin: 1.5em 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--accent);
	color: var(--ink-muted);
}

.prose code {
	font-family: var(--font-mono);
	background: var(--tint);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.9em;
}

.prose pre {
	background: var(--bg-dark);
	color: var(--ink-inverse);
	padding: 20px;
	border-radius: var(--r-md);
	overflow-x: auto;
}

.prose pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
}

/* ---------- Single service / project extras ---------- */

.single-service__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
	gap: 64px;
	align-items: start;
}

.single-service__aside {
	background: var(--tint);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 28px;
	position: sticky;
	top: 100px;
}

.single-service__aside-title {
	font-size: 1.15rem;
	margin-bottom: 14px;
}

.checklist {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.checklist li {
	position: relative;
	padding-left: 28px;
}

.checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

.aside-cta {
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.aside-cta p {
	font-weight: 600;
	margin-bottom: 12px;
}

.project-hero-media__frame {
	margin: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
}

.next-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.next-cta .h2 {
	margin: 0;
}

/* ---------- Pagination / misc ---------- */

.pagination {
	margin-top: 48px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	margin-inline: 3px;
	color: var(--ink);
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.empty-note {
	color: var(--ink-muted);
	text-align: center;
	padding: 40px 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.process__steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 36px 24px;
	}

	.process-step:nth-child(3) .process-step__line {
		display: none;
	}

	.hero__grid {
		grid-template-columns: 1fr 1fr;
	}

	.hero__name-wrap {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.section {
		padding-block: 64px;
	}

	.services__grid,
	.wwm__grid,
	.single-service__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.single-service__aside {
		position: static;
	}

	.projects__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.insights__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero {
		padding: 48px 0 72px;
	}

	.hero__grid {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.hero__media {
		order: -1;
		justify-self: start;
	}

	.hero__img,
	.hero__avatar {
		width: min(280px, 70vw);
	}

	.hero__line--second {
		margin-left: 0.4em;
	}

	.tslide {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}

	.tslide__quote {
		text-align: left;
	}

	/* Mobile nav */
	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		background: var(--bg-dark);
		border-bottom: 1px solid var(--line-dark);
		padding: 16px 24px 24px;
		display: none;
	}

	.site-nav.is-open {
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		gap: 4px;
		width: 100%;
	}

	.nav-list a {
		display: block;
		padding: 10px 0;
		font-size: 1.05rem;
	}

	.nav-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

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

	.process-step__line {
		display: none;
	}

	.wwm__form .field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.wwm__form-wrap {
		padding: 24px 20px;
	}

	.hero__actions .btn {
		width: 100%;
	}
}
