/* Final polish, 22 Nov 2026: consistent buttons, readable micro-labels, stronger muted text. Loaded last on every page. */

/* ── buttons ── */
/* About hero: same shape and type as the site buttons (were blue pills) */
.ab__btn{border-radius:11px;padding:16px 24px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;min-height:52px}
.ab__btn--p{background:linear-gradient(100deg,#C81E32 0%,#E2443D 55%,#F0907A 100%);box-shadow:none}
.ab__btn--p:hover{background:linear-gradient(100deg,#3D5CFF 0%,#6F89FF 55%,#9AB0FF 100%);transform:translateY(-1px)}
.ab__btn:not(.ab__btn--p){border:1.3px solid rgba(238,92,75,.85);background:transparent}
.ab__btn:not(.ab__btn--p):hover{border-color:#6F89FF;background:rgba(61,92,255,.12)}
[dir=rtl] .ab__btn{text-transform:none;letter-spacing:0;font-size:14.5px}
/* In-page CTA cards (articles, project pages): same height as the other primary buttons */
.art3 .icta .btn,.prj3 .p3icta .btn{padding:17px 28px;font-size:13.5px;min-height:54px;white-space:nowrap}
/* Mobile menu: keep the button on one line */
.mmenu__foot .btn{white-space:nowrap;font-size:12.5px;padding:15px 20px}
/* Film button: crisp white label */
.sv-fbtn,.sv-fbtn *{color:#fff!important}
/* Small text links under cards */
.art3 .a3card .a3go,.prj3 .p3cell .p3go{font-size:11.5px;letter-spacing:.1em}
[dir=rtl] .prj3 .p3cell .p3go{font-size:13px;letter-spacing:0}

/* ── micro-labels: nothing under 11px ── */
.pf__id,.hud__ch,.stp__n,.mv__t figcaption,.mv__bar span,.mv__tc,.tl__badge{font-size:11px!important}
.prj3 .p3fx small{font-size:11px;letter-spacing:.16em}
.prj3 .p3play{font-size:11px}
.prj3 .p3hd2,.art3 .a3hd2,.art3 .a3tag{font-size:11px}
.prj3 .p3uh small{font-size:11.5px}
.prj3 .p3cnt{font-size:12px}
.tx .tag,.icd__tag,.pjx__m,.pjx__v,.hx__c small{font-size:11px!important}
.sv-cbtn{font-size:11.5px}

/* ── muted text: one brighter grey everywhere (was #8A90A6, hard to read on navy) ── */
.prj3 .p3fx small,.prj3 .p3cnt,.prj3 .p3hd2,
.art3 .a3facts small,.art3 .a3side small,.art3 .share small,.art3 .ah .c,.art3 .a3hd2,
.ins3 .mon span,
.sv-hint,.sv-no small,.sv-kit,.sv-cap,
.ab__meta span{color:#A9AFC2!important}
.art3 .fig figcaption,.prj3 .p3mi figcaption{color:#C3C8D6}
.art3 .toc a i{color:#7C839A}
.art3 .toc a.on i,.art3 .toc a:hover i{color:#F5A28C}
.pf__id{color:rgba(255,255,255,.62)!important}

/* Project hero: keep the title block clear of the photo */
.prj3 .p3glance{max-width:min(520px,100%);text-shadow:0 2px 18px rgba(6,8,14,.85)}
.prj3 .p3hin h1{text-shadow:0 2px 24px rgba(6,8,14,.6)}
@media (min-width:981px){.prj3 .p3tg{max-width:min(660px,47vw)}}
.prj3 h1.p3long{font-size:clamp(30px,3.3vw,46px);line-height:1.08}
@media (max-width:980px){.prj3 .p3ibar{row-gap:18px}.prj3 .p3fx,.prj3 .p3fx+.p3fx{border-left:0!important;border-right:0!important;padding:0 12px 0 0!important}[dir=rtl] .prj3 .p3fx,[dir=rtl] .prj3 .p3fx+.p3fx{padding:0 0 0 12px!important}}

/* ── Arabic: Cairo needs more size than Latin caps; nothing under 13px, never letter-spaced ── */
[dir=rtl] .icd__tag,[dir=rtl] .icd__meta,[dir=rtl] .mv__t figcaption,[dir=rtl] .mv__bar span,[dir=rtl] .ax__lbl span,[dir=rtl] .ax__lbl em,
[dir=rtl] .stp__n,[dir=rtl] .hud__ch,[dir=rtl] .pf__id,[dir=rtl] .tl__badge,[dir=rtl] .ax__onair .b,
[dir=rtl] .tx .tag,[dir=rtl] .sph__n,[dir=rtl] .pjx__m,[dir=rtl] .pjx__v,[dir=rtl] .hx__c small,[dir=rtl] .hx__k,
[dir=rtl] .crumbs,[dir=rtl] .crumbs a,[dir=rtl] .xh__pill,[dir=rtl] .ft2 h5,[dir=rtl] .art__aside h4,[dir=rtl] .sgear dt,[dir=rtl] .gear h4,
[dir=rtl] .player__hint,[dir=rtl] .lbl2,[dir=rtl] .fa small,[dir=rtl] .wy__v30 span,[dir=rtl] .i3crumb,[dir=rtl] .i3crumb a,[dir=rtl] .i3crumb b,
[dir=rtl] .sv-hint,[dir=rtl] .sv-kit,[dir=rtl] .sv-cap,[dir=rtl] .sv-no small,[dir=rtl] .pj-eb span{font-size:13px!important;letter-spacing:0!important}
[dir=rtl] .sv-cbtn{font-size:13px;letter-spacing:0}
[dir=rtl] .dept__cols h4{font-size:13px!important;letter-spacing:0!important}

/* 24 Nov 2026: looping animations pause while off screen (js/perf.js) */
.is-offscreen,.is-offscreen *{animation-play-state:paused!important}
.is-offscreen:before,.is-offscreen:after,.is-offscreen *:before,.is-offscreen *:after{animation-play-state:paused!important}
/* the site-wide background glow stays still: its slow drift forced the whole page to redraw every frame */
body:before{animation:none!important;will-change:auto!important}
.page--about #wh .whfloor,.page--about #wh .whhaze{display:none!important}
.fx button.is-sending{opacity:.6;pointer-events:none;cursor:progress}
/* Selected projects (25 Nov 2026): two even rows of same-size 16:9 cards (js/main.js). Photos at near-full
   brightness, captions always shown under each card at a normal size, no faded ghost cards */
#projects .pc .im{border-radius:12px;box-shadow:0 18px 40px -18px rgba(0,0,0,.7)}
#projects .pc .im img{filter:saturate(.95) brightness(.9)}
#projects .pc:hover .im img{filter:none}
#projects .pc .cap{opacity:1;margin-top:12px}
#projects .pc .cap b{font-size:16px}
#projects .pc .cap small{font-size:12px}
#projects .pc .view{font-size:11px;right:14px;bottom:12px}
#projects .pc.is-pass{opacity:.18!important}
#projects .pc:hover .im{transform:translateY(-6px)}
/* Projects sphere (25 Nov 2026): labels wrap instead of being cut off, and cards are hidden when they
   turn away so no mirrored text shows through the back of the helix */
.hx .hx__c--t small{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;letter-spacing:.08em;line-height:1.25;font-size:10px!important}
.hx .hx__c{-webkit-backface-visibility:hidden;backface-visibility:hidden}
.hx .hx__c img{image-rendering:auto}
/* label cards match the photo cards: same width and 16:10 shape (js/helix.js) */
.hx .hx__c--t{aspect-ratio:16/10;padding:14px 16px}
.hx .hx__c--t b{font-size:calc(var(--hx-w,200px)*.17)}
.hx .hx__c--t small{font-size:11px!important;letter-spacing:.12em}
/* Projects event types (25 Nov 2026): the title and its translation sit on one line ("Exhibitions  المعارض").
   Each half stays whole, so a pair too long for one line wraps the translation underneath as before */
.pjt__hd .pjt__ttl{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:.5em;margin-top:24px}
.pjt__hd .pjt__ttl h2,.pjt__hd .pjt__ttl .pjt__ar,html[lang=ar] .pjt__hd .pjt__ttl .pjt__ar{margin:0;white-space:nowrap}
@media (max-width:700px){.pjt__hd .pjt__ttl h2,.pjt__hd .pjt__ttl .pjt__ar,html[lang=ar] .pjt__hd .pjt__ttl .pjt__ar{white-space:normal}}
/* Homepage insights (25 Nov 2026): cards a little bigger, the text under the centre card is centred */
.ic--fc .ic__track .icd{flex-basis:clamp(300px,27.5vw,430px)!important}
.ic--fc .icd__cap{text-align:center}
.ic--fc .icd__row{justify-content:center!important;gap:10px}
.ic--fc .icd__story{margin-left:auto;margin-right:auto}
.ic--fc .icd__meta{justify-content:center}
/* Homepage phase line (25 Nov 2026): the look of the services page wave. Number, name and text for every
   phase, above a crest or below a dip; the current phase is white, the others dimmed */
#wh .pn{width:250px;white-space:normal;text-align:left;padding:0;transform:translateX(-42%)}
#wh .pn--up{transform:translate(-42%,-100%)}
#wh .pn .no{font-family:var(--disp);font-size:14px;letter-spacing:.06em;color:#7FA2FF}
#wh .pn .nm{font-family:var(--disp);font-size:24px;font-weight:400;letter-spacing:0;text-transform:none;color:#c7cfe6;margin-top:10px;line-height:1.15}
#wh .pn .ds{font-size:14px;line-height:1.6;color:#8d94a8;margin-top:10px;transition:color .3s}
#wh .pn.on .nm,#wh .pn.lk .nm{color:#fff}
#wh .pn.on .ds{color:#c3cad9}
#wh .pn.done .nm{color:#dfe4f0}
#wh .pdesc{display:none!important}
html[lang=ar] #wh .pn{text-align:right;transform:translateX(-58%)}
html[lang=ar] #wh .pn--up{transform:translate(-58%,-100%)}
html[lang=ar] #wh .pn .nm{font-family:var(--ar,inherit);font-weight:700;font-size:22px}
.whs #wh{height:1450px}
/* Homepage How & who (25 Nov 2026): "The Process" is the headline, "How & who" sits under it */
.whs__sub{font-family:var(--disp);font-weight:400;font-size:clamp(24px,2.3vw,38px);line-height:1.1;margin-top:14px;color:var(--ice,#9DB4FF)}
html[dir=rtl] .whs__sub{font-family:var(--ar);font-weight:700}
.whs__l .whs__t{margin-top:0}
/* Homepage "The Process" (25 Nov 2026): heading block sits a little lower, the title in the thermal colours with a soft glow */
.whs__hd{padding-top:clamp(110px,10vw,160px)}
.whs__t,#whm h2 .big{background:var(--thermal,linear-gradient(90deg,#FFB08A,#EE5C4B 55%,#C8325A));-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 18px rgba(238,92,75,.45)) drop-shadow(0 0 46px rgba(238,92,75,.22))}
#whm{padding-top:48px}
/* phase text smaller, in proportion with the sphere (25 Nov 2026) */
#wh .pn{width:228px}
#wh .pn .no{font-size:12px}
#wh .pn .nm{font-size:17px;margin-top:6px}
#wh .pn .ds{font-size:12.5px;line-height:1.55;margin-top:6px}
html[lang=ar] #wh .pn .nm{font-size:16px}
.whs #wh{height:1390px}
/* no-JS project list (crawlers, script blocked) */
.pj-nojs{max-width:1100px;margin:40px auto;padding:0 24px;color:#cfd6e4}
.pj-nojs h2{font-size:22px;margin:0 0 14px}
.pj-nojs ul{columns:2;gap:32px;padding:0;list-style:none}
.pj-nojs li{padding:5px 0;break-inside:avoid}
.pj-nojs a{color:#fff}
/* source links inside article stand-firsts */
.stand a[target="_blank"]{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.35);transition:text-decoration-color .2s}
.stand a[target="_blank"]:hover{text-decoration-color:currentColor}
/* form send error */
.fm-err{margin:12px 0 0;font-size:14px;color:#fca5a5}
.fm-err a{color:#fff;text-decoration:underline}
