/*
 * Multy Color redesign preview – soft & colourful.
 * Palette: the logo's ink colours (cyan, magenta, yellow, violet + teal/orange/pink) on soft pastel backgrounds.
 * Mobile-first, BEM names, logical properties only (correct in RTL and LTR).
 * Light tokens on :root; dark under [data-theme="dark"] or the device setting.
 * Nothing may be wider than the screen: decorative layers sit inside overflow-hidden parents.
 */

/* ---------- Tokens ---------- */
:root {
	--cyan: #19b4e6;
	--magenta: #e6337a;
	--yellow: #ffc93c;
	--violet: #7c4dff;
	--teal: #14b8a6;
	--orange: #ff8a3d;
	--pink: #ff6fae;
	--green: #22c55e;
	--plum: #2a1747;

	--grad: linear-gradient(120deg, #e6337a 0%, #7c4dff 50%, #19b4e6 100%);
	--grad-warm: linear-gradient(120deg, #ff8a3d, #e6337a);

	--c-bg: #fcfaff;
	--c-surface: #ffffff;
	--c-surface-2: #f6f1ff;
	--c-text: #2a1747;
	--c-muted: #6b5f80;
	--c-border: #ece4f7;
	--c-header: rgba(252, 250, 255, 0.86);
	--c-blob: 0.5;
	--shadow-sm: 0 2px 10px rgba(42, 23, 71, 0.06);
	--shadow-lg: 0 24px 50px -24px rgba(42, 23, 71, 0.3);

	--font-head: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
	--font: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;

	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4.5rem;

	--radius-sm: 0.75rem;
	--radius: 1.25rem;
	--radius-lg: 1.75rem;
	--radius-full: 999px;

	--container: 76rem;
	--header-h: 4.75rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-bg: #150d26;
	--c-surface: #1e1434;
	--c-surface-2: #251a40;
	--c-text: #f3eeff;
	--c-muted: #b3a6cc;
	--c-border: #352a52;
	--c-header: rgba(21, 13, 38, 0.84);
	--c-blob: 0.22;
	--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--c-bg: #150d26;
		--c-surface: #1e1434;
		--c-surface-2: #251a40;
		--c-text: #f3eeff;
		--c-muted: #b3a6cc;
		--c-border: #352a52;
		--c-header: rgba(21, 13, 38, 0.84);
		--c-blob: 0.22;
		--shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
		--shadow-lg: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
		color-scheme: dark;
	}
}

/* Colour "tones" used by cards, chips and icons. */
[data-tone] {
	--tone: var(--violet);
	--tone-soft: rgba(124, 77, 255, 0.12);
	--tone-text: #5b32d6;
}

[data-tone="cyan"] {
	--tone: var(--cyan);
	--tone-soft: rgba(25, 180, 230, 0.14);
	--tone-text: #0a7ea6;
}

[data-tone="magenta"] {
	--tone: var(--magenta);
	--tone-soft: rgba(230, 51, 122, 0.12);
	--tone-text: #c01d5f;
}

[data-tone="yellow"] {
	--tone: var(--yellow);
	--tone-soft: rgba(255, 201, 60, 0.22);
	--tone-text: #946300;
}

[data-tone="teal"] {
	--tone: var(--teal);
	--tone-soft: rgba(20, 184, 166, 0.14);
	--tone-text: #0c7c70;
}

[data-tone="orange"] {
	--tone: var(--orange);
	--tone-soft: rgba(255, 138, 61, 0.16);
	--tone-text: #c25410;
}

[data-tone="pink"] {
	--tone: var(--pink);
	--tone-soft: rgba(255, 111, 174, 0.16);
	--tone-text: #c0336f;
}

[data-tone="green"] {
	--tone: var(--green);
	--tone-soft: rgba(34, 197, 94, 0.14);
	--tone-text: #15803d;
}

/* Brighter tone text on dark backgrounds. */
:root[data-theme="dark"] [data-tone] {
	--tone-text: var(--tone);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) [data-tone] {
		--tone-text: var(--tone);
	}
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-block-start: calc(var(--header-h) + var(--space-sm));
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--c-text);
	background: var(--c-bg);
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
	margin: 0;
}

/* Arabic dots and marks need more room between lines than Latin text. */
h1,
h2,
h3 {
	font-family: var(--font-head);
	line-height: 1.55;
	font-weight: 700;
}

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

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.visually-hidden {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.icon {
	inline-size: 1.25em;
	block-size: 1.25em;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

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

.container {
	inline-size: min(100% - 2 * var(--space-sm), var(--container));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	inset-inline-start: var(--space-sm);
	inset-block-start: -10rem;
	z-index: 100;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	background: var(--violet);
	color: #ffffff;
}

.skip-link:focus {
	inset-block-start: var(--space-sm);
}

/* Logo variants: dark lettering on light backgrounds, white lettering in dark mode. */
.logo-dark {
	display: none;
}

:root[data-theme="dark"] .logo-light {
	display: none;
}

:root[data-theme="dark"] .logo-dark {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .logo-light {
		display: none;
	}

	:root:not([data-theme="light"]) .logo-dark {
		display: block;
	}
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	padding: 0.7rem 1.35rem;
	border: 0;
	border-radius: var(--radius-full);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s var(--ease), box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

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

.btn--sm {
	padding: 0.45rem 0.95rem;
	font-size: 0.9rem;
}

.btn--lg {
	padding: 0.9rem 1.6rem;
}

.btn--block {
	inline-size: 100%;
}

.btn--grad {
	background: var(--grad);
	color: #ffffff;
	box-shadow: 0 12px 26px -12px rgba(124, 77, 255, 0.7);
}

.btn--soft {
	background: var(--c-surface-2);
	color: var(--c-text);
	box-shadow: inset 0 0 0 1px var(--c-border);
}

.btn--soft:hover {
	box-shadow: inset 0 0 0 1px var(--violet);
	color: var(--violet);
}

/* Technical sheet download: magenta tint; "request" variant: amber tint. */
.btn--tds {
	background: rgba(230, 51, 122, 0.12);
	color: #c01d5f;
}

.btn--tds:hover {
	background: var(--magenta);
	color: #ffffff;
}

.btn--tds.is-request {
	background: rgba(255, 201, 60, 0.25);
	color: #7a5200;
}

.btn--tds.is-request:hover {
	background: var(--yellow);
	color: var(--plum);
}

:root[data-theme="dark"] .btn--tds {
	color: #ff7fae;
}

:root[data-theme="dark"] .btn--tds.is-request {
	color: var(--yellow);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .btn--tds {
		color: #ff7fae;
	}

	:root:not([data-theme="light"]) .btn--tds.is-request {
		color: var(--yellow);
	}
}

.btn--wa {
	background: rgba(34, 197, 94, 0.14);
	color: #15803d;
}

.btn--wa:hover {
	background: #1da851;
	color: #ffffff;
}

.btn--white {
	background: #ffffff;
	color: var(--plum);
}

.btn--ghost-white {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.icon-btn,
.lang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	block-size: 2.6rem;
	min-inline-size: 2.6rem;
	padding-inline: var(--space-xs);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-full);
	background: var(--c-surface);
	color: var(--c-text);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover,
.lang-btn:hover {
	border-color: var(--violet);
	color: var(--violet);
}

.lang-btn {
	padding-inline: 0.8rem;
}

.icon-btn__sun {
	display: none;
}

:root[data-theme="dark"] .icon-btn__sun {
	display: block;
}

:root[data-theme="dark"] .icon-btn__moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .icon-btn__sun {
		display: block;
	}

	:root:not([data-theme="light"]) .icon-btn__moon {
		display: none;
	}
}

/* ---------- Header ---------- */
.header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: var(--c-header);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	transition: box-shadow 0.2s;
}

/* Thin ink stripe under the header once scrolled. */
.header.is-scrolled {
	box-shadow: var(--shadow-sm);
}

.header.is-scrolled::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background: var(--grad);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	min-block-size: var(--header-h);
}

.header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.header__cta {
	display: none;
}

.brand {
	display: flex;
	flex-shrink: 0;
}

.brand__logo {
	inline-size: auto;
	block-size: 3.1rem;
}

.burger,
.burger::before,
.burger::after {
	display: block;
	inline-size: 1.1rem;
	block-size: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.25s var(--ease);
}

.burger {
	position: relative;
}

.burger::before,
.burger::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.burger::before {
	inset-block-start: -6px;
}

.burger::after {
	inset-block-start: 6px;
}

[aria-expanded="true"] .burger {
	background: transparent;
}

[aria-expanded="true"] .burger::before {
	transform: translateY(6px) rotate(45deg);
	background: var(--c-text);
}

[aria-expanded="true"] .burger::after {
	transform: translateY(-6px) rotate(-45deg);
	background: var(--c-text);
}

.nav {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	display: grid;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-sm) var(--space-md);
	background: var(--c-surface);
	border-block-end: 1px solid var(--c-border);
	box-shadow: var(--shadow-lg);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-0.5rem);
	transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}

.nav.is-open {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.nav__link {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: var(--radius-full);
	color: var(--c-muted);
	font-weight: 700;
	transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
	color: var(--violet);
	background: rgba(124, 77, 255, 0.1);
}

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

/* Soft colour blobs behind hero sections (parent must be overflow: hidden). */
.blobs {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.blob {
	position: absolute;
	inline-size: 22rem;
	block-size: 22rem;
	border-radius: 50%;
	filter: blur(60px);
	opacity: var(--c-blob);
	animation: drift 14s ease-in-out infinite alternate;
}

.blob--c {
	inset-block-start: -6rem;
	inset-inline-end: -4rem;
	background: var(--cyan);
}

.blob--m {
	inset-block-start: 30%;
	inset-inline-start: -6rem;
	background: var(--pink);
	animation-delay: -4s;
}

.blob--y {
	inset-block-end: -8rem;
	inset-inline-end: 20%;
	background: var(--yellow);
	animation-delay: -8s;
}

.blob--v {
	inset-block-start: 10%;
	inset-inline-start: 35%;
	inline-size: 14rem;
	block-size: 14rem;
	background: var(--violet);
	animation-delay: -2s;
}

@keyframes drift {
	to {
		transform: translate(2rem, 1.5rem) scale(1.1);
	}
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.35rem 1rem;
	border-radius: var(--radius-full);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
	font-size: 0.92rem;
	font-weight: 700;
}

/* Four ink dots: cyan, magenta, yellow, violet. */
.pill__dots {
	display: inline-flex;
	gap: 3px;
}

.pill__dots i {
	inline-size: 0.55rem;
	block-size: 0.55rem;
	border-radius: 50%;
	background: var(--cyan);
}

.pill__dots i:nth-child(2) {
	background: var(--magenta);
}

.pill__dots i:nth-child(3) {
	background: var(--yellow);
}

.pill__dots i:nth-child(4) {
	background: var(--violet);
}

/* Gradient ink text for the main headline. */
.ink-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	margin-block-end: var(--space-xs);
	padding: 0.15rem 0.85rem;
	border-radius: var(--radius-full);
	background: rgba(124, 77, 255, 0.1);
	color: var(--violet);
	font-size: 0.9rem;
	font-weight: 700;
}

.eyebrow--light {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
}

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

.section--compact {
	padding-block: var(--space-lg);
}

/* Soft lavender band with a faint dotted pattern. */
.section--tint {
	background:
		radial-gradient(circle, rgba(124, 77, 255, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
		var(--c-surface-2);
}

.section__head {
	max-inline-size: 46rem;
	margin-inline: auto;
	margin-block-end: var(--space-lg);
	text-align: center;
}

.section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-sm);
	max-inline-size: none;
	text-align: start;
}

.section__head--spaced {
	margin-block-start: var(--space-xl);
}

.section__title {
	font-size: clamp(1.7rem, 4.4vw, 2.6rem);
}

.section__text {
	margin-block-start: var(--space-xs);
	color: var(--c-muted);
	font-size: 1.08rem;
}

.checks {
	display: grid;
	gap: var(--space-xs);
	margin-block: var(--space-md);
}

.checks__item {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-weight: 700;
}

.checks__item .icon {
	padding: 0.25rem;
	border-radius: 50%;
	background: var(--tone-soft);
	color: var(--tone-text);
	stroke-width: 3;
}

/* Grid children may shrink below their content width so nothing widens the page on phones. */
.hero__inner > *,
.about > *,
.contact > *,
.product__grid > * {
	min-inline-size: 0;
}

/* ---------- 1. Hero ---------- */
.hero {
	position: relative;
	padding-block: var(--space-lg) var(--space-xl);
	overflow: hidden;
	isolation: isolate;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-lg);
	align-items: center;
}

.hero__title {
	margin-block: var(--space-sm);
	font-size: clamp(2.6rem, 9vw, 4.6rem);
	line-height: 1.35;
}

.hero__text {
	max-inline-size: 36rem;
	color: var(--c-muted);
	font-size: 1.15rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-block-start: var(--space-md);
}

/* Collage: one big rounded photo + two small ones tucked at the corners. */
.hero__visual {
	position: relative;
	padding: 2.5rem 1rem 3rem;
}

.collage__main {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 6px solid var(--c-surface);
	border-radius: 2.5rem 2.5rem 2.5rem 0.75rem;
	box-shadow: var(--shadow-lg);
	transform: rotate(-2deg);
}

[dir="rtl"] .collage__main {
	border-radius: 2.5rem 2.5rem 0.75rem 2.5rem;
	transform: rotate(2deg);
}

.collage__main img,
.collage__small img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.collage__small {
	position: absolute;
	inline-size: 38%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 5px solid var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.collage__small--a {
	inset-block-end: 0;
	inset-inline-start: 0;
	transform: rotate(-4deg);
}

.collage__small--b {
	inset-block-start: 0;
	inset-inline-end: 0;
	transform: rotate(5deg);
}

.float-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border-radius: var(--radius-full);
	background: var(--c-surface);
	box-shadow: var(--shadow-lg);
	font-size: 0.88rem;
	font-weight: 700;
	animation: float 6s ease-in-out infinite;
}

.float-chip--a {
	inset-block-start: 1rem;
	inset-inline-start: 1.25rem;
	color: var(--teal);
}

.float-chip--b {
	inset-block-end: 1.25rem;
	inset-inline-end: 1.25rem;
	color: var(--violet);
	animation-delay: -3s;
}

@keyframes float {
	50% {
		transform: translateY(-8px);
	}
}

/* ---------- 2. Stats ---------- */
.stats {
	padding-block-end: var(--space-lg);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.stat {
	display: grid;
	gap: 0.15rem;
	padding: var(--space-md) var(--space-sm);
	border-radius: var(--radius);
	background: var(--tone-soft);
	text-align: center;
}

.stat__value {
	font-family: var(--font-head);
	font-size: clamp(2rem, 6vw, 2.8rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--tone-text);
	font-variant-numeric: tabular-nums;
}

.stat__label {
	color: var(--c-muted);
	font-weight: 500;
}

/* ---------- 3. About ---------- */
.about {
	display: grid;
	gap: var(--space-lg);
	align-items: center;
}

.about__media {
	position: relative;
	padding-block-end: 3rem;
	padding-inline-end: 2rem;
}

.about__photo {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.about__photo img,
.about__photo-small img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.about__photo-small {
	position: absolute;
	inset-block-end: 0;
	inset-inline-end: 0;
	inline-size: 45%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 5px solid var(--c-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.about__badge {
	position: absolute;
	inset-block-start: var(--space-sm);
	inset-inline-start: var(--space-sm);
	padding: 0.35rem 1rem;
	border-radius: var(--radius-full);
	background: var(--grad);
	color: #ffffff;
	font-family: var(--font-head);
	font-weight: 700;
}

.about__content .section__text + .section__text {
	margin-block-start: var(--space-xs);
}

.video summary {
	list-style: none;
}

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

.video__player {
	display: block;
	inline-size: 100%;
	block-size: auto;
	margin-block-start: var(--space-sm);
	border-radius: var(--radius);
	background: #000000;
}

/* ---------- 4. Categories ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-sm);
}

.ccard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.ccard:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.ccard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--tone-soft);
}

.ccard__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.ccard:hover .ccard__media img {
	transform: scale(1.06);
}

/* Colour bar in the category's tone. */
.ccard__media::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 5px;
	background: var(--tone);
}

.ccard__body {
	display: grid;
	gap: 0.25rem;
	padding: var(--space-md);
}

.ccard__count {
	justify-self: start;
	padding: 0 0.7rem;
	border-radius: var(--radius-full);
	background: var(--tone-soft);
	color: var(--tone-text);
	font-size: 0.82rem;
	font-weight: 700;
}

.ccard__name {
	font-family: var(--font-head);
	font-size: 1.25rem;
	line-height: 1.5;
}

.ccard__desc {
	color: var(--c-muted);
	font-size: 0.96rem;
}

.ccard__go {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	margin-block-start: var(--space-xs);
	color: var(--tone-text);
	font-weight: 700;
}

/* ---------- 5. Product cards ---------- */
.product-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-md);
}

.pcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.pcard:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.pcard__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tone-soft);
}

.pcard__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.pcard:hover .pcard__media img {
	transform: scale(1.06);
}

.pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	padding: var(--space-md);
	border-block-start: 5px solid var(--tone);
}

.pcard__cat {
	align-self: flex-start;
	padding: 0 0.7rem;
	border-radius: var(--radius-full);
	background: var(--tone-soft);
	color: var(--tone-text);
	font-size: 0.82rem;
	font-weight: 700;
}

.pcard__title {
	font-size: 1.25rem;
}

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

.pcard__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--c-muted);
	font-size: 0.96rem;
}

.pcard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-block-start: auto;
	padding-block-start: var(--space-xs);
}

/* ---------- 6. Features & industries ---------- */
.features {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-sm);
}

.feature {
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease);
}

.feature:hover {
	transform: translateY(-4px);
}

.feature__icon {
	display: grid;
	place-items: center;
	inline-size: 3.25rem;
	block-size: 3.25rem;
	margin-block-end: var(--space-sm);
	border-radius: 1rem 1rem 1rem 0.35rem;
	background: var(--tone-soft);
	color: var(--tone-text);
	font-size: 1.35rem;
}

.feature__title {
	margin-block-end: 0.15rem;
	font-size: 1.2rem;
}

.feature__text {
	color: var(--c-muted);
}

.industries {
	margin-block-start: var(--space-lg);
	text-align: center;
}

.industries__title {
	margin-block-end: var(--space-sm);
	font-size: 1.3rem;
}

.industries__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-xs);
}

.industries__list li {
	padding: 0.45rem 1.1rem;
	border-radius: var(--radius-full);
	background: var(--tone-soft);
	color: var(--tone-text);
	font-weight: 700;
}

/* ---------- 7. Downloads ---------- */
.downloads {
	position: relative;
	display: grid;
	gap: var(--space-md);
	padding: var(--space-lg) var(--space-md);
	overflow: hidden;
	border-radius: 2rem;
	background:
		radial-gradient(24rem 18rem at 100% 0%, rgba(255, 201, 60, 0.45), transparent 70%),
		var(--grad);
	color: #ffffff;
}

.downloads__text {
	margin-block-start: var(--space-xs);
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.08rem;
}

.downloads__cards {
	display: grid;
	gap: var(--space-sm);
}

.dl-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.4rem var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.95);
	color: var(--plum);
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
	transition: transform 0.2s var(--ease);
}

.dl-card:hover {
	transform: translateY(-3px);
}

.dl-card__icon {
	display: grid;
	place-items: center;
	grid-row: span 2;
	inline-size: 3.25rem;
	block-size: 3.25rem;
	border-radius: 1rem;
	background: var(--grad-warm);
	color: #ffffff;
	font-size: 1.35rem;
}

.dl-card__body {
	display: grid;
	line-height: 1.5;
}

.dl-card__body strong {
	font-family: var(--font-head);
	font-size: 1.15rem;
}

.dl-card__body small {
	color: #6b5f80;
}

[dir="rtl"] .dl-card__body small[dir="ltr"] {
	text-align: end;
}

.dl-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--magenta);
	font-weight: 700;
}

/* ---------- 8. Certificates ---------- */
.certs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-sm);
	max-inline-size: 52rem;
	margin-inline: auto;
}

.cert {
	position: relative;
	overflow: hidden;
	padding: 0.5rem;
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.cert:hover {
	transform: translateY(-4px) rotate(-1deg);
	box-shadow: var(--shadow-lg);
}

.cert img {
	border-radius: calc(var(--radius) - 0.5rem);
}

.cert__zoom {
	position: absolute;
	inset-block-end: 0.9rem;
	inset-inline-end: 0.9rem;
	display: grid;
	place-items: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: 50%;
	background: var(--grad);
	color: #ffffff;
}

/* ---------- 9. Team ---------- */
.team {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
}

.member {
	display: grid;
	gap: 0.1rem;
	text-align: center;
}

.member__photo {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin-block-end: var(--space-xs);
	border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0.5rem;
	background: var(--tone-soft);
	box-shadow: 0 0 0 4px var(--tone-soft);
}

[dir="rtl"] .member__photo {
	border-radius: var(--radius-lg) var(--radius-lg) 0.5rem var(--radius-lg);
}

.member__photo img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.member__name {
	font-family: var(--font-head);
	font-size: 1.1rem;
	line-height: 1.5;
}

.member__role {
	color: var(--tone-text);
	font-size: 0.92rem;
	font-weight: 700;
}

/* ---------- 10. CTA + contact ---------- */
.cta {
	display: grid;
	gap: var(--space-md);
	justify-items: start;
	padding: var(--space-lg) var(--space-md);
	border-radius: 2rem;
	background:
		radial-gradient(20rem 14rem at 0% 100%, rgba(255, 201, 60, 0.5), transparent 70%),
		linear-gradient(120deg, #7c4dff, #e6337a);
	color: #ffffff;
}

.cta__title {
	font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.cta__text {
	margin-block-start: var(--space-xs);
	color: rgba(255, 255, 255, 0.92);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

.contact {
	display: grid;
	gap: var(--space-md);
}

.contact__cards {
	display: grid;
	gap: var(--space-xs);
	align-content: start;
}

.ccard-info {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm);
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

a.ccard-info {
	transition: transform 0.2s var(--ease);
}

a.ccard-info:hover {
	transform: translateY(-2px);
}

.ccard-info__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	inline-size: 2.9rem;
	block-size: 2.9rem;
	border-radius: 1rem;
	background: var(--tone-soft);
	color: var(--tone-text);
	font-size: 1.15rem;
}

.ccard-info__body {
	display: grid;
	line-height: 1.5;
	min-inline-size: 0;
}

.ccard-info__label {
	color: var(--c-muted);
	font-size: 0.85rem;
}

.ccard-info__value {
	font-weight: 700;
	overflow-wrap: anywhere;
}

[dir="rtl"] .ccard-info__value[dir="ltr"] {
	text-align: end;
}

.social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: var(--space-sm);
	border-radius: var(--radius);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.social__title {
	font-weight: 700;
}

.social__list {
	display: flex;
	gap: var(--space-xs);
}

.social__link {
	display: grid;
	place-items: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: 50%;
	background: var(--c-surface-2);
	color: var(--c-text);
	transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.social__link:hover {
	background: var(--violet);
	color: #ffffff;
	transform: translateY(-2px);
}

.map {
	position: relative;
	min-block-size: 22rem;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-surface-2);
	box-shadow: var(--shadow-sm);
}

.map__frame {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	min-block-size: 22rem;
	border: 0;
}

:root[data-theme="dark"] .map__frame {
	filter: invert(0.9) hue-rotate(180deg) saturate(0.6);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .map__frame {
		filter: invert(0.9) hue-rotate(180deg) saturate(0.6);
	}
}

.map__btn {
	position: absolute;
	inset-block-end: var(--space-sm);
	inset-inline-start: var(--space-sm);
}

.wa-float {
	position: fixed;
	inset-block-end: 1.25rem;
	inset-inline-start: 1.25rem;
	z-index: 40;
	display: grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: 50%;
	background: #1da851;
	color: #ffffff;
	font-size: 1.6rem;
	box-shadow: 0 12px 28px -10px rgba(29, 168, 81, 0.8);
	transition: transform 0.2s var(--ease);
}

.wa-float:hover {
	transform: scale(1.08);
}

/* ---------- Products page ---------- */
.page-hero {
	position: relative;
	padding-block: var(--space-lg);
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}

.page-hero__title {
	font-size: clamp(2rem, 6vw, 3.2rem);
}

.filters {
	display: grid;
	gap: var(--space-sm);
	margin-block-end: var(--space-md);
}

/* Chips scroll sideways inside their own box, never the page. */
.filters__chips {
	display: flex;
	gap: var(--space-xs);
	overflow-x: auto;
	padding-block: 0.25rem 0.5rem;
	scrollbar-width: thin;
}

.chip {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--c-surface);
	box-shadow: inset 0 0 0 1px var(--c-border);
	color: var(--c-text);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover {
	box-shadow: inset 0 0 0 1px var(--tone, var(--violet));
}

.chip[aria-pressed="true"] {
	background: var(--tone, var(--violet));
	box-shadow: none;
	color: #ffffff;
}

.chip[data-tone="yellow"][aria-pressed="true"] {
	color: var(--plum);
}

.chip__count {
	min-inline-size: 1.5rem;
	padding: 0 0.4rem;
	border-radius: var(--radius-full);
	background: rgba(124, 77, 255, 0.12);
	font-size: 0.78rem;
	text-align: center;
}

.chip[aria-pressed="true"] .chip__count {
	background: rgba(255, 255, 255, 0.3);
}

.filters__row {
	display: grid;
	gap: var(--space-xs);
	align-items: center;
}

.field {
	position: relative;
	display: flex;
	align-items: center;
}

.field__icon {
	position: absolute;
	inset-inline-start: 1rem;
	color: var(--c-muted);
	pointer-events: none;
}

.field__input {
	inline-size: 100%;
	min-inline-size: 0;
	block-size: 3rem;
	padding-inline: 2.8rem 1rem;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--c-surface);
	box-shadow: inset 0 0 0 1px var(--c-border);
	color: var(--c-text);
	font: inherit;
}

.field__input:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--violet);
}

.filters__count {
	color: var(--c-muted);
	font-weight: 700;
}

.empty {
	display: grid;
	justify-items: center;
	gap: var(--space-sm);
	padding: var(--space-lg);
	border-radius: var(--radius-lg);
	background: var(--c-surface-2);
	color: var(--c-muted);
	text-align: center;
}

.empty__icon {
	inline-size: 2.5rem;
	block-size: 2.5rem;
}

/* ---------- Product page ---------- */
.product {
	overflow: hidden;
	isolation: isolate;
}

.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-block-end: var(--space-md);
	color: var(--c-muted);
	font-size: 0.92rem;
}

.crumbs__list li:not(:last-child)::after {
	content: "/";
	margin-inline-start: 0.3rem;
	opacity: 0.6;
}

.crumbs__list a:hover {
	color: var(--violet);
}

.product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-lg);
	align-items: start;
}

.gallery__main {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 6px solid var(--c-surface);
	border-radius: var(--radius-lg);
	background: var(--tone-soft);
	box-shadow: var(--shadow-lg);
}

.gallery__main img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.thumbs {
	display: flex;
	gap: var(--space-xs);
	margin-block-start: var(--space-sm);
	overflow-x: auto;
	padding-block-end: 0.25rem;
}

.thumbs__btn {
	flex-shrink: 0;
	inline-size: 5rem;
	block-size: 5rem;
	padding: 0;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--c-surface-2);
	cursor: pointer;
}

.thumbs__btn[aria-pressed="true"] {
	border-color: var(--tone);
}

.thumbs__btn img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.product__info {
	display: grid;
	gap: var(--space-sm);
	justify-items: start;
}

.product__title {
	font-size: clamp(1.9rem, 5vw, 2.8rem);
	line-height: 1.4;
}

.product__intro {
	color: var(--c-muted);
	font-size: 1.1rem;
}

.product__list,
.dl-box {
	inline-size: 100%;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.product__list-title,
.dl-box__title {
	margin-block-end: var(--space-xs);
	font-size: 1.2rem;
}

.bullets {
	display: grid;
	gap: 0.45rem;
}

.bullets li {
	position: relative;
	padding-inline-start: 1.5rem;
}

.bullets li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.7rem;
	inline-size: 0.6rem;
	block-size: 0.6rem;
	border-radius: 50%;
	background: var(--tone);
}

.dl-box {
	display: grid;
	gap: var(--space-xs);
}

.dl-box__note {
	color: var(--c-muted);
	font-size: 0.9rem;
	text-align: center;
}

.missing__inner {
	display: grid;
	justify-items: center;
	gap: var(--space-sm);
	text-align: center;
}

.missing__icon {
	inline-size: 3rem;
	block-size: 3rem;
	color: var(--c-muted);
}

/* ---------- Footer ---------- */
.footer {
	position: relative;
	background: var(--plum);
	color: #e9e1f7;
}

/* CMYK stripe across the top of the footer. */
.footer__stripe {
	block-size: 6px;
	background: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--violet) 75% 100%);
}

.footer__inner {
	display: grid;
	gap: var(--space-md);
	padding-block: var(--space-lg) var(--space-md);
}

.footer__logo {
	inline-size: 11rem;
}

.footer__text {
	max-inline-size: 26rem;
	margin-block-start: var(--space-sm);
	color: #c9bde0;
}

.footer__title {
	margin-block-end: var(--space-xs);
	color: #ffffff;
	font-size: 1.1rem;
}

.footer__list {
	display: grid;
	gap: 0.2rem;
}

.footer__list a,
.footer__top {
	color: #c9bde0;
	transition: color 0.2s;
}

.footer__list a:hover,
.footer__top:hover {
	color: var(--yellow);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs);
	padding-block: var(--space-sm);
	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
	color: #c9bde0;
	font-size: 0.92rem;
}

/* Agency credit: always the last line of the page, under the copyright. */
.footer__credit {
	flex-basis: 100%;
	padding-block-start: var(--space-xs);
	text-align: center;
	font-size: 0.88rem;
}

.footer__credit-link {
	color: var(--yellow);
	font-weight: 700;
}

.footer__credit-link:hover {
	text-decoration: underline;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
	.cat-grid,
	.product-grid,
	.features,
	.contact__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.social {
		grid-column: 1 / -1;
	}

	.stats__grid,
	.team {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.downloads__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.filters__row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.cta {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		padding: var(--space-lg) var(--space-xl);
	}
}

@media (min-width: 64rem) {
	.header__menu {
		display: none;
	}

	.header__cta {
		display: inline-flex;
	}

	.nav {
		position: static;
		display: flex;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.nav__list {
		display: flex;
		gap: 0.15rem;
	}

	.nav__cta {
		display: none;
	}

	.hero {
		padding-block: var(--space-xl);
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-xl);
	}

	.about,
	.contact {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--space-xl);
	}

	.cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* The first category card spans two columns for a livelier grid. */
	.cat-grid > :first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.cat-grid > :first-child .ccard__media {
		aspect-ratio: auto;
		flex: 1;
	}

	.product-grid,
	.features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.contact__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.downloads {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: center;
		padding: var(--space-xl);
	}

	.downloads__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.product__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: var(--space-xl);
	}

	.footer__inner {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* Small phones: compact header. */
@media (max-width: 26rem) {
	.lang-btn span {
		display: none;
	}

	.lang-btn {
		padding-inline: var(--space-xs);
	}

	.brand__logo {
		block-size: 2.6rem;
	}
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* =====================================================================
 * Ink animations (v2). Everything below is decorative; it uses transform,
 * opacity and clip-path only, stays inside its parent's box, and is
 * switched off by the reduced-motion rules at the very end.
 * ===================================================================== */

/* --- Flowing gradient in the main headline. --- */
.ink-text {
	background-size: 220% 100%;
	background-position: 0% 50%;
	animation: ink-flow 9s ease-in-out infinite alternate;
}

@keyframes ink-flow {
	to {
		background-position: 100% 50%;
	}
}

/* --- Living ink blob behind the hero collage (shape + colour slowly change). --- */
.hero__visual {
	isolation: isolate;
}

.ink-blob {
	position: absolute;
	inset: 10% 6%;
	z-index: -1;
	background: var(--grad);
	opacity: 0.3;
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	animation: ink-morph 14s ease-in-out infinite alternate, ink-hue 20s linear infinite;
}

:root[data-theme="dark"] .ink-blob {
	opacity: 0.4;
}

@keyframes ink-morph {
	33% {
		border-radius: 63% 37% 41% 59% / 55% 62% 38% 45%;
		transform: rotate(8deg) scale(1.04);
	}

	66% {
		border-radius: 38% 62% 55% 45% / 62% 38% 62% 38%;
		transform: rotate(-6deg) scale(0.97);
	}

	100% {
		border-radius: 55% 45% 35% 65% / 40% 60% 40% 60%;
		transform: rotate(4deg) scale(1.06);
	}
}

@keyframes ink-hue {
	to {
		filter: hue-rotate(360deg);
	}
}

/* --- Ink drops falling onto the collage, each landing with a ripple ring. --- */
.ink-rain {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.ink-drop {
	position: absolute;
	inset-block: 0;
	inset-inline-start: var(--x);
	inline-size: 0;
}

.ink-drop::before {
	content: "";
	position: absolute;
	inset-inline-start: -6px;
	top: -4%;
	inline-size: 12px;
	block-size: 12px;
	border-radius: 0 50% 50% 50%;
	background: var(--c);
	box-shadow: 0 3px 8px rgba(42, 23, 71, 0.2);
	transform: rotate(45deg);
	opacity: 0;
	animation: ink-fall 4.4s cubic-bezier(0.55, 0, 0.9, 0.5) var(--d) infinite;
}

.ink-drop::after {
	content: "";
	position: absolute;
	top: var(--land);
	inset-inline-start: -18px;
	inline-size: 36px;
	block-size: 12px;
	margin-block-start: 6px;
	border: 2px solid var(--c);
	border-radius: 50%;
	opacity: 0;
	animation: ink-ring 4.4s ease-out var(--d) infinite;
}

@keyframes ink-fall {
	0% {
		top: -4%;
		opacity: 0;
	}

	8% {
		opacity: 1;
	}

	48% {
		top: var(--land);
		opacity: 1;
	}

	50%,
	100% {
		top: var(--land);
		opacity: 0;
	}
}

@keyframes ink-ring {
	0%,
	49% {
		transform: scale(0.2);
		opacity: 0;
	}

	51% {
		transform: scale(0.4);
		opacity: 0.95;
	}

	100% {
		transform: scale(2.6);
		opacity: 0;
	}
}

/* --- Photos open with a spreading circle of ink as they scroll into view. --- */
.js .ink-reveal {
	clip-path: circle(150% at 50% 100%);
	transition: clip-path 1.2s var(--ease) 0.15s;
}

/* Only a CHILD of a .reveal element may start clipped: a fully clipped element counts as
   "not on screen", so it would never be revealed (that hid the product photo in v2). */
.js .reveal:not(.is-visible) .ink-reveal {
	clip-path: circle(0% at 50% 100%);
}

/* --- Ink brush line drawn under section titles. --- */
.section__head .section__title::after {
	content: "";
	display: block;
	inline-size: 5.5rem;
	block-size: 0.55rem;
	margin-block-start: 0.4rem;
	margin-inline: auto;
	border-radius: 60% 40% 55% 45% / 70% 60% 40% 30%;
	background: var(--grad);
	transform-origin: left center;
	transition: transform 0.9s var(--ease) 0.35s;
}

[dir="rtl"] .section__head .section__title::after {
	transform-origin: right center;
}

.section__head--row .section__title::after {
	margin-inline: 0;
}

.js .section__head.reveal:not(.is-visible) .section__title::after {
	transform: scaleX(0);
}

/* --- Number cards fill with ink from the bottom, then slosh gently. --- */
.stat {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-surface);
	box-shadow: var(--shadow-sm);
}

.stat::before {
	content: "";
	position: absolute;
	inset-block: -12% 0;
	inset-inline: -15%;
	z-index: -1;
	border-radius: 45% 45% 0 0 / 14% 14% 0 0;
	background: var(--tone-soft);
	transition: transform 1.4s var(--ease) 0.2s;
	animation: ink-slosh 6s ease-in-out infinite alternate;
}

.js .stat.reveal:not(.is-visible)::before {
	transform: translateY(100%);
}

@keyframes ink-slosh {
	from {
		rotate: -3deg;
	}

	to {
		rotate: 3deg;
	}
}

/* --- Ink stain spreading behind card text on hover. --- */
.pcard__body,
.ccard__body,
.feature {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.pcard__body::before,
.ccard__body::before,
.feature::before {
	content: "";
	position: absolute;
	inset-block-end: -45%;
	inset-inline-end: -25%;
	z-index: -1;
	inline-size: 90%;
	aspect-ratio: 1;
	border-radius: 47% 53% 61% 39% / 45% 51% 49% 55%;
	background: var(--tone-soft);
	transform: scale(0);
	transition: transform 0.7s var(--ease);
}

.pcard:hover .pcard__body::before,
.ccard:hover .ccard__body::before,
.feature:hover::before {
	transform: scale(1.35);
}

/* --- Ink splash ripple where a button or chip is tapped (added by ink.js). --- */
.btn,
.chip,
.icon-btn,
.lang-btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.ink-ripple {
	position: absolute;
	z-index: -1;
	border-radius: 46% 54% 52% 48% / 53% 47% 55% 45%;
	background: currentColor;
	opacity: 0.3;
	transform: scale(0);
	pointer-events: none;
	animation: ink-splash 0.65s ease-out forwards;
}

@keyframes ink-splash {
	60% {
		opacity: 0.25;
	}

	to {
		transform: scale(1);
		opacity: 0;
	}
}

/* --- Ink dripping from the CMYK stripe at the top of the footer. --- */
.drips {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 6px;
	block-size: 5rem;
	pointer-events: none;
}

.drips i {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: var(--x);
	inline-size: 9px;
	block-size: var(--h);
	border-radius: 0 0 5px 5px;
	background: var(--c);
	transform-origin: top;
	animation: drip-grow 4.5s ease-in-out var(--d) infinite;
}

.drips i::after {
	content: "";
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 50%;
	inline-size: 9px;
	block-size: 9px;
	margin-block-start: -5px;
	margin-inline-start: -4.5px;
	border-radius: 50%;
	background: var(--c);
	animation: drip-fall 4.5s ease-in var(--d) infinite;
}

@keyframes drip-grow {
	0%,
	100% {
		transform: scaleY(0.55);
	}

	60% {
		transform: scaleY(1);
	}
}

@keyframes drip-fall {
	0%,
	55% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}

	85% {
		transform: translateY(2.5rem) scale(0.7);
		opacity: 0;
	}

	100% {
		transform: translateY(0) scale(0.2);
		opacity: 0;
	}
}

/* Room under the stripe so the drips never cover the footer text. */
.footer__inner {
	padding-block-start: 5rem;
}

/* --- Reduced motion: keep the colours, drop the movement. --- */
@media (prefers-reduced-motion: reduce) {
	.ink-rain,
	.drips i::after {
		display: none;
	}

	.js .ink-reveal,
	.js .reveal:not(.is-visible) .ink-reveal {
		clip-path: none;
	}

	.js .stat.reveal:not(.is-visible)::before,
	.js .section__head.reveal:not(.is-visible) .section__title::after {
		transform: none;
	}
}

/* =====================================================================
 * v4 spacing fixes: hero → stats transition.
 * ===================================================================== */

/* Colour clouds fade out towards the bottom instead of ending in a hard line. */
.blobs {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Less empty space under the hero collage, and real breathing room above the number cards. */
.hero {
	padding-block-end: var(--space-md);
}

.hero__visual {
	padding-block-end: 2.5rem;
}

.stats {
	padding-block: var(--space-lg);
}

/* The sloshing ink layer reaches well below the card, so its tilt never shows a corner wedge. */
.stat::before {
	inset-block: -12% -20%;
}

@media (min-width: 64rem) {
	.hero {
		padding-block-end: var(--space-lg);
	}
}

/* =====================================================================
 * v5: map directions button.
 * The ink-ripple rule gives every .btn position:relative, which broke the
 * old overlay. The button now sits in its own bar under the map, so it
 * never covers Google's zoom controls on small screens.
 * ===================================================================== */
.map {
	display: flex;
	flex-direction: column;
}

.map__frame {
	flex: 1 1 auto;
}

.map .map__btn {
	position: relative;
	inset: auto;
	margin: var(--space-sm);
	align-self: stretch;
}

@media (min-width: 40rem) {
	.map .map__btn {
		align-self: center;
	}
}
