/* ==========================================================================
   Studio22 — dark premium theme
   Colours follow the logo: crimson film strip, warm taupe lettering.
   Layout uses logical properties so the same rules work in Arabic (RTL).
   ========================================================================== */

:root {
	--s22-accent: #c21d4f;
	--s22-accent-deep: color-mix(in srgb, var(--s22-accent) 70%, #000);
	--s22-taupe: #b8a68c;
	--s22-bg: #0c0a0b;
	--s22-bg-2: #131012;
	--s22-surface: #1a1618;
	--s22-line: rgba(243, 238, 232, 0.1);
	--s22-text: #f3eee8;
	--s22-muted: #a39a91;
	--s22-font-display: "Syne", "Cairo", system-ui, sans-serif;
	--s22-font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--s22-radius: 18px;
	--s22-gutter: clamp(16px, 4vw, 48px);
	--s22-header-h: 96px;
	--s22-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] {
	--s22-font-display: "Cairo", "Syne", system-ui, sans-serif;
	--s22-font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--s22-header-h);
}

body {
	margin: 0;
	background: var(--s22-bg);
	color: var(--s22-text);
	font-family: var(--s22-font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

img,
video {
	height: auto;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 0.2em;
	transition: color 0.25s, opacity 0.25s;
}

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--s22-font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
	letter-spacing: 0;
	line-height: 1.35;
}

p {
	margin: 0 0 1.2em;
}

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

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

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 1000;
	inset-inline-start: 16px;
	top: 16px;
	padding: 12px 18px;
	background: var(--s22-text);
	color: var(--s22-bg);
	border-radius: 8px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

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

.container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--s22-gutter);
}

.container--narrow {
	max-width: 820px;
}

.section {
	padding-block: clamp(80px, 12vw, 160px);
	position: relative;
}

.section--tight {
	padding-block: clamp(48px, 7vw, 96px);
}

.kicker,
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--s22-taupe);
	margin: 0 0 20px;
}

[dir="rtl"] .kicker,
[dir="rtl"] .eyebrow {
	letter-spacing: 0;
	font-size: 15px;
}

.kicker::before,
.eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--s22-accent);
}

.kicker a {
	text-decoration: none;
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
	font-size: clamp(34px, 5vw, 64px);
}

.lead {
	font-size: clamp(18px, 1.6vw, 21px);
	color: color-mix(in srgb, var(--s22-text) 82%, transparent);
	line-height: 1.75;
}

/* Buttons
   ========================================================================== */

.btn {
	--btn-bg: transparent;
	--btn-fg: var(--s22-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 15px/1 var(--s22-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.35s var(--s22-ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}

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

.btn--accent {
	--btn-bg: var(--s22-accent);
	--btn-fg: #fff;
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--s22-accent) 70%, transparent);
}

.btn--accent:hover {
	--btn-bg: color-mix(in srgb, var(--s22-accent) 85%, #fff);
	box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--s22-accent) 80%, transparent);
}

.btn--ghost {
	border-color: color-mix(in srgb, var(--s22-text) 35%, transparent);
	backdrop-filter: blur(6px);
}

.btn--ghost:hover {
	border-color: var(--s22-text);
	--btn-bg: rgba(255, 255, 255, 0.06);
}

.btn--light {
	--btn-bg: #fff;
	--btn-fg: #111;
}

.btn--light:hover {
	--btn-fg: #111;
	--btn-bg: var(--s22-text);
}

.btn--sm {
	min-height: 42px;
	padding: 0 20px;
	font-size: 14px;
}

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

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--s22-text);
	text-decoration: none;
	border-bottom: 1px solid var(--s22-accent);
	padding-bottom: 4px;
}

.link-arrow .icon {
	transition: transform 0.3s var(--s22-ease);
}

.link-arrow:hover .icon {
	transform: translateX(4px);
}

[dir="rtl"] .link-arrow:hover .icon {
	transform: scaleX(-1) translateX(4px);
}

/* Header
   ========================================================================== */

.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	height: var(--s22-header-h);
	transition: background 0.4s, backdrop-filter 0.4s, height 0.4s var(--s22-ease), border-color 0.4s;
	border-bottom: 1px solid transparent;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

body:not(.has-hero) .site-header,
.site-header.is-scrolled {
	background: rgba(12, 10, 11, 0.82);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--s22-line);
}

.site-header.is-scrolled {
	--s22-header-h: 76px;
}

.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-logo {
	display: block;
	flex: none;
	margin-inline-end: auto;
}

.site-logo__img {
	height: 76px;
	width: auto;
	transition: height 0.4s var(--s22-ease);
}

.is-scrolled .site-logo__img {
	height: 58px;
}

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

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

.main-nav .menu a {
	display: block;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: color-mix(in srgb, var(--s22-text) 85%, transparent);
	border-radius: 999px;
}

.main-nav .menu a:hover,
.main-nav .current-menu-item > a {
	color: var(--s22-text);
	background: rgba(255, 255, 255, 0.07);
}

.main-nav .menu-item-has-children {
	position: relative;
}

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: var(--s22-surface);
	border: 1px solid var(--s22-line);
	border-radius: 14px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: 0.25s;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-nav__extra {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lang-switch {
	display: flex;
	padding: 3px;
	border: 1px solid var(--s22-line);
	border-radius: 999px;
}

.lang-switch a {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 30px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	color: var(--s22-muted);
}

.lang-switch a.is-current {
	background: var(--s22-text);
	color: var(--s22-bg);
}

.nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--s22-line);
	border-radius: 50%;
	background: transparent;
	color: var(--s22-text);
	cursor: pointer;
	place-items: center;
}

.nav-toggle__close,
.nav-open .nav-toggle__open {
	display: none;
}

.nav-open .nav-toggle__close {
	display: block;
}

@media (max-width: 1080px) {
	.nav-toggle {
		display: grid;
		position: relative;
		z-index: 2;
	}

	.main-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		gap: 40px;
		padding: calc(var(--s22-header-h) + 24px) var(--s22-gutter) 40px;
		background: var(--s22-bg);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.4s, visibility 0.4s;
		overflow-y: auto;
	}

	.nav-open .main-nav {
		opacity: 1;
		visibility: visible;
	}

	.main-nav .menu {
		flex-direction: column;
		gap: 4px;
	}

	.main-nav .menu a {
		font-family: var(--s22-font-display);
		font-size: clamp(30px, 8vw, 44px);
		font-weight: 700;
		padding: 6px 0;
		background: none !important;
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.5s, transform 0.5s var(--s22-ease), color 0.25s;
	}

	.nav-open .main-nav .menu a {
		opacity: 1;
		transform: none;
	}

	.nav-open .main-nav .menu li:nth-child(2) a { transition-delay: 0.05s; }
	.nav-open .main-nav .menu li:nth-child(3) a { transition-delay: 0.1s; }
	.nav-open .main-nav .menu li:nth-child(4) a { transition-delay: 0.15s; }
	.nav-open .main-nav .menu li:nth-child(5) a { transition-delay: 0.2s; }
	.nav-open .main-nav .menu li:nth-child(6) a { transition-delay: 0.25s; }

	.main-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: none;
		border: 0;
		padding: 0 0 0 16px;
	}

	.main-nav .sub-menu a {
		font-size: 22px;
	}

	.main-nav__extra {
		justify-content: space-between;
	}

	.nav-open {
		overflow: hidden;
	}
}

/* Hero — pinned video that plays with the scroll
   ========================================================================== */

.hero {
	position: relative;
	background: #000;
}

.hero--pinned {
	height: var(--hero-length, 300vh);
}

.hero__sticky {
	position: relative;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.hero--pinned .hero__sticky {
	position: sticky;
	top: 0;
}

.hero__media {
	position: absolute;
	inset: 0;
	transform: scale(calc(1.08 - var(--p, 0) * 0.08));
	transform-origin: center;
	will-change: transform;
}

.hero__video,
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 50% at 75% 30%, color-mix(in srgb, var(--s22-accent) 45%, transparent), transparent 70%),
		radial-gradient(50% 60% at 15% 80%, rgba(184, 166, 140, 0.25), transparent 70%),
		linear-gradient(160deg, #1b1417, #070607);
	animation: s22-drift 18s ease-in-out infinite alternate;
}

.hero__placeholder::after {
	content: "";
	position: absolute;
	inset: -50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
	animation: s22-grain 1s steps(4) infinite;
	opacity: 0.6;
}

@keyframes s22-drift {
	to {
		background-position: 10% 0, -10% 20%, 0 0;
		filter: hue-rotate(-12deg);
	}
}

@keyframes s22-grain {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-3%, 2%); }
	50% { transform: translate(2%, -3%); }
	75% { transform: translate(-2%, -1%); }
	100% { transform: translate(0, 0); }
}

.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(8, 6, 7, 0.92) 0%, rgba(8, 6, 7, 0.35) 45%, rgba(8, 6, 7, 0.15) 70%, rgba(8, 6, 7, 0.55) 100%);
	opacity: calc(0.85 + var(--p, 0) * 0.15);
}

.hero__content {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(90px, 14vh, 150px);
	display: grid;
}

.hero__step {
	grid-area: 1 / 1;
	align-self: end;
	transition: opacity 0.7s var(--s22-ease), transform 0.9s var(--s22-ease), filter 0.7s;
}

.hero--pinned .hero__step:not(.is-active) {
	opacity: 0;
	transform: translateY(40px);
	filter: blur(6px);
	pointer-events: none;
}

.hero--pinned .hero__step.is-past {
	transform: translateY(-40px);
}

.hero__title {
	font-size: clamp(44px, 8.2vw, 124px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.035em;
	max-width: 13ch;
	margin-bottom: 24px;
}

[dir="rtl"] .hero__title {
	line-height: 1.25;
	letter-spacing: 0;
	max-width: 16ch;
}

.hero__sub {
	font-size: clamp(18px, 1.7vw, 22px);
	max-width: 560px;
	color: color-mix(in srgb, var(--s22-text) 82%, transparent);
	margin-bottom: 36px;
}

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

.hero__line {
	font-family: var(--s22-font-display);
	font-size: clamp(34px, 6vw, 88px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	max-width: 16ch;
	margin: 0;
}

[dir="rtl"] .hero__line {
	letter-spacing: 0;
	line-height: 1.35;
}

.hero__progress {
	position: absolute;
	z-index: 3;
	inset-inline-end: var(--s22-gutter);
	top: 50%;
	width: 2px;
	height: 120px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18);
	border-radius: 2px;
	overflow: hidden;
}

.hero__progress span {
	position: absolute;
	inset: 0;
	background: var(--s22-accent);
	transform-origin: top;
	transform: scaleY(var(--p, 0));
}

.hero__scroll {
	position: absolute;
	z-index: 3;
	bottom: 28px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--s22-muted);
	text-decoration: none;
	transition: opacity 0.4s;
}

[dir="rtl"] .hero__scroll {
	transform: translateX(50%);
	letter-spacing: 0;
}

.hero__scroll i {
	width: 1px;
	height: 44px;
	background: linear-gradient(var(--s22-text), transparent);
	animation: s22-scroll 2s var(--s22-ease) infinite;
	transform-origin: top;
}

.hero.is-scrolling .hero__scroll {
	opacity: 0;
}

@keyframes s22-scroll {
	0% { transform: scaleY(0); }
	50% { transform: scaleY(1); }
	100% { transform: scaleY(1); opacity: 0; }
}

/* Marquee
   ========================================================================== */

.marquee {
	position: relative;
	overflow: hidden;
	padding-block: 26px;
	border-block: 1px solid var(--s22-line);
	background: var(--s22-bg-2);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: s22-marquee 40s linear infinite;
}

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

.marquee__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.marquee__list li {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-inline-end: 40px;
	font-family: var(--s22-font-display);
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 600;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--s22-taupe) 80%, transparent);
}

.marquee__list li:nth-child(odd) {
	color: var(--s22-text);
	-webkit-text-stroke: 0;
}

.marquee__list li::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--s22-accent);
}

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

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

/* Services
   ========================================================================== */

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--s22-line);
	border-inline-start: 1px solid var(--s22-line);
}

.service {
	position: relative;
	padding: clamp(28px, 3.5vw, 48px);
	border-bottom: 1px solid var(--s22-line);
	border-inline-end: 1px solid var(--s22-line);
	overflow: hidden;
	isolation: isolate;
	transition: background 0.4s;
}

.service::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--s22-accent) 22%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s;
}

[dir="rtl"] .service::before {
	background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--s22-accent) 22%, transparent), transparent 60%);
}

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

.service__num {
	position: absolute;
	top: 28px;
	inset-inline-end: 32px;
	font-family: var(--s22-font-display);
	font-size: 14px;
	color: var(--s22-muted);
}

.service__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 40px;
	border: 1px solid var(--s22-line);
	border-radius: 50%;
	color: var(--s22-taupe);
	transition: 0.4s var(--s22-ease);
}

.service__icon .icon {
	width: 28px;
	height: 28px;
}

.service:hover .service__icon {
	background: var(--s22-accent);
	border-color: var(--s22-accent);
	color: #fff;
	transform: rotate(-8deg) scale(1.05);
}

.service__title {
	font-size: clamp(22px, 2vw, 28px);
	margin-bottom: 14px;
}

.service__text {
	color: var(--s22-muted);
	margin: 0;
}

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

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

/* Work
   ========================================================================== */

.work {
	background: var(--s22-bg-2);
}

.work__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(40px, 6vw, 64px);
}

.work__head .section-head {
	margin-bottom: 0;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.work__head .filters {
	margin-bottom: 0;
}

.filter {
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid var(--s22-line);
	border-radius: 999px;
	background: transparent;
	color: var(--s22-muted);
	font: 500 14px/1 var(--s22-font-body);
	cursor: pointer;
	transition: 0.25s;
}

.filter:hover {
	color: var(--s22-text);
	border-color: color-mix(in srgb, var(--s22-text) 40%, transparent);
}

.filter.is-active {
	background: var(--s22-text);
	border-color: var(--s22-text);
	color: var(--s22-bg);
}

.work__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 1.6vw, 24px);
}

.work__grid .project-card:nth-child(6n + 1),
.work__grid .project-card:nth-child(6n + 5) {
	grid-row: span 2;
}

.project-card.is-hidden {
	display: none;
}

.project-card__link {
	position: relative;
	display: block;
	height: 100%;
	min-height: 320px;
	border-radius: var(--s22-radius);
	overflow: hidden;
	text-decoration: none;
	background: var(--s22-surface);
	isolation: isolate;
}

.project-card__media {
	position: absolute;
	inset: 0;
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--s22-ease), filter 0.6s;
	filter: saturate(0.9);
}

.project-card__link:hover .project-card__media img {
	transform: scale(1.06);
	filter: saturate(1.05);
}

.project-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--s22-muted);
	background: linear-gradient(145deg, var(--s22-surface), var(--s22-bg));
}

.project-card__placeholder .icon {
	width: 48px;
	height: 48px;
}

.project-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 55%);
	z-index: 1;
}

.project-card__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: 0.4s var(--s22-ease);
}

.project-card__play .icon {
	width: 26px;
	height: 26px;
	fill: currentColor;
	margin-inline-start: 3px;
}

.project-card__link:hover .project-card__play {
	background: var(--s22-accent);
	border-color: var(--s22-accent);
	transform: scale(1.1);
}

.project-card__info {
	position: absolute;
	z-index: 2;
	inset-inline: 0;
	bottom: 0;
	padding: clamp(20px, 2.4vw, 32px);
}

.project-card__type {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--s22-taupe);
	margin-bottom: 8px;
}

[dir="rtl"] .project-card__type {
	letter-spacing: 0;
}

.project-card__title {
	font-size: clamp(20px, 1.8vw, 26px);
	margin: 0;
	color: #fff;
}

.work__more {
	margin: clamp(40px, 5vw, 64px) 0 0;
	text-align: center;
}

.notice-empty {
	padding: 32px;
	border: 1px dashed var(--s22-line);
	border-radius: var(--s22-radius);
	color: var(--s22-muted);
}

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

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

	.work__grid .project-card {
		grid-row: auto !important;
	}

	.project-card__link {
		min-height: 0;
		aspect-ratio: 4 / 5;
	}
}

/* Studio + stats
   ========================================================================== */

.studio__grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(40px, 7vw, 110px);
	align-items: center;
}

.studio__media {
	position: relative;
}

.studio__media img,
.studio__placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--s22-radius);
}

.studio__placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, var(--s22-surface), var(--s22-bg-2));
	color: var(--s22-muted);
}

.studio__placeholder .icon {
	width: 64px;
	height: 64px;
}

.studio__badge {
	position: absolute;
	bottom: -28px;
	inset-inline-end: -28px;
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--s22-accent);
	font-family: var(--s22-font-display);
	font-size: 44px;
	font-weight: 800;
	box-shadow: 0 20px 50px -20px var(--s22-accent);
}

.studio__body .section-head {
	margin-bottom: 28px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 48px 0 0;
	padding-top: 40px;
	border-top: 1px solid var(--s22-line);
}

.studio .stats {
	grid-template-columns: repeat(2, 1fr);
}

.stat {
	display: flex;
	flex-direction: column-reverse;
}

.stat__number {
	margin: 0 0 6px;
	font-family: var(--s22-font-display);
	font-size: clamp(40px, 4.6vw, 64px);
	font-weight: 700;
	line-height: 1;
	direction: ltr;
	text-align: start;
}

[dir="rtl"] .stat__number {
	text-align: end;
}

.stat__number span {
	color: var(--s22-accent);
}

.stat__label {
	color: var(--s22-muted);
	font-size: 15px;
}

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

	.studio__badge {
		width: 92px;
		height: 92px;
		font-size: 34px;
		inset-inline-end: 16px;
	}

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

/* Clients
   ========================================================================== */

.clients {
	background: var(--s22-bg-2);
	border-block: 1px solid var(--s22-line);
}

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

.clients__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--s22-line);
	border: 1px solid var(--s22-line);
	border-radius: var(--s22-radius);
	overflow: hidden;
}

.client > a,
.client > div {
	display: grid;
	place-items: center;
	height: 100%;
	min-height: 150px;
	padding: 28px;
	background: var(--s22-bg-2);
	text-decoration: none;
	transition: background 0.4s;
}

.client > a:hover {
	background: var(--s22-surface);
}

.client__logo {
	max-width: 150px;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.7;
	transition: opacity 0.4s, filter 0.4s, transform 0.4s var(--s22-ease);
}

.clients--color .client__logo {
	filter: none;
	opacity: 0.9;
}

.client > a:hover .client__logo,
.client > div:hover .client__logo {
	opacity: 1;
	transform: scale(1.05);
}

.client__name {
	font-family: var(--s22-font-display);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	color: color-mix(in srgb, var(--s22-text) 70%, transparent);
	transition: color 0.3s;
}

.client > a:hover .client__name {
	color: var(--s22-text);
}

/* Process
   ========================================================================== */

.process__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(20px, 2.5vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 36px;
	border-top: 1px solid var(--s22-line);
}

.step::before {
	content: "";
	position: absolute;
	top: -1px;
	inset-inline-start: 0;
	width: 0;
	height: 1px;
	background: var(--s22-accent);
	transition: width 1.2s var(--s22-ease) calc(var(--delay, 0) * 0.15s + 0.2s);
}

.step.is-visible::before {
	width: 100%;
}

.step__num {
	display: block;
	font-family: var(--s22-font-display);
	font-size: 15px;
	color: var(--s22-accent);
	margin-bottom: 18px;
}

.step__title {
	font-size: 24px;
}

.step__text {
	color: var(--s22-muted);
	margin: 0;
}

@media (max-width: 900px) {
	.process__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* CTA
   ========================================================================== */

.cta {
	padding-inline: var(--s22-gutter);
}

.cta__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(40px, 6vw, 80px);
	border-radius: calc(var(--s22-radius) * 1.5);
	background:
		radial-gradient(80% 140% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
		linear-gradient(120deg, var(--s22-accent-deep), var(--s22-accent));
	overflow: hidden;
	max-width: 1320px;
}

.cta__inner::after {
	content: "22";
	position: absolute;
	inset-inline-end: 4%;
	bottom: -0.32em;
	font-family: var(--s22-font-display);
	font-size: clamp(160px, 22vw, 320px);
	font-weight: 800;
	line-height: 1;
	color: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.cta__title {
	font-size: clamp(32px, 4.4vw, 58px);
	margin-bottom: 10px;
}

.cta__text {
	margin: 0;
	font-size: 18px;
	opacity: 0.9;
}

.cta .btn {
	position: relative;
	z-index: 1;
}

/* Contact
   ========================================================================== */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-block: 8px;
}

.contact-list .icon {
	color: var(--s22-accent);
	margin-top: 0.25em;
}

.contact-list a {
	text-decoration: none;
}

.contact-list--big li {
	font-size: 19px;
	padding-block: 14px;
	border-bottom: 1px solid var(--s22-line);
}

.contact__map {
	margin-top: 32px;
	border-radius: var(--s22-radius);
	overflow: hidden;
	border: 1px solid var(--s22-line);
}

.contact__map iframe {
	width: 100%;
	height: 280px;
	border: 0;
	filter: grayscale(1) invert(0.92) contrast(0.9);
}

.contact__form {
	padding: clamp(28px, 4vw, 52px);
	background: var(--s22-surface);
	border: 1px solid var(--s22-line);
	border-radius: calc(var(--s22-radius) * 1.3);
}

.booking-form__title {
	font-size: 28px;
	margin-bottom: 24px;
}

.field {
	margin-bottom: 18px;
}

.field label,
.contact__form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--s22-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--s22-line);
	border-radius: 12px;
	background: var(--s22-bg);
	color: var(--s22-text);
	font: inherit;
	font-size: 16px;
	color-scheme: dark;
	transition: border-color 0.25s, box-shadow 0.25s;
}

textarea {
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--s22-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--s22-accent) 22%, transparent);
}

input[type="submit"],
button[type="submit"]:not(.btn) {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--s22-accent);
	color: #fff;
	font: 600 15px/1 var(--s22-font-body);
	cursor: pointer;
}

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

/* Footer
   ========================================================================== */

.site-footer {
	margin-top: clamp(80px, 10vw, 140px);
	border-top: 1px solid var(--s22-line);
	background: var(--s22-bg-2);
	font-size: 15px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.4fr;
	gap: 48px;
	padding-block: 72px 48px;
}

.site-footer__grid:has(> :nth-child(4)) {
	grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
}

.site-logo--footer {
	margin-bottom: 20px;
}

.site-logo--footer .site-logo__img {
	height: 110px;
}

.site-footer__brand p {
	max-width: 360px;
	color: var(--s22-muted);
}

.site-footer__title,
.widget-title {
	font-size: 13px;
	font-family: var(--s22-font-body);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--s22-taupe);
	margin-bottom: 20px;
}

.site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .menu a {
	display: inline-block;
	padding-block: 5px;
	text-decoration: none;
	color: color-mix(in srgb, var(--s22-text) 80%, transparent);
}

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

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--s22-line);
	border-radius: 50%;
	transition: 0.3s;
}

.social a:hover {
	background: var(--s22-accent);
	border-color: var(--s22-accent);
	color: #fff;
}

.social .icon {
	width: 19px;
	height: 19px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px;
	border-top: 1px solid var(--s22-line);
	color: var(--s22-muted);
	font-size: 14px;
}

.site-footer__bottom p {
	margin: 0;
}

.to-top {
	text-decoration: none;
}

@media (max-width: 900px) {
	.site-footer__grid,
	.site-footer__grid:has(> :nth-child(4)) {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.site-footer__grid,
	.site-footer__grid:has(> :nth-child(4)) {
		grid-template-columns: 1fr;
	}
}

/* Floating WhatsApp
   ========================================================================== */

.wa-float {
	position: fixed;
	z-index: 90;
	bottom: 24px;
	inset-inline-end: 24px;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
	transition: transform 0.35s var(--s22-ease);
}

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

.wa-float .icon {
	width: 30px;
	height: 30px;
}

/* Lightbox
   ========================================================================== */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 72px var(--s22-gutter) 32px;
	background: rgba(5, 4, 5, 0.94);
	backdrop-filter: blur(8px);
	animation: s22-fade 0.3s;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__stage {
	width: min(1280px, 100%);
	max-height: 100%;
	display: grid;
	place-items: center;
}

.lightbox__stage img,
.lightbox__stage video {
	max-height: calc(100vh - 120px);
	width: auto;
	border-radius: 10px;
}

.lightbox__stage .ratio-16x9 {
	width: 100%;
}

.lightbox__close {
	position: absolute;
	top: 18px;
	inset-inline-end: 18px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--s22-line);
	border-radius: 50%;
	background: transparent;
	color: var(--s22-text);
	cursor: pointer;
}

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

.ratio-16x9 {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--s22-radius);
	overflow: hidden;
	background: #000;
}

.ratio-16x9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Inner pages
   ========================================================================== */

.page-hero {
	padding: calc(var(--s22-header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px);
	background:
		radial-gradient(60% 120% at 90% 0%, color-mix(in srgb, var(--s22-accent) 18%, transparent), transparent 60%),
		var(--s22-bg);
	border-bottom: 1px solid var(--s22-line);
}

.page-hero__title {
	font-size: clamp(40px, 6.5vw, 92px);
	font-weight: 800;
	max-width: 18ch;
	margin-bottom: 0.3em;
}

.page-hero__lead {
	max-width: 640px;
	font-size: clamp(18px, 1.6vw, 22px);
	color: var(--s22-muted);
}

.page-hero--404 {
	min-height: 80vh;
	display: grid;
	align-items: center;
}

.big-404 {
	font-family: var(--s22-font-display);
	font-size: clamp(120px, 22vw, 280px);
	font-weight: 800;
	line-height: 0.9;
	margin: 0;
	color: transparent;
	-webkit-text-stroke: 2px var(--s22-accent);
}

.featured-image {
	margin-block: clamp(32px, 5vw, 56px) 0;
}

.featured-image img {
	width: 100%;
	border-radius: var(--s22-radius);
}

.project-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 56px;
	margin: 32px 0 0;
}

.project-facts dt {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--s22-taupe);
}

.project-facts dd {
	margin: 4px 0 0;
	font-weight: 500;
}

.project-media {
	margin-top: clamp(32px, 5vw, 56px);
}

.project-media img,
.project-media video {
	width: 100%;
	border-radius: var(--s22-radius);
}

/* About page */

.founder__grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(40px, 7vw, 110px);
	align-items: center;
}

.founder__photo {
	position: relative;
	margin: 0;
}

.founder__photo img,
.founder__placeholder {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--s22-radius);
}

.founder__placeholder {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 16px;
	background: linear-gradient(145deg, var(--s22-surface), var(--s22-bg-2));
	color: var(--s22-muted);
}

.founder__placeholder .icon {
	width: 56px;
	height: 56px;
}

.founder__frame {
	position: absolute;
	inset: 24px -24px -24px 24px;
	border: 1px solid var(--s22-accent);
	border-radius: var(--s22-radius);
}

[dir="rtl"] .founder__frame {
	inset: 24px 24px -24px -24px;
}

.founder__role {
	color: var(--s22-taupe);
	font-weight: 500;
	margin-top: -0.4em;
}

.founder__quote {
	position: relative;
	margin: 32px 0;
	padding-inline-start: 28px;
	border-inline-start: 2px solid var(--s22-accent);
	font-family: var(--s22-font-display);
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
	line-height: 1.35;
}

.founder__quote p {
	margin: 0;
}

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

	.founder__photo {
		max-width: 520px;
		margin-inline-end: 24px;
	}
}

/* Blog */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 40px 28px;
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--s22-radius);
	overflow: hidden;
	background: var(--s22-surface);
	margin-bottom: 20px;
}

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

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--s22-muted);
}

.post-card__title {
	font-size: 24px;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt {
	color: var(--s22-muted);
}

.post-meta {
	font-size: 14px;
	color: var(--s22-taupe);
	margin-bottom: 10px;
}

.post-meta a {
	text-decoration: none;
}

.pagination,
.post-navigation {
	margin-top: 64px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--s22-line);
	border-radius: 999px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--s22-text);
	color: var(--s22-bg);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	display: block;
	max-width: 320px;
	text-decoration: none;
	font-family: var(--s22-font-display);
	font-weight: 600;
	font-size: 19px;
}

.nav-label {
	display: block;
	font-family: var(--s22-font-body);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--s22-taupe);
	margin-bottom: 6px;
}

.empty-state {
	text-align: center;
	color: var(--s22-muted);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin-inline: auto;
}

/* Editor content */

.entry-content > * + * {
	margin-top: 1.4em;
}

.entry-content h2 {
	font-size: clamp(28px, 3vw, 40px);
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: clamp(22px, 2.2vw, 28px);
	margin-top: 1.4em;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content blockquote {
	margin-inline: 0;
	padding-inline-start: 24px;
	border-inline-start: 2px solid var(--s22-accent);
	font-size: 1.2em;
}

.entry-content .alignwide {
	margin-inline: calc(-1 * min(12vw, 160px));
}

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

.entry-content .wp-block-button__link {
	border-radius: 999px;
	background: var(--s22-accent);
	color: #fff;
}

.wp-caption-text,
figcaption {
	font-size: 14px;
	color: var(--s22-muted);
	margin-top: 8px;
}

.comments {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--s22-line);
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--s22-line);
}

.comment-author img {
	display: inline-block;
	border-radius: 50%;
	vertical-align: middle;
	margin-inline-end: 10px;
}

/* Scroll reveal
   ========================================================================== */

.js .reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 1s var(--s22-ease), transform 1.1s var(--s22-ease);
	transition-delay: calc(var(--delay, 0) * 0.1s);
}

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

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

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

	.hero--pinned {
		height: auto;
	}

	.hero--pinned .hero__sticky {
		position: relative;
	}

	.hero__line,
	.hero__progress {
		display: none;
	}
}
