/* =====================================================================
   Alsudais — landing, immersive menu, preloader & photo treatment
   ===================================================================== */

/* ---------- Photo grade: one consistent look across every image ---------- */
.duo__img, .gcard__img, .story__figure img, .cta-photo__media img, .menu__photo img,
.page-hero__photo img, .team-card__media img, .detail__avatar img, .svc-card__media img, .map__photo img {
	filter: saturate(0.72) contrast(1.06);
}

.hero__img { filter: saturate(0.95) contrast(1.04); }
.cta-photo__media img { filter: saturate(0.85) contrast(1.05); }

/* ---------- Preloader ---------- */
.preloader { display: block; }
.preloader__mark { position: absolute; inset: 0; display: grid; place-items: center; clip-path: none; }
.preloader__mark svg { width: clamp(140px, 22vw, 260px); height: auto; overflow: visible; }
.draw path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 0.35; stroke-linejoin: round; }
.preloader__count { position: absolute; inset-inline-start: var(--gutter); bottom: 36px; font-family: var(--font-en); font-weight: 300; font-size: clamp(3rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.04em; direction: ltr; }
.preloader__count i { font-style: normal; font-size: 0.35em; opacity: 0.5; margin-inline-start: 6px; }
.preloader__name { position: absolute; inset-inline-end: var(--gutter); bottom: 48px; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; direction: ltr; }
.preloader__name em { font-style: normal; opacity: 0.6; }
.preloader__line { position: absolute; inset-inline: 0; top: 0; bottom: auto; height: 2px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 950; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--c-slate); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .progress span { transform-origin: right; }

/* ---------- Cursor label ---------- */
.cursor__label { position: absolute; inset: 0; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px; border-radius: 50%; background: #fff; color: var(--c-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; opacity: 0; transform: scale(0.5); transition: transform 0.35s var(--ease-out), opacity 0.3s; }
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.has-label .cursor__ring, .cursor.has-label .cursor__dot { opacity: 0; }

/* ---------- Header: no inline nav — the menu button is the navigation ---------- */
.nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 6px 0 20px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; color: inherit; transition: border-color 0.4s, background 0.4s; }
[dir="rtl"] .menu-btn { padding: 0 20px 0 6px; }
.menu-btn:hover { border-color: currentColor; }
.menu-btn__label { position: relative; overflow: hidden; height: 1.2em; line-height: 1.2; font-weight: 700; font-size: 0.9rem; min-width: 3.4em; text-align: center; }
.menu-btn__label span { display: block; transition: transform 0.5s var(--ease-out); }
.menu-btn__close { position: absolute; inset: 0; transform: translateY(110%); }
body.menu-open .menu-btn__open { transform: translateY(-110%); }
body.menu-open .menu-btn__close { transform: translateY(0); }
.menu-btn__icon { position: relative; width: 36px; height: 36px; border-radius: 50%; background: currentColor; }
.menu-btn__icon i { position: absolute; inset-inline: 10px; top: 50%; height: 2px; background: var(--c-ink); transition: transform 0.45s var(--ease-out); }
.site-header.is-scrolled .menu-btn__icon i { background: #fff; }
body.menu-open .menu-btn__icon i { background: var(--c-ink); }
.menu-btn__icon i:first-child { transform: translateY(-4px); }
.menu-btn__icon i:last-child { transform: translateY(2px); }
body.menu-open .menu-btn__icon i:first-child { transform: translateY(-1px) rotate(45deg); }
body.menu-open .menu-btn__icon i:last-child { transform: translateY(-1px) rotate(-45deg); }
.site-header.is-scrolled .menu-btn { border-color: var(--c-line-2); }
.burger { display: none; }
@media (max-width: 1024px) { .site-header .lang-switch { display: flex; } .menu-btn__label { display: none; } .menu-btn { padding: 0 5px; } }
@media (max-width: 600px) { .header__cta { display: none; } }

/* ---------- Immersive split menu ---------- */
.menu { position: fixed; inset: 0; z-index: 890; visibility: hidden; pointer-events: none; color: #fff; overflow: hidden; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: var(--c-ink); transform: scaleY(0); transform-origin: top; }
.menu__grid { position: relative; height: 100%; display: grid; grid-template-columns: 42% 1fr; }
.menu__visual { position: relative; overflow: hidden; background: var(--c-deep); }
.menu__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.7s var(--ease-out), transform 1.6s var(--ease-out); filter: saturate(0.85) contrast(1.05); }
.menu__visual img.is-active { opacity: 1; transform: scale(1); }
.menu__visual-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.3), transparent 40%, rgba(3,5,10,0.75)); }
.menu__visual-caption { position: absolute; inset-inline: 40px; bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; }
.menu__visual-num { font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.25em; direction: ltr; }
.menu__visual-mark { width: 56px; opacity: 0.85; }
.menu__visual-mark svg { width: 100%; height: auto; }
.menu__side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 3vh) clamp(28px, 5vw, 80px) 36px; }
.menu__list { display: flex; flex-direction: column; }
.menu__item a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 20px; padding: clamp(10px, 1.6vh, 18px) 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: opacity 0.4s, padding-inline-start 0.5s var(--ease-out); }
.menu__list:hover .menu__item a:not(:hover) { opacity: 0.38; }
.menu__item a:hover { padding-inline-start: 12px; }
.menu__num { font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.15em; opacity: 0.55; }
.menu__text { display: flex; flex-direction: column; gap: 2px; }
.menu__label { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.15; color: #fff; }
.menu__cap { font-size: 0.85rem; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.menu__arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; opacity: 0; transform: translateX(-10px); transition: opacity 0.4s, transform 0.5s var(--ease-out), background 0.3s; }
[dir="rtl"] .menu__arrow { transform: translateX(10px); }
.menu__item a:hover .menu__arrow, .menu__item.is-current .menu__arrow { opacity: 1; transform: translateX(0); }
.menu__item.is-current .menu__arrow { background: #fff; color: var(--c-ink); border-color: #fff; }
.menu__arrow .ico { width: 18px; height: 18px; }
.menu__meta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-top: 28px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.menu__meta-col--end { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.menu__kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; margin-bottom: 12px; }
.menu__meta .contact-lines li { margin-bottom: 8px; }
.menu__meta .contact-lines a { color: #fff; }
.menu__meta .lang-switch__link { font-size: 1rem; }
.menu__cta { padding: 13px 22px; font-size: 0.9rem; }
@media (max-width: 1024px) {
	.menu__grid { grid-template-columns: 1fr; grid-template-rows: 32vh 1fr; }
	.menu__side { padding-top: 28px; overflow-y: auto; }
	.menu__label { font-size: clamp(1.6rem, 6vw, 2.4rem); }
	.menu__meta { grid-template-columns: 1fr; gap: 20px; }
	.menu__visual-caption { inset-inline: 20px; bottom: 20px; }
}
@media (max-width: 600px) { .menu__grid { grid-template-rows: 24vh 1fr; } .menu__cap { display: none; } .menu__item a { padding-block: 10px; } }

/* ---------- Hero (photo) ---------- */
.hero--photo { background: var(--c-ink); padding-top: 0; padding-bottom: 0; min-height: 100svh; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.35) 0%, rgba(39,42,51,0) 35%, rgba(39,42,51,0.15) 62%, rgba(20,22,28,0.9) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0.3; }
.hero__grain { position: absolute; inset: -50%; width: 200%; height: 200%; opacity: 0.07; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.hero__mark-wrap { position: absolute; inset-inline-end: -4vw; top: 8vh; width: 58vmin; pointer-events: none; perspective: 1200px; }
.hero__mark { display: block; color: #fff; opacity: 0.14; transform-style: preserve-3d; }
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
.hero__mark .draw path { fill-opacity: 0; stroke-width: 0.25; }
.hero--photo .hero__inner { padding-top: calc(var(--header-h) + 30vh); padding-bottom: 12vh; max-width: none; }
.hero--photo .hero__title { max-width: 14ch; font-size: clamp(2.8rem, 7vw, 6.2rem); }
body.lang-en .hero--photo .hero__title { max-width: 16ch; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; max-width: 1100px; }
.hero__row .hero__sub { margin-bottom: 0; }
.hero__foot { position: relative; border-top: 1px solid rgba(255,255,255,0.14); }
.ticker { overflow: hidden; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.55); }
.ticker__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-slate-light); }
.hero__scroll { position: absolute; inset-inline-end: var(--gutter); top: -96px; bottom: auto; width: auto; height: auto; background: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll-line { display: block; width: 1px; height: 56px; background: rgba(255,255,255,0.2); overflow: hidden; }
.hero__scroll-line i { display: block; width: 100%; height: 50%; background: #fff; animation: scrollHint 1.8s var(--ease-in-out) infinite; }
.hero__scroll-txt { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
@media (max-width: 860px) {
	.hero__row { grid-template-columns: 1fr; gap: 24px; }
	.hero__mark-wrap { width: 70vw; inset-inline-end: -20vw; top: 12vh; }
	.hero__scroll { display: none; }
}

/* ---------- Stats band ---------- */
.stats { background: var(--c-deep); color: #fff; padding-block: clamp(48px, 6vw, 88px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat--big { position: relative; padding: 8px 28px 8px; border-inline-start: 1px solid rgba(255,255,255,0.14); }
.stat--big .stat__num { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.stat--big .stat__label { margin-top: 8px; }
.stat__idx { position: absolute; top: 8px; inset-inline-end: 24px; font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Story / manifesto ---------- */
.story { padding-block: var(--section); }
.story__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.story__media { position: sticky; top: 120px; }
.story__figure { position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--c-ink); }
.story__figure img { width: 100%; height: 100%; object-fit: cover; }
.story__badge { position: absolute; inset-inline-start: 0; bottom: 0; display: flex; flex-direction: column; padding: 22px 28px; background: #fff; }
.story__badge strong { font-family: var(--font-en); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--c-ink); direction: ltr; letter-spacing: -0.03em; }
.story__badge span { font-size: var(--fs-small); color: var(--c-slate-2); }
.manifesto { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1.55; color: var(--c-ink); margin: 8px 0 40px; }
.manifesto .split-word { display: inline; }
.story .pillars { grid-template-columns: 1fr 1fr; }
.pillar__num { display: block; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.15em; color: var(--c-slate); margin-bottom: 14px; }
@media (max-width: 900px) { .story__inner { grid-template-columns: 1fr; } .story__media { position: static; max-width: 440px; } }

/* ---------- Duo: two big photo panels ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px 6px; background: #fff; }
.duo__panel { position: relative; display: block; min-height: clamp(420px, 70vh, 720px); overflow: hidden; color: #fff; background: var(--c-ink); }
.duo__img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.duo__panel:hover .duo__img { transform: scale(1.05); }
.duo__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.1) 30%, rgba(39,42,51,0.9) 100%); transition: background 0.5s; }
.duo__body { position: absolute; inset-inline: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.duo__num { font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.2em; opacity: 0.6; }
.duo__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.15; }
.duo__text { color: rgba(255,255,255,0.75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease-out), opacity 0.5s; }
.duo__panel:hover .duo__text { max-height: 160px; opacity: 1; }
.duo__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem; }
.duo__more .ico { transition: transform var(--dur) var(--ease-out); }
.duo__panel:hover .duo__more .ico-arrow { transform: translateX(6px); }
[dir="rtl"] .duo__panel:hover .duo__more .ico-arrow { transform: scaleX(-1) translateX(6px); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo__text { max-height: none; opacity: 1; } }

/* ---------- Horizontal gallery of practice areas ---------- */
.gallery { padding-block: var(--section) 0; background: var(--c-paper); overflow: hidden; }
.gallery__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.gallery__viewport { position: relative; padding-bottom: var(--section); }
.gallery__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.gcard { position: relative; display: block; flex: none; width: clamp(280px, 26vw, 400px); aspect-ratio: 3/4; overflow: hidden; background: var(--c-ink); color: #fff; transform-style: preserve-3d; }
.gcard__media { position: absolute; inset: 0; }
.gcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gcard:hover .gcard__img { transform: scale(1.07); }
.gcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.15) 0%, rgba(39,42,51,0.05) 40%, rgba(3,5,10,0.92) 100%); }
.gcard__num { position: absolute; top: 22px; inset-inline-start: 24px; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.2em; opacity: 0.7; }
.gcard__body { position: absolute; inset-inline: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; transform: translateY(14px); transition: transform 0.7s var(--ease-out); }
.gcard:hover .gcard__body { transform: translateY(0); }
.gcard__icon { width: 30px; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.gcard__icon .ico { width: 30px; height: 30px; }
.gcard__title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; }
.gcard__text { font-size: 0.9rem; color: rgba(255,255,255,0.72); opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.5s, max-height 0.7s var(--ease-out); }
.gcard:hover .gcard__text { opacity: 1; max-height: 120px; }
.gcard__stat { font-family: var(--font-en); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; direction: ltr; text-align: start; }
.gcard__stat small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; opacity: 0.7; }
.gcard--end { display: grid; place-items: center; align-content: center; gap: 18px; background: var(--c-slate); text-align: center; }
.gcard__end-mark { width: 64px; opacity: 0.5; }
.gcard__end-mark svg { width: 100%; height: auto; }
.gcard__end-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; }
.gcard__end-more .ico { width: 32px; height: 32px; transition: transform var(--dur) var(--ease-out); }
.gcard--end:hover .ico-arrow { transform: translateX(8px); }
[dir="rtl"] .gcard--end:hover .ico-arrow { transform: scaleX(-1) translateX(8px); }
.gallery__progress { margin-top: 32px; height: 1px; background: var(--c-line-2); position: relative; }
.gallery__progress span { position: absolute; inset: 0; background: var(--c-ink); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .gallery__progress span { transform-origin: right; }
@media (max-width: 899px) {
	.gallery__head { grid-template-columns: 1fr; gap: 12px; }
	.gallery__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
	.gallery__track::-webkit-scrollbar { display: none; }
	.gcard { scroll-snap-align: start; width: 78vw; }
	.gcard__text { opacity: 1; max-height: none; }
	.gallery__progress { display: none; }
}

/* ---------- Process ---------- */
.process { padding-block: var(--section); }
.process__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.process__head { position: sticky; top: 120px; }
.process__head .btn { margin-top: 12px; }
.steps { position: relative; padding-inline-start: 48px; }
.steps__line { position: absolute; inset-inline-start: 11px; top: 12px; bottom: 12px; width: 2px; height: calc(100% - 24px); overflow: visible; }
.steps__line line { stroke: var(--c-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.step { position: relative; padding-bottom: clamp(36px, 5vw, 64px); }
.step:last-child { padding-bottom: 0; }
.step__dot { position: absolute; inset-inline-start: -48px; top: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-line-2); background: #fff; transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-out); }
.step__dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c-ink); transform: scale(0); transition: transform 0.5s var(--ease-out); }
.step.is-active .step__dot { border-color: var(--c-ink); }
.step.is-active .step__dot::after { transform: scale(1); }
.step__num { display: block; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.15em; color: var(--c-slate); margin-bottom: 8px; }
.step__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 10px; transition: color 0.4s; }
.step__text { max-width: 52ch; color: var(--c-text); }
.step:not(.is-active) .step__title { color: var(--c-line-2); }
@media (max-width: 900px) { .process__inner { grid-template-columns: 1fr; } .process__head { position: static; } }

/* ---------- Team on landing ---------- */
.team--landing { padding-block: var(--section); }

/* ---------- CTA with photo ---------- */
.cta-photo { position: relative; overflow: hidden; color: #fff; padding-block: clamp(96px, 14vw, 200px); background: var(--c-ink); }
.cta-photo__media { position: absolute; inset: -12% 0; }
.cta-photo__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.3), rgba(3,5,10,0.7)); }
.cta-photo__inner { position: relative; max-width: 860px; margin-inline: 0; }
.cta-photo__title { color: #fff; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 20px; }
.cta-photo__text { color: rgba(255,255,255,0.75); font-size: var(--fs-lead); max-width: 560px; margin-bottom: 36px; }
.cta-photo__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Inner page hero with photo ---------- */
.page-hero__photo { position: absolute; inset: 0; overflow: hidden; }
.page-hero__photo img { width: 100%; height: 110%; object-fit: cover; filter: saturate(0.6) contrast(1.05); }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.7), rgba(39,42,51,0.92)); }
.page-hero--photo .page-hero__bg { z-index: 1; }
.page-hero--photo .page-hero__inner { z-index: 2; }

/* ---------- Service cards with photos (services page) ---------- */
.svc-card__media { position: relative; margin: -32px -30px 22px; aspect-ratio: 16/9; overflow: hidden; background: var(--c-ink); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-card__link:hover .svc-card__media img { transform: scale(1.06); }

/* ---------- Map block with photo ---------- */
.map__photo { position: absolute; inset: 0; }
.map__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: transform 1.2s var(--ease-out); }
.map__link:hover .map__photo img { transform: scale(1.05); }

/* ---------- Magnetic / tilt ---------- */
[data-magnetic] { will-change: transform; }
[data-tilt] { transform-style: preserve-3d; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.hero__img { transform: none; }
	.hero__grain { animation: none; }
	.menu__bg { transform: none; }
	.gallery__track { overflow-x: auto; width: auto; }
}

/* ---------- Services page: photo rows ---------- */
.svc-row__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.05); }
.svc-row__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.2), rgba(39,42,51,0.75)); z-index: 1; }
.svc-row__visual::after { z-index: 2; }
.svc-row__num, .svc-row__icon { position: relative; z-index: 3; }
.svc-row__num { position: absolute; }

/* ---------- Team stage ---------- */
.stage { padding-block: var(--section); background: var(--c-paper); }
.stage__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stage__visual { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--c-ink); position: sticky; top: 110px; }
.stage__portrait { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease-out), transform 1.8s var(--ease-out); }
.stage__portrait.is-active { opacity: 1; transform: scale(1); }
.stage__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05); }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(3,5,10,0.55)); pointer-events: none; }
.stage__counter { position: absolute; inset-inline-start: 28px; bottom: 26px; display: flex; gap: 8px; align-items: baseline; color: #fff; font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.25em; direction: ltr; }
.stage__counter i { font-style: normal; opacity: 0.5; }
.stage__counter span:first-child { font-size: 1.6rem; letter-spacing: 0; font-weight: 600; }
.stage__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.15); }
.stage__bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .stage__bar span { transform-origin: right; }
.stage__list { border-top: 1px solid var(--c-line-2); }
.stage__item { border-bottom: 1px solid var(--c-line-2); }
.stage__head { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "num name" "num role"; column-gap: 18px; width: 100%; text-align: start; padding: clamp(18px, 2.6vw, 30px) 0; cursor: pointer; transition: padding-inline-start 0.5s var(--ease-out); }
.stage__item.is-active .stage__head, .stage__head:hover { padding-inline-start: 10px; }
.stage__num { grid-area: num; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.15em; color: var(--c-slate); padding-top: 0.6em; }
.stage__name { grid-area: name; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; color: var(--c-line-2); transition: color 0.4s; }
.stage__item.is-active .stage__name, .stage__head:hover .stage__name { color: var(--c-ink); }
.stage__role { grid-area: role; font-size: 0.9rem; color: var(--c-slate); margin-top: 4px; }
.stage__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.stage__item.is-active .stage__body { grid-template-rows: 1fr; }
.stage__body-inner { overflow: hidden; padding-inline-start: 62px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.stage__item.is-active .stage__body-inner { opacity: 1; transform: none; padding-bottom: clamp(20px, 2.6vw, 30px); }
.stage__tag { color: var(--c-text); max-width: 52ch; }
.stage__facts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.stage__facts li { position: relative; padding-inline-start: 20px; font-size: 0.95rem; color: var(--c-text); }
.stage__facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 10px; height: 1px; background: var(--c-slate); }
.stage__more { margin-top: 20px; }
@media (max-width: 900px) {
	.stage__grid { grid-template-columns: 1fr; }
	.stage__visual { position: relative; top: 0; max-width: 420px; aspect-ratio: 4/5; }
	.stage__body-inner { padding-inline-start: 0; }
}

/* ---------- Stats band polish ---------- */
.stats__grid { gap: 0; }
.stat--big { padding: 12px 32px 12px; }
.stat--big .stat__num { font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 500; }
.stat--big .stat__label { color: rgba(255,255,255,0.62); font-size: 0.95rem; }
.stat--big:first-child { border-inline-start: 0; padding-inline-start: 0; }

/* ---------- Team triptych ---------- */
.trip { padding-block: var(--section) 0; background: var(--c-paper); }
.trip .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.trip__row { display: flex; gap: 6px; height: clamp(540px, 82vh, 860px); padding: 0 6px 6px; }
.trip__panel { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--c-ink); color: #fff; transition: flex 0.9s var(--ease-out); isolation: isolate; }
.trip__panel.is-active { flex: 1.9; }
.trip__media { position: absolute; inset: 0; }
.trip__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter 0.9s, transform 1.4s var(--ease-out); }
.trip__panel.is-active .trip__img { filter: grayscale(0) saturate(0.85) contrast(1.05); transform: scale(1); }
.trip__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,42,51,0.1) 35%, rgba(3,5,10,0.85) 100%); transition: background 0.6s; }
.trip__panel.is-active .trip__shade { background: linear-gradient(180deg, rgba(39,42,51,0) 25%, rgba(3,5,10,0.92) 100%); }
.trip__num { position: absolute; top: 26px; inset-inline-start: 28px; font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.25em; opacity: 0.75; }
.trip__body { position: absolute; inset-inline: clamp(22px, 2.6vw, 40px); bottom: clamp(22px, 2.6vw, 36px); z-index: 2; }
.trip__name { font-size: clamp(1.4rem, 2.4vw, 2.4rem); color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip__panel:not(.is-active) .trip__name { writing-mode: initial; }
.trip__role { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; }
.trip__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease-out); }
.trip__panel.is-active .trip__detail { grid-template-rows: 1fr; }
.trip__detail-inner { overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity 0.5s 0.15s, transform 0.7s 0.15s var(--ease-out); }
.trip__panel.is-active .trip__detail-inner { opacity: 1; transform: none; padding-top: 18px; }
.trip__tag { font-size: 0.95rem; color: rgba(255,255,255,0.8); max-width: 46ch; }
.trip__facts { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
.trip__facts li { position: relative; padding-inline-start: 18px; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.trip__facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 9px; height: 1px; background: rgba(255,255,255,0.6); }
.trip__more { margin-top: 20px; padding: 12px 20px; font-size: 0.88rem; position: relative; z-index: 3; }
.trip__hit { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 900px) {
	.trip__row { flex-direction: column; height: auto; }
	.trip__panel { flex: none; height: 200px; transition: height 0.7s var(--ease-out); }
	.trip__panel.is-active { flex: none; height: 520px; }
	.trip__img { filter: none; }
}

/* ---------- Client logos: clear and large ---------- */
.marquee__item { height: 140px; opacity: 1; filter: none; padding: 0 8px; }
.marquee__item img { max-height: 120px; max-width: 260px; width: auto; object-fit: contain; }
.marquee__track { gap: clamp(56px, 7vw, 120px); animation-duration: 55s; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 700px) { .marquee__item { height: 100px; } .marquee__item img { max-height: 84px; max-width: 180px; } }

/* ---------- Triptych refinements ---------- */
.trip__img { object-position: center 22%; }
@media (max-width: 900px) { .trip__facts { display: none; } .trip__panel.is-active { height: 460px; } }

/* ---------- Dossier (team full profile) ---------- */
.modal--dossier .modal__panel { width: min(1320px, 100%); background: var(--c-ink); color: #fff; box-shadow: none; }
.modal--dossier .modal__close { background: transparent; }
.modal--dossier .modal__close span { background: #fff; }
.modal--dossier .modal__body { padding: 0; }
.dossier { position: relative; display: grid; grid-template-columns: 0.82fr 1.18fr; min-height: 100%; isolation: isolate; }
.dossier__mark { position: absolute; inset-inline-end: -8%; top: 30%; width: 48vmin; color: #fff; opacity: 0.04; pointer-events: none; z-index: 0; }
.dossier__mark svg { width: 100%; height: auto; }
.dossier__side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; background: var(--c-deep); }
.dossier__portrait { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dossier__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(0.8) contrast(1.05); }
.dossier__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,5,10,0.1), rgba(3,5,10,0.95)); }
.dossier__index { position: absolute; top: 28px; inset-inline-start: clamp(24px, 3vw, 48px); font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.25em; z-index: 1; direction: ltr; }
.dossier__id { position: relative; z-index: 1; padding: 0 clamp(24px, 3vw, 48px) clamp(28px, 3vw, 44px); margin-top: -140px; }
.dossier__name { color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.15; margin-bottom: 12px; }
.dossier__lead { color: rgba(255,255,255,0.72); max-width: 44ch; margin-bottom: 22px; }
.dossier__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dossier__link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.dossier__link:hover { color: #fff; }
.dossier__main { position: relative; z-index: 1; padding: clamp(80px, 9vw, 120px) clamp(28px, 5vw, 80px) clamp(48px, 5vw, 72px); }
.dossier__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 4vw, 56px); }
.dossier__tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.dossier__tab span { font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.15em; opacity: 0.6; }
.dossier__tab:hover, .dossier__tab.is-active { background: #fff; color: var(--c-ink); border-color: #fff; }
.dossier__intro { color: rgba(255,255,255,0.8); font-size: var(--fs-lead); margin-bottom: 48px; max-width: 60ch; }
.dossier__section { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid rgba(255,255,255,0.12); }
.dossier__section-head { position: sticky; top: 24px; align-self: start; }
.dossier__section-num { display: block; font-family: var(--font-en); font-size: 2.4rem; font-weight: 200; letter-spacing: -0.03em; color: rgba(255,255,255,0.35); line-height: 1; margin-bottom: 10px; }
.dossier__section-title { color: #fff; font-size: 1.25rem; margin: 0; }
.dossier__section-body ul { display: flex; flex-direction: column; gap: 10px; }
.dossier__section-body li { position: relative; padding-inline-start: 26px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.dossier__section-body li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.85em; width: 12px; height: 1px; background: var(--c-slate-light); }
.dossier__section-body p { color: rgba(255,255,255,0.82); }
.dossier__section-body strong { color: #fff; }
.dossier__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); }
.dossier__nav-link { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid rgba(255,255,255,0.14); transition: background 0.3s, border-color 0.3s; }
.dossier__nav-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); }
.dossier__nav-link--next { grid-template-columns: auto 1fr 56px; }
.dossier__nav-link--next .dossier__nav-thumb { order: 3; }
.dossier__nav-link--next .dossier__nav-text { order: 2; text-align: end; }
.dossier__nav-link--next .ico { order: 1; }
.dossier__nav-link--prev .ico { transform: scaleX(-1); }
[dir="rtl"] .dossier__nav-link--prev .ico { transform: none; }
[dir="rtl"] .dossier__nav-link--next .ico { transform: scaleX(-1); }
.dossier__nav-thumb { width: 56px; height: 56px; overflow: hidden; border-radius: 4px; background: var(--c-deep); }
.dossier__nav-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.dossier__nav-text { display: flex; flex-direction: column; gap: 2px; }
.dossier__nav-text small { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.dossier__nav-text strong { font-family: var(--font-heading); font-size: 1rem; }
@media (max-width: 960px) {
	.dossier { grid-template-columns: 1fr; }
	.dossier__side { position: relative; height: auto; }
	.dossier__portrait { aspect-ratio: 4/5; max-height: 70vh; }
	.dossier__main { padding-top: 40px; }
	.dossier__section { grid-template-columns: 1fr; gap: 12px; }
	.dossier__section-head { position: static; display: flex; align-items: baseline; gap: 14px; }
	.dossier__section-num { font-size: 1.4rem; margin: 0; }
	.dossier__nav { grid-template-columns: 1fr; }
}

/* ---------- Dossier: centred dialog instead of a side drawer ---------- */
.modal--dossier .modal__panel { inset-block: 5vh; inset-inline: 0; margin-inline: auto; width: min(1400px, 94vw); border-radius: 14px; overflow: hidden auto; box-shadow: 0 40px 120px rgba(3,5,10,0.5); }
.modal--dossier .modal__close { position: fixed; top: calc(5vh + 12px); inset-inline-end: calc((100vw - min(1400px, 94vw)) / 2 + 12px); inset-inline-start: auto; margin: 0; background: rgba(3,5,10,0.55); border-radius: 50%; backdrop-filter: blur(6px); z-index: 5; }
.modal--dossier .dossier { grid-template-columns: 0.72fr 1.28fr; }
.modal--dossier .dossier__side { height: 90vh; }
.modal--dossier .dossier__main { padding: clamp(56px, 6vw, 88px) clamp(32px, 5vw, 96px) clamp(48px, 5vw, 72px); }
.modal--dossier .dossier__section { grid-template-columns: 220px 1fr; gap: 48px; }
.modal--dossier .dossier__section-body li { font-size: 1.02rem; }
@media (max-width: 960px) {
	.modal--dossier .modal__panel { inset-block: 2vh; width: 96vw; border-radius: 10px; }
	.modal--dossier .modal__close { top: calc(2vh + 8px); inset-inline-end: calc(2vw + 8px); }
	.modal--dossier .dossier__side { height: auto; }
}

/* keep the close button clear of the tab row */
.modal--dossier .dossier__tabs { padding-inline-end: 64px; }

/* ---------- Dossier as real tabs: one section at a time, no page scroll ---------- */
.modal--dossier .modal__panel { overflow: hidden; }
.modal--dossier .dossier { height: 90vh; }
.modal--dossier .dossier__main { display: flex; flex-direction: column; height: 90vh; padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.modal--dossier .dossier__tabs { margin-bottom: clamp(20px, 3vw, 36px); }
.dossier__section { display: none; border-top: 0; padding-block: 0; }
.dossier__section.is-active { display: grid; }
.modal--dossier .dossier__section { flex: 1; min-height: 0; }
.modal--dossier .dossier__section-body { overflow-y: auto; min-height: 0; padding-inline-end: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
.modal--dossier .dossier__section-head { top: 0; }
.modal--dossier .dossier__section-num { font-size: clamp(2.6rem, 4vw, 3.6rem); }
.modal--dossier .dossier__section-title { font-size: 1.4rem; }
.modal--dossier .dossier__nav { margin-top: auto; padding-top: 20px; }
.modal--dossier .dossier__intro { margin-bottom: 20px; }
.dossier__section-body li { font-size: 1.05rem; line-height: 1.8; }
@media (max-width: 960px) {
	.modal--dossier .modal__panel { overflow: hidden auto; }
	.modal--dossier .dossier, .modal--dossier .dossier__main { height: auto; }
	.modal--dossier .dossier__section-body { overflow: visible; }
	.modal--dossier .dossier__nav { margin-top: 28px; }
}

/* ---------- Dossier close: labelled pill on the backdrop, top corner ---------- */
.modal--dossier .modal__panel { inset-block: 8vh 3vh; }
.modal--dossier .dossier, .modal--dossier .dossier__main, .modal--dossier .dossier__side { height: 89vh; }
.modal--dossier .modal__close { position: fixed; top: 18px; inset-inline-end: var(--gutter); inset-inline-start: auto; width: auto; height: 46px; margin: 0; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: #fff; color: var(--c-ink); backdrop-filter: none; box-shadow: 0 10px 30px rgba(3,5,10,0.35); transition: transform 0.4s var(--ease-out), background 0.3s; }
[dir="rtl"] .modal--dossier .modal__close { padding: 0 16px 0 20px; }
.modal--dossier .modal__close:hover { transform: translateY(-2px); background: var(--c-paper); }
.modal--dossier .modal__close span { display: none; }
.modal--dossier .modal__close::before { content: "\00d7"; font-family: var(--font-en); font-size: 1.5rem; line-height: 1; margin-top: -2px; }
.modal--dossier .modal__close::after { content: attr(aria-label); font-weight: 700; font-size: 0.85rem; }
.modal--dossier .dossier__tabs { padding-inline-end: 0; }
@media (max-width: 960px) {
	.modal--dossier .modal__panel { inset-block: 64px 2vh; }
	.modal--dossier .dossier, .modal--dossier .dossier__main, .modal--dossier .dossier__side { height: auto; }
	.modal--dossier .modal__close { top: 12px; inset-inline-end: 12px; }
}

/* ---------- Dossier close: anchored to the dialog corner, tabs start below it ---------- */
.modal--dossier .modal__panel { inset-block: 5vh; }
.modal--dossier .dossier, .modal--dossier .dossier__main, .modal--dossier .dossier__side { height: 90vh; }
.modal--dossier .modal__close { position: absolute; top: 18px; inset-inline-end: 22px; inset-inline-start: auto; box-shadow: 0 8px 24px rgba(3,5,10,0.3); z-index: 6; }
.modal--dossier .dossier__main { padding-top: 84px; }
@media (max-width: 960px) {
	.modal--dossier .modal__panel { inset-block: 2vh; }
	.modal--dossier .dossier, .modal--dossier .dossier__main, .modal--dossier .dossier__side { height: auto; }
	.modal--dossier .modal__close { top: 12px; inset-inline-end: 12px; height: 40px; }
	.modal--dossier .dossier__main { padding-top: 32px; }
}

/* ---------- Stats: numbers align with their captions in RTL, tighter band ---------- */
.stat__num { direction: ltr; unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .stat__num { text-align: right; }
.stat--big { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 32px 4px; }
[dir="rtl"] .stat--big { align-items: flex-start; }
.stat--big .stat__idx { position: static; order: -1; margin-bottom: 14px; color: var(--c-slate-light); }
.stat--big .stat__num { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.stat--big .stat__label { margin-top: 6px; }
.stats { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- Hero video ---------- */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; filter: saturate(0.95) contrast(1.04); }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .hero__canvas { opacity: 0.18; }

/* ---------- Practice areas: static grid, no scroll ---------- */
.gallery--grid .gallery__viewport { padding-bottom: var(--section); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: auto; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.gallery--grid .gcard { width: auto; aspect-ratio: 4/5; }
.gallery--grid .gcard__text { opacity: 1; max-height: none; }
.gallery--grid .gcard__body { transform: none; }
@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); overflow: visible; scroll-snap-type: none; } .gallery--grid .gcard { width: auto; } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } }

/* ---------- Stats: explicit right alignment in Arabic ---------- */
[dir="rtl"] .stat--big { text-align: right; align-items: flex-start; }
[dir="rtl"] .stat--big .stat__num, [dir="rtl"] .stat--big .stat__idx, [dir="rtl"] .stat--big .stat__label { text-align: right; align-self: flex-start; }

/* ---------- Process: horizontal stepper on a dark band ---------- */
.steps { list-style: none; margin: 0; }
.process--row { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; padding-block: var(--section); }
.process__mark { position: absolute; inset-inline-end: -6%; top: -20%; width: 46vmin; color: #fff; opacity: 0.05; pointer-events: none; }
.process__mark svg { width: 100%; height: auto; }
.process--row .container { position: relative; }
.process__head .section-title { color: #fff; }
.steps--row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); padding-inline-start: 0; padding-top: 18px; }
.steps--row .steps__line { position: absolute; inset-inline: 0; top: 30px; bottom: auto; width: 100%; height: 2px; }
.steps--row .steps__line line { stroke: rgba(255,255,255,0.75); }
.steps--row .step { position: relative; padding: 0 0 0 0; padding-top: 44px; border-inline-start: 0; }
.steps--row .step__dot { position: absolute; top: 18px; inset-inline-start: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: var(--c-ink); transition: border-color 0.4s, transform 0.5s var(--ease-out); }
.steps--row .step__dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.5s var(--ease-out); }
.steps--row .step.is-active .step__dot { border-color: #fff; }
.steps--row .step.is-active .step__dot::after { transform: scale(1); }
.steps--row .step__num { display: block; font-family: var(--font-en); font-weight: 200; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; color: rgba(255,255,255,0.28); margin-bottom: 16px; transition: color 0.5s; }
.steps--row .step.is-active .step__num { color: #fff; }
.steps--row .step__title { color: rgba(255,255,255,0.45); font-size: clamp(1.25rem, 1.8vw, 1.6rem); margin-bottom: 10px; transition: color 0.4s; }
.steps--row .step.is-active .step__title { color: #fff; }
.steps--row .step__text { color: rgba(255,255,255,0.65); font-size: 0.95rem; max-width: 30ch; }
.process__cta { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
@media (max-width: 900px) {
	.steps--row { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.steps--row .steps__line { display: none; }
}
@media (max-width: 520px) { .steps--row { grid-template-columns: 1fr; } }

/* stepper layout: heading is not sticky */
.process--row .process__head { position: static; }
.steps--row .steps__line { display: block; background: rgba(255,255,255,0.12); overflow: hidden; }
.steps--row .steps__line i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); }

/* ---------- Split-text masks: room for Arabic dots and ascenders ---------- */
.split-line-mask { padding: 0.18em 0.08em; margin: -0.18em -0.08em; }
.hero--photo .hero__title { line-height: 1.22; }
.page-hero__title, .section-title, .cta-photo__title { line-height: 1.28; }
/* no line masks anymore; give lines normal spacing */
.split-line { overflow: visible; padding: 0.08em 0; }

/* ---------- Process: stacking cards ---------- */
.process--stack { padding-block: var(--section); background: var(--c-paper); }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.stack__card { position: sticky; top: calc(var(--header-h) + 8px + var(--i) * 14px); display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: clamp(380px, 56vh, 520px); background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(39,42,51,0.12); will-change: transform; }
.stack__card--dark { background: var(--c-ink); color: #fff; border-color: transparent; }
.stack__media { position: relative; overflow: hidden; min-height: 260px; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72) contrast(1.06); }
.stack__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(39,42,51,0.35), transparent 60%); }
[dir="rtl"] .stack__media::after { background: linear-gradient(270deg, rgba(39,42,51,0.35), transparent 60%); }
.stack__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 64px); }
.stack__num { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-en); font-weight: 200; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; color: var(--c-slate); margin-bottom: 18px; direction: ltr; align-self: flex-start; }
.stack__num i { font-style: normal; font-size: 0.26em; letter-spacing: 0.1em; opacity: 0.6; }
.stack__card--dark .stack__num { color: rgba(255,255,255,0.8); }
.stack__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 14px; color: inherit; }
.stack__text { max-width: 46ch; color: var(--c-text); font-size: 1.02rem; }
.stack__card--dark .stack__text { color: rgba(255,255,255,0.75); }
.stack__cta { align-self: flex-start; margin-top: 26px; }
.stack__card:not(.stack__card--dark) .stack__cta { background: var(--c-ink); color: #fff; }
@media (max-width: 860px) {
	.stack__card { grid-template-columns: 1fr; top: calc(var(--header-h) + var(--i) * 10px); min-height: 0; }
	.stack__media { min-height: 200px; }
}

/* ---------- Practice areas: bento mosaic ---------- */
.gallery--mosaic .gallery__viewport { padding-bottom: var(--section); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(200px, 24vw, 250px); gap: 14px; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mosaic .gcard { width: auto; aspect-ratio: auto; border-radius: 10px; }
.mosaic .gcard:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic .gcard:nth-child(2), .mosaic .gcard:nth-child(3) { grid-column: span 3; }
.mosaic .gcard:nth-child(n+4) { grid-column: span 2; }
.mosaic .gcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 60%); opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 2; }
.mosaic .gcard:hover::after { opacity: 1; }
.mosaic .gcard__shade { background: linear-gradient(180deg, rgba(39,42,51,0.25) 0%, rgba(39,42,51,0) 45%, rgba(3,5,10,0.9) 100%); }
.mosaic .gcard__body { inset-inline: 26px; bottom: 26px; transform: none; }
.mosaic .gcard__title { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.mosaic .gcard:nth-child(1) .gcard__title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.mosaic .gcard:nth-child(1) .gcard__text { font-size: 1rem; opacity: 1; max-height: none; max-width: 42ch; }
.mosaic .gcard:nth-child(2) .gcard__text, .mosaic .gcard:nth-child(3) .gcard__text { opacity: 1; max-height: none; max-width: 40ch; }
.mosaic .gcard:nth-child(n+4) .gcard__text { opacity: 0; max-height: 0; }
.mosaic .gcard:nth-child(n+4):hover .gcard__text { opacity: 1; max-height: 100px; }
.mosaic .gcard__num { top: 20px; inset-inline-start: 24px; font-size: 0.75rem; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; opacity: 0.9; }
.mosaic .gcard__icon { position: absolute; top: 18px; inset-inline-end: 22px; width: 34px; margin: 0; }
.mosaic .gcard__icon .ico { width: 34px; height: 34px; }
.mosaic .gcard:hover .gcard__img { transform: scale(1.08) rotate(0.5deg); }
@media (max-width: 900px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
	.mosaic .gcard:nth-child(1) { grid-column: span 2; grid-row: span 1; }
	.mosaic .gcard:nth-child(n+2) { grid-column: span 1; }
	.mosaic .gcard__text { display: none; }
}

/* ---------- Menu: no list numbering; fits short screens ---------- */
.menu__list, .stage__list, .dossier__tabs { list-style: none; margin: 0; padding: 0; }
.menu__side { overflow-y: auto; scrollbar-width: none; padding-top: calc(var(--header-h) + 1vh); padding-bottom: 20px; }
.menu__side::-webkit-scrollbar { display: none; }
.menu__label { font-size: clamp(1.5rem, min(3.6vw, 5.4vh), 3.2rem); }
.menu__item a { padding-block: clamp(6px, 1.3vh, 16px); }
.menu__meta { padding-top: clamp(12px, 2.4vh, 28px); }
@media (max-height: 760px) {
	.menu__cap { display: none; }
	.menu__num { font-size: 0.7rem; }
	.menu__meta { grid-template-columns: 1fr auto; font-size: 0.82rem; }
	.menu__meta .contact-lines li { margin-bottom: 4px; }
	.menu__kicker { margin-bottom: 6px; }
	.menu__cta { padding: 10px 16px; font-size: 0.82rem; }
}
