/* Rekaz Development. Palette and proportions taken from the company profile. */

:root {
	/* Sampled from the brand vector, not approximated */
	--rk-wine: #4F1719;
	--rk-wine-deep: #3A0F11;
	--rk-wine-ink: #2A0A0C;
	--rk-red: #C4161C;
	--rk-sand: #E8E1D7;
	--rk-sand-deep: #DFD3BD;
	--rk-paper: #F6F2EB;
	--rk-ink: #1A1012;
	--rk-line: rgba(79, 23, 25, 0.16);

	--rk-ar: "Almarai", system-ui, sans-serif;
	--rk-en: "Montserrat", system-ui, sans-serif;

	--rk-wrap: 1240px;
	--rk-pad: clamp(20px, 5vw, 64px);
	--rk-bar: 84px;
}

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

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

body {
	margin: 0;
	background: var(--rk-paper);
	color: var(--rk-ink);
	font-family: var(--rk-ar);
	font-size: 17px;
	line-height: 1.9;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.rkz-lang-en { font-family: var(--rk-en); line-height: 1.7; font-weight: 400; }

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

.rk-wrap { width: min(var(--rk-wrap), 100%); margin-inline: auto; padding-inline: var(--rk-pad); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Type -------------------------------------------------------------------- */

.rk-display {
	font-family: var(--rk-en);
	font-weight: 800;
	font-size: clamp(38px, 8vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0;
}

body.rkz-lang-ar .rk-display { font-family: var(--rk-ar); font-weight: 800; letter-spacing: 0; line-height: 1.2; }

.rk-h2 {
	margin: 0 0 22px;
	font-size: clamp(26px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.22;
}

.rk-lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.85; max-width: 58ch; margin: 0 0 20px; }
.rk-body { margin: 0 0 18px; max-width: 62ch; opacity: 0.86; }

/* The profile prints a tracked label at the foot of every spread */
.rk-label {
	display: block;
	margin-top: clamp(40px, 6vw, 72px);
	text-align: center;
	font-family: var(--rk-en);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	opacity: 0.45;
}

.rk-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--rk-en);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	opacity: 0.6;
}

body.rkz-lang-ar .rk-eyebrow > span:last-child { font-family: var(--rk-ar); letter-spacing: 0; font-size: 13px; }
.rk-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.5; flex: none; }

/* Calligraphy substrate ---------------------------------------------------- */

.rk-calli {
	position: absolute;
	/* Overscanned so the parallax drift never exposes an edge. */
	inset: -16%;
	/* Masked rather than painted, so the letterforms take the colour of whatever
	   section they sit in and read correctly on both the wine and the paper. */
	background-color: currentColor;
	-webkit-mask-image: url("../img/pattern.svg");
	mask-image: url("../img/pattern.svg");
	-webkit-mask-size: cover;
	mask-size: cover;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
	will-change: transform;
	opacity: 0.07;
}

/* Mirrored so neighbouring sections do not repeat the same letterforms. */
.rk-calli--right { transform: scaleX(-1); }
.rk-calli--soft { opacity: 0.045; }
.rk-calli--strong { opacity: 0.1; }

/* Scale tiers. The calligraphy is cropped hardest where the page is loudest, so
   the hero reads as a few monumental strokes while quiet sections keep a fine
   grain. Without this the same texture repeats at one size and turns to
   wallpaper.

   The tier grows the element rather than the mask: a percentage mask-size is
   resolved against width alone, which left tall sections with bare bands below
   the artwork. Keeping cover and enlarging the box scales the letterforms while
   coverage stays guaranteed at any proportion. */
.rk-calli--xl { inset: -85%; }
.rk-calli--lg { inset: -48%; }
.rk-calli--md { inset: -26%; }
.rk-calli--sm { inset: -8%; }

/* Offset crops so two adjacent sections never show the same glyphs. */
.rk-calli--tl { -webkit-mask-position: 12% 20%; mask-position: 12% 20%; }
.rk-calli--br { -webkit-mask-position: 88% 76%; mask-position: 88% 76%; }
.rk-calli--bl { -webkit-mask-position: 18% 82%; mask-position: 18% 82%; }

.rk-has-calli { position: relative; overflow: hidden; isolation: isolate; }
.rk-has-calli > .rk-wrap { position: relative; z-index: 1; }

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

.rk-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 34px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	transition: color 0.4s ease;
}

.rk-btn > span { position: relative; z-index: 1; }

.rk-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rk-fill, currentColor);
	transform: scaleX(0);
	transform-origin: var(--rk-origin, left);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 0;
}

.rk-btn:hover::after, .rk-btn:focus-visible::after { transform: scaleX(1); }
.rk-btn--onwine { color: var(--rk-sand); --rk-fill: var(--rk-sand); }
.rk-btn--onwine:hover, .rk-btn--onwine:focus-visible { color: var(--rk-wine); }
.rk-btn--onsand { color: var(--rk-wine); --rk-fill: var(--rk-wine); }
.rk-btn--onsand:hover, .rk-btn--onsand:focus-visible { color: var(--rk-sand); }
.rk-btn--solid { background: var(--rk-red); border-color: var(--rk-red); color: #fff; --rk-fill: var(--rk-wine); }
.rk-btn:focus-visible { outline: 2px solid var(--rk-red); outline-offset: 4px; }

/* Loader: the mark is drawn, then the wordmark arrives, then the panel parts */

.rk-loader {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	background: var(--rk-wine-deep);
	animation: rk-loader-lift 0.9s cubic-bezier(0.76, 0, 0.24, 1) 2.9s forwards;
}

.rk-loader__inner { display: grid; justify-items: center; gap: 26px; }
.rk-loader__mark { width: clamp(140px, 26vw, 210px); color: var(--rk-sand); }
.rk-loader__mark svg { width: 100%; height: auto; overflow: visible; }

/* Trace the calligraphy, then let the fill arrive behind it */
.rk-loader__mark path {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.4;
	vector-effect: non-scaling-stroke;
	fill-opacity: 0;
	stroke-dasharray: var(--len, 1200);
	stroke-dashoffset: var(--len, 1200);
	animation:
		rk-draw 1.9s cubic-bezier(0.65, 0, 0.35, 1) forwards,
		rk-ink 0.7s ease 1.55s forwards;
}

@keyframes rk-draw { to { stroke-dashoffset: 0; } }
@keyframes rk-ink { to { fill-opacity: 1; stroke-opacity: 0; } }

.rk-loader__word {
	font-family: var(--rk-en);
	font-size: clamp(13px, 2.4vw, 17px);
	font-weight: 300;
	letter-spacing: 0.62em;
	text-indent: 0.62em;
	color: var(--rk-sand);
	opacity: 0;
	animation: rk-word 0.8s ease 1.9s forwards;
}

@keyframes rk-word { from { opacity: 0; transform: translateY(8px); } to { opacity: 0.85; transform: none; } }
@keyframes rk-loader-lift { to { transform: translateY(-102%); } }

.rk-loader.is-done { animation: rk-loader-lift 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
body.rk-loading { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.rk-loader { animation-delay: 0.4s; }
	.rk-loader__mark path { animation: none; fill-opacity: 1; stroke-opacity: 0; }
	.rk-loader__word { animation: none; opacity: 0.85; }
}

/* Scroll progress drawn as a brush stroke ---------------------------------- */

.rk-progress {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	width: 3px;
	z-index: 60;
	pointer-events: none;
	background: rgba(79, 23, 25, 0.1);
}

.rk-progress__ink {
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: var(--rk-scroll, 0%);
	background: linear-gradient(180deg, var(--rk-red), var(--rk-wine));
	clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
}

@media (max-width: 900px) { .rk-progress { display: none; } }

/* Masthead ---------------------------------------------------------------- */

.rk-bar {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 95;
	transition: background-color 0.45s ease, box-shadow 0.45s ease;
}

.rk-bar.is-stuck { background: rgba(58, 15, 17, 0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(232, 225, 215, 0.12); }

.rk-bar__inner {
	width: min(var(--rk-wrap), 100%);
	margin-inline: auto;
	padding-inline: var(--rk-pad);
	min-height: var(--rk-bar);
	display: flex;
	align-items: center;
	gap: 22px;
	color: var(--rk-sand);
}

.rk-bar__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rk-bar__logo svg { width: auto; height: 42px; color: currentColor; flex: none; }

.rk-bar__word {
	font-family: var(--rk-en);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1;
}

.rk-bar__word small {
	display: block;
	margin-top: 4px;
	font-size: 8px;
	font-weight: 300;
	letter-spacing: 0.42em;
	opacity: 0.7;
}

@media (max-width: 520px) { .rk-bar__word { display: none; } }

.rk-bar__nav { margin-inline-start: auto; display: flex; gap: 28px; }

.rk-bar__nav a {
	position: relative;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding-block: 8px;
}

.rk-bar__nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 1px;
	background: var(--rk-red);
	transform: scaleX(0);
	transform-origin: inherit;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-bar__nav a:hover::after { transform: scaleX(1); }

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

.rk-lang {
	font-family: var(--rk-en);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	padding: 10px 14px;
	border: 1px solid rgba(232, 225, 215, 0.34);
}

.rk-lang:hover { background: rgba(232, 225, 215, 0.14); }

.rk-burger {
	display: none;
	width: 46px; height: 46px;
	flex-direction: column; justify-content: center; gap: 5px;
	border: 1px solid rgba(232, 225, 215, 0.34);
	background: none; cursor: pointer;
}
.rk-burger span { display: block; height: 1.5px; width: 20px; margin-inline: auto; background: var(--rk-sand); transition: transform 0.3s ease, opacity 0.25s ease; }
.rk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.rk-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }


@media (max-width: 980px) {
	.rk-bar__nav { display: none; }
	.rk-burger { display: flex; }
	.rk-bar__end { margin-inline-start: auto; }
}

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

.rk-hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	place-items: center;
	background: var(--rk-wine-deep);
	color: var(--rk-sand);
	overflow: hidden;
	isolation: isolate;
}

.rk-hero__bg { position: absolute; inset: 0; z-index: 0; }
.rk-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.rk-hero__veil {
	position: absolute; inset: 0; z-index: 1;
	background:
		radial-gradient(130% 90% at 50% 42%, rgba(58, 15, 17, 0.1), rgba(42, 10, 12, 0.74) 82%),
		linear-gradient(180deg, rgba(42, 10, 12, 0.62) 0%, rgba(42, 10, 12, 0.12) 42%, rgba(42, 10, 12, 0.86) 100%);
}

.rk-hero .rk-calli { z-index: 2; opacity: 0.13; }

.rk-hero__inner { position: relative; z-index: 3; text-align: center; padding-block: 120px 96px; }

.rk-hero__logo { width: clamp(190px, 30vw, 320px); margin-inline: auto; color: var(--rk-sand); }
.rk-hero__logo svg { width: 100%; height: auto; }

.rk-hero__slogan {
	margin: 30px auto 0;
	font-size: clamp(19px, 3vw, 30px);
	font-weight: 300;
	letter-spacing: 0.02em;
	color: rgba(232, 225, 215, 0.92);
}

.rk-hero__line { margin: 14px auto 0; max-width: 40ch; font-size: clamp(15px, 1.9vw, 18px); color: rgba(232, 225, 215, 0.62); }

.rk-hero__cta { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.rk-hero__cue {
	position: absolute; z-index: 3;
	inset-inline: 0; bottom: 26px;
	display: grid; justify-items: center; gap: 10px;
	font-family: var(--rk-en); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
	color: rgba(232, 225, 215, 0.55);
}

.rk-hero__cue i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--rk-red)); animation: rk-cue 2.4s ease-in-out infinite; }
@keyframes rk-cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Spread: a colour field meeting an image, the way the profile is set ------- */

.rk-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(88svh, 780px); }
.rk-spread--flip { direction: ltr; }
.rk-spread--flip > * { direction: rtl; }
body.rkz-lang-en .rk-spread--flip { direction: rtl; }
body.rkz-lang-en .rk-spread--flip > * { direction: ltr; }

.rk-spread__panel {
	position: relative;
	display: grid;
	align-content: center;
	padding: clamp(44px, 7vw, 96px) clamp(26px, 5vw, 84px);
	overflow: hidden;
	isolation: isolate;
}

.rk-spread__panel > *:not(.rk-calli) { position: relative; z-index: 1; }
.rk-spread__panel--wine { background: var(--rk-wine); color: var(--rk-sand); }
.rk-spread__panel--sand { background: var(--rk-sand-deep); color: var(--rk-wine-ink); }
.rk-spread__panel--paper { background: var(--rk-paper); color: var(--rk-ink); }

.rk-spread__media { position: relative; overflow: hidden; min-height: 340px; }
.rk-spread__media img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }

/* The seam parts as the spread enters, echoing a page opening */
.rk-spread__seam {
	position: absolute; z-index: 4; inset-block: 0;
	inset-inline-start: 50%; width: 2px; transform: translateX(-50%);
	background: var(--rk-red);
	transform-origin: center;
	transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

@media (max-width: 900px) {
	.rk-spread { grid-template-columns: 1fr; }
	.rk-spread__seam { display: none; }
	.rk-spread__media { min-height: 300px; order: -1; }
}

/* Facts -------------------------------------------------------------------- */

.rk-facts { background: var(--rk-wine-ink); color: var(--rk-sand); }
.rk-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(232, 225, 215, 0.14); }
.rk-facts__item { background: var(--rk-wine-ink); padding: clamp(34px, 5vw, 54px) 24px; text-align: center; }
.rk-facts__value { display: block; font-family: var(--rk-en); font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1; color: var(--rk-sand); }
.rk-facts__label { display: block; margin-top: 12px; font-size: 14px; opacity: 0.62; }

/* Statement ---------------------------------------------------------------- */

.rk-statement { background: var(--rk-wine); color: var(--rk-sand); padding-block: clamp(72px, 11vw, 140px); }
.rk-statement__lead { font-size: clamp(28px, 5vw, 60px); font-weight: 700; line-height: 1.16; margin: 0 0 26px; max-width: 20ch; }
.rk-statement__body { max-width: 56ch; opacity: 0.78; font-size: clamp(16px, 1.9vw, 19px); }

/* Why ---------------------------------------------------------------------- */

.rk-why { padding-block: clamp(64px, 9vw, 118px); background: var(--rk-paper); }
.rk-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--rk-line); }

.rk-why__item {
	display: flex; gap: 18px; align-items: baseline;
	padding: 24px 4px;
	border-bottom: 1px solid var(--rk-line);
	transition: padding-inline-start 0.35s ease, background-color 0.35s ease;
}

.rk-why__item:hover { padding-inline-start: 16px; background: rgba(196, 22, 28, 0.04); }
.rk-why__n { font-family: var(--rk-en); font-size: 12px; font-weight: 700; color: var(--rk-red); flex: none; min-width: 26px; }
.rk-why__t { font-size: 16.5px; }

/* Specifications ----------------------------------------------------------- */

.rk-specs { background: var(--rk-sand-deep); color: var(--rk-wine-ink); padding-block: clamp(64px, 9vw, 118px); }
.rk-specs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(28px, 4vw, 52px); margin-top: 40px; }
.rk-specs__title { margin: 0 0 18px; font-size: 20px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--rk-wine); display: inline-block; }
.rk-specs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; }
.rk-specs__list li { display: flex; gap: 11px; align-items: baseline; }
.rk-specs__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rk-red); flex: none; transform: translateY(-3px); }

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

.rk-projects { padding-block: clamp(64px, 9vw, 118px); background: var(--rk-paper); }
.rk-projects__grid { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: 42px; }

.rk-card {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	min-height: 440px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	/* The card is dressed in the project's own colours, so the listing previews
	   the identity the visitor meets when it opens. */
	background: var(--rk-accent-soft, #fff);
	border: 1px solid color-mix(in srgb, var(--rk-accent, var(--rk-red)) 22%, transparent);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.rk-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px color-mix(in srgb, var(--rk-accent, var(--rk-red)) 55%, transparent); }

/* A copper seam down the join, drawn on from the top as the card is entered. */
.rk-card__body::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 2px;
	background: var(--rk-accent, var(--rk-red));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-card:hover .rk-card__body::before { transform: scaleY(1); }

.rk-card__media { position: relative; overflow: hidden; }
.rk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.rk-card:hover .rk-card__media img { transform: scale(1.06); }

/* A wash of the project's colour over the render, lifted on hover. */
.rk-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(200deg, transparent 40%, color-mix(in srgb, var(--rk-graphite, #2A2A2C) 72%, transparent));
	opacity: 0.55;
	transition: opacity 0.6s ease;
}

.rk-card:hover .rk-card__media::after { opacity: 0.25; }

.rk-card__body {
	position: relative;
	display: grid;
	align-content: center;
	gap: 14px;
	padding: clamp(30px, 4vw, 58px);
	background: var(--rk-accent-soft, #fff);
}

.rk-card__tag {
	font-family: var(--rk-en);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--rk-accent-deep, var(--rk-red));
}

.rk-card__name { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.1; color: var(--rk-graphite, var(--rk-ink)); }
.rk-card__name em { font-style: normal; color: var(--rk-accent, var(--rk-red)); }
.rk-card__line { margin: 0; color: color-mix(in srgb, var(--rk-graphite, #2A2A2C) 72%, transparent); max-width: 40ch; }

.rk-card__facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 4px 0 0; padding: 0; list-style: none; }

.rk-card__go {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	font-weight: 700;
	font-size: 15px;
	color: var(--rk-accent-deep, var(--rk-red));
}

.rk-card__go i { display: block; width: 30px; height: 1px; background: currentColor; transition: width 0.4s ease; }
.rk-card:hover .rk-card__go i { width: 54px; }

.rk-card__status {
	position: absolute;
	top: 20px;
	inset-inline-start: 20px;
	z-index: 3;
	background: var(--rk-accent, var(--rk-red));
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 8px 16px;
}

@media (max-width: 860px) {
	.rk-card { grid-template-columns: 1fr; min-height: 0; }
	.rk-card__media { min-height: 260px; }
	.rk-card__body::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rk-card, .rk-card__media img, .rk-card__media::after, .rk-card__body::before { transition: none; }
	.rk-card:hover { transform: none; }
}

/* Contact ------------------------------------------------------------------ */

.rk-contact { background: var(--rk-wine); color: var(--rk-sand); padding-block: clamp(64px, 9vw, 120px); }
.rk-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(34px, 5vw, 72px); align-items: start; }
.rk-contact__phone { display: inline-block; margin-top: 20px; font-family: var(--rk-en); font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: 0.02em; color: var(--rk-sand); text-decoration: none; }
.rk-contact__phone:hover { color: #fff; }
.rk-contact__cities { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rk-contact__cities li { border: 1px solid rgba(232, 225, 215, 0.28); padding: 8px 15px; font-size: 13.5px; }

.rk-form { display: grid; gap: 20px; }
.rk-field { display: grid; gap: 8px; font-size: 14px; }
.rk-field > span { opacity: 0.72; }
.rk-field input, .rk-field select, .rk-field textarea {
	width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid rgba(232, 225, 215, 0.3);
	background: none; color: var(--rk-sand); font: inherit; font-size: 17px; border-radius: 0;
}
.rk-field input:focus, .rk-field select:focus, .rk-field textarea:focus { outline: none; border-bottom-color: var(--rk-red); }
.rk-field select option { color: var(--rk-ink); }
.rk-form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rk-form__status { margin: 0; min-height: 1.5em; font-size: 15px; }
.rk-form__status.is-ok { color: #9BD8AE; }
.rk-form__status.is-error { color: #F2A6A6; }
.rk-form button[type="submit"] { justify-self: start; min-width: 200px; }

/* Reveals ------------------------------------------------------------------ */

.rk-anim .rk-up {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-anim .rk-up.is-in { opacity: 1; transform: none; }
.rk-anim .rk-up--d1 { transition-delay: 0.08s; }
.rk-anim .rk-up--d2 { transition-delay: 0.16s; }
.rk-anim .rk-up--d3 { transition-delay: 0.24s; }

/* The seam only parts when the animation is running */
.rk-anim .rk-spread.is-in .rk-spread__seam { transform: translateX(-50%) scaleY(0); }

/* Floating contact --------------------------------------------------------- */

.rk-wa {
	position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 62;
	width: 56px; height: 56px; display: grid; place-items: center;
	border-radius: 50%; background: #25D366; color: #fff;
	box-shadow: 0 12px 28px rgba(10, 40, 25, 0.32);
	transition: transform 0.3s ease;
}
.rk-wa:hover { transform: translateY(-3px); }
@media (max-width: 900px) { .rk-wa { width: 52px; height: 52px; inset-inline-end: 16px; bottom: 16px; } }

/* Zoom --------------------------------------------------------------------- */

.rk-zoom { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(26, 16, 18, 0.94); }
.rk-zoom img { max-width: 100%; max-height: 92svh; }
.rk-zoom__x { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border: 1px solid rgba(232, 225, 215, 0.4); background: none; color: var(--rk-sand); font-size: 22px; cursor: pointer; }

/* The mark drawn over artwork, on the same principle as the loading screen --- */

.rk-draw {
	position: absolute;
	z-index: 2;
	inset-inline-end: clamp(20px, 5vw, 56px);
	bottom: clamp(20px, 5vw, 56px);
	width: clamp(150px, 26%, 280px);
	color: var(--rk-sand);
	pointer-events: none;
	filter: drop-shadow(0 6px 22px rgba(26, 10, 12, 0.5));
}

.rk-draw svg { width: 100%; height: auto; overflow: visible; }

.rk-draw path {
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.6;
	vector-effect: non-scaling-stroke;
	fill-opacity: 1;
	stroke-opacity: 0;
}

.rk-draw.is-armed path {
	fill-opacity: 0;
	stroke-dasharray: var(--len, 1200);
	stroke-dashoffset: var(--len, 1200);
}

/* Held still until the panel is in view, then traced and inked */
.rk-draw.is-armed.is-drawing path {
	animation:
		rk-draw-on 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards,
		rk-draw-ink 0.8s ease forwards;
	animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1.35s);
}

@keyframes rk-draw-on { from { stroke-opacity: 0.95; stroke-dashoffset: var(--len, 1200); } to { stroke-opacity: 0.95; stroke-dashoffset: 0; } }
@keyframes rk-draw-ink { to { fill-opacity: 1; stroke-opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.rk-draw path { fill-opacity: 1; }
	.rk-draw.is-armed.is-drawing path { animation: none; fill-opacity: 1; stroke-opacity: 0; }
}

@media (max-width: 900px) { .rk-draw { width: clamp(120px, 34%, 190px); } }

/* Full screen menu ---------------------------------------------------------- */

.rk-burger {
	position: relative;
	width: 48px; height: 48px;
	display: none;
	border: 1px solid rgba(232, 225, 215, 0.34);
	background: none; cursor: pointer;
}

.rk-burger span {
	position: absolute;
	inset-inline: 13px;
	height: 1.5px;
	background: var(--rk-sand);
	transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), width 0.4s ease;
}

.rk-burger span:nth-child(1) { top: 19px; }
.rk-burger span:nth-child(2) { bottom: 19px; inset-inline-end: 21px; }
.rk-burger:hover span:nth-child(2) { inset-inline-end: 13px; }
.rk-burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.rk-burger[aria-expanded="true"] span:nth-child(2) { bottom: 23px; inset-inline-end: 13px; transform: rotate(-45deg); }

@media (max-width: 980px) { .rk-burger { display: block; } }

.rk-menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--rk-wine-deep);
	overflow: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}

.rk-menu[hidden] { display: none; }
.rk-menu.is-open { clip-path: inset(0 0 0 0); }

.rk-menu__calli {
	position: absolute;
	inset-block: -10%;
	inset-inline-end: -26%;
	width: 108%;
	background-color: var(--rk-sand);
	-webkit-mask: url("../img/pattern.svg") center / contain no-repeat;
	mask: url("../img/pattern.svg") center / contain no-repeat;
	opacity: 0.08;
	transform: scaleX(-1);
	pointer-events: none;
}

.rk-menu__inner {
	position: relative;
	height: 100%;
	width: min(var(--rk-wrap), 100%);
	margin-inline: auto;
	padding: calc(var(--rk-bar) + 40px) var(--rk-pad) 48px;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	align-content: center;
	gap: clamp(30px, 6vw, 80px);
}

.rk-menu__nav { display: grid; align-content: center; gap: 4px; }

.rk-menu__link {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: clamp(10px, 1.6vw, 16px) 0;
	text-decoration: none;
	color: var(--rk-sand);
	border-bottom: 1px solid rgba(232, 225, 215, 0.12);
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.rk-menu.is-open .rk-menu__link,
.rk-menu.is-open .rk-menu__aside {
	opacity: 1;
	transform: none;
	transition-delay: calc(0.16s + var(--i, 1) * 0.075s);
}

.rk-menu__n {
	font-family: var(--rk-en);
	font-size: 12px;
	font-weight: 600;
	color: var(--rk-red);
	flex: none;
}

.rk-menu__t {
	font-size: clamp(30px, 6vw, 58px);
	font-weight: 700;
	line-height: 1.1;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-menu__link:hover .rk-menu__t,
.rk-menu__link:focus-visible .rk-menu__t { transform: translateX(calc(var(--rk-shift, 1) * 14px)); color: #fff; }
body.rkz-lang-ar .rk-menu__link { --rk-shift: -1; }
.rk-menu__link[aria-current="page"] .rk-menu__t { color: var(--rk-red); }

.rk-menu__aside {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 22px;
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rk-menu__slogan { width: min(280px, 70%); height: auto; opacity: 0.9; }

.rk-menu__phone {
	font-family: var(--rk-en);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	color: var(--rk-sand);
	text-decoration: none;
	border-bottom: 1px solid var(--rk-red);
	padding-bottom: 6px;
}

.rk-menu__cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rk-menu__cities li { border: 1px solid rgba(232, 225, 215, 0.24); padding: 7px 14px; font-size: 13px; color: rgba(232, 225, 215, 0.75); }

body.rk-menu-open { overflow: hidden; }
body.rk-menu-open .rk-bar,
body.rk-menu-open .rk-bar.is-stuck { background: none; box-shadow: none; }
body.rk-menu-open .rk-progress { opacity: 0; }
body.rk-menu-open .rk-burger { border-color: rgba(232, 225, 215, 0.6); background: rgba(232, 225, 215, 0.08); }
body.rk-menu-open .rk-burger span { background: #fff; }


@media (max-width: 860px) {
	.rk-menu__inner { grid-template-columns: 1fr; align-content: start; gap: 34px; padding-top: calc(var(--rk-bar) + 24px); }
	.rk-menu__aside { justify-items: start; gap: 16px; }
	.rk-menu__slogan { width: min(220px, 62%); }
}

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

.rk-foot {
	position: relative;
	background: var(--rk-wine-ink);
	color: rgba(232, 225, 215, 0.7);
	padding-block: clamp(54px, 7vw, 92px) 0;
	overflow: hidden;
}

.rk-foot > .rk-wrap { position: relative; z-index: 1; }

.rk-foot__top {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(36px, 5vw, 56px);
}

.rk-foot__brand { display: grid; gap: 24px; justify-items: start; }
.rk-foot__mark { width: 150px; color: var(--rk-sand); display: block; }
.rk-foot__mark svg { width: 100%; height: auto; }
.rk-foot__slogan { width: 210px; height: auto; opacity: 0.72; }

.rk-foot__title {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rk-sand);
}

body.rkz-lang-ar .rk-foot__title { letter-spacing: 0; font-size: 14px; }

.rk-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.rk-foot__list a { text-decoration: none; transition: color 0.25s ease, padding-inline-start 0.25s ease; }
.rk-foot__list a:hover { color: var(--rk-sand); padding-inline-start: 6px; }

.rk-foot__phone {
	display: inline-block;
	margin-bottom: 16px;
	font-family: var(--rk-en);
	font-size: 22px;
	font-weight: 700;
	color: var(--rk-sand);
	text-decoration: none;
	border-bottom: 1px solid var(--rk-red);
	padding-bottom: 5px;
}

.rk-foot__cities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-block: 26px;
	border-top: 1px solid rgba(232, 225, 215, 0.12);
}

.rk-foot__cities span { border: 1px solid rgba(232, 225, 215, 0.18); padding: 7px 14px; font-size: 13px; }

.rk-foot__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px;
	border-top: 1px solid rgba(232, 225, 215, 0.12);
	font-size: 13px;
	color: rgba(232, 225, 215, 0.5);
}

@media (max-width: 900px) {
	.rk-foot__top { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
	.rk-foot__bar { justify-content: center; text-align: center; }
}

/* Forms --------------------------------------------------------------------- */

.rk-form {
	display: grid;
	gap: 6px;
	background: rgba(0, 0, 0, 0.16);
	border: 1px solid rgba(232, 225, 215, 0.22);
	padding: clamp(24px, 3.4vw, 38px);
}

.rk-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 22px; }

.rk-field {
	position: relative;
	display: grid;
	gap: 0;
	padding-block: 14px 6px;
	border-bottom: 1px solid rgba(232, 225, 215, 0.32);
	transition: border-color 0.3s ease;
}

.rk-field:focus-within { border-bottom-color: var(--rk-red); }

.rk-field > span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(232, 225, 215, 0.72);
	transition: color 0.3s ease;
}

body.rkz-lang-ar .rk-field > span { letter-spacing: 0; text-transform: none; font-size: 13px; }
.rk-field:focus-within > span { color: var(--rk-red); }

.rk-field input,
.rk-field select,
.rk-field textarea {
	width: 100%;
	padding: 8px 0 6px;
	border: 0;
	background: none;
	color: var(--rk-sand);
	font: inherit;
	font-size: 17px;
	border-radius: 0;
	appearance: none;
}

.rk-field input:focus, .rk-field select:focus, .rk-field textarea:focus { outline: none; }
.rk-field select { cursor: pointer; }
.rk-field select option { color: var(--rk-ink); background: var(--rk-paper); }

/* Select needs its own caret once the native one is removed */
.rk-field--select::after {
	content: "";
	position: absolute;
	inset-inline-end: 2px;
	bottom: 18px;
	width: 8px; height: 8px;
	border-inline-end: 1.5px solid rgba(232, 225, 215, 0.6);
	border-bottom: 1.5px solid rgba(232, 225, 215, 0.6);
	transform: rotate(45deg);
	pointer-events: none;
}

.rk-form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rk-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.rk-form__note { font-size: 13px; color: rgba(232, 225, 215, 0.5); margin: 0; }
.rk-form__status { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; }
.rk-form__status.is-ok { color: #9BD8AE; }
.rk-form__status.is-error { color: #F2A6A6; }
.rk-form button[type="submit"] { min-width: 190px; }

/* The phone control sits inside a field and shares its underline */
.rk-field .rk-phone { gap: 0; }
.rk-field .rk-phone__label { display: none; }

.rk-field .rk-phone__row {
	border-bottom: 0;
	gap: 10px;
	flex-wrap: nowrap;
	align-items: center;
}

.rk-field .rk-dial { flex: none; padding: 8px 2px 6px 0; font-size: 17px; color: var(--rk-sand); }

.rk-field .rk-phone__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	padding: 8px 0 6px;
	font-size: 17px;
	color: var(--rk-sand);
}

.rk-field .rk-phone__input::placeholder { color: rgba(232, 225, 215, 0.32); }
.rk-field .rk-dial__list { width: min(300px, 84vw); }
.rk-field .rk-flag { flex: none; width: 21px; height: 14px; }

/* Slogan artwork ------------------------------------------------------------ */

.rk-slogan { display: block; height: auto; }
.rk-hero__slogan-img { width: clamp(230px, 40vw, 430px); margin: 34px auto 0; opacity: 0.96; }

/* Inner page heads ---------------------------------------------------------- */

.rk-pagehead {
	position: relative;
	background: var(--rk-wine-deep);
	color: var(--rk-sand);
	padding-block: calc(var(--rk-bar) + clamp(56px, 8vw, 104px)) clamp(48px, 7vw, 92px);
	overflow: hidden;
}

.rk-pagehead > .rk-wrap { position: relative; z-index: 1; }
.rk-pagehead .rk-eyebrow { color: var(--rk-sand); opacity: 0.7; }

.rk-pagehead__title {
	margin: 0;
	max-width: 20ch;
	font-size: clamp(30px, 5.4vw, 60px);
	font-weight: 700;
	line-height: 1.14;
}

/* Slogan artwork placements ------------------------------------------------- */

.rk-statement__slogan { width: min(340px, 62%); margin-bottom: 28px; }

/* Project cards on the index ------------------------------------------------ */

.rk-card__facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; opacity: 0.75; }
.rk-card__facts b { font-family: var(--rk-en); font-weight: 700; color: var(--rk-accent, var(--rk-red)); }
.rk-projects__more { margin-top: 34px; font-size: 15px; opacity: 0.65; }

/* Closing call to action ---------------------------------------------------- */

.rk-cta { position: relative; background: var(--rk-wine); color: var(--rk-sand); padding-block: clamp(52px, 7vw, 92px); overflow: hidden; }
.rk-cta > .rk-wrap { position: relative; z-index: 1; }
.rk-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.rk-cta .rk-h2 { margin-bottom: 12px; }
.rk-cta .rk-contact__phone { margin-top: 0; }

/* Contact page -------------------------------------------------------------- */

.rk-contact__links { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.rk-contact__links a { color: var(--rk-sand); text-decoration: none; border-bottom: 1px solid rgba(232, 225, 215, 0.35); padding-bottom: 3px; }
.rk-contact__links a:hover { border-color: var(--rk-red); }
.rk-contact__sub { margin: 34px 0 14px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
body.rkz-lang-ar .rk-contact__sub { letter-spacing: 0; text-transform: none; font-size: 17px; }

/* The project page inherits the shared form, tinted to its own accent -------- */

.rk-project-page .rk-form { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.rk-project-page .rk-field { border-bottom-color: rgba(255, 255, 255, 0.24); }
.rk-project-page .rk-field:focus-within { border-bottom-color: var(--rk-dot); }
.rk-project-page .rk-field:focus-within > span { color: var(--rk-dot); }
.rk-project-page .rk-field input, .rk-project-page .rk-field select { color: #fff; }
.rk-project-page .rk-field--select::after { border-color: rgba(255, 255, 255, 0.6); }

/* Phone control ------------------------------------------------------------- */

.rk-phone { position: relative; display: grid; }

.rk-phone__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
}

.rk-dial {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 2px 6px 0;
	border: 0;
	background: none;
	color: var(--rk-sand);
	font: inherit;
	font-size: 17px;
	cursor: pointer;
	white-space: nowrap;
}

.rk-dial:focus-visible { outline: 2px solid var(--rk-red); outline-offset: 2px; }
.rk-dial__flag { display: flex; }
.rk-dial__code { font-family: var(--rk-en); font-variant-numeric: lining-nums; }
.rk-dial__caret { opacity: 0.6; transition: transform 0.25s ease; }
.rk-dial[aria-expanded="true"] .rk-dial__caret { transform: rotate(180deg); }

.rk-flag { flex: none; width: 21px; height: 14px; display: block; border-radius: 1px; }

.rk-phone__input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	padding: 8px 0 6px;
	border: 0;
	background: none;
	color: var(--rk-sand);
	font: inherit;
	font-size: 17px;
}

.rk-phone__input:focus { outline: none; }
.rk-phone__input::placeholder { color: rgba(232, 225, 215, 0.32); }

.rk-dial__list {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 8px);
	z-index: 20;
	width: min(320px, 86vw);
	max-height: 260px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--rk-paper);
	box-shadow: 0 20px 44px rgba(26, 16, 18, 0.4);
}

.rk-phone--up .rk-dial__list { top: auto; bottom: calc(100% + 8px); }
.rk-dial__list[hidden] { display: none; }

.rk-dial__list li {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	color: var(--rk-ink);
	font-size: 15px;
	cursor: pointer;
}

.rk-dial__list li:hover,
.rk-dial__list li:focus,
.rk-dial__list li[aria-selected="true"] { background: var(--rk-sand-deep); outline: none; }

.rk-dial__name { flex: 1; min-width: 0; }
.rk-dial__num { color: rgba(26, 16, 18, 0.6); font-family: var(--rk-en); }

/* Available to screen readers and search engines, absent on screen ---------- */

.rk-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
