/**
 * ZERO1 — layout and style from the client's Swift design, in the ZERO1
 * brand palette (DESIGN.md §12). Rules theme.json cannot express.
 * Logical properties only: the site is RTL.
 */

:root {
	--zero1-radius-card: 20px;
	--zero1-radius-inner: 14px;
	--zero1-hairline: rgb(255 255 255 / 0.07);
	--zero1-card-bg: linear-gradient(180deg, #1B2D27 0%, #15241F 100%);
	--zero1-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.6a8.4 8.4 0 0 1-12.3 7.4L3.5 20.5l1.6-4.5A8.4 8.4 0 1 1 20.5 11.6z'/%3E%3Cpath d='M9 8.8c.2 2.6 2.4 5 5.2 5.4l1-1.3-1.7-.9-.8.8c-1-.4-2-1.4-2.4-2.4l.8-.8-.9-1.7z'/%3E%3C/svg%3E");
	/* Saudi riyal sign (SAMA, 2025), drawn as a shape: fonts don't carry U+20C1 yet. */
	--zero1-riyal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='100 0 1100 1420'%3E%3Cpath d='M102 1247V953l468-94-189 263V55l239-50v885q0 137-52 205t-174 93zM722 1025l1-923 248-50v858L781 720l412-83-1 294zM159 744V450l1034-207v294zM723 1417v-294l470-94v293z'/%3E%3C/svg%3E");
	/* The logo's "<>" chevrons (favicon mark), used before eyebrows. */
	--zero1-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5 2.5 10 8 17.5M14 2.5l5.5 7.5-5.5 7.5'/%3E%3C/svg%3E");
	/* CTA arrow pointing forward in RTL (up-left). */
	--zero1-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17L7 7M7 15V7h8'/%3E%3C/svg%3E");
	--zero1-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Page background: layered depth instead of one flat colour ---------- */

body {
	background-color: var(--wp--preset--color--page);
	background-image:
		/* Top light: brand green spilling over the hero. */
		radial-gradient(ellipse 70% 55% at 50% -8%, rgb(40 172 24 / 0.22), transparent 70%),
		/* Soft side glows lower down so long scrolls never look flat. */
		radial-gradient(ellipse 45% 30% at 100% 38%, rgb(40 172 24 / 0.07), transparent 70%),
		radial-gradient(ellipse 45% 30% at 0% 64%, rgb(40 172 24 / 0.06), transparent 70%),
		/* Gentle vertical tonal shift from brand dark green to near-black. */
		linear-gradient(180deg, #13221D 0%, #0B1512 28%, #0B1512 72%, #0E1915 100%);
	background-repeat: no-repeat;
	/* The top light is sized to the first screen, not the whole (long) page. */
	background-size: 100% 1000px, 100% 100%, 100% 100%, 100% 100%;
	background-position: top center;
}

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

.wp-site-blocks > * + *,
main.wp-block-group > * + * {
	margin-block-start: 0;
}

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

html {
	scroll-padding-block-start: 88px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2.5px solid var(--wp--preset--color--green-400);
	outline-offset: 3px;
}

mark.has-inline-color {
	padding: 0;
}

/* ---------- Buttons (Swift-style pills) ---------- */

.wp-block-button__link {
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.zero1-btn-light > .wp-block-button__link {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.zero1-btn-light > .wp-block-button__link:hover {
	background-color: #E6EEEA;
	color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--raised);
	border-color: var(--wp--preset--color--green-400);
	color: var(--wp--preset--color--heading);
}

/* ---------- Header (§5.1): slim, translucent, small logo ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	border-block-end: 1px solid transparent;
	transition: background-color 200ms ease, border-color 200ms ease, padding 200ms ease;
}

@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		inset-block-start: 0;
	}
}

.wp-site-blocks > header.is-scrolled {
	padding-block: 0.375rem;
	background-color: rgb(11 21 18 / 0.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-block-end-color: var(--zero1-hairline);
}

.zero1-header__bar {
	gap: 1rem;
	min-block-size: 64px;
}

.zero1-header__end {
	gap: 1.5rem;
}

.zero1-header__logo {
	margin: 0;
	flex-shrink: 0;
}

/* Small logo, but a 44px tap target. */
.zero1-header__logo a,
.zero1-footer__logo a {
	display: flex;
	align-items: center;
	min-block-size: 44px;
}

/* Smaller logo (client feedback): 76px on phones, 88px from tablet up. */
.zero1-header__logo img {
	display: block;
	inline-size: 76px;
	block-size: auto;
	aspect-ratio: 340 / 134;
}

@media (min-width: 782px) {
	.zero1-header__logo img {
		inline-size: 88px;
	}
}

.zero1-header__nav {
	gap: 1.75rem;
}

.zero1-header__nav a {
	color: var(--wp--preset--color--body);
	text-decoration: none;
}

.zero1-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--heading);
}

.zero1-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 0.5rem 1.125rem;
	font-size: 0.9375rem;
}

.zero1-header__nav .wp-block-navigation__responsive-container-open,
.zero1-header__nav .wp-block-navigation__responsive-container-close {
	inline-size: 44px;
	block-size: 44px;
	justify-content: center;
	align-items: center;
	color: var(--wp--preset--color--heading);
}

/*
 * Mobile menu panel: the page's depth instead of a flat sheet — green light
 * from the top corner, a large faded "<>" mark at the bottom — and the links
 * as numbered rows with the CTA arrow, fading up in turn when it opens.
 */
.zero1-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 1.25rem 2rem;
	background:
		radial-gradient(ellipse 90% 45% at 100% 0%, rgb(40 172 24 / 0.3), transparent 70%),
		radial-gradient(ellipse 80% 40% at 0% 100%, rgb(63 199 46 / 0.16), transparent 70%),
		linear-gradient(180deg, #14261F 0%, #0B1512 100%) !important;
	overflow: hidden;
}

.zero1-header__nav .wp-block-navigation__responsive-container.is-menu-open::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-inline-start: -12%;
	inset-block-end: -6%;
	inline-size: 80vw;
	aspect-ratio: 22 / 20;
	background-color: var(--wp--preset--color--green-400);
	opacity: 0.07;
	-webkit-mask: var(--zero1-mark) center / contain no-repeat;
	mask: var(--zero1-mark) center / contain no-repeat;
	pointer-events: none;
}

.zero1-header__nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	z-index: 0;
}

.zero1-header__nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-block-start: 3.5rem !important;
}

.zero1-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	inline-size: 100%;
	gap: 0;
	counter-reset: zero1-menu;
}

.zero1-header__nav .is-menu-open .wp-block-navigation-item {
	counter-increment: zero1-menu;
	border-block-end: 1px solid var(--zero1-hairline);
}

.zero1-header__nav .is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	gap: 0.875rem;
	inline-size: 100%;
	padding-block: 1.125rem !important;
	color: var(--wp--preset--color--heading);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.3;
}

/* "01"–"04" before each link, the green CTA arrow at the far end. */
.zero1-header__nav .is-menu-open .wp-block-navigation-item__content::before {
	content: counter(zero1-menu, decimal-leading-zero);
	min-inline-size: 1.75rem;
	color: var(--wp--preset--color--green-400);
	font-size: 0.875rem;
	font-weight: 500;
}

.zero1-header__nav .is-menu-open .wp-block-navigation-item__content::after {
	content: "";
	margin-inline-start: auto;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	background-color: var(--wp--preset--color--green-400);
	-webkit-mask: var(--zero1-arrow) center / contain no-repeat;
	mask: var(--zero1-arrow) center / contain no-repeat;
}

.zero1-header__nav .is-menu-open .wp-block-navigation-item__content:hover,
.zero1-header__nav .is-menu-open .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--green-400);
}

@media (prefers-reduced-motion: no-preference) {
	.zero1-header__nav .is-menu-open .wp-block-navigation-item {
		animation: zero1-fade-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.zero1-header__nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 60ms; }
	.zero1-header__nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 120ms; }
	.zero1-header__nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 180ms; }
}

/* Phones/tablets: logo · CTA · menu toggle. */
@media (max-width: 899px) {
	.zero1-header__nav {
		order: 3;
	}

	.zero1-header__end {
		gap: 0.5rem;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.zero1-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.zero1-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Hero (§5.2) ---------- */

.zero1-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
}

/* Two soft "light streaks" curving over the hero (no images, no pattern). */
.zero1-hero::before,
.zero1-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

.zero1-hero::before {
	inset-block-start: -38%;
	inset-inline-start: -30%;
	inline-size: 95%;
	aspect-ratio: 1.6;
	border-block-end: 1.5px solid rgb(63 199 46 / 0.22);
	box-shadow: 0 40px 80px -40px rgb(40 172 24 / 0.25);
	filter: blur(1px);
	rotate: -8deg;
}

.zero1-hero::after {
	inset-block-start: -30%;
	inset-inline-end: -35%;
	inline-size: 90%;
	aspect-ratio: 1.5;
	border-block-end: 1px solid rgb(255 255 255 / 0.08);
	box-shadow: 0 50px 90px -50px rgb(40 172 24 / 0.18);
	filter: blur(1.5px);
	rotate: 10deg;
}

/* Proof line (supplied trust indicators), Swift's "4.9 ★ across 200+ reviews" spot. */
.zero1-proof {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.375rem 1.25rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--body);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.zero1-proof li {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.zero1-proof li::before {
	content: "";
	flex-shrink: 0;
	inline-size: 0.95rem;
	block-size: 0.95rem;
	background: var(--zero1-check) center / contain no-repeat;
}

.zero1-proof strong {
	direction: ltr;
	unicode-bidi: isolate;
}

.zero1-proof strong {
	color: var(--wp--preset--color--heading);
	font-weight: 700;
}

.zero1-hero__title {
	max-inline-size: 13ch;
	margin-block: 1.25rem 0;
	margin-inline: auto;
	text-wrap: balance;
}

.zero1-hero__lead {
	max-inline-size: 34rem;
	margin-block-start: 1.25rem;
	margin-inline: auto;
	line-height: 1.7;
	text-wrap: pretty;
}

.zero1-hero__ctas {
	margin-block-start: 2rem;
	gap: 0.75rem;
}

/* Both hero buttons share one height. */
.zero1-hero__ctas .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 50px;
	padding-block: 0.5rem;
}

/* ---------- Lead form (§5.3, §12.10): dark card in the hero frame's colours ---------- */

.zero1-lead {
	--zero1-lead-label: #FFFFFF;
	--zero1-lead-body: #B5C4BE;
	--zero1-lead-placeholder: #8FA39B;
	--zero1-lead-border: #6E9284;
	--zero1-lead-soft: rgb(255 255 255 / 0.12);
	--zero1-lead-field: rgb(11 21 18 / 0.55);
	--zero1-lead-error: #FF8A8A;
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	inline-size: min(780px, 100%);
	margin-block: clamp(3rem, 2rem + 4vw, 4.5rem) clamp(4rem, 3rem + 5vw, 7rem) !important;
	margin-inline: auto;
	padding: clamp(8px, 0.4rem + 0.5vw, 12px);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 36px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 -30px 80px -40px rgb(40 172 24 / 0.35), 0 40px 90px -40px rgb(0 0 0 / 0.8);
	scroll-margin-block-start: 88px;
	text-align: start;
}

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

/* Green light behind the frame (keeps the hero's glowing "screen"). */
.zero1-lead::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -12% -8% auto;
	block-size: 70%;
	background: radial-gradient(ellipse 50% 60% at 50% 40%, rgb(40 172 24 / 0.3), transparent 70%);
	filter: blur(10px);
	pointer-events: none;
}

/* Same colours as the former hero "screen": green glow over a dark green gradient. */
.zero1-lead__card {
	padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
	border: 1px solid rgb(255 255 255 / 0.05);
	border-radius: 28px;
	background:
		radial-gradient(ellipse 70% 45% at 50% 0%, rgb(40 172 24 / 0.22), transparent 70%),
		linear-gradient(180deg, #1C302A 0%, #0F1B17 100%);
	color: var(--zero1-lead-body);
}

/* The website field is LTR text, but its placeholder and value sit on the right like the other fields. */
.zero1-lead .zero1-field__input[name="website"] {
	text-align: right;
}

.zero1-lead__head {
	margin-block-end: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	text-align: center;
}

.zero1-lead__intro {
	margin: 0 0 0.25rem;
	color: var(--wp--preset--color--green-400);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
}

.zero1-lead__title {
	margin: 0;
	color: var(--wp--preset--color--heading);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 700;
	line-height: 1.3;
}

.zero1-lead__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.125rem 1rem;
	margin: 0;
}

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

.zero1-field {
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Lighter weights throughout the form (client, 2026-10-24): Regular 400. */
.zero1-field__label {
	display: block;
	margin-block-end: 0.5rem;
	padding: 0;
	color: var(--zero1-lead-label);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
}

.zero1-field__input {
	display: block;
	inline-size: 100%;
	min-block-size: 52px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--zero1-lead-border);
	border-radius: 14px;
	background-color: var(--zero1-lead-field);
	color: var(--wp--preset--color--heading);
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.zero1-field__input::placeholder {
	color: var(--zero1-lead-placeholder);
	opacity: 1;
}

.zero1-field__input:hover {
	border-color: #9FB5AC;
}

.zero1-field__input:focus,
.zero1-field__input:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--green-400);
	background-color: rgb(11 21 18 / 0.8);
	box-shadow: 0 0 0 4px rgb(63 199 46 / 0.2);
}

.zero1-field__input[aria-invalid="true"] {
	border-color: var(--zero1-lead-error);
}

/* Phone: fixed +966 prefix, number typed left-to-right. */
.zero1-phone {
	display: flex;
	align-items: stretch;
}

.zero1-phone__prefix {
	display: grid;
	place-items: center;
	padding-inline: 0.875rem;
	border: 1.5px solid var(--zero1-lead-border);
	border-inline-end: 0;
	border-start-start-radius: 14px;
	border-end-start-radius: 14px;
	background-color: rgb(255 255 255 / 0.06);
	color: var(--zero1-lead-body);
	font-weight: 400;
	unicode-bidi: isolate;
}

.zero1-phone__input {
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	letter-spacing: 0.04em;
}

/* Project type: selectable cards. */
.zero1-choices {
	display: grid;
	gap: 0.625rem;
}

.zero1-choice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	border: 1.5px solid var(--zero1-lead-soft);
	border-radius: 16px;
	background-color: rgb(255 255 255 / 0.03);
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.zero1-choice:hover {
	border-color: var(--zero1-lead-border);
}

.zero1-choice:has(:checked) {
	border-color: var(--wp--preset--color--green-500);
	background-color: rgb(40 172 24 / 0.1);
	box-shadow: 0 0 0 3px rgb(40 172 24 / 0.15);
}

.zero1-choice__input {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0.2rem 0 0;
	border: 1.5px solid var(--zero1-lead-border);
	border-radius: 50%;
	background-color: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.zero1-choice__input::after {
	content: "";
	inline-size: 0.6rem;
	block-size: 0.6rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--green-400);
	scale: 0;
	transition: scale 150ms ease;
}

.zero1-choice__input:checked {
	border-color: var(--wp--preset--color--green-400);
}

.zero1-choice__input:checked::after {
	scale: 1;
}

.zero1-choice__input:focus-visible {
	outline: 2.5px solid var(--wp--preset--color--green-400);
	outline-offset: 3px;
}

.zero1-choice__body {
	color: var(--zero1-lead-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.7;
}

.zero1-choice__name {
	color: var(--wp--preset--color--heading);
	font-size: 1rem;
	font-weight: 400;
}

.zero1-choice__sep {
	color: var(--zero1-lead-border);
}

.zero1-choice__price {
	color: var(--wp--preset--color--green-400);
	font-weight: 400;
	white-space: nowrap;
}

/* Important note: amber callout on dark. */
.zero1-lead__note {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid rgb(245 185 66 / 0.25);
	border-radius: 12px;
	background-color: var(--wp--preset--color--warning-tint);
	color: var(--wp--preset--color--warning);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
}

.zero1-lead__note::before {
	content: "";
	flex-shrink: 0;
	inline-size: 1.05rem;
	block-size: 1.05rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.zero1-field__error {
	margin: 0.4rem 0 0;
	color: var(--zero1-lead-error);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
}

/* Submit: brand-green pill with the WhatsApp-style chat icon, Medium weight like all buttons. */
.zero1-lead__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	inline-size: 100%;
	min-block-size: 56px;
	margin-block-start: 0.25rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--green-500);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 14px 30px -14px rgb(40 172 24 / 0.7);
	transition: background-color 150ms ease;
}

.zero1-lead__submit::before {
	content: "";
	inline-size: 1.3rem;
	block-size: 1.3rem;
	background-color: currentColor;
	-webkit-mask: var(--zero1-chat) center / contain no-repeat;
	mask: var(--zero1-chat) center / contain no-repeat;
}

.zero1-lead__submit:hover {
	background-color: var(--wp--preset--color--green-400);
}

.zero1-lead__submit:focus-visible {
	outline: 2.5px solid var(--wp--preset--color--green-400);
	outline-offset: 3px;
}

.zero1-lead__status {
	margin: 0;
	color: var(--zero1-lead-body);
	font-size: 0.875rem;
	text-align: center;
}

.zero1-lead__status:empty {
	display: none;
}

/* After a successful submission the form is replaced by this message (zero1-core block). */
.zero1-lead__done {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	text-align: center;
	outline: none;
}

.zero1-lead__done::before {
	content: "";
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1512' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 55% no-repeat,
		var(--wp--preset--color--green-500);
	box-shadow: 0 0 0 8px rgb(40 172 24 / 0.15);
}

.zero1-lead__done-text {
	margin: 0;
	max-inline-size: 28rem;
	color: var(--zero1-lead-label);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.6;
}

@media (max-width: 599px) {
	.zero1-lead__form {
		grid-template-columns: 1fr;
	}

	.zero1-lead {
		border-radius: 28px;
	}

	.zero1-lead__card {
		border-radius: 22px;
	}
}

/* WhatsApp button: outline pill with a chat icon (decorative; the label says WhatsApp). */
.zero1-whatsapp-link > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-color: rgb(255 255 255 / 0.28);
	background-color: rgb(255 255 255 / 0.04);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.zero1-whatsapp-link > .wp-block-button__link::before {
	content: "";
	flex-shrink: 0;
	inline-size: 1.2rem;
	block-size: 1.2rem;
	background-color: var(--wp--preset--color--green-400);
	-webkit-mask: var(--zero1-chat) center / contain no-repeat;
	mask: var(--zero1-chat) center / contain no-repeat;
}

@media (max-width: 599px) {
	.zero1-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.zero1-hero__ctas > .wp-block-button,
	.zero1-hero__ctas .wp-block-button__link {
		inline-size: 100%;
	}
}

/* ---------- Shared ---------- */

/* Hidden visually, still read by screen readers and search engines. */
.zero1-visually-hidden {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px !important;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.zero1-section {
	position: relative;
}

/* Small green label above feature headings (Swift's eyebrow). */
.zero1-eyebrow {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--green-400);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
}

.zero1-card {
	position: relative;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border: 1px solid var(--zero1-hairline);
	border-radius: var(--zero1-radius-card);
	background: var(--zero1-card-bg);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

@media (hover: hover) {
	.zero1-card:hover {
		border-color: rgb(63 199 46 / 0.35);
		box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), var(--wp--preset--shadow--lift);
	}
}

.zero1-card > :first-child {
	margin-block-start: 0;
}

.zero1-card h3,
.zero1-card p {
	margin-block: 0;
}

/* ---------- About (§5.4, §12.9): heading row + brand network banner ---------- */

.zero1-about__head {
	gap: 1.5rem 3rem;
	margin-block-end: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.zero1-about__intro {
	flex: 1 1 32rem;
	max-inline-size: 44rem;
}

.zero1-about__title {
	margin-block: 0 1rem;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2;
	text-wrap: balance;
}

.zero1-about__text {
	margin: 0;
	max-inline-size: 36rem;
	line-height: 1.85;
}

.zero1-about__cta {
	flex-shrink: 0;
}

/* Eyebrow with the logo's "<>" mark before the text (the favicon's chevrons). */
.zero1-eyebrow--marker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	letter-spacing: 0;
}

.zero1-eyebrow--marker::before {
	content: "";
	flex-shrink: 0;
	inline-size: 1.05rem;
	block-size: 0.95rem;
	background-color: currentColor;
	-webkit-mask: var(--zero1-mark) center / contain no-repeat;
	mask: var(--zero1-mark) center / contain no-repeat;
}

/*
 * Network banner: the ZERO1 hub connected to four service tiles.
 * Tile and hub positions use physical left/top percentages that match the
 * SVG viewBox coordinates; the diagram is direction-independent.
 */
.zero1-network {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	aspect-ratio: 5 / 2;
	border: 1px solid var(--zero1-hairline);
	border-radius: 28px;
	background:
		radial-gradient(ellipse 45% 55% at 50% 50%, rgb(40 172 24 / 0.22), transparent 70%),
		linear-gradient(160deg, #1C302A 0%, #122019 100%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
	overflow: hidden;
}

/* The single use of the brand pattern (§12.5): faint, cleared around the hub. */
.zero1-network::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("../images/brand/pattern-outline-1600.png");
	background-image: image-set(
		url("../images/brand/pattern-outline-1600.avif") type("image/avif"),
		url("../images/brand/pattern-outline-1600.png") type("image/png")
	);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.07;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 35%, #000 100%);
	mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 35%, #000 100%);
	pointer-events: none;
}

.zero1-network__lines {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	fill: none;
}

.zero1-network__lines--tall {
	display: none;
}

.zero1-network__base path {
	stroke: rgb(255 255 255 / 0.12);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.zero1-network__pulse path {
	stroke: var(--wp--preset--color--green-400);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 90 910;
	stroke-dashoffset: 1000;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 4px rgb(63 199 46 / 0.7));
	animation: zero1-pulse 3.6s linear infinite;
}

.zero1-network__pulse path:nth-child(2) { animation-delay: -0.9s; }
.zero1-network__pulse path:nth-child(3) { animation-delay: -1.8s; }
.zero1-network__pulse path:nth-child(4) { animation-delay: -2.7s; }

@keyframes zero1-pulse {
	to {
		stroke-dashoffset: 0;
	}
}

.zero1-network__tile,
.zero1-network__hub {
	position: absolute;
	translate: -50% -50%;
	border: 1px solid rgb(255 255 255 / 0.1);
	background-color: rgb(255 255 255 / 0.07);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 18px 40px -20px rgb(0 0 0 / 0.7);
}

.zero1-network__tile {
	inline-size: 8.6%;
	aspect-ratio: 1;
	border-radius: 18%;
}

/* Service icon inside each tile (reuses the services' icon variables). */
.zero1-network__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--zero1-icon) center / 46% no-repeat;
}

.zero1-network__tile--a { left: 12%; top: 27%; }
.zero1-network__tile--b { left: 18%; top: 74%; }
.zero1-network__tile--c { left: 88%; top: 27%; }
.zero1-network__tile--d { left: 82%; top: 74%; }

.zero1-network__hub {
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	inline-size: 22%;
	padding: 1.1% 2%;
	border-radius: 18px;
	background-color: rgb(255 255 255 / 0.09);
}

/* Logo is smaller than its panel (client, 2026-10-24); the panel keeps its width so the lines still meet its edges. */
.zero1-network__hub img {
	display: block;
	inline-size: 70%;
	block-size: auto;
	aspect-ratio: 1020 / 402;
}

/* Phones: a taller diagram with tiles in the four corners. */
@media (max-width: 700px) {
	.zero1-network {
		aspect-ratio: 10 / 11;
		border-radius: 22px;
	}

	.zero1-network__lines--wide {
		display: none;
	}

	.zero1-network__lines--tall {
		display: block;
	}

	.zero1-network__tile {
		inline-size: 22%;
	}

	.zero1-network__tile--a { left: 20%; top: 18.18%; }
	.zero1-network__tile--b { left: 20%; top: 81.82%; }
	.zero1-network__tile--c { left: 80%; top: 18.18%; }
	.zero1-network__tile--d { left: 80%; top: 81.82%; }

	.zero1-network__hub {
		inline-size: 50%;
		padding: 3% 5%;
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zero1-network__pulse {
		display: none;
	}
}

/* ---------- Process (§5.7, §12.13): Rahyb-style timeline, cards alternating around a centre line ---------- */

.zero1-timeline {
	--zero1-tl-gap: clamp(3.5rem, 2rem + 4vw, 6rem);
	--zero1-tl-dot: 1.75rem;
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--zero1-tl-gap);
	row-gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.125rem);
}

.zero1-timeline > * {
	margin: 0 !important;
}

/* The line runs down the centre and fades out at both ends. Physical left is fine: 50% is the same in both directions. */
.zero1-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	inline-size: 2px;
	translate: -50% 0;
	background: linear-gradient(180deg, transparent, rgb(63 199 46 / 0.55) 8%, rgb(63 199 46 / 0.55) 92%, transparent);
}

/* Odd steps on the start side (right in RTL), even steps on the other. */
.zero1-step:nth-child(odd) {
	grid-column: 1;
}

.zero1-step:nth-child(even) {
	grid-column: 2;
}

/* One step per row, so the cards zig-zag down the line. */
.zero1-step:nth-child(1) { grid-row: 1; }
.zero1-step:nth-child(2) { grid-row: 2; }
.zero1-step:nth-child(3) { grid-row: 3; }
.zero1-step:nth-child(4) { grid-row: 4; }
.zero1-step:nth-child(5) { grid-row: 5; }
.zero1-step:nth-child(6) { grid-row: 6; }

.zero1-step {
	position: relative;
	padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	border: 1px solid var(--zero1-hairline);
	border-radius: 24px;
	background: var(--zero1-card-bg);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

/* Dot on the line, level with the card's middle. */
.zero1-step::before {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inline-size: var(--zero1-tl-dot);
	block-size: var(--zero1-tl-dot);
	translate: 0 -50%;
	border: 2px solid rgb(63 199 46 / 0.6);
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--wp--preset--color--green-400) 0 26%, transparent 30%),
		var(--wp--preset--color--page);
	box-shadow: 0 0 0 6px rgb(40 172 24 / 0.08);
}

.zero1-step:nth-child(odd)::before {
	inset-inline-end: calc((var(--zero1-tl-gap) + var(--zero1-tl-dot)) / -2);
}

.zero1-step:nth-child(even)::before {
	inset-inline-start: calc((var(--zero1-tl-gap) + var(--zero1-tl-dot)) / -2);
}

.zero1-step__num {
	display: inline-block;
	margin: 0 0 1rem !important;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--zero1-hairline);
	border-radius: 999px;
	background-color: rgb(255 255 255 / 0.03);
	color: var(--wp--preset--color--green-400);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.5;
}

.zero1-step__title {
	margin: 0 0 0.75rem !important;
	font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
	font-weight: 700;
	line-height: 1.35;
}

.zero1-step__text {
	margin: 0 !important;
	color: var(--wp--preset--color--body);
	line-height: 1.8;
}

.zero1-process__cta {
	margin-block-start: clamp(2rem, 1.5rem + 1.5vw, 3rem) !important;
}

.zero1-process__cta .wp-block-button__link {
	min-block-size: 50px;
	padding-inline: 1.75rem;
}

/* Phones and small tablets: one column, line and dots on the start side. */
@media (max-width: 781px) {
	.zero1-timeline {
		--zero1-tl-rail: 2.75rem;
		grid-template-columns: minmax(0, 1fr);
		padding-inline-start: var(--zero1-tl-rail);
	}

	.zero1-timeline::before {
		left: auto;
		inset-inline-start: calc(var(--zero1-tl-dot) / 2 - 1px);
		translate: none;
	}

	.zero1-step:nth-child(n) {
		grid-column: 1;
		grid-row: auto;
	}

	.zero1-step:nth-child(odd)::before,
	.zero1-step:nth-child(even)::before {
		inset-inline-start: calc(-1 * var(--zero1-tl-rail));
		inset-inline-end: auto;
	}
}

/* ---------- Services (§5.5, §12.11): Rahyb-style bento, text top, illustration on the bottom edge ---------- */

.zero1-services__head,
.zero1-process__head,
.zero1-portfolio__head {
	margin-block-end: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}

/* Eyebrow centred above the title, like About's "من نحن" but on the axis. */
.zero1-services__head .zero1-eyebrow--marker,
.zero1-process__head .zero1-eyebrow--marker,
.zero1-portfolio__head .zero1-eyebrow--marker {
	display: flex;
	justify-content: center;
}

.zero1-services__title,
.zero1-process__title,
.zero1-portfolio__title {
	margin: 0;
	text-wrap: balance;
}

.zero1-services__subtitle,
.zero1-process__subtitle,
.zero1-portfolio__subtitle {
	margin: 1rem auto 0 !important;
	max-inline-size: 40rem;
	color: var(--wp--preset--color--body);
	line-height: 1.75;
	text-wrap: pretty;
}

/* 3-column bento: wide cards span two columns, alternating sides row by row. */
.zero1-svc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.125rem);
}

.zero1-svc-grid > * {
	margin: 0 !important;
}

.zero1-svc--wide {
	grid-column: span 2;
}

.zero1-svc {
	position: relative;
	display: flex;
	flex-direction: column;
	--zero1-svc-pad: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
	/* Height gives the illustration its room; cards in a row share it. */
	min-block-size: clamp(340px, 14vw + 200px, 400px);
	/* Text inset at the top and sides; no bottom padding so the illustration meets the edge. */
	padding: var(--zero1-svc-pad) var(--zero1-svc-pad) 0;
	border: 1px solid var(--zero1-hairline);
	border-radius: 24px;
	/* Same light as the closing CTA card: dark at the top, green rising from the bottom. */
	background:
		radial-gradient(ellipse 75% 55% at 50% 100%, rgb(63 199 46 / 0.34), transparent 70%),
		linear-gradient(180deg, #15241F 0%, #182823 50%, #1B3A27 100%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
	overflow: hidden;
	transition: border-color 200ms ease;
}

@media (hover: hover) {
	.zero1-svc:hover {
		border-color: rgb(63 199 46 / 0.35);
	}
}

.zero1-svc__title {
	margin: 0 0 0.5rem !important;
	text-align: center;
	font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
	font-weight: 700;
	line-height: 1.35;
}

.zero1-svc__text {
	margin: 0 auto !important;
	max-inline-size: 32rem;
	text-align: center;
	color: var(--wp--preset--color--body);
	line-height: 1.7;
}

/*
 * Illustration box: everything below the text, edge to edge (it bleeds over
 * the side padding). The composition (a main card with two tilted cards
 * behind it) takes the box's full height; its width follows the viewBox
 * ratio, capped at 150% of the box, so on narrow cards the side cards are
 * cut by the card edges (RaselBot-style). Wide cards use a wider viewBox
 * with the side cards spread out, shown at up to 100%.
 */
.zero1-svc__art {
	position: relative;
	flex: 1 1 auto;
	min-block-size: 220px;
	margin: 1.25rem calc(-1 * var(--zero1-svc-pad)) 0 !important;
}

.zero1-svc__art svg {
	position: absolute;
	inset-block-end: 0;
	left: 50%;
	block-size: 100%;
	inline-size: auto;
	max-inline-size: 150%;
	aspect-ratio: 2 / 1;
	translate: -50% 0;
	filter: drop-shadow(0 -12px 36px rgb(0 0 0 / 0.35));
}

.zero1-svc--wide .zero1-svc__art svg {
	aspect-ratio: 760 / 300;
}

@media (min-width: 1024px) {
	.zero1-svc--wide .zero1-svc__art svg {
		max-inline-size: 100%;
	}
}

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

	.zero1-svc--wide {
		grid-column: auto;
	}
}

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

.zero1-icon--web {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9h18M6.5 6.5h.01M9 6.5h.01M7 13h6M7 16h4'/%3E%3C/svg%3E");
}

.zero1-icon--store {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.1 11.1a2 2 0 0 1-2 1.9H8.1a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E");
}

.zero1-icon--landing {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E");
}

.zero1-icon--mobile {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18h3'/%3E%3C/svg%3E");
}

.zero1-icon--dashboard {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='10' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='6' rx='1.5'/%3E%3Crect x='13' y='11' width='8' height='10' rx='1.5'/%3E%3Crect x='3' y='15' width='8' height='6' rx='1.5'/%3E%3C/svg%3E");
}

.zero1-icon--saas {
	--zero1-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FC72E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 12.5l9 5 9-5'/%3E%3Cpath d='M3 16.5l9 5 9-5'/%3E%3C/svg%3E");
}

/* ---------- Portfolio (§5.8, §12.14): Scalix-style showcase, 2×2 large previews ---------- */

.zero1-projects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.125rem);
}

.zero1-projects > * {
	margin: 0 !important;
}

/* Card = the hero form's frame: glass ring around an inner dark card (§12.10). */
.zero1-project {
	position: relative;
	padding: clamp(8px, 0.4rem + 0.5vw, 12px) clamp(8px, 0.4rem + 0.5vw, 12px) 0;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 32px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 40px 90px -50px rgb(0 0 0 / 0.8);
	transition: border-color 200ms ease;
}

@media (hover: hover) {
	.zero1-project:hover {
		border-color: rgb(63 199 46 / 0.4);
	}
}

/* Inner card: the form card's green top glow and dark gradient frame the screenshot. */
.zero1-project__image {
	margin: 0;
	padding: clamp(1rem, 0.6rem + 1.4vw, 1.75rem) clamp(1rem, 0.6rem + 1.4vw, 1.75rem) 0;
	border: 1px solid rgb(255 255 255 / 0.05);
	border-radius: 24px;
	background:
		radial-gradient(ellipse 70% 45% at 50% 0%, rgb(40 172 24 / 0.22), transparent 70%),
		linear-gradient(180deg, #1C302A 0%, #0F1B17 100%);
	overflow: hidden;
}

/* The screenshot sits like a window rising from the card's bottom edge. */
.zero1-project__image img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top;
	border-radius: 14px 14px 0 0;
	box-shadow: 0 -10px 40px -12px rgb(0 0 0 / 0.6);
}

/* Placeholder badge sits on the inner card's top corner (start side). */
.zero1-project > .zero1-badge {
	position: absolute;
	inset-block-start: 1.5rem;
	inset-inline-start: 1.5rem;
	z-index: 1;
}

.zero1-project__name {
	margin: 0 !important;
	padding: 1.125rem 0.75rem 0;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	font-weight: 700;
	line-height: 1.4;
}

.zero1-project__type {
	margin: 0.25rem 0 0 !important;
	padding: 0 0.75rem 1.25rem;
	color: var(--wp--preset--color--muted);
}

.zero1-badge {
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: 1;
}

.zero1-project__name {
	margin: 0 !important;
	padding-inline: 0.25rem;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	font-weight: 700;
	line-height: 1.4;
}

.zero1-project__type {
	margin: 0.375rem 0 0 !important;
	padding-inline: 0.25rem;
	color: var(--wp--preset--color--muted);
}

.zero1-badge {
	display: inline-block;
	margin: 0 !important;
	padding: 0.0625rem 0.625rem;
	border-radius: 999px;
	background-color: var(--wp--preset--color--warning-tint);
	color: var(--wp--preset--color--warning);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7;
}

@media (max-width: 781px) {
	.zero1-projects {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Closing CTA (§5.10, §12.16): Synthiq-style card, content on top, dashboard on the bottom edge ---------- */

.zero1-cta {
	position: relative;
	isolation: isolate;
	/* No bottom padding: the dashboard meets the card's bottom edge. */
	padding: clamp(3rem, 2rem + 4vw, 5rem) clamp(1.25rem, 0.5rem + 3vw, 3.5rem) 0;
	border: 1px solid var(--zero1-hairline);
	border-radius: 28px;
	background:
		/* Green rising from the bottom, strongest under the dashboard's start side. */
		radial-gradient(ellipse 70% 55% at 80% 100%, rgb(63 199 46 / 0.5), transparent 70%),
		radial-gradient(ellipse 60% 45% at 15% 100%, rgb(40 172 24 / 0.32), transparent 70%),
		linear-gradient(180deg, #15241F 0%, #182823 45%, #1B3A27 100%);
	overflow: hidden;
}

.zero1-cta .zero1-eyebrow--marker {
	display: flex;
	justify-content: center;
}

/* Bold 700 (not Black) at a large size: calmer and closer to Synthiq's display weight. */
.zero1-cta__title {
	max-inline-size: 15ch;
	margin: 0 auto !important;
	font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-wrap: balance;
}

.zero1-cta__text {
	max-inline-size: 36rem;
	margin: 1.25rem auto 0 !important;
	color: var(--wp--preset--color--body);
	line-height: 1.75;
	text-wrap: pretty;
}

.zero1-cta__actions {
	gap: 0.75rem;
	margin-block-start: 2rem !important;
}

.zero1-cta__art {
	margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) auto 0 !important;
	inline-size: min(100%, 940px);
}

.zero1-cta__art svg {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 1000 / 440;
	filter: drop-shadow(0 -24px 60px rgb(0 0 0 / 0.35));
}

/* Phones: let the dashboard run wider than the card so its details stay legible. */
@media (max-width: 639px) {
	.zero1-cta__art {
		inline-size: 160%;
		max-inline-size: none;
		margin-inline-start: 0 !important;
	}

	.zero1-cta__actions > .wp-block-button,
	.zero1-cta__actions .wp-block-button__link {
		inline-size: 100%;
	}
}

/* ---------- Footer (§5.9, §12.15): one line on the page background — logo · menu · copyright ---------- */

.zero1-footer {
	margin-block-start: 0 !important;
}

.zero1-footer__bar {
	gap: 1rem 2rem;
	padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	border-block-start: 1px solid var(--zero1-hairline);
}

.zero1-footer__logo {
	margin: 0;
}

.zero1-footer__logo img {
	display: block;
	inline-size: 76px;
	block-size: auto;
	aspect-ratio: 340 / 134;
}

/* Menu: plain links, set like the copyright text. */
.zero1-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: clamp(1.25rem, 0.75rem + 1.2vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.zero1-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	transition: color 150ms ease;
}

.zero1-footer__menu a:hover,
.zero1-footer__menu a:focus-visible {
	color: var(--wp--preset--color--heading);
}

.zero1-footer__copy {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Phones: stacked and centred — logo, menu, copyright. */
@media (max-width: 781px) {
	.zero1-footer__bar {
		flex-direction: column;
		align-items: center !important;
		text-align: center;
	}
}

/* ---------- Phones (client, 2026-10-24): tighter rhythm, centred About, card spacing ---------- */

@media (max-width: 781px) {
	/* Hero → About: the form's own bottom margin was adding to About's padding. */
	.zero1-lead {
		margin-block-end: 0.5rem !important;
	}

	/* About heading row: centred instead of hugging the right edge. */
	.zero1-about__head {
		flex-direction: column;
		align-items: center !important;
		text-align: center;
	}

	.zero1-about__intro {
		flex-basis: auto;
	}

	.zero1-about__intro .zero1-eyebrow--marker {
		display: flex;
		justify-content: center;
	}

	.zero1-about__text {
		margin-inline: auto;
	}

	/* Services: more room above the title, less between the text and the drawing. */
	.zero1-svc {
		padding-block-start: calc(var(--zero1-svc-pad) + 0.75rem);
	}

	.zero1-svc__art {
		margin-block-start: 0.25rem !important;
	}

	/* The drawing's empty top band slides up behind the tagline. */
	.zero1-svc__art svg {
		block-size: 112%;
	}

	/* These main cards start near the drawing's top, so they keep full size and a little air. */
	.zero1-svc__art--store,
	.zero1-svc__art--landing,
	.zero1-svc__art--saas {
		margin-block-start: 1rem !important;
	}

	.zero1-svc__art--store svg,
	.zero1-svc__art--landing svg,
	.zero1-svc__art--saas svg {
		block-size: 100%;
	}

	/* Closing CTA: the wrapped title needs more air between lines. */
	.zero1-cta__title {
		line-height: 1.45;
	}
}

/* ---------- Page-load intro: header fades in, hero fades up in sequence (motion-safe only) ---------- */

@keyframes zero1-fade {
	from {
		opacity: 0;
	}
}

@keyframes zero1-fade-up {
	from {
		opacity: 0;
		translate: 0 28px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks > header.wp-block-template-part {
		animation: zero1-fade 700ms ease-out both;
	}

	.zero1-hero > * {
		animation: zero1-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.zero1-hero > .zero1-proof { animation-delay: 100ms; }
	.zero1-hero > .zero1-hero__title { animation-delay: 200ms; }
	.zero1-hero > .zero1-hero__lead { animation-delay: 320ms; }
	.zero1-hero > .zero1-hero__ctas { animation-delay: 440ms; }
	.zero1-hero > .wp-block-html,
	.zero1-hero > .zero1-lead { animation-delay: 580ms; }
}

/* ---------- Scroll reveal (progressive enhancement): soft fade-up ---------- */

.zero1-reveal-ready .zero1-reveal {
	opacity: 0;
	translate: 0 28px;
	transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), translate 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.zero1-reveal-ready .zero1-reveal.is-revealed {
	opacity: 1;
	translate: none;
}

/* Cards that share a row arrive one after the other, not all at once. */
.zero1-reveal-ready .zero1-svc-grid > .zero1-reveal:nth-child(even),
.zero1-reveal-ready .zero1-projects > .zero1-reveal:nth-child(even),
.zero1-reveal-ready .zero1-timeline > .zero1-reveal:nth-child(even) {
	transition-delay: 120ms;
}

/* The About banner follows its heading a beat later. */
.zero1-reveal-ready .zero1-network.zero1-reveal {
	transition-delay: 150ms;
}

/* ---------- Reduced motion ---------- */

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