/* ==========================================================================
   بذول العقارية — الصفحة الرئيسية
   الفكرة: حلقتا الشعار = «الرابط» بين العميل وجهات التمويل. المقدمة بترسم الحلقتين،
   والواجهة فيها العلامة ضخمة بيتبعها الضوء، و«لماذا بذول» بتوضح الربط حرفيًا.
   ========================================================================== */

:root {
	interpolate-size: allow-keywords;
}

.js {
	--intro-offset: 0.1s;
}

.js.has-intro {
	--intro-offset: 2.55s;
}

/* --------------------------------------------------------------------------
   المقدمة
   -------------------------------------------------------------------------- */
.intro {
	display: none;
}

.has-intro .intro {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100;
	/* أمان: حتى لو الجافاسكربت ما اشتغلش، المقدمة بتختفي لوحدها. */
	animation: intro-gone 0s linear 3.1s forwards;
}

@keyframes intro-gone {
	to {
		visibility: hidden;
		pointer-events: none;
	}
}

.intro__door {
	position: absolute;
	inset-inline: 0;
	height: 50.2%;
	background: var(--c-bg);
	will-change: transform;
}

.intro__door--top {
	top: 0;
	animation: door-up 0.8s var(--ease-in-out) 2.3s forwards;
}

.intro__door--bottom {
	bottom: 0;
	animation: door-down 0.8s var(--ease-in-out) 2.3s forwards;
}

/* خط ذهبي رفيع في مكان انفتاح البابين. */
.intro__door--top::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -0.5px;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, var(--c-gold-hi) 50%, transparent 100%);
	opacity: 0;
	transform: scaleX(0.2);
	animation: seam 0.5s var(--ease-out) 1.95s forwards;
}

@keyframes seam {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes door-up {
	to {
		transform: translateY(-101%);
	}
}

@keyframes door-down {
	to {
		transform: translateY(101%);
	}
}

.intro__stage {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: clamp(20px, 3vw, 32px);
	animation: stage-out 0.55s var(--ease-in-out) 2.1s forwards;
}

@keyframes stage-out {
	to {
		opacity: 0;
		transform: scale(0.94);
		filter: blur(6px);
	}
}

.intro__mark {
	width: clamp(150px, 20vw, 230px);
	height: auto;
	overflow: visible;
	color: var(--c-gold);
	animation: mark-glow 1.1s ease 1.35s;
}

.intro__mark .mark__loop {
	stroke-dasharray: 1 2;
	stroke-dashoffset: 1;
	animation: draw 1.05s var(--ease-in-out) 0.15s forwards;
}

.intro__mark .mark__loop--b {
	animation-delay: 0.38s;
}

.intro__mark .mark__dot {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	animation: dot-drop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 1.15s forwards;
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes dot-drop {
	from {
		opacity: 0;
		transform: translateY(-260%) scale(0.4);
	}
	50% {
		opacity: 1;
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes mark-glow {
	45% {
		color: var(--c-gold-hi);
		filter: drop-shadow(0 0 18px rgba(241, 184, 82, 0.55));
	}
}

.intro__word {
	width: clamp(190px, 26vw, 300px);
	color: var(--c-gold);
	clip-path: inset(0 0 0 100%);
	animation: word-in 0.75s var(--ease-out) 1.35s forwards;
}

.intro__wordmark {
	width: 100%;
	height: auto;
}

@keyframes word-in {
	to {
		clip-path: inset(0 0 0 0);
	}
}

.intro__skip {
	position: absolute;
	z-index: 3;
	bottom: max(24px, env(safe-area-inset-bottom));
	inset-inline-start: 50%;
	transform: translateX(50%);
	padding: 8px 18px;
	border: 1px solid var(--c-line-soft);
	border-radius: 999px;
	background: transparent;
	color: var(--c-sand-3);
	font-size: 0.875rem;
	cursor: pointer;
	animation: stage-out 0.4s ease 2.1s forwards;
}

.intro__skip:hover {
	color: var(--c-sand);
	border-color: var(--c-line);
}

/* --------------------------------------------------------------------------
   الواجهة
   -------------------------------------------------------------------------- */
@property --mx {
	syntax: "<length-percentage>";
	inherits: true;
	initial-value: 50%;
}

@property --my {
	syntax: "<length-percentage>";
	inherits: true;
	initial-value: 72%;
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: calc(var(--header-h) + 48px);
	padding-bottom: 56px;
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(55% 65% at 22% 48%, rgba(241, 184, 82, 0.11), transparent 70%),
		radial-gradient(40% 50% at 100% 0%, rgba(255, 212, 135, 0.05), transparent 70%);
}

.hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: -1;
	height: 30%;
	background: linear-gradient(180deg, transparent, var(--c-bg));
	pointer-events: none;
}

/* --mx / --my = مكان نقطة الشعار (والضوء اللي حواليها). البداية = مكانها الأصلي في النص؛ الجافاسكربت بيحركها. */
.hero__art {
	--mx: 49.79%;
	--my: 72.16%;
	position: absolute;
	z-index: -1;
	top: 50%;
	/* العلامة كاملة جوه الشاشة (كانت مقصوصة من الشمال) عشان النقطة ما تختفيش وهي بتلف. */
	inset-inline-end: 0;
	width: min(60vw, 940px);
	aspect-ratio: 240 / 194;
	transform: translateY(-44%);
	pointer-events: none;
}

.hero__mark {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hero__mark path,
.hero__mark circle {
	vector-effect: non-scaling-stroke;
	stroke-width: 1.25px;
}

.hero__mark--base {
	color: var(--c-gold);
	opacity: 0.2;
}

.hero__mark--base .mark__dot {
	fill: none;
	stroke: currentColor;
}

/* الضوء: دايرة صغيرة وهادية بلون الشعار نفسه (مش فاقع) بتمشي على خطوط العلامة. */
.hero__mark--lit {
	color: var(--c-gold);
	opacity: 0.7;
	filter: drop-shadow(0 0 3px rgba(241, 184, 82, 0.35));
	-webkit-mask-image: radial-gradient(circle 140px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 78%);
	mask-image: radial-gradient(circle 140px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 78%);
}

.hero__mark--lit path {
	stroke-width: 1.5px;
}

.hero__glow {
	position: absolute;
	top: var(--my);
	left: var(--mx);
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 184, 82, 0.08), transparent 65%);
	transform: translate(-50%, -50%);
}

.hero__inner {
	position: relative;
	display: grid;
	gap: clamp(48px, 7vh, 88px);
}

.hero__copy {
	max-width: 52rem;
}

.hero__title {
	font-size: clamp(1.875rem, 0.95rem + 2.75vw, 3.375rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
}

/* «بخطوات أوضح وأسهل» بتكمّل جملة العنوان، فبتاخد لون الشعار ووزن أخف. */
.hero__line--end > span {
	color: var(--c-gold-text);
	font-weight: 600;
}

.hero__line {
	display: block;
	overflow: hidden;
	padding-block: 0.12em 0.2em;
	margin-block: -0.12em -0.2em;
}

.hero__line > span {
	display: inline-block;
}

/* على الشاشات الواسعة كل سطر من العنوان يفضل سطر واحد زي ما اتكتب. */
@media (min-width: 1100px) {
	.hero__line > span {
		white-space: nowrap;
	}
}

.hero__lead {
	max-width: 34em;
	margin-top: clamp(20px, 3vh, 32px);
	color: var(--c-sand-2);
	font-size: var(--fs-lead);
	line-height: 1.85;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: clamp(28px, 4.5vh, 44px);
}

/*
 * أرقام الثقة تحت الأزرار: كل رقم في كارت ذهبي، والرقم كبير بالذهبي، والوصف بلون الكلام الأساسي وعريض.
 * طلب العميل 22 أكتوبر: «الكلام يكون بارز»، وبعدها «نبرزها أكتر ونكبرها شوية».
 * الخط الذهبي على طرف الكارت (::before) بيدّيه شكل «شارة» ويشد العين.
 */
.hero__stats {
	display: flex;
	gap: 16px;
	max-width: 52rem;
	margin-top: clamp(28px, 4.5vh, 44px);
}

.hero__stat {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 22px 26px;
	border: 1px solid rgba(214, 158, 52, 0.5);
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(241, 184, 82, 0.26), rgba(241, 184, 82, 0.08));
	box-shadow: 0 26px 50px -30px rgba(176, 122, 20, 0.7);
	overflow: hidden;
}

.hero__stat::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--c-gold-hi), var(--c-gold));
}

.hero__stat-num {
	display: inline-block;
	flex: none;
	color: var(--c-gold-text);
	font-family: var(--f-display);
	font-size: clamp(2.5rem, 1.7rem + 2.2vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-align: center;
	unicode-bidi: isolate;
}

.hero__stat-label {
	color: var(--c-sand);
	font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
	font-weight: 700;
	line-height: 1.5;
}

/*
 * حركة خفيفة (طلب محمود 22 أكتوبر): لما الأرقام تخلّص عدّ (main.js ← countUp بيحط is-counted)
 * الرقم بينبض نبضة صغيرة، ولمعة ذهبية بتعدّي على الكارت كل 6 ثواني (التاني بعد الأول بشوية).
 * اللمعة ورا الكلام عشان الكلام يفضل واضح، وبتمشي في اتجاه القراية (من اليمين في العربي).
 */
.hero__stat {
	--stat-shine: rgba(255, 212, 135, 0.3);
	--shine-from: -115%;
	--shine-to: 115%;
	--shine-angle: 105deg;
}

[dir="rtl"] .hero__stat {
	--shine-from: 115%;
	--shine-to: -115%;
	--shine-angle: -105deg;
}

[data-theme="light"] .hero__stat {
	--stat-shine: rgba(255, 255, 255, 0.95);
}

.hero__stat::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(var(--shine-angle), transparent 36%, var(--stat-shine) 50%, transparent 64%);
	transform: translateX(var(--shine-from));
	pointer-events: none;
}

.hero__stat-num,
.hero__stat-label {
	position: relative;
	z-index: 1;
}

.hero__stats.is-counted .hero__stat::after {
	animation: stat-shine 6s var(--ease-in-out) infinite;
}

.hero__stats.is-counted .hero__stat + .hero__stat::after {
	animation-delay: 0.35s;
}

.hero__stats.is-counted .hero__stat-num {
	animation: stat-pop 0.65s var(--ease-out);
}

.hero__stats.is-paused .hero__stat::after {
	animation-play-state: paused;
}

@keyframes stat-shine {
	0% {
		transform: translateX(var(--shine-from));
	}

	24%,
	100% {
		transform: translateX(var(--shine-to));
	}
}

@keyframes stat-pop {
	0%,
	100% {
		transform: none;
	}

	40% {
		transform: scale(1.12);
	}
}

/* الجوال: الكارتين جنب بعض، والوصف تحت الرقم. */
@media (max-width: 600px) {
	.hero__stats {
		gap: 10px;
	}

	.hero__stat {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding-block: 16px;
		padding-inline: 18px 14px;
	}

	.hero__stat-label {
		font-size: 1rem;
	}
}

/* دخول عناصر الواجهة — جزء من نفس تسلسل المقدمة (بيبدأ لحظة انفتاح البابين). */
.js .hero__line > span {
	transform: translateY(108%);
	animation: line-up 1s var(--ease-out) forwards;
	animation-delay: calc(var(--intro-offset) + var(--d, 0s));
}

.js .hero__line:nth-child(2) > span {
	--d: 0.09s;
}

.js .hero__line:nth-child(3) > span {
	--d: 0.18s;
}

.js .hero__lead,
.js .hero__actions,
.js .hero__stats {
	opacity: 0;
	transform: translateY(16px);
	animation: rise 0.9s var(--ease-out) forwards;
	animation-delay: calc(var(--intro-offset) + var(--d, 0.35s));
}

.js .hero__actions {
	--d: 0.45s;
}

.js .hero__stats {
	--d: 0.6s;
}

.js .hero__art {
	opacity: 0;
	animation: fade-in 1.6s ease forwards;
	animation-delay: calc(var(--intro-offset) + 0.1s);
}

@keyframes line-up {
	to {
		transform: none;
	}
}

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fade-in {
	to {
		opacity: 1;
	}
}

/*
 * الجوال والتابلت: العلامة كاملة جوه عرض الشاشة (مش مقصوصة) وفوق النص.
 * الجوال: بعرض الشاشة ناقص الهوامش (375 ← 343px). التابلت: 76% بحد أقصى 560px.
 */
@media (max-width: 900px) {
	.hero {
		--art-w: min(54vw, 420px);
		/* الكلام في نص المساحة اللي تحت العلامة (من غير سطر البنوك كان بيبان نازل تحت أوي على الآيباد). */
		align-items: center;
		padding-top: calc(var(--header-h) + 3vh + var(--art-w) * 0.81 + 24px);
	}

	.hero__art {
		top: calc(var(--header-h) + 3vh);
		inset-inline: 0;
		width: var(--art-w);
		margin-inline: auto;
		transform: none;
	}

	.hero__mark--base {
		opacity: 0.16;
	}

	.hero__inner {
		gap: 40px;
	}

	.hero__actions .btn {
		flex: 1 1 200px;
	}
}

/* الآيباد بالعرض واللابتوب الصغير: العلامة أصغر شوية عشان خطوطها ما تعدّيش تحت الكلام. */
@media (min-width: 901px) and (max-width: 1140px) {
	.hero__art {
		width: 48vw;
	}
}

@media (max-width: 600px) {
	.hero {
		--art-w: min(66vw, 260px);
		padding-bottom: 40px;
	}

	.hero__inner {
		gap: 32px;
	}
}

/* --------------------------------------------------------------------------
   الخدمات
   -------------------------------------------------------------------------- */
.services__layout {
	display: grid;
	gap: 24px;
}

.services__layout.is-tabbed {
	grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
}

.services__panels {
	display: grid;
	gap: 24px;
}

.services__tabs {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 6px;
}

.services__tab {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	color: var(--c-sand-2);
	font-family: var(--f-display);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: start;
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.services__tab-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--c-sand-3);
	stroke-width: 2.2;
	transition: color 0.25s ease;
}

.services__tab:hover {
	color: var(--c-sand);
	border-color: var(--c-line-soft);
}

.services__tab[aria-selected="true"] {
	background: var(--c-gold);
	border-color: var(--c-gold);
	color: var(--c-ink);
}

.services__tab[aria-selected="true"] .services__tab-icon {
	color: var(--c-ink);
}

.service {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 56px);
	min-height: 400px;
	padding: clamp(28px, 4.5vw, 64px);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(241, 184, 82, 0.1), transparent 55%),
		var(--c-bg-2);
}

.service__art {
	display: grid;
	place-items: center;
	width: clamp(120px, 15vw, 210px);
	aspect-ratio: 1;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, rgba(241, 184, 82, 0.2), transparent 68%);
	color: var(--c-gold-text);
}

.service__icon {
	width: 56%;
	height: auto;
	stroke-width: 1.4;
	overflow: visible;
}

.service__title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
	font-weight: 600;
	line-height: 1.45;
}

.service__lead {
	margin-top: 12px;
	color: var(--c-gold-hi);
	font-family: var(--f-display);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: 500;
	line-height: 1.6;
}

.service__text {
	max-width: 34em;
	margin-top: 12px;
	color: var(--c-sand-2);
	font-size: var(--fs-lead);
}

.service .btn {
	margin-top: 32px;
}

/* تبديل الخدمة: الأيقونة بتترسم من جديد والنص بيظهر. */
.service.is-entering .service__icon > * {
	stroke-dasharray: 1 2;
	stroke-dashoffset: 1;
	animation: draw 1.1s var(--ease-in-out) forwards;
}

.service.is-entering .service__body > * {
	animation: rise 0.6s var(--ease-out) both;
}

.service.is-entering .service__body > :nth-child(2) {
	animation-delay: 0.05s;
}

.service.is-entering .service__body > :nth-child(3) {
	animation-delay: 0.1s;
}

.service.is-entering .service__body > :nth-child(4) {
	animation-delay: 0.15s;
}

@media (max-width: 900px) {
	.services__layout.is-tabbed {
		grid-template-columns: minmax(0, 1fr);
	}

	.services__tabs {
		position: static;
		display: flex;
		gap: 8px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		padding-bottom: 4px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.services__tabs::-webkit-scrollbar {
		display: none;
	}

	/* التابلت: التبويبات كلها ظاهرة (بتلف لسطر تاني) بدل ما تبقى مقصوصة على الطرف. */
	@media (min-width: 601px) {
		.services__tabs {
			flex-wrap: wrap;
			margin-inline: 0;
			padding-inline: 0;
			overflow: visible;
		}
	}

	.services__tab {
		flex: none;
		width: auto;
		padding: 10px 18px;
		border-color: var(--c-line-soft);
		font-size: 1rem;
		scroll-snap-align: start;
	}

	.services__tab-icon {
		width: 22px;
		height: 22px;
	}

	.service {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		gap: 24px;
	}

	.service__art {
		width: 104px;
	}

	.service .btn {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   لماذا بذول
   -------------------------------------------------------------------------- */
.why {
	background: radial-gradient(45% 42% at 28% 50%, rgba(241, 184, 82, 0.08), transparent 100%);
}

.why__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: clamp(48px, 6vw, 96px);
}

.why__text {
	margin-top: 20px;
	color: var(--c-sand-2);
	font-size: var(--fs-lead);
}

.why__points {
	display: grid;
	gap: 14px;
	margin-top: 32px;
}

.why__points li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 500;
}

.why__points .icon {
	width: 30px;
	height: 30px;
	padding: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(241, 184, 82, 0.14);
	color: var(--c-gold-text);
	stroke-width: 3.5;
}

.why__diagram {
	display: grid;
	grid-template-columns: auto minmax(24px, 1fr) auto 110px minmax(176px, auto);
	align-items: center;
	margin: 0;
	padding-bottom: 36px;
}

.node {
	position: relative;
	display: grid;
	justify-items: center;
}

.node__ring {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border: 1.5px solid var(--c-line);
	border-radius: 50%;
	background: var(--c-bg-2);
	color: var(--c-sand);
}

.node__ring .icon {
	width: 38px;
	height: 38px;
	stroke-width: 1.75;
}

.node__ring--gold {
	width: 128px;
	height: 128px;
	border-color: var(--c-gold);
	color: var(--c-gold);
	box-shadow: 0 0 0 10px rgba(241, 184, 82, 0.06), 0 0 70px rgba(241, 184, 82, 0.28);
}

.node__mark {
	width: 70px;
	height: auto;
}

.node__label {
	position: absolute;
	top: 100%;
	inset-inline: -24px;
	margin-top: 12px;
	font-family: var(--f-display);
	font-weight: 600;
	text-align: center;
}

.why__link {
	position: relative;
	display: block;
	height: 1.5px;
	margin-inline: 10px;
	background: linear-gradient(to left, var(--c-line), var(--c-gold));
	transform-origin: right center;
}

.why__wires {
	width: 110px;
	height: 304px;
	overflow: visible;
}

.why__wire {
	fill: none;
	stroke: var(--c-gold);
	stroke-width: 1.5px;
	vector-effect: non-scaling-stroke;
	opacity: 0.7;
}

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

.why__banks li {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 64px;
	padding-inline: 16px 22px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-bg-2);
	font-family: var(--f-display);
	font-size: 1.0625rem;
	font-weight: 600;
	white-space: nowrap;
}

.why__banks .icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--c-gold-text);
	stroke-width: 1.9;
}

/* حالة البداية (قبل ما القسم يظهر) — بس مع الجافاسكربت. */
.js .why__link {
	transform: scaleX(0);
	transition: transform 0.7s var(--ease-out) 0.15s;
}

.js .why__wire {
	stroke-dasharray: 1 2;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.9s var(--ease-in-out);
	transition-delay: calc(0.6s + var(--i) * 0.12s);
}

.js .why__banks li {
	opacity: 0;
	transform: translateX(-14px);
	transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
	transition-delay: calc(1.05s + var(--i) * 0.1s);
}

.js .node--bdoul .node__ring {
	transform: scale(0.85);
	opacity: 0.4;
	transition: transform 0.8s var(--ease-out) 0.35s, opacity 0.8s ease 0.35s;
}

.why__diagram.is-revealed .why__link,
.why__diagram.is-revealed .node--bdoul .node__ring {
	transform: none;
	opacity: 1;
}

.why__diagram.is-revealed .why__wire {
	stroke-dashoffset: 0;
}

.why__diagram.is-revealed .why__banks li {
	opacity: 1;
	transform: none;
}

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

	.why__diagram {
		max-width: 720px;
	}
}

@media (max-width: 640px) {
	.why__diagram {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		padding-bottom: 0;
	}

	.why__link {
		width: 1.5px;
		height: 56px;
		margin: 42px 0 8px;
		background: linear-gradient(to bottom, var(--c-line), var(--c-gold));
		transform-origin: center top;
	}

	.js .why__link {
		transform: scaleY(0);
	}

	.why__wires {
		display: none;
	}

	.why__banks {
		position: relative;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		width: 100%;
		margin-top: 96px;
	}

	.why__banks::before {
		content: "";
		position: absolute;
		bottom: 100%;
		inset-inline-start: 50%;
		width: 1.5px;
		height: 44px;
		margin-bottom: 8px;
		background: linear-gradient(to bottom, var(--c-gold), var(--c-line));
	}

	.why__banks li {
		justify-content: center;
		height: 56px;
		padding-inline: 12px;
		font-size: 0.9375rem;
		/* الأسماء الطويلة (Saudi National Bank) بتنزل سطر بدل ما توسّع الشاشة. */
		line-height: 1.25;
		white-space: normal;
		text-align: center;
	}

	.why__banks .icon {
		width: 22px;
		height: 22px;
	}

	.js .why__banks li {
		transform: translateY(10px);
	}
}

/* --------------------------------------------------------------------------
   الخطوات — الشريط الذهبي، وخط بيروح ويجي لوحده (main.js ← stepsSweep)
   الخط بيتملي من رقم ١ لرقم ٥ ويرجع تاني، وطرفه نقطة نور ليها ذيل بيطول مع السرعة.
   كل رقم الخط يعدّي عليه بيتقلب زي العملة ويتلوّن، ومع رقم ٥ زرار «اطلب تمويلك الآن» بينبض،
   والعلامة المائية بتتمايل مع الخط. شغالة بس والقسم ظاهر في الشاشة.
   --fill = قد إيه الخط متملي (من 0 لـ 1). من غير جافاسكربت أو مع «تقليل الحركة» كل الخطوات مكتملة.
   --num = مقاس دايرة الرقم (52 لابتوب، 48 آيباد، 44 جوال)، والخط والمسطرة بيتحسبوا منه.
   -------------------------------------------------------------------------- */
.steps {
	--num: 52px;
	padding-block: clamp(64px, 4vw + 36px, 108px);
	overflow: hidden;
	background: var(--c-gold);
	color: var(--c-ink);
	isolation: isolate;
}

.steps__pin {
	position: relative;
	isolation: isolate;
}

/* علامة الشعار صغيرة بلون الحبر، في الركن الفاضي جنب العنوان (على طرف المحتوى، فوق الخطوات). */
.steps__pin::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	inset-inline-end: max(var(--gutter), (100% - var(--container)) / 2);
	width: clamp(120px, 12vw, 180px);
	aspect-ratio: 240 / 194;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 194'%3E%3Cg fill='none' stroke='%2324180f' stroke-width='3'%3E%3Cpath d='M138 13H172.75A51.25 51.25 0 0 1 172.75 115.5H66.25A51.25 51.25 0 0 1 66.25 13H101'/%3E%3Cpath d='M119.5 77.5H172.75A51.25 51.25 0 0 1 172.75 180H66.25A51.25 51.25 0 0 1 66.25 77.5Z'/%3E%3Ccircle cx='119.5' cy='140' r='10.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	opacity: 0.14;
	pointer-events: none;
}

.steps .section-head {
	margin-inline: 0;
	margin-bottom: clamp(28px, 3vw, 44px);
	text-align: start;
}

.steps .section-title {
	color: var(--c-ink);
}

.steps .section-lead {
	color: rgba(36, 24, 15, 0.78);
}

.steps__flow {
	position: relative;
}

.steps__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
}

.steps__list::before,
.steps__list::after {
	content: "";
	position: absolute;
	top: calc(var(--num) / 2 - 1px);
	inset-inline: 10%;
	height: 2px;
	border-radius: 2px;
	background: rgba(36, 24, 15, 0.18);
}

.steps__list::after {
	background: var(--c-ink);
	transform-origin: right center;
}

.step {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 6px;
	text-align: center;
}

.step__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--num);
	height: var(--num);
	border: 2px solid var(--c-ink);
	border-radius: 50%;
	background: var(--c-ink);
	color: var(--c-gold);
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

.step__num::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	pointer-events: none;
}

.step__title {
	margin-top: 10px;
	color: var(--c-ink);
	font-size: 1.0625rem;
	font-weight: 600;
}

.step__text {
	max-width: 14em;
	color: rgba(36, 24, 15, 0.78);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.steps__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
	margin-top: clamp(32px, 3.5vw, 48px);
}

/* مسطرة غير مرئية بنفس مكان الخط، الجافاسكربت بيقيس عليها مكان كل رقم. */
.steps__runner {
	position: absolute;
	top: calc(var(--num) / 2);
	inset-inline: 10%;
	height: 0;
	pointer-events: none;
}

/* طرف الخط: نقطة نور، وذيلها (::before) بيطول مع السرعة (--k من 0 لـ 1) وبيبقى ورا اتجاه الحركة. */
.steps__tip {
	--k: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: #fff6e4;
	box-shadow: 0 0 0 3px rgba(36, 24, 15, 0.16), 0 0 22px 8px rgba(255, 246, 228, 0.75);
	opacity: 0;
	pointer-events: none;
}

.steps__tip::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 3px;
	background: linear-gradient(to right, rgba(255, 246, 228, 0.95), transparent);
	transform: scaleX(var(--k));
	transform-origin: left center;
}

.steps__tip.is-tail-left::before {
	right: 50%;
	left: auto;
	background: linear-gradient(to left, rgba(255, 246, 228, 0.95), transparent);
	transform-origin: right center;
}

.steps__tip.is-tail-up::before,
.steps__tip.is-tail-down::before {
	left: 50%;
	width: 3px;
	height: 120px;
	margin: 0 0 0 -1.5px;
	transform: scaleY(var(--k));
}

.steps__tip.is-tail-up::before {
	top: auto;
	bottom: 50%;
	background: linear-gradient(to top, rgba(255, 246, 228, 0.95), transparent);
	transform-origin: center bottom;
}

.steps__tip.is-tail-down::before {
	top: 50%;
	background: linear-gradient(to bottom, rgba(255, 246, 228, 0.95), transparent);
	transform-origin: center top;
}

/* ---- الحركة شغالة ---- */
.steps.is-sweep .steps__list::after {
	transform: scaleX(var(--fill, 0));
}

.steps.is-sweep .steps__tip {
	opacity: 1;
}

/* العلامة المائية بتتمايل مع الخط. */
.steps.is-sweep .steps__pin::before {
	transform: rotate(calc(var(--fill, 0) * -9deg));
}

/* الرقم بيتقلب زي العملة، واللون بيتبدّل وهو بالجنب (نص القلبة). */
.steps.is-sweep .step__num {
	background: var(--c-gold);
	color: var(--c-ink);
	transition: background-color 0.01s linear 0.26s, color 0.01s linear 0.26s;
}

.steps.is-sweep .step.is-on .step__num {
	background: var(--c-ink);
	color: var(--c-gold);
}

.steps.is-sweep .step.is-flip .step__num {
	animation: num-flip 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps.is-sweep .step.is-flip.is-on .step__num::after {
	animation: num-burst 0.8s ease-out 0.2s;
}

.steps.is-sweep .step__title,
.steps.is-sweep .step__text {
	opacity: 0.55;
	transition: opacity 0.45s ease;
}

.steps.is-sweep .step.is-on .step__title,
.steps.is-sweep .step.is-on .step__text {
	opacity: 1;
}

/* لما الخط يوصل رقم ٥: زرار الطلب بينبض مرة. */
.steps.is-done .steps__actions .btn--ink {
	animation: steps-cta 1.1s var(--ease-out);
}

@keyframes num-flip {
	0% {
		transform: perspective(320px) rotateY(0deg);
	}
	50% {
		transform: perspective(320px) rotateY(90deg) scale(1.12);
	}
	100% {
		transform: perspective(320px) rotateY(0deg);
	}
}

@keyframes num-burst {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 246, 228, 0.85);
	}
	100% {
		box-shadow: 0 0 0 22px rgba(255, 246, 228, 0);
	}
}

@keyframes steps-cta {
	0% {
		transform: none;
		box-shadow: 0 0 0 0 rgba(36, 24, 15, 0.4);
	}
	30% {
		transform: scale(1.07);
	}
	100% {
		transform: none;
		box-shadow: 0 0 0 20px rgba(36, 24, 15, 0);
	}
}

/* الآيباد بالطول: الخطوات تحت بعض، الدايرة جنب الكلام. */
@media (max-width: 900px) {
	.steps {
		--num: 48px;
	}

	.steps .section-head {
		text-align: start;
		margin-inline: 0;
	}

	.steps .section-lead {
		margin-inline: 0;
	}

	.steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		max-width: 640px;
	}

	.steps__list::before,
	.steps__list::after {
		top: calc(var(--num) / 2);
		bottom: var(--tail, calc(var(--num) / 2));
		inset-inline: auto;
		inset-inline-start: calc(var(--num) / 2 - 1px);
		width: 2px;
		height: auto;
	}

	.steps__list::after {
		transform-origin: center top;
	}

	.step {
		grid-template-columns: var(--num) minmax(0, 1fr);
		justify-items: start;
		column-gap: 18px;
		row-gap: 2px;
		text-align: start;
	}

	.step__num {
		grid-row: span 2;
	}

	.step__title {
		margin-top: 2px;
	}

	.step__text {
		max-width: none;
	}

	.steps__actions {
		max-width: 640px;
	}

	.steps__actions .btn {
		flex: 1 1 200px;
	}

	/* الخط رأسي، فبيروح ويجي من فوق لتحت. */
	.steps__runner {
		top: calc(var(--num) / 2);
		bottom: var(--tail, calc(var(--num) / 2));
		inset-inline: auto;
		inset-inline-start: calc(var(--num) / 2);
		width: 0;
		height: auto;
	}

	.steps.is-sweep .steps__list::after {
		transform: scaleY(var(--fill, 0));
	}

	.steps__tip.is-tail-up::before,
	.steps__tip.is-tail-down::before {
		height: 90px;
	}
}

/* الجوال: كل حاجة أصغر شوية، والعلامة المائية أصغر وفوق جنب العنوان. */
@media (max-width: 640px) {
	.steps {
		--num: 44px;
		padding-block: 64px;
	}

	/* العلامة فوق العنوان في المسافة الفاضية، عشان العنوان الإنجليزي بياخد العرض كله. */
	.steps__pin::before {
		top: -54px;
		width: 62px;
	}

	.steps__list {
		gap: 22px;
	}

	.step {
		column-gap: 14px;
	}

	.step__num {
		font-size: 1.125rem;
	}

	.step__title {
		font-size: 1rem;
	}

	.step__text {
		font-size: 0.875rem;
		line-height: 1.65;
	}
}

/* --------------------------------------------------------------------------
   الحاسبة
   -------------------------------------------------------------------------- */
.calc__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: stretch;
	gap: clamp(20px, 3vw, 40px);
}

.calc__form {
	display: grid;
	align-content: start;
	gap: 30px;
	padding: clamp(24px, 3.5vw, 44px);
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius-lg);
	background: var(--c-bg-2);
}

/* الاسم والخانة في سطر واحد دايمًا؛ لو المساحة ضاقت الاسم هو اللي ينزل سطرين، عشان الصفوف التلاتة تفضل شبه بعض على الجوال. */
.field__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.field__row label {
	flex: 1 1 auto;
	min-width: 0;
}

.field__value {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-sand-2);
	font-size: 0.9375rem;
}

.field .field__value input {
	width: 8.5ch;
	min-height: 0;
	padding: 6px 10px;
	border-radius: 12px;
	color: var(--c-gold-hi);
	font-size: 1.125rem;
	font-weight: 600;
	text-align: center;
	direction: ltr;
	-moz-appearance: textfield;
	appearance: textfield;
}

.field__value input::-webkit-outer-spin-button,
.field__value input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.field input[type="range"] {
	--p: 50%;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.field input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 6px;
	background: linear-gradient(to left, var(--c-gold) 0 var(--p), rgba(243, 231, 211, 0.12) var(--p) 100%);
}

.field input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 6px;
	background: rgba(243, 231, 211, 0.12);
}

.field input[type="range"]::-moz-range-progress {
	height: 6px;
	border-radius: 6px;
	background: var(--c-gold);
}

.field input[type="range"]::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -10px;
	border: 6px solid var(--c-gold);
	border-radius: 50%;
	background: var(--c-ink);
	box-shadow: 0 0 0 6px rgba(241, 184, 82, 0.15);
	-webkit-appearance: none;
	transition: box-shadow 0.2s ease;
}

.field input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 6px solid var(--c-gold);
	border-radius: 50%;
	background: var(--c-ink);
	box-shadow: 0 0 0 6px rgba(241, 184, 82, 0.15);
}

.field input[type="range"]:hover::-webkit-slider-thumb {
	box-shadow: 0 0 0 9px rgba(241, 184, 82, 0.2);
}

.field input[type="range"]:focus-visible {
	outline: none;
}

.field input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px var(--c-bg-2), 0 0 0 6px var(--c-gold-hi);
}

.calc__advanced summary {
	color: var(--c-sand-2);
	font-weight: 500;
	cursor: pointer;
}

.calc__advanced summary:hover {
	color: var(--c-gold-hi);
}

.calc__advanced[open] summary {
	margin-bottom: 16px;
}

.calc__result {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(110% 80% at 100% 0%, rgba(241, 184, 82, 0.24), transparent 58%),
		linear-gradient(180deg, #3b2a1d 0%, var(--c-bg-2) 100%);
	overflow: hidden;
	isolation: isolate;
}

/* علامة الشعار كعلامة مائية كاملة وهادية في نص الكارت (كانت مقصوصة تحت وراكبة على الملاحظة). */
.calc__result::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: 50%;
	width: min(82%, 420px);
	aspect-ratio: 240 / 194;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 194'%3E%3Cg fill='none' stroke='%23f1b852' stroke-width='2.5'%3E%3Cpath d='M138 13H172.75A51.25 51.25 0 0 1 172.75 115.5H66.25A51.25 51.25 0 0 1 66.25 13H101'/%3E%3Cpath d='M119.5 77.5H172.75A51.25 51.25 0 0 1 172.75 180H66.25A51.25 51.25 0 0 1 66.25 77.5Z'/%3E%3C/g%3E%3Ccircle cx='119.5' cy='140' r='10.5' fill='%23f1b852'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: 0.08;
	pointer-events: none;
}

.calc__label {
	color: var(--c-sand-2);
	font-weight: 500;
}

.calc__amount {
	margin-top: 4px;
	color: var(--c-gold);
	font-family: var(--f-display);
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.calc__amount small {
	color: var(--c-sand-2);
	font-family: var(--f-body);
	font-size: 1.125rem;
	font-weight: 500;
}

.calc__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0;
	padding-top: 24px;
	border-top: 1px solid var(--c-line-soft);
}

.calc__meta dt {
	color: var(--c-sand-3);
	font-size: 0.9rem;
}

.calc__meta dd {
	margin: 4px 0 0;
	font-size: 1.25rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.calc__warn {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(255, 155, 133, 0.1);
	color: var(--c-danger);
	font-size: 0.95rem;
	line-height: 1.65;
}

.calc__result .btn {
	margin-top: auto;
}

.calc__note {
	margin-top: 18px;
	color: var(--c-sand-3);
	font-size: 0.85rem;
	line-height: 1.75;
}

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

/* --------------------------------------------------------------------------
   من نحن — الجملة + الرؤية والرسالة كحلقتين + القيم
   -------------------------------------------------------------------------- */
.about {
	background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 50%, var(--c-bg) 100%);
}

.about__statement {
	max-width: 30em;
	margin-top: 14px;
	font-family: var(--f-display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 500;
	line-height: 1.9;
	color: var(--c-sand);
}

.js .about__statement .w {
	color: rgba(243, 231, 211, 0.16);
	transition: color 0.35s ease;
}

.js .about__statement .w.is-on {
	color: var(--c-sand);
}

.about__brief {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: 860px;
	margin-top: clamp(32px, 4vw, 48px);
	color: var(--c-sand-2);
}

.loops {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: clamp(80px, 9vw, 140px);
}

.loop {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 360px;
	padding-block: clamp(40px, 5vw, 64px);
	padding-inline: clamp(48px, 6.5vw, 104px);
	border: 1.5px solid var(--c-gold);
	border-radius: 999px;
}

/* الحلقتان متداخلتان زي الشعار؛ الحشو الإضافي بيبعد النص عن منطقة التقاطع. */
.loop--vision {
	padding-inline-end: calc(clamp(48px, 6.5vw, 104px) + 48px);
}

.loop--mission {
	margin-inline-start: -72px;
	padding-inline-start: calc(clamp(48px, 6.5vw, 104px) + 48px);
}

.loop__title {
	margin-bottom: 10px;
	color: var(--c-gold-text);
	font-size: var(--fs-h3);
	font-weight: 600;
}

.loop p {
	color: var(--c-sand-2);
}

/*
 * القيم: سلسلة من 4 حلقات متداخلة، امتداد لحلقتي الرؤية والرسالة اللي فوقها (main.js ← valuesChain).
 * لما القسم يظهر الحلقات بتترسم واحدة ورا التانية، كل حلقة بتبدأ من ناحية الحلقة اللي قبلها.
 * بعدها نقطة الشعار بتنزل على السلسلة وتنط لوحدها من حلقة للتانية كل 1.7 ثانية، والقيمة اللي هي عليها بتنوّر.
 */
@property --sweep {
	syntax: "<angle>";
	inherits: false;
	initial-value: 360deg;
}

.values {
	position: relative;
	margin-top: clamp(80px, 9vw, 140px);
}

.values__title {
	margin-bottom: 28px;
	font-size: var(--fs-h3);
	font-weight: 600;
}

.values__list {
	display: flex;
}

.value {
	--d: calc(0.55s + var(--i) * 0.38s);
	--from: 90deg;
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-width: 0;
	min-height: 220px;
	padding: 36px 52px;
	border-radius: 999px;
	text-align: center;
	isolation: isolate;
}

.value + .value {
	margin-inline-start: -36px;
}

/* خط الحلقة: بيترسم بقناع دائري بيلف (--sweep من 0 لـ 360). */
.value::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--c-gold);
	border-radius: inherit;
	-webkit-mask: conic-gradient(from var(--from), #000 var(--sweep), transparent 0);
	mask: conic-gradient(from var(--from), #000 var(--sweep), transparent 0);
	transition: --sweep 1.1s var(--ease-in-out), border-color 0.4s ease;
	transition-delay: calc(var(--i) * 0.38s), 0s;
	pointer-events: none;
}

/* الحلقة اللي عليها النقطة بتبقى فوق جيرانها ومليانة بنور خفيف. */
.value::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(120% 130% at 50% 100%, rgba(241, 184, 82, 0.3), transparent 65%), var(--c-bg);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.value.is-active {
	z-index: 2;
}

.value.is-active::before {
	border-color: var(--c-gold-text);
}

.value.is-active::after {
	opacity: 1;
}

.value__title {
	margin-bottom: 8px;
	font-size: 1.1875rem;
	font-weight: 600;
	transition: color 0.4s ease;
}

.value.is-active .value__title {
	color: var(--c-gold-text);
}

.value p {
	color: var(--c-sand-2);
	font-size: 0.98rem;
	line-height: 1.8;
}

/* قبل الظهور: الحلقات مش مترسومة والكلام مستخبي. */
.js .values__list:not(.is-drawn) .value::before {
	--sweep: 0deg;
}

.js .value > * {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.6s ease, transform 0.7s var(--ease-out), color 0.4s ease;
	transition-delay: var(--d), var(--d), 0s;
}

.js .values__list.is-drawn .value > * {
	opacity: 1;
	transform: none;
}

/* نقطة الشعار على خط الحلقة من تحت. */
.values__bead {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.6, 0, 0.25, 1), opacity 0.4s ease;
	pointer-events: none;
}

.values__bead i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--c-gold);
	box-shadow: 0 0 0 4px var(--c-bg), 0 8px 18px -4px rgba(185, 133, 47, 0.7);
}

.values__bead.is-on {
	opacity: 1;
}

.values__bead.is-hop i {
	animation: bead-hop 0.6s cubic-bezier(0.3, 0, 0.3, 1);
}

.values__bead.is-drop i {
	animation: bead-drop 0.9s cubic-bezier(0.3, 0, 0.3, 1);
}

@keyframes bead-hop {
	0% {
		transform: none;
	}
	45% {
		transform: translateY(-46px) scale(1.15);
	}
	82% {
		transform: translateY(2px) scale(1.12, 0.88);
	}
	100% {
		transform: none;
	}
}

@keyframes bead-drop {
	0% {
		transform: translateY(-90px);
		opacity: 0;
	}
	55% {
		transform: none;
		opacity: 1;
	}
	72% {
		transform: translateY(-14px);
	}
	88% {
		transform: translateY(1px) scale(1.12, 0.88);
	}
	100% {
		transform: none;
	}
}

/* اللابتوب الصغير والتابلت: الحلقات 2 × 2، والصفين متداخلين زي حلقتي الشعار. */
@media (max-width: 1180px) {
	.values__list {
		flex-wrap: wrap;
	}

	.value {
		flex: 0 0 calc(50% + 18px);
		min-height: 180px;
		padding: 34px 64px;
	}

	.value:nth-child(2n + 1) {
		margin-inline-start: 0;
	}

	.value:nth-child(n + 3) {
		margin-top: -28px;
	}
}

/* الجوال: عمود واحد، كل حلقة راكبة على اللي قبلها من فوق. */
@media (max-width: 640px) {
	.values__list {
		flex-direction: column;
	}

	.value {
		--from: 0deg;
		flex: none;
		min-height: 0;
		padding: 34px 28px;
		border-radius: 64px;
	}

	.value + .value {
		margin-inline-start: 0;
		margin-top: -26px;
	}

	.value:nth-child(n + 3) {
		margin-top: -26px;
	}
}

@media (max-width: 1080px) {
	.loops {
		grid-template-columns: minmax(0, 1fr);
		max-width: 720px;
		margin-inline: auto;
	}

	.loop {
		min-height: 0;
		border-radius: 140px;
		padding-inline: clamp(36px, 7vw, 72px);
	}

	.loop--vision {
		padding-inline-end: clamp(36px, 7vw, 72px);
		padding-bottom: calc(clamp(40px, 5vw, 64px) + 40px);
	}

	.loop--mission {
		margin-inline-start: 0;
		margin-top: -64px;
		padding-inline-start: clamp(36px, 7vw, 72px);
		padding-top: calc(clamp(40px, 5vw, 64px) + 40px);
	}
}

@media (max-width: 640px) {
	.about__brief {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.loop {
		border-radius: 72px;
		padding-inline: 28px;
	}

	.loop--vision {
		padding-inline-end: 28px;
	}

	.loop--mission {
		padding-inline-start: 28px;
	}
}

/* --------------------------------------------------------------------------
   الأسئلة الشائعة
   -------------------------------------------------------------------------- */
.faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(40px, 6vw, 96px);
}

.faq__side {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.faq__help {
	margin-top: 40px;
	padding: 28px;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius);
	background: var(--c-bg-2);
}

.faq__help h3 {
	font-size: 1.3125rem;
}

.faq__help p {
	margin-top: 8px;
	color: var(--c-sand-2);
	font-size: 0.98rem;
}

.faq__help-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 22px;
}

.faq__mail {
	color: var(--c-gold-link);
	font-weight: 500;
	text-decoration: none;
}

.faq__item {
	border-bottom: 1px solid var(--c-line-soft);
}

.faq__item:first-child {
	border-top: 1px solid var(--c-line-soft);
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 24px;
	list-style: none;
	cursor: pointer;
}

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

.faq__q {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: 500;
	transition: color 0.2s ease;
}

.faq__item summary:hover .faq__q {
	color: var(--c-gold-hi);
}

.faq__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	color: var(--c-gold-text);
	transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq__icon .icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

.faq__item[open] .faq__icon {
	transform: rotate(45deg);
	border-color: var(--c-gold);
	background: var(--c-gold);
	color: var(--c-ink);
}

.faq__item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}

.faq__item[open]::details-content {
	block-size: auto;
}

.faq__a {
	max-width: 40em;
	padding-bottom: 26px;
	color: var(--c-sand-2);
}

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

	/* على الجوال: صندوق «هل لديك استفسار آخر؟» ينزل بعد الأسئلة بدل ما يسبقها. */
	.faq__grid {
		gap: 0;
	}

	.faq__side {
		display: contents;
	}

	.faq__side .section-lead {
		margin-bottom: 36px;
	}

	.faq__list {
		order: 3;
	}

	.faq__help {
		order: 4;
	}
}

/* --------------------------------------------------------------------------
   اطلب تمويلك
   -------------------------------------------------------------------------- */
.request {
	background: radial-gradient(42% 40% at 18% 58%, rgba(241, 184, 82, 0.1), transparent 100%);
}

.request__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(40px, 6vw, 96px);
}

.request__note {
	margin-top: 22px;
	padding-inline-start: 16px;
	border-inline-start: 2px solid var(--c-gold);
	color: var(--c-sand-2);
	font-size: 0.98rem;
	line-height: 1.8;
}

.contact-list--large {
	margin-top: 40px;
	gap: 16px;
}

.contact-list--large a {
	font-family: var(--f-display);
	font-size: 1.125rem;
}

.contact-list--large .icon {
	width: 44px;
	height: 44px;
	padding: 11px;
	border: 1px solid var(--c-line);
	border-radius: 50%;
}

/* خريطة موقع الشركة: داكنة عشان تمشي مع الموقع، وزرار يفتح النشاط في خرائط جوجل. */
.map-card {
	position: relative;
	margin-top: 28px;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-bg-2);
	overflow: hidden;
}

.map-card iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: invert(90%) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.9);
}

.map-card__link {
	position: absolute;
	inset-inline-start: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--c-gold);
	color: var(--c-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.map-card__link:hover {
	background: var(--c-gold-hi);
	color: var(--c-ink);
}

.map-card__link .icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.6;
}

.request__form {
	position: relative;
	display: grid;
	gap: 22px;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	background: var(--c-bg-2);
	box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.7);
}

.request__form--fallback p {
	color: var(--c-sand-2);
}

/* خانة فخ البوتات: مخفية في مكانها (مش مزقوقة برّه الشاشة) عشان ما توسّعش الصفحة على الموبايل. */
.hp {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

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

.choice {
	position: relative;
}

.choice input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.choice span {
	display: block;
	padding: 10px 18px;
	border: 1.5px solid var(--c-line-soft);
	border-radius: 999px;
	color: var(--c-sand-2);
	font-weight: 500;
	line-height: 1.5;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.choice:hover span {
	border-color: var(--c-line);
	color: var(--c-sand);
}

.choice input:checked + span {
	border-color: var(--c-gold);
	background: var(--c-gold);
	color: var(--c-ink);
}

.choice input:focus-visible + span {
	outline: 2px solid var(--c-gold-hi);
	outline-offset: 3px;
}

.field--choices.has-error .choice span {
	border-color: rgba(255, 155, 133, 0.5);
}

.check--consent {
	color: var(--c-sand-2);
	font-size: 0.98rem;
}

.form-status:empty {
	display: none;
}

.form-status--error,
.form-status--success {
	padding: 14px 18px;
	border-radius: 16px;
	line-height: 1.7;
}

.form-status--error {
	border: 1px solid rgba(255, 155, 133, 0.35);
	background: rgba(255, 155, 133, 0.08);
	color: var(--c-danger);
}

.form-status--success {
	border: 1px solid rgba(166, 220, 174, 0.35);
	background: rgba(166, 220, 174, 0.08);
	color: var(--c-ok);
}

/* بعد الإرسال الناجح: الفورم كله بيتحول لرسالة تأكيد. */
.request__form.is-sent > :not(.form-status) {
	display: none;
}

.request__form.is-sent .form-status {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: clamp(32px, 6vw, 72px) 16px;
	border: 0;
	background: none;
	color: var(--c-sand);
	text-align: center;
}

.form-status__icon {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--c-gold);
	color: var(--c-ink);
	animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.form-status__icon .icon {
	width: 42px;
	height: 42px;
	stroke-width: 3.5;
}

.form-status strong {
	font-family: var(--f-display);
	font-size: 1.75rem;
	color: var(--c-gold-text);
}

.form-status p {
	max-width: 28em;
	color: var(--c-sand-2);
}

@keyframes pop {
	from {
		transform: scale(0.4);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

@media (max-width: 960px) {
	.request__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	/*
	 * على الآيباد والجوال الفورم ييجي على طول بعد المقدمة، وبعده بيانات التواصل والخريطة،
	 * عشان اللي داس «اطلب تمويلك» يلاقي الفورم قدامه من غير ما ينزل تحت الخريطة.
	 */
	.request__copy {
		display: contents;
	}

	.request__form {
		order: 1;
		margin-top: 32px;
	}

	.request__copy > .contact-list,
	.request__social,
	.map-card {
		order: 2;
	}
}

/* --------------------------------------------------------------------------
   تقليل الحركة: كل حاجة بتظهر في حالتها النهائية فورًا
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   الوضع النهاري — تفاصيل الرئيسية
   -------------------------------------------------------------------------- */
[data-theme="light"] .hero::before {
	background:
		radial-gradient(55% 65% at 22% 48%, rgba(241, 184, 82, 0.18), transparent 70%),
		radial-gradient(40% 50% at 100% 0%, rgba(241, 184, 82, 0.08), transparent 70%);
}

[data-theme="light"] .hero__mark--base {
	opacity: 0.4;
}

[data-theme="light"] .hero__mark--lit {
	color: #d99a2b;
	opacity: 1;
	filter: none;
}

[data-theme="light"] .hero__glow {
	background: radial-gradient(circle, rgba(241, 184, 82, 0.16), transparent 65%);
}

[data-theme="light"] .steps__pin::before {
	opacity: 0.12;
}

[data-theme="light"] .js .about__statement .w {
	color: rgba(42, 28, 18, 0.14);
}

[data-theme="light"] .js .about__statement .w.is-on {
	color: var(--c-sand);
}

[data-theme="light"] .field input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to left, var(--c-gold) 0 var(--p), rgba(42, 28, 18, 0.12) var(--p) 100%);
}

[data-theme="light"] .field input[type="range"]::-moz-range-track {
	background: rgba(42, 28, 18, 0.12);
}

[data-theme="light"] .calc input[type="number"],
[data-theme="light"] .calc input[type="text"] {
	color: var(--c-gold-text);
}

[data-theme="light"] .request__form {
	background: #fff;
	box-shadow: 0 40px 90px -60px rgba(42, 28, 18, 0.45);
}

/* الخريطة بألوانها العادية في النهاري (في الليلي متقلوبة داكنة). */
[data-theme="light"] .map-card iframe {
	filter: saturate(0.85) sepia(0.08);
}

/* --------------------------------------------------------------------------
   النسخة الإنجليزية (من الشمال لليمين) — تفاصيل الرئيسية
   -------------------------------------------------------------------------- */
[lang="en"] .hero__title {
	line-height: 1.2;
}

[lang="en"] .about__statement {
	line-height: 1.6;
}

/* الجوال: العنوان الإنجليزي بيلف كجملة واحدة طبيعية بدل ما كل جزء منه يتكسر لوحده. */
@media (max-width: 600px) {
	[lang="en"] .hero__title {
		font-size: 2rem;
		line-height: 1.22;
	}

	[lang="en"] .hero__line,
	[lang="en"] .hero__line > span {
		display: inline;
		overflow: visible;
		margin: 0;
		padding: 0;
	}

	[lang="en"] .js .hero__line > span {
		transform: none;
		animation-name: hero-fade;
	}
}

@keyframes hero-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* المقدمة: الاسم بيظهر من الشمال، وزرار «تخطي» في النص. */
.intro__wordmark.wordmark--en {
	font-size: clamp(2.6rem, 2rem + 2.6vw, 3.8rem);
	align-items: center;
}

[dir="ltr"] .intro__word {
	width: auto;
	clip-path: inset(0 100% 0 0);
}

[dir="ltr"] .intro__skip {
	transform: translateX(-50%);
}

/* لماذا بذول: الخطوط والسلوك بتتعكس عشان بذول على الشمال والبنوك على اليمين. */
[dir="ltr"] .why__link {
	background: linear-gradient(to right, var(--c-line), var(--c-gold));
	transform-origin: left center;
}

[dir="ltr"] .why__wires {
	transform: scaleX(-1);
}

@media (min-width: 1101px) {
	[dir="ltr"] .js .why__banks li {
		transform: translateX(14px);
	}

	[dir="ltr"] .js .why__diagram.is-revealed .why__banks li {
		transform: none;
	}
}

[dir="ltr"] .steps__list::after {
	transform-origin: left center;
}

/* حلقات القيم بتبدأ ترسم من الشمال (ناحية الحلقة اللي قبلها). */
@media (min-width: 641px) {
	[dir="ltr"] .value {
		--from: 270deg;
	}
}

/* شريط الحاسبة بيتملي من الشمال. */
[dir="ltr"] .field input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to right, var(--c-gold) 0 var(--p), rgba(243, 231, 211, 0.12) var(--p) 100%);
}

[dir="ltr"][data-theme="light"] .field input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to right, var(--c-gold) 0 var(--p), rgba(42, 28, 18, 0.12) var(--p) 100%);
}

@media (prefers-reduced-motion: reduce) {
	.hero__art,
	.js .hero__art {
		animation: none;
		opacity: 1;
	}

	.js .hero__line > span,
	.js .hero__lead,
	.js .hero__actions,
	.js .hero__stats {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hero__stats.is-counted .hero__stat::after,
	.hero__stats.is-counted .hero__stat-num {
		animation: none;
	}

	.js .why__link,
	.js .why__banks li,
	.js .node--bdoul .node__ring {
		opacity: 1;
		transform: none;
	}

	.js .why__wire {
		stroke-dashoffset: 0;
	}

	.js .values__list .value::before {
		--sweep: 360deg;
		transition: none;
	}

	.js .value > * {
		opacity: 1;
		transform: none;
		transition: color 0.4s ease;
	}

	.values__bead,
	.steps__tip {
		display: none;
	}

	.js .about__statement .w {
		color: var(--c-sand);
	}
}
