/*
 * Home page (T063): the old Elementor page 1338 + loop item 1419, same sizes at 1440 / 768 / 390.
 * Shared pieces (.fx-bg, [data-bg], .carousel) come from work.css. Breakpoints: ≤1024 tablet, ≤767 mobile.
 */

/* Sticky needs a page that is not a scroll box: clip instead of hidden (same cut, D-010). */
body.page-home { overflow-x: clip; }

/* ---------- Hero: name over the photo (66de594) ---------- */
.home-hero { display: flex; align-items: flex-end; margin: -100px 0 -1.8px; background: var(--c-paper); }
.home-hero__stage {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	width: 100%; min-height: 90vh; overflow: hidden;
}
.home-hero__photo { position: absolute; z-index: 11; left: -19vw; bottom: -13vh; width: 100%; height: 100vh; }
.home-hero__photo--top { z-index: 21; }
.home-hero__photo > div {
	width: 100%; height: 100%;
	background: var(--bg) bottom center / contain no-repeat;
}
/* D-032: no fallback-font flash on the name: hidden until Almarai Light is ready (head script, at most 1.5 s). */
html.js-motion:not(.font-ready) .home-hero__name { visibility: hidden; }
/* The dark curve that the next section starts from (be0dbbc) */
.home-hero__curve {
	position: absolute; z-index: 20; left: 1vw; bottom: -19px; width: 70vw; height: 10vw;
	background: #141017;
	-webkit-mask: var(--mask) bottom left / contain no-repeat;
	mask: var(--mask) bottom left / contain no-repeat;
}

/* ---------- Role words + about (e394857) ---------- */
.home-roles {
	display: flex; flex-direction: column; justify-content: flex-end; min-height: 50vh; overflow: hidden;
	padding-top: 20%; border-radius: 60px 60px 0 0; background: #141017;
}
.home-roles__inner { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; }
.home-role { position: relative; z-index: 7; flex: none; text-align: center; }
.home-role p {
	margin: 0; font-family: var(--f-en); font-size: clamp(80px, 6vw, 120px); font-weight: 300; line-height: 1.2em; color: var(--c-muted);
}
.home-role--plus p { font-size: clamp(140px, 9vw, 180px); line-height: 1em; }
.home-roles__gap { height: 3vh; }
.home-roles__space { height: 20vh; }

.home-about { display: flex; flex-direction: column; margin: 0 0 20vh; padding: 0 20% 40px; color: var(--c-paper); }
.home-about h2 { font-size: var(--t-h3); font-weight: 400; line-height: var(--lh-h3); }
.home-about__text { font-size: clamp(20px, .9vw, 28px); line-height: 2em; }
.home-about__text p { margin: 0 0 1em; }
.home-about__cta { align-self: flex-start; }
.home-about__link { vertical-align: -1px;
	display: inline-block; font-size: clamp(16px, .8vw, 22px); font-weight: 500; line-height: 1.2em;
	color: var(--c-paper); text-shadow: 0 0 10px rgb(0 0 0 / .3);
}
/* text first in the markup (baseline as the old icon font), icon drawn on the right */
.home-about__in { display: flex; flex-direction: row-reverse; justify-content: center; gap: 15px; }
.home-about__icon { display: flex; align-items: center; font-size: 16px; }
.home-about__icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Works cards + services + start + reviews (dc8dae9) ---------- */
.home-stack { position: relative; display: flex; flex-direction: column; min-height: 100vh; margin-top: -60px; background: #141017; }

/* Each work: a card that sticks at the top while the next one slides over it (58fc378…, loop 1419) */
.home-card { position: sticky; top: 0; z-index: 2; }
.home-card--last { z-index: 3; }
.home-card__shape {
	position: relative; z-index: 6; display: flex; flex-wrap: wrap; justify-content: space-between;
	min-height: 100vh; padding: 0 30px; overflow: hidden; border-radius: 60px 60px 0 0; background: var(--c-black);
}
.home-card .fx-bg__layer { background-color: var(--c-black); }
/* A dark veil that comes up on hover (Elementor background overlay, 1s). Inside the picture layer
 * as in Elementor: on top of the moving picture it cost an extra GPU layer every frame. */
.home-card .fx-bg__layer::before {
	content: ""; position: absolute; inset: 0; background: var(--c-black); opacity: 0;
	transition: opacity 1s; pointer-events: none;
}
.home-card__shape:hover .fx-bg__layer::before { opacity: .2; }
.home-card__side {
	position: relative; z-index: 6; display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
	align-self: flex-start; gap: 20px; width: 30%; padding: 30px 0;
}
.home-card__arrow {
	align-self: flex-start; display: block; padding: 18px 18px 14px;
	border: 1px solid var(--c-white); border-radius: 100px; color: var(--c-white);
}
.home-card__arrow svg { display: block; width: 33px; height: 33px; margin-bottom: 6px; fill: currentColor; transform: rotate(270deg); }
@keyframes pulse-grow { to { transform: scale(1.1); } }
.home-card__arrow:is(:hover, :focus-visible) svg { animation: pulse-grow .3s linear infinite alternate; }
.home-card__info {
	position: relative; z-index: 6; display: flex; flex-direction: column; gap: 10px;
	align-self: flex-start; flex: none; width: 70%; padding: 40px 0;
}
.home-card__title { align-self: flex-end; margin: 0; font-size: var(--t-h3); font-weight: 400; line-height: var(--lh-h3); text-align: end; color: var(--c-white); }
.home-card__title a { color: inherit; }
.home-card__tags {
	align-self: flex-end; margin: 0; color: var(--c-white);
	font-size: clamp(9px, .4vw, 12px); font-weight: 500; line-height: 1.2em; letter-spacing: .05em; text-transform: uppercase;
}
.home-card__tags a { color: inherit; }

/* D-057: «مشاهدة» cursor over the work cards (home.js). Small, fixed, moved by transform only. */
.home-card-cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
	.home-card-cursor {
		position: fixed; top: 0; left: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--c-white); color: var(--c-black);
		font-size: 10px; font-weight: 500; line-height: 1; pointer-events: none; opacity: 0;
		transform: translate3d(var(--cx, 50vw), var(--cy, 50vh), 0) scale(.5);
		transition: opacity .25s, transform .3s cubic-bezier(.2, .6, .3, 1); will-change: transform;
	}
	.home-card-cursor svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
	.home-card-cursor.is-on { opacity: 1; transform: translate3d(var(--cx, 50vw), var(--cy, 50vh), 0) scale(1); }
	.home-card.is-viewing .home-card__shape { cursor: none; }
	.home-card.is-viewing .home-card__shape a, .home-card.is-viewing .home-card__arrow { cursor: pointer; }
}

/* Services picture: sticks at the top (2px) under everything that comes after it (b713a08) */
.home-services {
	position: sticky; top: 2px; z-index: 4; display: flex; flex-direction: column-reverse; justify-content: center; align-items: center;
	min-height: 39vh; padding: 8vh; border-radius: 60px 60px 0 0; background: var(--c-paper);
}
.home-services__inner { position: relative; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.home-services__img { display: block; width: 100%; height: auto; }
.home-services__img--mobile { display: none; }

/* «ابدأ اليوم» over a photo that zooms (e2d181f / 3461347) */
.home-start {
	position: relative; z-index: 7; display: flex; flex-direction: column; align-items: center;
	min-height: 130vw; overflow: clip; border-radius: 60px 60px 0 0; background: var(--c-white);
}
.home-start__pin {
	position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; align-items: center;
	width: 100%; min-height: 100vh; overflow: hidden;
}
.home-start .fx-bg__layer { background-size: contain; }
.home-start__text { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 100vh; }
.home-start__text > div { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.home-start h2, .home-start__sub { margin: 0; font-family: var(--f-ar); font-size: 7.5rem; font-weight: 300; line-height: 1em; color: var(--c-white); }
.home-start h2 { margin-bottom: 70px; } /* the 50px spacer + its 20px gap */
.home-start__sub { margin-bottom: 50px; }
.home-start__since { margin: 0 0 16px; color: var(--c-muted); }

/* Reviews (67dc5b9 / fc907d4) */
.home-reviews {
	position: relative; z-index: 7; margin-top: -60px; padding: 65px 30px 15vh;
	border-radius: 60px 60px 0 0; background: var(--c-paper);
}
.home-reviews__title { margin: 0 0 6vh; }
.home-reviews__slider { --gap: 50px; padding-bottom: 70px; }
.home-reviews__slider .carousel__track { align-items: flex-end; }
.home-review { margin: 0; text-align: start; }
.carousel__slide .home-review__icon { display: block; width: 42px; height: 42px; margin-bottom: 31px; }
.home-review__text { margin: 0; font-size: clamp(20px, .9vw, 28px); line-height: 1.5em; }
.home-review__name { margin-top: 25px; font-family: var(--f-en); font-size: var(--t-h6); font-weight: 500; line-height: 1.2em; }
.home-reviews .carousel__dot { width: 4px; height: 4px; background: var(--c-black); opacity: .2; }
/* active: 20×4 black, like the old Swiper bullet on this page */
.home-reviews .carousel__dot[aria-current="true"] { width: 20px; background: var(--c-black); opacity: 1; }

/* «Learn more» (8743): under the footer's rounded top, as before */
.home-more { padding: 0 30px; text-align: start; }
.home-more a { font-size: clamp(16px, .8vw, 22px); font-weight: 500; line-height: 1.3em; color: var(--c-black); }

/* On Macs the old site switched off the photo's blur and mouse follow and the menu's glass blur
 * (custom CSS on html.is-mac, set by a small script in the head; kept as it was). */
html.is-mac .home-hero__photo--top > div { filter: none !important; transform: none !important; }
html.is-mac .page-home .pill-nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.is-mac { scroll-behavior: auto !important; }

/* The corner caps are drawn only in desktop Chrome (below); everywhere else the card's own rounded clip does it. */
.home-card__cap { display: none; }

/* ---------- Rounded corners without a rounded clip (desktop Chrome only, T064) ----------
 * Chrome (html.is-blink, set in the page head) only: Safari draws the plain rounded clip fast
 * (96.9% on time) and its fixed-image caps slowly (53%); Firefox masks rounded clips cheaply too.
 * A rounded overflow clip around moving layers makes Chrome build a mask and a separate surface for
 * that section every frame: on the cards 32ms of GPU work per frame → 2.6ms without it (trace,
 * MacBook Pro 2019). So on desktop the sections clip with a plain rectangle, and the rounded top
 * corners are drawn back by two 60×60 «caps» painted with exactly what is behind them:
 *   words section and «ابدأ اليوم»: the page colour (#e9e9e7, sampled from the original);
 *   first card: the dark stack (#141017);
 *   other cards: the card before, pinned at the top (fixed, scale 1.0333 = Elementor's value while
 *   pinned), and its own dark corners for when the cards sit exactly on top of each other. */
@media (min-width: 1025px) {
	html.is-blink .home-roles, html.is-blink .home-start { border-radius: 0; }
	html.is-blink .home-roles { position: relative; }
	html.is-blink .home-card__shape { overflow: visible; }
	html.is-blink .home-roles::before, html.is-blink .home-roles::after, html.is-blink .home-start::before, html.is-blink .home-start::after,
	html.is-blink .home-card__shape::before, html.is-blink .home-card__shape::after {
		content: ""; position: absolute; top: 0; z-index: 8; width: 60px; height: 60px; pointer-events: none;
		background: var(--cap, var(--c-paper));
	}
	html.is-blink .home-roles::before, html.is-blink .home-start::before, html.is-blink .home-card__shape::before {
		left: 0;
		-webkit-mask: radial-gradient(circle 60px at 60px 60px, #0000 59.5px, #000 60px);
		mask: radial-gradient(circle 60px at 60px 60px, #0000 59.5px, #000 60px);
	}
	html.is-blink .home-roles::after, html.is-blink .home-start::after, html.is-blink .home-card__shape::after {
		right: 0;
		-webkit-mask: radial-gradient(circle 60px at 0 60px, #0000 59.5px, #000 60px);
		mask: radial-gradient(circle 60px at 0 60px, #0000 59.5px, #000 60px);
	}
	html.is-blink .home-card__shape::before, html.is-blink .home-card__shape::after { z-index: 5; }
	html.is-blink .home-card--first .home-card__shape { --cap: #141017; }
	/* Cards after the first: two real caps; inside each, a copy of the card before as it sits
	 * pinned (cover, scale 1.0333, plus its own dark corners), position: fixed so the browser keeps
	 * it lined up with the screen while scrolling; the cap's mask cuts it to the corner. (A fixed
	 * *background* here made Safari re-draw the whole card every frame: 75% → 89% without it.) */
	html.is-blink .home-card:not(.home-card--first) .home-card__shape::before,
	html.is-blink .home-card:not(.home-card--first) .home-card__shape::after { content: none; }
	html.is-blink .home-card__cap { display: block; position: absolute; top: 0; z-index: 5; width: 60px; height: 60px; overflow: hidden; pointer-events: none; }
	html.is-blink .home-card__cap--l { left: 0; -webkit-mask: radial-gradient(circle 60px at 60px 60px, #0000 59.5px, #000 60px); mask: radial-gradient(circle 60px at 60px 60px, #0000 59.5px, #000 60px); }
	html.is-blink .home-card__cap--r { right: 0; -webkit-mask: radial-gradient(circle 60px at 0 60px, #0000 59.5px, #000 60px); mask: radial-gradient(circle 60px at 0 60px, #0000 59.5px, #000 60px); }
	html.is-blink .home-card__capimg {
		position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
		background:
			radial-gradient(circle 60px at 60px 60px, #0000 59.5px, #141017 60px) 0 0 / 60px 60px no-repeat,
			radial-gradient(circle 60px at 0 60px, #0000 59.5px, #141017 60px) 100% 0 / 60px 60px no-repeat,
			var(--prev-bg) center / calc(max(100vw, 100vh * var(--prev-a)) * 1.03333) auto no-repeat,
			var(--c-black);
	}
}

/* ---------- Desktop only ---------- */
@media (min-width: 1025px) {
	/* The photo behind «ابدأ اليوم» stays while its section scrolls (3461347, desktop) */
	.home-start__pin { position: sticky; top: 0; }
	/* Card pictures zoom with scrolling: drawn once and scaled (D-010 measurement) */
	.home-card .fx-bg__layer { will-change: transform; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.home-hero { margin: -90px 0 0; }
	.home-hero__stage { min-height: 500px; }
	.home-hero__photo { left: -3vw; bottom: -4vw; }
	.home-hero__curve { left: -8vw; }

	.home-roles { padding-top: 10%; border-radius: 60px 0 0 0; }
	.home-role p { font-size: 10vw; }
	.home-role--plus p { font-size: 13vw; }
	.home-roles__gap, .home-roles__space { height: 5vh; }
	.home-about { margin: 0; padding: 0 10% 135px; }
	.home-about__title { margin-bottom: 10px; }
	.home-about__text { font-size: 19px; }
	.home-about__link { font-size: 16px; }

	.home-stack { margin-top: 0; }
	/* The pull-up is inside the pinned card (Elementor widget-container), so a stuck card sits 60px up */
	.home-card__shape { margin-top: -60px; }
	.home-card--last .home-card__shape { margin-top: -65px; }
	.home-card__info { padding: 30px 0; }
	.home-services { top: 0; min-height: 50vh; margin-top: -60px; padding: 75px 30px 140px; }
	.home-services__inner { gap: 0; }
	.home-services__img--mobile { display: block; }
	.home-start { margin-top: -60px; }
	.home-start .fx-bg__layer { background-size: 120% auto; }
	.home-start h2, .home-start__sub { font-size: 13vw; }
	.home-start__sub { margin-bottom: 0; }
	.home-reviews { padding: 70px 30px 120px; }
	.home-reviews__title { margin-bottom: 30px; }
	.home-reviews__slider { --gap: 10px; --show: 1 !important; padding-bottom: 60px; }
	.home-review__text { font-size: 19px; }
	.carousel__slide .home-review__icon { width: 30px; height: 30px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.home-hero__stage { width: 70%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.home-hero { min-height: 40vh; margin: 0; }
	.home-hero__stage { min-height: 370px; margin-left: 2vw; }
	.home-hero__photo { left: -55px; bottom: -53px; height: 68vh; }
	/* 800px copies on phones (shown ~382px wide; the full files are 2048–2560px) */
	.home-hero__photo > div { background-image: var(--bg-m, var(--bg)); }
	.home-hero__curve { left: 38px; bottom: -1px; width: 100%; height: 70px; -webkit-mask-size: 100vw; mask-size: 100vw; }
	/* The home page header is a bit shorter on phones (Elementor header 1460: 10px instead of 20px) */
	.page-home .site-header__inner { padding: 10px 0; }

	.home-roles__inner { gap: 20px; }
	.home-roles__gap { display: none; }
	.home-roles__space { height: 0; }
	.home-about { gap: 20px; padding: 0 20px 120px; }
	.home-about__title { margin-bottom: 0; }
	.home-about__text { margin-bottom: -1em; }

	.home-card { top: 40px; }
	.home-card__shape { margin-top: -20px; }
	.home-card--last .home-card__shape { margin-top: -65px; }
	.home-card:nth-of-type(3) { padding-top: 10px; }
	.home-card__shape { justify-content: flex-start; min-height: 90vw; padding: 30px 20px; border-radius: 40px 40px 0 0; }
	.home-card__side { justify-content: flex-start; width: 17%; padding: 0; }
	.home-card__arrow { align-self: flex-end; margin-top: -10px; padding: 8px 12px 7px; }
	.home-card__arrow svg { width: 24px; height: 24px; margin-bottom: 7px; }
	.home-card__info { width: 83%; padding: 0 0 20px; }

	.home-services { padding: 55px 0 140px; border-radius: 40px 40px 0 0; }
	.home-services__img--wide { display: none; }
	.home-start { justify-content: center; min-height: 90vw; border-radius: 40px 40px 0 0; }
	.home-start__pin, .home-start__text { min-height: 90vw; }
	.home-start .fx-bg__layer { background-position: center center; background-size: 700vw auto; }
	.home-start__text { margin-bottom: 40px; }
	.home-start h2 { margin-bottom: 22px; }
	.home-start__since { margin: 0; }
	.home-reviews { padding: 60px 20px 100px; border-radius: 40px 40px 0 0; }
	.home-reviews__title { margin-bottom: 20px; }
	.home-reviews__slider { --gap: 0px; padding-bottom: 50px; }
}

/* ---------- D-043 (2026-11-17): الرئيسية كمعرض أعمال — على المعاينة لمراجعة محمد ----------
 * Same language as the rest of the site: light Almarai at large sizes, thin rules, pill buttons,
 * paper / near-black panels with 60px rounded tops. */

/* Small section label with a short rule before it */
.home-eyebrow {
	display: flex; align-items: center; gap: 14px; margin: 0;
	font-size: var(--t-small); font-weight: 500; line-height: 1.2em; letter-spacing: .02em; color: var(--c-muted);
}
.home-eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }

/* Hero: «مصمم متاجر إلكترونية» + platforms under the name (in the h1), and a quiet link to the works */
.home-hero__cta-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-black); color: var(--c-white); transition: background-color .4s, color .4s; }
.home-hero__cta-icon svg { width: 13px; height: 13px; fill: currentColor; transform: rotate(180deg); }
.home-hero__cta:is(:hover, :focus-visible) { background: var(--c-black); color: var(--c-white); }
.home-hero__cta:is(:hover, :focus-visible) .home-hero__cta-icon { background: var(--c-white); color: var(--c-black); }

/* Buttons */
.home-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 34px; border: 1px solid var(--c-white);
	border-radius: 100px; background: var(--c-white); color: var(--c-black);
	font-size: var(--t-h6); font-weight: 500; line-height: 1.2em; transition: background-color .4s, color .4s, border-color .4s;
}
.home-btn:is(:hover, :focus-visible) { background: transparent; color: var(--c-white); }
.home-btn--ghost { background: transparent; color: var(--c-white); }
.home-btn--ghost:is(:hover, :focus-visible) { background: var(--c-white); color: var(--c-black); }
.home-btn--dark { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }
.home-btn--dark:is(:hover, :focus-visible) { background: transparent; color: var(--c-black); }
.home-btn--arrow { padding: 13px 14px 13px 30px; }
.home-btn__icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-white); color: var(--c-black); transition: background-color .4s, color .4s; }
.home-btn__icon svg { width: 13px; height: 13px; fill: currentColor; transform: rotate(270deg); }
.home-btn--dark:is(:hover, :focus-visible) .home-btn__icon { background: var(--c-black); color: var(--c-white); }

/* Chips (platforms, kinds) */
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-chips li {
	padding: 7px 15px; border: 1px solid rgb(0 0 0 / .2); border-radius: 100px;
	font-family: var(--f-en); font-size: 12px; font-weight: 500; line-height: 1.2em; letter-spacing: .06em; color: var(--c-ink);
}
.home-chips--soft li { border-color: transparent; background: rgb(255 255 255 / .65); font-family: var(--f-ar); font-size: 14px; letter-spacing: 0; }

/* Services: an editorial list — big light numbers and titles, thin rules */
.home-services__inner--text { gap: 0; max-width: 1500px; margin: 0 auto; padding: 4vh 2vw 2vh; }
.home-services__head { display: flex; flex-direction: column; gap: 28px; margin-bottom: 8vh; }
.home-services__lead { max-width: 20em; margin: 0; font-size: clamp(32px, 2.7vw, 58px); font-weight: 300; line-height: 1.35em; color: var(--c-black); }
.home-services__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(0 0 0 / .18); }
.home-service {
	display: grid; grid-template-columns: minmax(90px, 9vw) minmax(0, 1.05fr) minmax(0, 1fr); gap: 3vw; align-items: start;
	padding: 46px 0; border-bottom: 1px solid rgb(0 0 0 / .18);
}
.home-service__num { font-family: var(--f-en); font-size: clamp(40px, 3.4vw, 72px); font-weight: 200; line-height: .9em; color: var(--c-muted); transition: color .4s; }
.home-service__title { margin: 0; font-size: clamp(30px, 2.5vw, 54px); font-weight: 300; line-height: 1.2em; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.home-service__body { display: flex; flex-direction: column; gap: 20px; padding-top: .4em; }
.home-service__text { margin: 0; font-size: var(--t-h6); line-height: 1.85em; color: var(--c-ink); }
@media (hover: hover) {
	.home-service:hover .home-service__num { color: var(--c-black); }
	.home-service:hover .home-service__title { transform: translateX(-10px); }
}
.home-services__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 6vh; }
.home-services__extras { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.home-services__extras-label { font-size: var(--t-small); color: var(--c-muted); }

/* «ابدأ اليوم»: two buttons */
.home-start__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 0 40px; }

/* About + short questions, after the reviews: two columns on wide screens */
.home-intro {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start;
	max-width: 1500px; margin: 0 auto; padding: 10vh 6vw 14vh;
}
.home-intro__about { display: flex; flex-direction: column; gap: 26px; }
.home-intro__title { margin: 0; font-size: clamp(32px, 2.6vw, 56px); font-weight: 300; line-height: 1.25em; }
.home-intro__text { margin: 0; font-size: var(--t-h6); line-height: 1.95em; color: var(--c-ink); }
.home-faq { border-top: 1px solid rgb(0 0 0 / .18); }
.home-faq__item { border-bottom: 1px solid rgb(0 0 0 / .18); }
.home-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0;
	font-size: clamp(18px, 1.15vw, 24px); font-weight: 400; line-height: 1.4em; cursor: pointer; list-style: none;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::after {
	content: "+"; flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border: 1px solid rgb(0 0 0 / .25); border-radius: 50%; font-family: var(--f-en); font-size: 20px; font-weight: 300;
	transition: transform .4s, background-color .4s, color .4s;
}
.home-faq__item[open] summary::after { transform: rotate(45deg); background: var(--c-black); color: var(--c-white); }
.home-faq__item p { margin: -6px 0 26px; max-width: 34em; font-size: var(--t-h6); line-height: 1.9em; color: var(--c-ink); }

@media (max-width: 1024px) {
	.home-service { grid-template-columns: 70px minmax(0, 1fr); gap: 14px 22px; padding: 34px 0; }
	.home-service__body { grid-column: 2; padding-top: 0; }
	.home-intro { grid-template-columns: 1fr; gap: 50px; padding: 80px 30px 100px; }
}
@media (max-width: 767px) {
	.home-services__inner--text { padding: 0 20px; }
	.home-services__head { gap: 20px; margin-bottom: 36px; }
	.home-services__lead { font-size: 26px; line-height: 1.45em; }
	.home-service { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
	.home-service__body { grid-column: 1; gap: 16px; }
	.home-service__num { font-size: 34px; }
	.home-service__title { font-size: 28px; }
	.home-services__foot { flex-direction: column; align-items: flex-start; margin-top: 32px; }
	.home-btn { padding: 15px 28px; font-size: 15px; }
	.home-btn--arrow { padding: 11px 12px 11px 26px; }
	.home-start__buttons { margin-bottom: 24px; }
	.home-intro { gap: 40px; padding: 64px 20px 80px; }
	.home-intro__title { font-size: 28px; }
}

/* ---------- D-044 (2026-11-17): the hero at every width ----------
 * Phones and tablets: the name stays put (on desktop the two lines slide apart with scrolling;
 * on narrow screens they crossed, so «تامر» read before «محمد»): «محمد» flush right, «تامر»
 * stepped in under it. Phones: the photo sized from the screen width (as on a 390px phone at
 * every phone width: no cut head at 495–767). Tablets / small laptops: photo on the left part
 * only, the name on the right (they overlapped and the photo was cut). */
@media (max-width: 1024px) {
	.home-hero__stage { width: 100%; min-height: min(88vh, 92vw); }
	.home-hero__photo { left: -4vw; bottom: -2vw; width: 62%; height: 100%; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.home-hero__stage { width: 100%; }
	/* «ابدأ اليوم» was 130vw tall here (1331px at 1024) while its dotted picture ended ~400px
	 * earlier: a blank white band before the reviews. One screen tall, the picture as before
	 * (120% wide) and centred, so the words stay on its black middle. */
	.home-start { min-height: 100vh; }
	.home-start .fx-bg__layer { background-position: center center; }
	/* the sentence on two lines, inside the picture's black middle (one line ran onto the white dots) */
	.home-start__sub { max-width: 64vw; margin-inline: auto; }
	.home-start h2 { margin-bottom: 18px; }
	.home-start__text > div { gap: 12px; }
}
/* «ابدأ اليوم» at 13vw plus the section's zoom (up to ×1.4) cut «وحول فكرتك إلى واقع» at both
 * sides on tablets and phones: 10vw keeps it inside the screen through the zoom. */
@media (max-width: 1024px) {
	.home-start h2, .home-start__sub { font-size: 10vw; }
}
@media (max-width: 767px) {
	.home-start h2, .home-start__sub { font-size: 9vw; }
}
@media (max-width: 767px) {
	.home-hero__stage { min-height: 95vw; }
	.home-hero__photo { left: -14vw; bottom: -13.6vw; width: 100%; height: 147vw; }
}

/* ---------- D-045 (2026-11-17): work cards ----------
 * The whole card opens the work (a cover link over it; the title stays the real link for keyboards
 * and search engines). Name + one short line instead of the long title and the tag list. The arrow
 * no longer jumps on hover; two soft rings spread from its circle (a water-drop ripple) to say «open». */
.home-card__shape { cursor: pointer; }
.home-card__link { color: inherit; }
.home-card__name { display: block; }
.home-card__line { display: block; margin-top: .4em; font-size: var(--t-h6); font-weight: 400; line-height: 1.3em; opacity: .85; }
.home-card__arrow { position: relative; }
.home-card__arrow svg { animation: none !important; }
.home-card__arrow::before, .home-card__arrow::after {
	content: ""; position: absolute; inset: -1px; border: 1px solid var(--c-white); border-radius: 100px;
	opacity: 0; pointer-events: none; animation: card-ripple 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.home-card__arrow::after { animation-delay: 1.3s; }
@keyframes card-ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-card__arrow::before, .home-card__arrow::after { animation: none; } }
@media (max-width: 767px) {
	.home-card__title { font-size: 26px; }
	.home-card__line { font-size: 14px; }
}

/* ---------- D-045: the platform bubbles around the photo ----------
 * Same box as the old bubbles picture (2560×2533, contained at the bottom centre of the photo
 * layer), so each bubble sits where the old one was. Glass look in CSS, the brand mark in black,
 * a slow float each (compositor-only transform), none with reduced motion. */
.home-hero__photo--icons > div { container-type: size; }
.home-hero__icons {
	position: absolute; left: 50%; bottom: 0; width: min(100cqw, 100cqh * 1.01066); aspect-ratio: 2560 / 2533;
	transform: translateX(-50%);
}
.home-hero__icon {
	position: absolute; display: grid; place-items: center; width: 11.2%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 34% 28%, #fff 0 14%, rgb(255 255 255 / .82) 30%, rgb(232 233 236 / .7) 60%, rgb(196 200 208 / .75) 100%);
	border: 1px solid rgb(255 255 255 / .95);
	box-shadow: inset 0 -.5em 1em rgb(0 0 0 / .1), inset 0 .35em .7em rgb(255 255 255 / .9), 0 .8em 1.6em rgb(0 0 0 / .14);
	animation: hero-float 6s ease-in-out infinite;
}
.home-hero__icon svg { width: 46%; height: auto; fill: var(--c-black); }
.home-hero__icon--1 { left: 77%; top: 32.8%; animation-delay: -1.5s; }   /* Salla, right of the face */
.home-hero__icon--2 { left: 10.9%; top: 18.6%; animation-delay: -3s; }   /* Shopify, top left */
.home-hero__icon--3 { left: 78.1%; top: 63.2%; animation-delay: -4.5s; } /* WordPress, right low */
.home-hero__icon--4 { left: 14.1%; top: 70.4%; animation-delay: 0s; }    /* Figma, bottom left */
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9%); } }
@media (prefers-reduced-motion: reduce) { .home-hero__icon { animation: none; } }
/* phones: the old phone picture (hero-top-mobile-800) had its bubbles moved away from the name */
@media (max-width: 767px) {
	.home-hero__icon--1 { left: 60.5%; top: 16.7%; } /* D-069: just left of «تامر» (Mohamed), was above the head */
	.home-hero__icon--2 { left: 17.6%; top: 5.9%; }
	.home-hero__icon--4 { left: 15.6%; top: 72.3%; }
}
/* the role line and the platforms line exactly as wide as each other (home.js sets the spacing) */

/* ---------- D-045: «ابدأ اليوم» on tablets and phones moves as on desktop ----------
 * The section is taller than the screen and its picture + words stay pinned while it scrolls
 * (desktop: sticky pin in a 130vw section); the dotted picture fits the screen's height so its
 * black middle frames the words as on desktop. */
@media (max-width: 1024px) {
	.home-start { min-height: 170vh; justify-content: flex-start; }
	.home-start__pin { position: sticky; top: 0; min-height: 100vh; }
	.home-start__text { min-height: 100vh; margin-bottom: 0; }
}
@media (max-width: 767px) {
	.home-start .fx-bg__layer { background-size: auto 100%; background-position: center center; }
}

/* A card fully covered by the next one (home.js) */
.home-card.is-covered, .home-services.is-covered { visibility: hidden; }

/* ---------- D-046 (2026-11-17): the name block, rebuilt ----------
 * Was: the name pushed up by an old 20vw padding, the link placed by a guess (top: 100% − 20vw),
 * and Elementor's scroll move measured while the entrance animation was still running, so the
 * lines jumped at the first scroll and came back elsewhere at the top. Now one block, centred
 * between the header and the curve, sized from the screen (width and height), with «تامر»
 * stepped in by the same proportion everywhere; the slide is computed from scrollY (home.js),
 * so the top of the page is always the resting place. */
@media (min-width: 1025px) { .home-hero__stage { min-height: max(680px, 100vh); } }
.home-hero__head {
	--name: clamp(110px, min(10.5vw, 18vh), 200px);
	--step: calc(var(--name) * 1.25);
	position: absolute; z-index: 22; top: 100px; right: 6vw; bottom: 9vw;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.home-hero__name { margin: 0; font-family: var(--f-ar); font-size: var(--name); font-weight: 300; line-height: 1em; }
.home-hero__line { display: block; }
.home-hero__line--last { margin-top: -.06em; padding-inline-start: 1.25em; }
.home-hero__slide { display: block; transition: transform .25s cubic-bezier(.2, .6, .3, 1); }
.home-hero__role {
	display: block; margin-top: .45em; font-size: clamp(20px, calc(var(--name) * .17), 32px); font-weight: 300; line-height: 1.3em; color: var(--c-black);
}
.home-hero__role-text { display: inline-block; }
.home-hero__platforms {
	display: block; margin-top: .7em; font-family: var(--f-en); font-size: clamp(11px, calc(var(--name) * .075), 14px); font-weight: 500;
	line-height: 1.2em; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: var(--c-muted); text-align: right;
}
.home-hero__platforms.is-fitted { width: max-content; }
.home-hero__cta {
	position: relative; margin-top: clamp(24px, 4vh, 44px); margin-inline-start: var(--step);
	display: inline-flex; align-items: center; gap: 14px; padding: 13px 16px 13px 26px;
	border: 1px solid var(--c-black); border-radius: 100px;
	font-size: var(--t-h6); font-weight: 500; line-height: 1.2em; color: var(--c-black);
	transition: background-color .4s, color .4s;
}
@media (max-width: 1024px) {
	.home-hero__head { --name: 11vw; top: 90px; right: 4vw; bottom: 8vw; }
	.home-hero__cta { display: none; }
}
@media (max-width: 767px) {
	/* phones: the name on the right of the photo, centred in the space above the arm and the curve;
	 * the line under it back to the right edge (clear of the photo) */
	.home-hero__head { --name: 13vw; top: 2vw; right: 4vw; bottom: 30vw; }
	/* sized from the width like the photo and the name (17px / 8.5px at 390), so at 320 the line
	 * does not run onto the jacket (D-047) */
	.home-hero__role { margin-inline-start: calc(var(--step) * -1); margin-top: .6em; font-size: min(4.36vw, 22px); }
	.home-hero__platforms { font-size: min(2.18vw, 11px); }
}

/* ---------- D-047 (2026-11-17): the seam under the photo, the same at every width ----------
 * The wave was a fixed-size mask (contain, 10vw / 70px tall) sitting 19px into the dark section,
 * whose top-left corner was rounded (and in Chrome drawn by a paper «cap»). Depending on the width
 * its feet stuck out past the rounded corner (a spike at the left: 768–1024 and on desktop), its
 * hills were cut flat (phones 480–767: the 70px box was shorter than the wave), and a paper
 * wedge showed the photo's straight bottom edge. Now the wave is drawn at its own proportions
 * (833 × 129) from the very left, its base exactly on the dark section's top, and that corner is
 * square (the wave covers it). Only the right corner stays rounded (none on phones: the wave
 * spans the whole width there). */
.home-hero { margin-bottom: 0; }
.home-hero__curve {
	left: 0; bottom: -2px; width: 70vw; height: calc(70vw * 129 / 833);
	-webkit-mask: var(--mask) left bottom / 100% 100% no-repeat;
	mask: var(--mask) left bottom / 100% 100% no-repeat;
}
.home-roles { border-top-left-radius: 0; }
html.is-blink .home-roles::before { display: none; }
@media (max-width: 1024px) {
	.home-hero__curve { left: 0; width: 80vw; height: calc(80vw * 129 / 833); }
}
@media (max-width: 767px) {
	.home-hero__curve { left: -2vw; bottom: -2px; width: 100vw; height: calc(100vw * 129 / 833); } /* the stage starts 2vw in on phones */
	.home-roles { border-radius: 0; }
}
/* The role words zoom up to ×2 on desktop: at 80px (the old floor) «E-commerce» reached the
 * screen's edges at 1025–1100. Sized from the width alone now (61px at 1025, 120px from 2000). */
.home-role p { font-size: clamp(56px, 6vw, 120px); }
.home-role--plus p { font-size: clamp(96px, 9vw, 180px); }
@media (max-width: 1024px) {
	.home-role p { font-size: 10vw; }
	.home-role--plus p { font-size: 13vw; }
}

/* ---------- D-047: «ابدأ اليوم» stays inside the screen through its zoom (×1.4) ----------
 * «وحول فكرتك إلى واقع» is 8.7em wide: at 120px it ran off both sides on laptops (1280) while the
 * section zoomed, and on phones the sentence and the two buttons did too (320–430). Desktop: the
 * size follows the width (120px from 1670px up). Tablets and phones: the sentence on two lines
 * (as on tablets since D-044), the buttons one under the other on phones. */
.home-start h2, .home-start__sub { font-size: min(7.5rem, 7.2vw); }
@media (max-width: 1024px) {
	.home-start h2, .home-start__sub { font-size: 10vw; }
	.home-start__sub { max-width: 64vw; margin-inline: auto; }
}
@media (max-width: 767px) {
	.home-start h2, .home-start__sub { font-size: 9vw; }
	.home-start__buttons { flex-direction: column; align-items: center; gap: 10px; }
	.home-start__buttons .home-btn { min-width: 46vw; padding: 13px 22px; font-size: 14px; }
}

/* ---------- D-050: less empty space above the hero on desktop ----------
 * The stage was a full screen tall, so the name sat low with a big blank area over it. Now 88% of
 * the screen, the photo scaled with it (same crop), the name block centred in what is left. */
@media (min-width: 1025px) {
	.home-hero__stage { min-height: max(620px, 88vh); }
	.home-hero__photo { height: 92vh; bottom: -11vh; }
	.home-hero__head { top: 90px; bottom: 8vw; }
}

/* D-067/D-069 (phones): the work's name on the picture again (no black band, Mohamed), smaller,
 * on the sand above the tablet, never over the store's screen. The cards also start lower, so they
 * no longer cover the last «Designer». */
@media (max-width: 767px) {
	.home-roles { padding-bottom: 90px; }
	.home-card .fx-bg__layer { background-position: center 78% !important; }
	.home-card__info { padding: 0 0 8px; }
	.home-card__title { font-size: 22px; line-height: 1.25em; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
	.home-card__line { font-size: 13px; }
	.home-card__arrow { padding: 6px 9px 5px; }
	.home-card__arrow svg { width: 18px; height: 18px; margin-bottom: 5px; }
}
