/* ==========================================================================
   Abdulrahman Omar — main stylesheet
   Dark charcoal surfaces, white/gray type, warm orange accent.
   Logical properties throughout so the layout works in RTL (primary) and LTR.
   Note: no letter-spacing on Arabic text — it breaks letter joining.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
	/* Client palette: #000000 page background, #1B1B1B cards/secondary surfaces,
	   white text. Secondary text levels are white at reduced opacity
	   (contrast ≥ 6.5:1 on both surfaces). */
	--bg: #000;
	--bg-rgb: 0, 0, 0;
	--surface: #1b1b1b;
	--surface-2: #0f0f0f;
	--surface-3: rgba(255, 255, 255, 0.06);
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.14);
	--text: #fff;
	--text-2: rgba(255, 255, 255, 0.72);
	--text-3: rgba(255, 255, 255, 0.58);
	--text-prose: rgba(255, 255, 255, 0.86);
	/* Accent is white (brand palette: #0F0F0F, #1B1B1B, white) — no hue. */
	--accent: #fff;
	--accent-2: rgba(255, 255, 255, 0.82);
	--accent-soft: rgba(255, 255, 255, 0.08);
	--logo-cream: #fff7e3; /* light colour of the logo */
	--accent-ink: #0f0f0f;
	--green: #fff; /* "available" dot: white, within the brand palette */
	--danger: #ff8a7a;

	--font: "ct_font_thmanyahsans", sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
	--fs-2xl: clamp(2rem, 1.3rem + 3vw, 3.75rem);

	--radius-xs: 10px;
	--radius-sm: 14px;
	--radius: 20px;
	--radius-lg: 28px;
	--pill: 999px;

	--container: 1120px;
	--gutter: clamp(18px, 4vw, 32px);
	--frame-x: max(8px, calc(50vw - 600px));
	--header-h: 0px;
	--section-y: clamp(48px, 6vw, 88px);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);

	color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.8;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

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

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

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

.skip-link:focus {
	position: fixed !important;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	margin: 0;
	clip: auto;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--pill);
	font-weight: 700;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

/* Direction helpers for arrow icons. */
[dir="rtl"] .icon-flip {
	transform: scaleX(-1);
}

html:not([dir="rtl"]) .icon-flip-ltr {
	transform: scaleX(-1);
}

/* 3. Frame lines & section dividers (the "animated lines and dots")
   ========================================================================== */
.frame-lines {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.frame-lines span {
	position: absolute;
	inset-block: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
	overflow: hidden;
}

.frame-lines span:first-child {
	inset-inline-start: var(--frame-x);
}

.frame-lines span:last-child {
	inset-inline-end: var(--frame-x);
}

.frame-lines span::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 140px;
	inset-block-start: -140px;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	animation: line-travel 11s linear infinite;
}

.frame-lines span:last-child::after {
	animation-delay: -5.5s;
}

@keyframes line-travel {
	to {
		transform: translateY(calc(100vh + 280px));
	}
}

.site-main,
.site-footer {
	position: relative;
	z-index: 1;
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section--flush {
	padding-block-start: 0;
}

.section-divider,
.section + .section::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: var(--frame-x);
	height: 1px;
	background: var(--line);
}

.section + .section::after {
	content: "";
	position: absolute;
	inset-block-start: -2px;
	inset-inline: calc(var(--frame-x) - 2px);
	height: 5px;
	background:
		radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) left center / 5px 5px no-repeat,
		radial-gradient(circle, var(--line-strong) 0 2px, transparent 2.5px) right center / 5px 5px no-repeat;
}

/* 4. Type components
   ========================================================================== */
.section-head {
	display: grid;
	gap: 14px;
	margin-block-end: clamp(32px, 5vw, 56px);
	max-width: 46rem;
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
	justify-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-3);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
	flex: none;
}

.section-title {
	font-size: var(--fs-xl);
	text-wrap: balance;
}

@media (max-width: 520px) {
	.section-title {
		font-size: 1.6rem;
		line-height: 1.45;
	}
}

.section-intro {
	color: var(--text-2);
	font-size: var(--fs-md);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text-2);
	font-size: var(--fs-xs);
	line-height: 1.6;
	white-space: nowrap;
}

.chip--accent {
	border-color: rgba(255, 255, 255, 0.25);
	color: var(--accent-2);
}

.dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

.dot--live {
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
	animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

/* 5. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--pill);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
	white-space: nowrap;
}

.btn .icon {
	transition: transform 0.3s var(--ease);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:hover .icon {
	transform: translate(3px, -3px);
}

[dir="rtl"] .btn:hover .icon-flip {
	transform: scaleX(-1) translate(3px, -3px);
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
	background: var(--accent-2);
	box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.375);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--line-strong);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
	min-height: 40px;
	padding: 0 18px;
	font-size: var(--fs-xs);
}

.btn--block {
	width: 100%;
}

.btn[disabled],
.btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text-2);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.icon-btn:hover {
	color: var(--text);
	border-color: var(--accent);
	transform: translateY(-2px);
}

.text-link {
	color: var(--accent-2);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

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

/* 6. Cards (with pointer-following border glow)
   ========================================================================== */
/* Card surface: brand charcoal (#1b1b1b → #0f0f0f) with a soft white glow
   from the top corner on the reading side, like the project cards. */
.card {
	--glow-x: 0%;
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(90% 130% at var(--glow-x) 0%, rgba(255, 255, 255, 0.12), transparent 60%),
		radial-gradient(55% 90% at calc(100% - var(--glow-x)) 100%, rgba(255, 255, 255, 0.05), transparent 70%),
		linear-gradient(160deg, var(--surface) 0%, #151515 55%, var(--surface-2) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), background-color 0.3s;
}

[dir="rtl"] .card {
	--glow-x: 100%;
}

.card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.3), transparent 65%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.35s var(--ease);
	pointer-events: none;
}

.card:hover::before,
.card:focus-within::before {
	opacity: 1;
}

.card-pad {
	padding: clamp(22px, 3vw, 32px);
}

.card-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-3);
	font-size: var(--fs-sm);
}

/* 7. Side dock navigation (reference layout)
   Desktop: fixed vertical bar in the page corner (left in RTL); labels
   appear on hover/focus; the item of the section in view is highlighted.
   Phones: the same items as a bar fixed to the bottom of the screen.
   ========================================================================== */
.dock {
	position: fixed;
	inset-block-start: 50%;
	inset-inline-end: 24px; /* page corner: left in RTL */
	z-index: 60;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(15, 15, 15, 0.08);
	border-radius: var(--pill);
	background: var(--logo-cream); /* the logo's own colour */
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 247, 227, 0.12);
	transform: translateY(-50%);
	--dock-ink: #0f0f0f;
	--dock-line: rgba(15, 15, 15, 0.12);
}

.dock-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dock-brand {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding-block-end: 10px;
	border-block-end: 1px solid var(--dock-line);
	border-radius: 0;
	box-sizing: content-box;
}

.dock-logo {
	width: auto;
	height: 30px;
	filter: brightness(0); /* cream logo → dark, on the cream bar */
	opacity: 0.88;
}

.dock-top {
	margin-block-start: 4px;
	border-radius: 50%;
}

.dock-top::before {
	content: "";
	position: absolute;
	inset-block-start: -8px;
	inset-inline: 8px;
	height: 1px;
	background: var(--dock-line);
}

.dock-link {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: rgba(15, 15, 15, 0.62);
	transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.dock-link:hover,
.dock-link:focus-visible {
	color: var(--dock-ink);
	background: rgba(15, 15, 15, 0.07);
}

.dock-link:focus-visible {
	outline: 2px solid var(--dock-ink);
	outline-offset: 2px;
}

.dock-link.is-active,
.dock-link[aria-current] {
	color: var(--logo-cream);
	background: var(--dock-ink);
}

/* Short caption under the icon: phones only. */
.dock-short {
	display: none;
}

/* Tooltip label, shown toward the content side. */
.dock-label {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: calc(100% + 14px);
	padding: 5px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1.6;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translate(0, -50%) scale(0.96);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
	pointer-events: none;
}

.dock-link:hover .dock-label,
.dock-link:focus-visible .dock-label,
.dock-brand:hover .dock-label,
.dock-brand:focus-visible .dock-label {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%) scale(1);
	transition-delay: 0s;
}

/* Keep page content clear of the dock where the side margins are narrow.
   (Not on <body>: WordPress global styles reset body padding after this file.) */
@media (min-width: 961px) and (max-width: 1327px) {
	.site-main,
	.site-footer {
		padding-inline-end: 96px;
	}
}

@media (max-width: 960px) {
	.dock {
		inset-block: auto max(10px, env(safe-area-inset-bottom));
		inset-inline: 50% auto;
		flex-direction: row;
		gap: 0;
		padding: 6px;
		transform: translateX(-50%);
		max-width: calc(100vw - 16px);
	}

	[dir="rtl"] .dock {
		transform: translateX(50%);
	}

	.dock-brand {
		display: none;
	}

	.dock-top::before {
		inset-block: 8px;
		inset-inline: -2px auto;
		width: 1px;
		height: auto;
	}

	.dock-list {
		flex-direction: row;
		gap: 2px;
	}

	.dock-link {
		width: 46px;
		height: 50px;
		border-radius: 16px;
		align-content: center;
		gap: 3px;
	}

	.dock-link .icon {
		width: 18px;
		height: 18px;
	}

	.dock-short {
		display: block;
		max-width: 100%;
		overflow: hidden;
		font-size: 0.625rem;
		font-weight: 700;
		line-height: 1.2;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.dock-top::before {
		background: var(--dock-line);
	}

	/* Labels stay available to screen readers; no hover tooltips on touch. */
	.dock-label {
		position: absolute !important;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	/* Only seven buttons fit across a small phone. */
	@media (max-width: 400px) {
		.dock-top {
			display: none;
		}

		.dock-link {
			width: 43px;
		}
	}

	@media (max-width: 359px) {
		.dock {
			padding: 4px;
		}

		.dock-list {
			gap: 0;
		}

		.dock-link {
			width: 40px;
		}

		.dock-short {
			font-size: 0.5625rem;
		}
	}

	/* Room for the bottom bar under the footer (beats the base footer rule). */
	body .site-footer {
		padding-block-end: 104px;
	}
}

/* 8. Social icons & footer
   ========================================================================== */
.social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.social a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--text-2);
	transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.social a:hover {
	color: var(--accent-2);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

.social--drawer {
	justify-content: center;
}

.site-footer {
	position: relative;
	overflow: hidden;
	border-block-start: 1px solid var(--line);
	padding-block: clamp(44px, 6vw, 72px) 28px;
	background: radial-gradient(70% 140% at 50% 130%, rgba(255, 255, 255, 0.06), transparent 70%);
}

/* Large outlined name across the footer (decorative). */
.footer-watermark {
	position: absolute;
	inset-inline: 0;
	inset-block-end: -0.28em;
	z-index: -1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
	font-size: clamp(4rem, 2rem + 11vw, 11rem);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 40px;
	padding-block-end: 32px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-logo {
	width: auto;
	height: 64px;
	flex: none;
}

.footer-name {
	font-size: var(--fs-lg);
	font-weight: 700;
}

.footer-role {
	color: var(--text-3);
	font-size: var(--fs-sm);
}

/* Menu sits at the far left (inline end in RTL) of the top row; social
   icons, when set, sit between the brand and the menu. */
.footer-social {
	margin-inline-start: auto;
}

.footer-nav {
	margin-inline-start: auto;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 26px;
}

.footer-menu a {
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.footer-menu a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-block-start: 22px;
	border-block-start: 1px solid var(--line);
	color: var(--text-3);
	font-size: var(--fs-xs);
}

/* Copyright in the left corner (inline end in RTL). */
.footer-copy {
	margin-inline-start: auto;
	direction: rtl;
}

@media (max-width: 860px) {
	.footer-top {
		flex-direction: column;
		text-align: center;
	}

	.footer-brand {
		flex-direction: column;
	}

	.footer-nav,
	.footer-social {
		margin-inline-start: 0;
	}

	.footer-menu {
		justify-content: center;
	}

	.footer-bottom {
		justify-content: center;
		text-align: center;
	}

	.footer-copy {
		margin-inline-start: 0;
	}
}

/* 9. Reveal on scroll & motion preferences
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.frame-lines span::after {
		display: none;
	}
}

/* 10. Hero
   ========================================================================== */
.hero {
	position: relative;
	padding-block: clamp(40px, 7vw, 88px) var(--section-y);
	text-align: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hero-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.hero-glow {
	position: absolute;
	inset-block-start: -18%;
	inset-inline-start: 50%;
	width: min(820px, 120vw);
	aspect-ratio: 1;
	translate: -50% 0;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 55%, transparent);
	filter: blur(10px);
	animation: glow-drift 14s ease-in-out infinite alternate;
}

[dir="rtl"] .hero-glow {
	translate: 50% 0;
}

@keyframes glow-drift {
	from {
		transform: translate3d(-4%, 0, 0) scale(1);
	}
	to {
		transform: translate3d(4%, 6%, 0) scale(1.08);
	}
}

.hero-rings {
	position: absolute;
	inset-block-start: 6%;
	inset-inline-start: 50%;
	width: min(720px, 130vw);
	aspect-ratio: 1;
	translate: -50% 0;
	color: rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .hero-rings {
	translate: 50% 0;
}

.hero-rings circle:nth-child(2) {
	transform-origin: 50% 50%;
	animation: spin 90s linear infinite;
	color: rgba(255, 255, 255, 0.125);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.hero-inner {
	display: grid;
	justify-items: center;
	gap: 24px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text-2);
	font-size: var(--fs-sm);
}

/* Portrait card: a slowly sweeping orange light around the border and a soft
   glow behind it. */
@property --sweep {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.hero-photo-wrap {
	position: relative;
	width: min(300px, 68vw);
	padding: 1.5px;
	border-radius: 34px;
	background: conic-gradient(from var(--sweep), rgba(255, 255, 255, 0.1) 0deg, rgba(255, 255, 255, 0.1) 250deg, var(--accent-2) 310deg, var(--accent) 340deg, rgba(255, 255, 255, 0.1) 360deg);
	animation: sweep 7s linear infinite;
}

.hero-photo-wrap::before {
	content: "";
	position: absolute;
	inset: 12% -18% -6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.225), transparent);
	filter: blur(30px);
	animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes sweep {
	to {
		--sweep: 360deg;
	}
}

@keyframes glow-pulse {
	from {
		opacity: 0.55;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1.04);
	}
}

.hero-photo {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 32px;
	overflow: hidden;
	background: var(--surface);
}

.hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	transform: scale(1.02);
	transition: transform 1.2s var(--ease);
}

.hero-photo-wrap:hover .hero-photo img {
	transform: scale(1.06);
}

/* Blend the bottom of the photo into the page. */
.hero-photo::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 35%;
	background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.85), transparent);
	pointer-events: none;
}

.hero-title {
	font-size: var(--fs-2xl);
	line-height: 1.2;
	max-width: 16em;
}

.hero-text {
	max-width: 44rem;
	color: var(--text-2);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
	line-height: 2;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin-block-start: 8px;
	color: var(--text-3);
	font-size: var(--fs-sm);
}

.hero-stats li {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.hero-stats li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin-inline-end: 18px;
	border-radius: 50%;
	background: var(--accent);
	align-self: center;
}

.hero-stats .metric-num {
	color: var(--accent);
	font-weight: 700;
}

.metric-num {
	font-variant-numeric: tabular-nums;
	unicode-bidi: isolate;
}

/* While counting, the reserved width must not push the digits off the start side. */
[dir="rtl"] .metric-num {
	text-align: right;
}

/* 11. Impact metrics
   ========================================================================== */
.impact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.metric {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 36px;
	min-height: 220px;
	border-radius: var(--radius-lg);
}

.metric-label {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--text-2);
	font-size: var(--fs-sm);
}

.metric-label .dot {
	transform: translateY(-2px);
}

/* Big figure sits under its label, on the same (start) side, as in the reference. */
.metric-value {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0 10px;
	font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.25rem);
	font-weight: 700;
	line-height: 1;
}

.metric-value .metric-unit {
	font-size: 0.4em;
	color: var(--text-2);
	font-weight: 500;
}

.impact-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-block-start: 16px;
	padding: 20px clamp(20px, 3vw, 28px);
	border-radius: var(--radius-lg);
}

.impact-bar-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
}

.impact-bar-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--text-2);
}

.impact-bar-line .icon {
	color: var(--accent);
}

.impact-fig strong {
	color: var(--text);
	font-size: var(--fs-md);
}

.impact-sep {
	color: var(--text-3);
}

.impact-bar-aside {
	display: flex;
	align-items: center;
	gap: 16px;
}

.impact-divider {
	width: 1px;
	height: 28px;
	background: var(--line-strong);
}

.impact-bar-title {
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.impact-globe {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--text-2);
}

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

	.metric {
		min-height: 0;
		gap: 28px;
	}

	.metric-value {
		font-size: 3.25rem;
	}

	/* Bar: logos, figures and the button stacked on the start side,
	   aligned with the metric cards above. */
	.impact-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 22px;
	}

	.impact-bar-main {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.impact-bar-main,
	.impact-bar .logo-marquee {
		width: 100%;
	}

	.impact-bar-line {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.impact-bar-line .icon {
		display: none;
	}

	.impact-sep {
		display: none;
	}

	.impact-bar-aside {
		padding-block-start: 16px;
		border-block-start: 1px solid var(--line);
	}

	.impact-bar-title {
		margin-inline-end: auto;
	}

	.impact-globe {
		order: -1;
	}

	.impact-bar-aside .btn {
		order: 3;
	}

	.impact-divider {
		display: none;
	}
}

/* 12. About
   ========================================================================== */
.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.about-main .section-head {
	margin-block-end: 28px;
}

.about-lead {
	position: relative;
	margin: 0 0 24px;
	padding: 24px 28px;
	border: 1px solid var(--line);
	border-inline-start: 3px solid var(--text);
	border-radius: var(--radius);
	background: var(--surface);
}

.about-lead .icon {
	color: var(--text-3);
	margin-block-end: 10px;
}

.about-lead p {
	color: var(--text);
	font-size: var(--fs-lg);
	font-weight: 500;
	line-height: 1.9;
}

.about-text {
	display: grid;
	gap: 18px;
	color: var(--text-2);
	font-size: var(--fs-md);
	line-height: 2.05;
}

.about-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 28px;
}

.about-tags .chip {
	padding: 7px 16px;
	font-size: var(--fs-sm);
	color: var(--text);
	background: var(--surface);
}

.about-card {
	position: sticky;
	inset-block-start: 32px;
	display: grid;
	gap: 22px;
	padding: clamp(24px, 3vw, 32px);
	overflow: hidden;
	isolation: isolate;
}

.about-card-mark {
	position: absolute;
	inset-block-end: -50px;
	inset-inline-start: -50px;
	z-index: -1;
	opacity: 0.06;
	pointer-events: none;
}

.about-mark {
	width: auto;
	height: 220px;
}

.about-card .status-pill {
	justify-self: start;
	font-size: var(--fs-xs);
}

.about-photo {
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.about-name {
	font-size: var(--fs-xl);
	font-weight: 700;
	line-height: 1.3;
}

.about-role {
	margin-block-start: 6px;
	color: var(--text-2);
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-block: 1px solid var(--line);
}

.about-stats li {
	display: grid;
	gap: 2px;
	padding-block: 16px;
	text-align: center;
}

.about-stats li + li {
	border-inline-start: 1px solid var(--line);
}

.about-stat-value {
	font-size: var(--fs-lg);
	font-weight: 700;
}

.about-stat-label {
	color: var(--text-3);
	font-size: var(--fs-xs);
}

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

	.about-card {
		position: relative;
		inset-block-start: 0;
	}
}

/* 13. Now (currently working on)
   ========================================================================== */
.now-list {
	display: grid;
	gap: 12px;
}

.now-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	font-size: var(--fs-md);
	color: var(--text);
}

.now-item .dot {
	margin-block-start: 0.75em;
}

/* 14. Services
   ========================================================================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.service {
	display: grid;
	gap: 14px;
	align-content: start;
	overflow: hidden;
}

.service-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.175);
	background: var(--accent-soft);
	color: var(--accent-2);
	font-weight: 700;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

.service h3 {
	font-size: var(--fs-lg);
}

.service p {
	color: var(--text-2);
}

.service::after {
	content: "";
	position: absolute;
	inset-block-end: -60%;
	inset-inline-end: -30%;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent);
	opacity: 0;
	transition: opacity 0.4s var(--ease);
	pointer-events: none;
}

.service:hover::after {
	opacity: 1;
}

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

/* 15. Projects (bento)
   ========================================================================== */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.project {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 320px;
	overflow: hidden;
	isolation: isolate;
}

.project--wide {
	grid-column: 1 / -1;
	min-height: 420px;
}

.project-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	border-radius: inherit;
	overflow: hidden;
	/* Glow sits with the line art, on the side away from the text. */
	background: radial-gradient(70% 90% at calc(100% - var(--glow-x)) 25%, rgba(255, 255, 255, 0.11), transparent 70%), linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
}

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

.project-media .art {
	position: absolute;
	inset-block-start: 8%;
	inset-inline-end: 4%; /* opposite the title (left in RTL) */
	width: 50%;
	height: auto;
	color: rgba(255, 255, 255, 0.3);
}

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

.project::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(0deg, rgba(var(--bg-rgb), 0.96) 8%, rgba(var(--bg-rgb), 0.75) 45%, rgba(var(--bg-rgb), 0.05) 85%);
}

.project-tag {
	align-self: flex-start;
	margin: 20px 20px 24px;
}

.project-tag + .project-body,
.project-body:first-child {
	margin-block-start: auto;
}

.project-body {
	display: grid;
	gap: 8px;
	max-width: 36rem;
	padding: clamp(22px, 3vw, 32px);
	padding-inline-end: 96px;
}

.project-sector {
	color: var(--text-2);
	font-size: var(--fs-sm);
}

.project-title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.project-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.project-text {
	color: var(--text-2);
	font-size: var(--fs-sm);
	line-height: 1.9;
}

.project--wide .project-text {
	font-size: var(--fs-base);
}

.project-arrow {
	position: absolute;
	inset-block-end: 24px;
	inset-inline-end: 24px;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--text);
	color: var(--bg);
	transition: transform 0.35s var(--ease), background-color 0.3s;
}

.project:hover .project-arrow {
	background: var(--accent);
	transform: rotate(-45deg);
}

[dir="rtl"] .project:hover .project-arrow {
	transform: rotate(45deg);
}

.projects-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-block-start: 16px;
}

.projects-summary-text {
	display: grid;
	gap: 4px;
}

.projects-summary-text strong {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-lg);
}

.projects-summary-text strong .icon {
	color: var(--accent);
}

.projects-summary-text span {
	color: var(--text-2);
}

.logo-stack {
	display: flex;
	padding-inline-start: 12px;
}

.logo-stack li {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-inline-start: -12px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--surface);
	overflow: hidden;
}

.logo-stack img {
	width: 72%;
	height: 72%;
	object-fit: contain;
}

/* Logo strip in the numbers bar: endless loop (uses .marquee). Its size
   must not come from its (very long) contents. */
.logo-marquee {
	width: 380px;
	max-width: 100%;
	min-width: 0;
	contain: inline-size;
}

.impact-bar-main {
	min-width: 0;
}

.logo-track li {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--logo-cream);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logo-track img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

	.project,
	.project--wide {
		min-height: 300px;
	}

	.project-body {
		padding-inline-end: 24px;
	}

	/* Room for the round arrow only on cards that have one. */
	.project--linked .project-body {
		padding-block-end: 88px;
	}
}

/* 16. Experience
   ========================================================================== */
.experience-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.exp {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.exp--wide {
	grid-column: 1 / -1;
}

.exp-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.exp-logo {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background: var(--surface-3);
	color: var(--text-2);
	overflow: hidden;
	flex: none;
}

.exp-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.exp-company {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--accent-2);
	font-weight: 700;
}

.exp-period {
	margin-inline-start: auto;
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.exp-role {
	font-size: var(--fs-lg);
}

.exp-text {
	color: var(--text-2);
	flex: 1;
}

.exp-tags {
	display: inline-flex;
	flex-wrap: wrap;
	align-self: flex-start;
	gap: 4px 0;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.02);
	color: var(--text-2);
	font-size: var(--fs-xs);
}

.exp-tags li + li::before {
	content: "·";
	margin-inline: 8px;
	color: var(--text-3);
}

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

	.exp-tags {
		border-radius: var(--radius-sm);
	}
}

/* 17. Marquees: logos, text strip, testimonials
   ========================================================================== */
.marquee {
	--speed: 40s;
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
	display: flex;
	flex: none;
	gap: var(--gap, 16px);
	padding-inline-end: var(--gap, 16px);
	min-width: 100%;
	animation: marquee var(--speed) linear infinite;
}

.marquee--reverse .marquee-track {
	animation-direction: reverse;
}

.marquee:hover .marquee-track {
	animation-play-state: paused;
}

@keyframes marquee {
	to {
		transform: translateX(-100%);
	}
}

[dir="rtl"] .marquee-track {
	animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
	to {
		transform: translateX(100%);
	}
}

.logos {
	display: grid;
	gap: 16px;
}

.logo-card {
	display: grid;
	place-items: center;
	width: 180px;
	height: 92px;
	padding: 18px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

/* Logos render as white silhouettes so any brand colour reads on the dark tiles
   (upload transparent PNG/SVG logos). */
.logo-card img {
	max-height: 48px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.6;
	transition: opacity 0.3s;
}

.logo-card:hover img {
	opacity: 1;
}

/* Same width as the section content (not full-bleed). */
.text-marquee {
	--speed: 34s;
	--gap: 40px;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
	padding-block: clamp(24px, 3vw, 40px);
	border-block: 1px solid var(--line);
}

.text-marquee .marquee-track span {
	display: inline-flex;
	align-items: center;
	gap: 40px;
	font-size: clamp(2rem, 1.2rem + 3.6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--text);
}

.text-marquee .marquee-track span:nth-child(even) {
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.text-marquee .marquee-track span::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.testimonials-wall {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: 16px;
	height: 620px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.testimonials-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	animation: scroll-up var(--speed, 50s) linear infinite;
}

.testimonials-col:nth-child(2) {
	--speed: 62s;
	animation-direction: reverse;
}

.testimonials-wall:hover .testimonials-col {
	animation-play-state: paused;
}

@keyframes scroll-up {
	to {
		transform: translateY(-50%);
	}
}

.testimonial {
	display: grid;
	gap: 20px;
}

.testimonial blockquote {
	margin: 0;
	color: var(--text);
	font-size: var(--fs-md);
	line-height: 1.95;
}

.testimonial .icon--quote {
	color: var(--accent);
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--accent-soft);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--accent-2);
	font-weight: 700;
	overflow: hidden;
	flex: none;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonial-name {
	font-weight: 700;
	font-size: var(--fs-sm);
}

.testimonial-role {
	color: var(--text-3);
	font-size: var(--fs-xs);
}

@media (max-width: 720px) {
	.testimonials-wall {
		--cols: 1;
		height: 560px;
	}

	.testimonials-col:nth-child(2) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.marquee-track {
		flex-wrap: wrap;
		justify-content: center;
		min-width: 0;
	}

	.marquee-track[aria-hidden="true"],
	.testimonials-col [aria-hidden="true"] {
		display: none;
	}

	.testimonials-wall {
		height: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* 18. Tools
   ========================================================================== */
.tools-groups {
	display: grid;
	gap: 28px;
}

.tools-group h3 {
	margin-block-end: 14px;
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.tools-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tool {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	background: var(--surface);
	font-size: var(--fs-sm);
	font-weight: 500;
	direction: ltr;
	transition: border-color 0.25s, transform 0.25s var(--ease);
}

.tool:hover {
	border-color: rgba(255, 255, 255, 0.275);
	transform: translateY(-2px);
}

.brand-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex: none;
}

.brand-icon--letter {
	display: inline-grid;
	place-items: center;
	border-radius: 6px;
	background: var(--surface-3);
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

/* 19. Education
   ========================================================================== */
.education-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.edu-card {
	display: grid;
	gap: 18px;
	align-content: start;
	overflow: hidden;
	isolation: isolate;
}

.edu-card--degree {
	align-content: end;
	min-height: 320px;
}

.edu-watermark {
	position: absolute;
	inset-block-start: -30px;
	inset-inline-end: -40px;
	z-index: -1;
	color: var(--text);
	opacity: 0.05;
	pointer-events: none;
}

.edu-watermark .icon {
	stroke-width: 1;
}

.edu-badge {
	position: absolute;
	inset-block-start: clamp(22px, 3vw, 32px);
	inset-inline-start: clamp(22px, 3vw, 32px);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	border: 1px solid var(--line-strong);
	background: var(--surface-3);
	color: var(--text);
}

.edu-degree {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	line-height: 1.25;
}

.edu-meta,
.edu-learning {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edu-meta .chip,
.edu-learning .chip {
	padding: 6px 14px;
	font-size: var(--fs-sm);
	color: var(--text);
	background: var(--surface-2);
}

.certs {
	display: grid;
	gap: 10px;
}

.cert {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cert:hover {
	border-color: var(--line-strong);
	transform: translateX(-3px);
}

html:not([dir="rtl"]) .cert:hover {
	transform: translateX(3px);
}

.cert-logo {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	flex: none;
}

.cert-logo .brand-icon--letter {
	width: 22px;
	height: 22px;
}

.cert-text {
	display: grid;
	gap: 2px;
}

.cert-text strong {
	font-size: var(--fs-md);
}

.cert-issuer {
	color: var(--text-3);
	font-size: var(--fs-sm);
}

.edu-note {
	color: var(--text-3);
	font-size: var(--fs-sm);
}

.edu-divider {
	height: 1px;
	margin-block: 4px;
	background: var(--line);
	border: 0;
}

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

	.edu-card--degree {
		min-height: 260px;
	}
}

/* 20. Process timeline
   ========================================================================== */
.process-layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.process-layout .section-head {
	position: sticky;
	inset-block-start: calc(var(--header-h) + 32px);
}

.process-layout .section-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-block-start: 20px;
	border-radius: 3px;
	background: var(--accent);
}

.timeline {
	--progress: 0;
	position: relative;
	display: grid;
	gap: 18px;
	padding-inline-end: 44px;
}

.timeline::before,
.timeline::after {
	content: "";
	position: absolute;
	inset-block: 24px;
	inset-inline-end: 12px;
	width: 2px;
	border-radius: 2px;
}

.timeline::before {
	background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.timeline::after {
	background: linear-gradient(180deg, var(--accent-2), var(--accent));
	transform-origin: top;
	transform: scaleY(var(--progress));
	box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 18px;
	align-items: center;
	overflow: hidden;
	transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: -39px;
	width: 14px;
	height: 14px;
	margin-block-start: -7px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--line-strong);
	transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline .step {
	overflow: visible;
}

.step.is-active {
	border-color: rgba(255, 255, 255, 0.225);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px -30px rgba(255, 255, 255, 0.275);
}

.step.is-active::after {
	background: var(--accent);
	border-color: var(--accent-2);
	box-shadow: 0 0 0 6px var(--accent-soft), 0 0 18px rgba(255, 255, 255, 0.4);
}

.step-icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: var(--accent-soft);
	color: var(--accent-2);
}

.step h3 {
	font-size: var(--fs-lg);
}

.step p {
	color: var(--text-2);
	grid-column: 2;
}

.step-num {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-end: 22px;
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.05);
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

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

	.process-layout .section-head {
		position: static;
	}

	.timeline {
		padding-inline-end: 34px;
	}

	.timeline::before,
	.timeline::after {
		inset-inline-end: 7px;
	}

	.step::after {
		inset-inline-end: -34px;
	}

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

	.step-icon {
		grid-row: auto;
		width: 46px;
		height: 46px;
	}

	.step p {
		grid-column: 1;
	}
}

/* 21. FAQ
   ========================================================================== */
.faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}

.faq-list {
	display: grid;
	gap: 12px;
}

.faq-item {
	border-radius: var(--radius-sm);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	font-weight: 700;
	font-size: var(--fs-md);
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--accent-2);
	flex: none;
	transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
}

.faq-item[open] {
	border-color: rgba(255, 255, 255, 0.175);
}

.faq-item[open] .faq-icon {
	transform: rotate(45deg);
	background: var(--accent-soft);
	border-color: rgba(255, 255, 255, 0.25);
}

.faq-answer {
	padding: 0 24px 22px;
	color: var(--text-2);
	line-height: 1.95;
}

.faq-item[open] .faq-answer {
	animation: faq-in 0.45s var(--ease);
}

@keyframes faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.faq-footer {
	margin-block-start: 24px;
	color: var(--text-2);
}

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

/* 22. Posts (cards, grid, featured)
   ========================================================================== */
.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-block-end: clamp(32px, 5vw, 56px);
}

.section-head-row .section-head {
	margin: 0;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-block-end: 1px solid var(--line);
	background:
		radial-gradient(50% 70% at 50% 40%, rgba(255, 255, 255, 0.14), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--surface-2);
}

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

.post-card:hover .media img {
	transform: scale(1.04);
}

.media-art {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--accent);
}

.media-art .art {
	width: 72%;
	filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.175));
}

.post-card-chips {
	position: absolute;
	inset-block-start: 14px;
	inset-inline: 14px;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 18px;
}

.post-card-title {
	font-size: var(--fs-md);
	line-height: 1.6;
}

.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.post-card-title a:hover {
	color: var(--accent-2);
}

.post-card-excerpt {
	color: var(--text-2);
	font-size: var(--fs-sm);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin-block-start: auto;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--line);
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.featured-post {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	margin-block-end: 24px;
}

.featured-post .media {
	aspect-ratio: auto;
	min-height: 320px;
	border: 0;
	border-inline-start: 1px solid var(--line);
	order: 2;
}

.featured-post-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: clamp(24px, 4vw, 48px);
}

.featured-post-body .chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.featured-post-title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.featured-post-excerpt {
	color: var(--text-2);
}

.featured-post .post-meta {
	margin: 0;
	padding: 0;
	border: 0;
}

.featured-post .btn {
	align-self: flex-start;
}

.blog-filter {
	display: grid;
	gap: 16px;
	padding: 16px;
	margin-block-end: 24px;
}

.term-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.term-chips a {
	display: inline-flex;
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	color: var(--text-2);
	font-size: var(--fs-sm);
	transition: color 0.2s, border-color 0.2s;
}

.term-chips a:hover,
.term-chips a[aria-current="page"] {
	color: var(--accent-2);
	border-color: rgba(255, 255, 255, 0.3);
}

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--line);
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	width: 100%;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--text);
}

.search-form .search-field:focus {
	outline: none;
}

.search-form:focus-within {
	border-color: rgba(255, 255, 255, 0.25);
}

.search-form .search-submit {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--surface-3);
	color: var(--text-2);
	cursor: pointer;
}

.search-form .search-submit:hover {
	color: var(--accent-2);
}

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

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

	.featured-post {
		grid-template-columns: 1fr;
	}

	.featured-post .media {
		order: 0;
		min-height: 220px;
		border-inline-start: 0;
		border-block-end: 1px solid var(--line);
	}
}

/* Pagination */
.pagination {
	margin-block-start: 40px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	color: var(--text-2);
	font-size: var(--fs-sm);
}

.pagination .current {
	border-color: var(--accent);
	color: var(--accent-2);
}

.pagination a:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.3);
}

/* 23. CTA box
   ========================================================================== */
.cta-box {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px);
	overflow: hidden;
	text-align: center;
}

.cta-box::after {
	content: "";
	position: absolute;
	inset-inline: 10%;
	inset-block-end: -60%;
	height: 100%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.15), transparent);
	pointer-events: none;
}

.cta-box h2 {
	font-size: var(--fs-xl);
}

.cta-box p {
	max-width: 40rem;
	color: var(--text-2);
}

/* 24. Contact
   ========================================================================== */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}

.contact-copy {
	display: grid;
	gap: 18px;
	color: var(--text-2);
	font-size: var(--fs-md);
	line-height: 2;
}

.contact-copy .section-head {
	margin-block-end: 8px;
}

.contact-closing {
	padding-inline-start: 18px;
	border-inline-start: 3px solid var(--accent);
	color: var(--text);
	font-weight: 500;
}

.contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.field {
	display: grid;
	gap: 8px;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 500;
}

.field .req {
	color: var(--accent-2);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	min-height: 140px;
	resize: vertical;
}

.field select {
	appearance: none;
	padding-inline-end: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238c8c87' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-position: left 18px center;
	background-repeat: no-repeat;
}

html:not([dir="rtl"]) .field select {
	background-position: right 18px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input[type="tel"],
.field input[type="email"],
.field input[type="url"] {
	direction: ltr;
}

[dir="rtl"] .field input[type="tel"],
[dir="rtl"] .field input[type="email"],
[dir="rtl"] .field input[type="url"] {
	text-align: right;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
	border-color: var(--danger);
}

.field-error {
	color: var(--danger);
	font-size: var(--fs-xs);
}

.field-error:empty {
	display: none;
}

.hp-field {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.form-status {
	color: var(--danger);
	font-size: var(--fs-sm);
}

.form-success {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding-block: 32px;
	text-align: center;
}

.form-success[hidden] {
	display: none;
}

.form-success .success-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent-soft);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--accent-2);
	animation: pop 0.6s var(--ease);
}

@keyframes pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
}

.form-success p {
	max-width: 30rem;
	font-size: var(--fs-md);
}

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

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

/* 25. Page hero, single article, prose
   ========================================================================== */
.page-hero {
	padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px);
}

.page-hero .section-head {
	margin-block-end: 0;
}

.page-hero .section-title {
	font-size: var(--fs-2xl);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-end: 20px;
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.breadcrumbs li + li::before {
	content: "‹";
	margin-inline-end: 6px;
}

html:not([dir="rtl"]) .breadcrumbs li + li::before {
	content: "›";
}

.breadcrumbs a:hover {
	color: var(--text);
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.article-layout--no-toc {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

.article-header {
	display: grid;
	gap: 18px;
	padding-block: clamp(32px, 5vw, 56px) 28px;
}

.article-title {
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
	line-height: 1.3;
}

.article-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	border-block: 1px solid var(--line);
}

.author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.author-name {
	font-weight: 700;
	font-size: var(--fs-sm);
}

.author-role {
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.share {
	display: flex;
	gap: 8px;
}

.share .icon-btn {
	width: 40px;
	height: 40px;
}

.ai-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.ai-summary a {
	padding: 6px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--pill);
	color: var(--text-2);
	direction: ltr;
}

.ai-summary a:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.3);
}

.article-media {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-block-end: 36px;
}

.article-media .media {
	border: 0;
}

.toc {
	position: sticky;
	inset-block-start: calc(var(--header-h) + 32px);
	padding-block-start: 56px;
	font-size: var(--fs-sm);
}

.toc-title {
	margin-block-end: 12px;
	color: var(--text-3);
	font-size: var(--fs-xs);
}

.toc ol {
	display: grid;
	border-inline-start: 1px solid var(--line);
}

.toc a {
	display: block;
	padding: 6px 14px;
	margin-inline-start: -1px;
	border-inline-start: 2px solid transparent;
	color: var(--text-3);
	line-height: 1.6;
}

.toc a:hover {
	color: var(--text);
}

.toc a.is-active {
	color: var(--accent-2);
	border-color: var(--accent);
}

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

	.toc {
		display: none;
	}
}

.prose {
	color: var(--text-prose);
	font-size: var(--fs-md);
	line-height: 2.05;
}

.prose > * + * {
	margin-block-start: 1.25em;
}

.prose h2 {
	margin-block-start: 2.4em;
	padding-block-start: 1.6em;
	border-block-start: 1px solid var(--line);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

.prose h3 {
	margin-block-start: 1.8em;
	font-size: var(--fs-lg);
}

.prose h2 + *,
.prose h3 + * {
	margin-block-start: 0.75em;
}

.prose a {
	color: var(--accent-2);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
	display: grid;
	gap: 0.5em;
	padding-inline-start: 1.4em;
}

.prose ul {
	list-style: none;
}

.prose ul li {
	position: relative;
}

.prose ul li::before {
	content: "";
	position: absolute;
	inset-inline-start: -1.1em;
	inset-block-start: 0.9em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

.prose ol {
	list-style: decimal;
}

.prose ol li::marker {
	color: var(--accent-2);
	font-weight: 700;
}

.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-inline-start: 3px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
}

.prose blockquote cite {
	display: block;
	margin-block-start: 8px;
	color: var(--text-3);
	font-size: var(--fs-sm);
	font-style: normal;
}

.prose .is-style-aro-callout {
	padding: 22px 24px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.prose .is-style-aro-callout > :first-child {
	color: var(--accent-2);
	font-size: var(--fs-sm);
}

.prose .is-style-aro-lead {
	color: var(--text);
	font-size: var(--fs-lg);
}

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

.prose figure {
	margin-inline: 0;
}

.prose figcaption {
	margin-block-start: 10px;
	color: var(--text-3);
	font-size: var(--fs-sm);
	text-align: center;
}

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

.prose pre {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	overflow-x: auto;
	direction: ltr;
}

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

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

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

.prose hr {
	border: 0;
	height: 1px;
	background: var(--line);
}

.prose .wp-block-details,
.prose details {
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.prose details summary {
	padding: 16px 20px;
	font-weight: 700;
	cursor: pointer;
}

.prose details > :not(summary) {
	padding: 0 20px 16px;
	margin: 0;
	color: var(--text-2);
}

.prose .alignwide {
	width: min(100vw - 2 * var(--gutter), 1000px);
	max-width: none;
	margin-inline: calc((100% - min(100vw - 2 * var(--gutter), 1000px)) / 2);
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose .alignleft {
	float: left;
	margin: 0.4em 0 1em 1.5em;
}

.prose .alignright {
	float: right;
	margin: 0.4em 1.5em 1em 0;
}

.prose .wp-block-button__link {
	display: inline-flex;
	padding: 14px 24px;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	text-decoration: none;
}

.article-footer {
	display: grid;
	gap: 48px;
	padding-block: 56px var(--section-y);
}

.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* 26. 404 & empty states
   ========================================================================== */
.error-404 {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding-block: clamp(80px, 14vw, 160px);
	text-align: center;
}

.error-code {
	font-size: clamp(6rem, 4rem + 10vw, 12rem);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.empty-state {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: 48px 24px;
	text-align: center;
	color: var(--text-2);
}

/* 27. Project single
   ========================================================================== */
.project-hero {
	display: grid;
	gap: 18px;
	padding-block: clamp(32px, 5vw, 56px) 32px;
}

.project-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.project-hero-media {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-block-end: 40px;
}

.post-card-media {
	position: relative;
}

.contact-form[hidden] {
	display: none;
}

.contact-copy > div {
	display: grid;
	gap: 18px;
}

.testimonials-wall.is-static {
	height: auto;
	-webkit-mask-image: none;
	mask-image: none;
}

.testimonials-wall.is-static .testimonials-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	animation: none;
}

.testimonials-wall.is-static {
	grid-template-columns: 1fr;
}

.blog-filter .search-form:first-child {
	padding-block-start: 0;
	border: 0;
}

.post-meta--plain {
	margin: 0;
	padding: 0;
	border: 0;
}

.author-name,
.testimonial-name,
.testimonial-role {
	display: block;
}

.article .tags-list,
.tags-list {
	margin-block-start: 40px;
}

.related-title {
	margin-block-end: 24px;
}

.page-body {
	padding-block-end: var(--section-y);
}

/* Services order status (thank-you) view has no page title above it. */
.services-body--status {
	padding-block-start: var(--section-y);
}

.error-search {
	width: min(100%, 420px);
}

/* Phones: stacking cards (positions and scale are set by main.js). */
@media (max-width: 720px) {
	.section--impact .container.is-stack {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.section--impact .is-stack .impact-grid {
		display: contents;
	}

	.section--impact .is-stack .impact-bar {
		margin-block-start: 0;
	}

	/* The stack is the motion here: no fade-in, so a card sliding over
	   the previous one is never see-through. */
	.js .stack-card[data-reveal],
	.stack-card[data-reveal] {
		opacity: 1;
		transform: none;
	}

	.stack-card {
		position: sticky;
		transform-origin: 50% 0;
		transition: scale 0.08s linear, filter 0.08s linear;
		will-change: scale;
	}

	/* Cards are see-through-free so the one underneath never shows through. */
	.is-stack > .stack-card,
	.is-stack .stack-card {
		background-color: var(--surface);
	}
}
