/* المسؤول: web-lead. Studio Shafaq site. One idea: the horizon — every scene rises from a horizontal line,
   and the shin's three crests carry the change from one scene to the next (the identity's "reveal · angle · carry").
   Colours: ONLY the Shafaq palette below (tests/palette.test.mjs fails the build on any other value);
   client colours appear only inside a case, from the client's own brand.json, via --c-* variables. */
:root {
  --night: #1C1A4A;
  --snow: #F3F7FF;
  --lime: #8CF25A;
  --violet: #7B4BE0;
  --pink: #D958B0;
  --glow: #FFB45A; /* rare: one horizon line in the hero only */
  --night-a64: rgb(28 26 74 / .66);
  --night-a20: rgb(28 26 74 / .2);
  --night-a10: rgb(28 26 74 / .1);
  --snow-a72: rgb(243 247 255 / .74);
  --snow-a24: rgb(243 247 255 / .24);
  --snow-a12: rgb(243 247 255 / .12);
  --gut: clamp(16px, 4vw, 56px);
  --hdr: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fs-body: clamp(17px, 1.15vw, 19px);
}
@font-face { font-family: "Somar"; src: url("/assets/fonts/SomarSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Somar"; src: url("/assets/fonts/SomarSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Somar"; src: url("/assets/fonts/SomarSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SomarX"; src: url("/assets/fonts/SomarSans-RegularExpanded.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SomarX"; src: url("/assets/fonts/SomarSans-MediumExpanded.woff2") format("woff2"); font-weight: 500; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--snow); color: var(--night); font-family: "Somar", system-ui, sans-serif; font-size: var(--fs-body); line-height: 1.75; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="en"] body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
p, h1, h2, h3, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dim { opacity: .72; }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
[data-scene="night"] :focus-visible, [data-scene="violet"] :focus-visible, [data-scene="client-dark"] :focus-visible, #site-header[data-on="night"] :focus-visible, #site-header[data-on="violet"] :focus-visible, .menu :focus-visible { outline-color: var(--lime); }
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--lime); color: var(--night); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
html[dir="ltr"] .ico-arrow { transform: scaleX(-1); }

/* ---------- scenes ---------- */
[data-scene="snow"] { background: var(--snow); color: var(--night); }
[data-scene="night"] { background: var(--night); color: var(--snow); }
[data-scene="violet"] { background: var(--violet); color: var(--snow); }
[data-scene="lime"] { background: var(--lime); color: var(--night); }
[data-scene="client-dark"] { background: var(--c-ink); color: var(--c-paper); }
[data-scene="client-light"] { background: var(--c-paper); color: var(--c-ink); }

/* ---------- type ---------- */
.display { font-weight: 500; font-size: clamp(36px, 5.6vw, 88px); line-height: 1.18; max-width: 17ch; margin: .45em 0 .55em; text-wrap: balance; }
.display-xl { font-size: clamp(48px, 9vw, 148px); line-height: 1.08; max-width: 14ch; }
.display-sm { font-size: clamp(30px, 4vw, 58px); }
html[lang="en"] .display { letter-spacing: -.02em; line-height: 1.06; }
.lede { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.8; max-width: 38ch; text-wrap: pretty; }
html[lang="en"] .lede { line-height: 1.55; }
.lede-wide { max-width: 44ch; }
.lede-lg { font-size: clamp(20px, 2.1vw, 31px); line-height: 1.7; max-width: 34ch; }
html[lang="en"] .lede-lg { line-height: 1.45; max-width: 40ch; }
.eyebrow, .hz-label, .cc-index, .svc-n, .step-n, .app-n, .facts dt, .sw-hex, .cs-scrub { font-family: "SomarX", "Somar", sans-serif; font-weight: 500; font-size: 13px; line-height: 1.5; }
html[lang="en"] .eyebrow, html[lang="en"] .hz-label, html[lang="en"] .facts dt { letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }

/* horizon rule with its label */
.hz { display: flex; align-items: center; gap: 14px; }
.hz::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .24; transform-origin: var(--origin, right); }
html[dir="ltr"] .hz::after { --origin: left; }
.hz-label { display: inline-flex; gap: 10px; white-space: nowrap; }
.hz-n { opacity: .6; }

/* rise: every reveal comes up from its own horizon */
.js [data-rise] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .hz[data-rise] { clip-path: none; transform: none; }
.js .hz[data-rise]::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .1s; }
.js .hz[data-rise].is-in::after { transform: scaleX(1); }
.rm [data-rise], .rm .hz[data-rise]::after { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); white-space: nowrap; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-lit { background: var(--lime); color: var(--night); }
.btn-lit:hover { background: var(--snow); }
[data-scene="snow"] .btn-lit:hover, [data-scene="lime"] .btn-lit:hover { background: var(--night); color: var(--snow); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: currentColor; }
.btn-line:hover > * { color: var(--btn-inv, var(--snow)); }
[data-scene="night"] .btn-line:hover > *, [data-scene="violet"] .btn-line:hover > *, [data-scene="client-dark"] .btn-line:hover > *, #site-footer .btn-line:hover > * { color: var(--night); }
[data-scene="client-light"] .btn-line:hover > * { color: var(--c-paper); }
.btn-night { background: var(--night); color: var(--snow); }
.btn-night:hover { background: var(--violet); }

/* ---------- header ---------- */
#site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 24px; padding-inline: var(--gut); color: var(--hdr-fg, var(--snow)); background: var(--hdr-bg, transparent); transition: background-color .45s var(--ease), color .45s var(--ease); }
#site-header[data-on="night"] { --hdr-fg: var(--snow); --hdr-bg: var(--night); }
#site-header[data-on="violet"] { --hdr-fg: var(--snow); --hdr-bg: var(--violet); }
#site-header[data-on="pink"] { --hdr-fg: var(--night); --hdr-bg: var(--pink); }
#site-header[data-on="lime"] { --hdr-fg: var(--night); --hdr-bg: var(--lime); }
#site-header[data-on="snow"] { --hdr-fg: var(--night); --hdr-bg: var(--snow); }
#site-header[data-on="client-dark"] { --hdr-fg: var(--snow); --hdr-bg: var(--c-ink); }
#site-header[data-on="client-light"] { --hdr-fg: var(--night); --hdr-bg: var(--c-paper); }
#site-header[data-top="1"] { --hdr-bg: transparent; }
.hdr-logo { position: relative; display: block; height: 36px; width: 96px; flex: none; }
.hdr-logo .lg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.hdr-logo .lg-night { opacity: 0; }
#site-header[data-on="snow"] .lg-snow, #site-header[data-on="lime"] .lg-snow, #site-header[data-on="pink"] .lg-snow, #site-header[data-on="client-light"] .lg-snow { opacity: 0; }
#site-header[data-on="snow"] .lg-night, #site-header[data-on="lime"] .lg-night, #site-header[data-on="pink"] .lg-night, #site-header[data-on="client-light"] .lg-night { opacity: 1; }
.hdr-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 16px; position: relative; }
.hdr-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-end { display: flex; align-items: center; gap: 12px; }
.hdr-lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; text-decoration: none; font-size: 15px; }
.hdr-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
#site-header[data-on="lime"] .hdr-cta { background: var(--night); color: var(--snow); }
.hdr-menu { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.hdr-menu-bars, .hdr-menu-bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.hdr-menu-bars::before { content: ""; position: absolute; top: 7px; }
.hdr-menu-bars { transform: translateY(-3.5px); }
.menu { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--snow); padding: calc(var(--hdr) + 24px) var(--gut) 32px; display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-size: clamp(36px, 10vw, 64px); font-weight: 500; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid var(--snow-a12); }
.menu-n { font-family: "SomarX", sans-serif; font-size: 13px; opacity: .6; }
.menu-foot { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; padding-top: 32px; }
.menu-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--snow-a24); border-radius: 999px; text-decoration: none; }
.menu-close { position: absolute; top: 12px; inset-inline-end: var(--gut); min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--snow-a24); background: transparent; color: var(--snow); cursor: pointer; }
@media (max-width: 999px) {
  :root { --hdr: 64px; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-end { margin-inline-start: auto; }
  .hdr-menu { display: inline-flex; }
  .hdr-logo { height: 32px; width: 86px; }
}

/* ---------- hero: the scene changes ---------- */
.hero { position: relative; height: 330svh; background: var(--night); }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--night); color: var(--snow); }
.hero-copy { position: absolute; inset: 0; padding: calc(var(--hdr) + 11svh) var(--gut) 0; max-width: 1400px; margin-inline: auto; }
.hero-copy .eyebrow { opacity: .82; }
.hero-h1 { font-weight: 500; font-size: clamp(60px, 12.4vw, 200px); line-height: 1.08; margin: .14em 0 .2em; white-space: nowrap; }
html[lang="en"] .hero-h1 { letter-spacing: -.035em; line-height: 1; font-size: clamp(50px, 10.6vw, 176px); white-space: normal; max-width: 9ch; }
.hero-sub { font-size: clamp(18px, 1.9vw, 27px); line-height: 1.65; max-width: 25ch; }
html[lang="en"] .hero-sub { line-height: 1.4; max-width: 30ch; }
.hero-lit { display: flex; flex-wrap: wrap; gap: .3em 1.1em; margin-top: 1.1em; font-size: clamp(22px, 3vw, 42px); font-weight: 500; line-height: 1.3; visibility: hidden; }
.hero-lit span + span::before { content: ""; display: inline-block; width: .5em; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 1.1em; opacity: .5; }
.l-lime .hero-lit { visibility: visible; }
.layer { --lw: 112vw; --cw: calc(var(--lw) * 1.1); --ch: calc(var(--cw) * 0.47674); position: absolute; top: 0; left: -6vw; width: var(--lw); height: calc(var(--ch) + 100svh + 4px); pointer-events: none; will-change: transform; transform: translate3d(0, var(--y, 110svh), 0);
  -webkit-mask-image: url("/assets/brand/crest.svg"), linear-gradient(#000, #000); mask-image: url("/assets/brand/crest.svg"), linear-gradient(#000, #000);
  -webkit-mask-size: var(--cw) auto, 100% 100%; mask-size: var(--cw) auto, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: calc(var(--lw) * -0.05 + var(--mx, 0px)) 0, 0 calc(var(--ch) * 0.52); mask-position: calc(var(--lw) * -0.05 + var(--mx, 0px)) 0, 0 calc(var(--ch) * 0.52); }
.layer-copy { position: absolute; top: 0; left: 6vw; width: 100vw; height: 100svh; transform: translate3d(0, calc(-1 * var(--y, 110svh)), 0); will-change: transform; }
.l-violet { background: var(--violet); color: var(--snow); }
.l-pink { background: var(--pink); color: var(--night); }
.l-lime { background: var(--lime); color: var(--night); }
.hero-glow { position: absolute; inset-inline: 0; top: 0; height: 1px; background: var(--glow); transform: translate3d(0, var(--gy, 80svh), 0); opacity: var(--go, .9); pointer-events: none; }
.hero-cue { position: absolute; bottom: 22px; inset-inline-start: var(--gut); display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: var(--co, .8); z-index: 3; color: var(--snow); }
.cue-line { width: 36px; height: 1px; background: currentColor; transform-origin: var(--origin, right); animation: cue 2.4s var(--ease) infinite; }
html[dir="ltr"] .cue-line { --origin: left; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.rm .hero, .no-js .hero { height: 100svh; }
.rm .cue-line { animation: none; }
.no-js .layer { display: none; }
@media (max-width: 700px) {
  .hero { height: 290svh; }
  .layer { --lw: 172vw; left: -36vw; }
  .layer-copy { left: 36vw; }
  .hero-copy { padding-top: calc(var(--hdr) + 15svh); }
  .hero-h1 { font-size: clamp(44px, 15vw, 96px); }
  .hero-lit { font-size: 24px; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(84px, 11vw, 176px) 0; position: relative; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr); }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 7vw, 104px); }
.acts li { border-top: 1px solid currentColor; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.act-k { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.3; }
.act-v { max-width: 26ch; opacity: .8; }
@media (max-width: 760px) { .acts { grid-template-columns: minmax(0, 1fr); } }

/* services list on night: the light rises behind the row you point at */
.svc-list { margin-top: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--snow-a24); }
.svc { border-top: 1px solid var(--snow-a24); }
.svc-link { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; align-items: center; gap: 24px; padding: clamp(24px, 3.4vw, 48px) 0; text-decoration: none; overflow: hidden; transition: color .45s var(--ease), padding .45s var(--ease); }
.svc-name { font-size: clamp(34px, 5.4vw, 86px); font-weight: 500; line-height: 1.15; }
.svc-line { font-size: clamp(17px, 1.5vw, 22px); opacity: .82; max-width: 28ch; }
.svc-go { display: flex; justify-content: flex-end; font-size: 22px; }
.svc-light { position: absolute; inset: 0 calc(-1 * var(--gut)); z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc-link:hover, .svc-link:focus-visible { color: var(--night); padding-inline: 20px; }
.svc-link:hover .svc-light, .svc-link:focus-visible .svc-light { transform: scaleY(1); }
.svc-both { margin-top: 32px; font-size: clamp(18px, 1.6vw, 24px); opacity: .86; }
@media (max-width: 760px) {
  .svc-link { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 8px 14px; }
  .svc-line { grid-column: 2 / 3; grid-row: 2; }
  .svc-go { grid-row: 1; grid-column: 3; }
}

/* work: the angle — the place, then the identity rising over it from a moving horizon */
.cases { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 150px); margin-top: clamp(32px, 5vw, 72px); }
.case-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.cc-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.cc-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-ident { position: absolute; inset: 0; clip-path: inset(var(--cut, 100%) 0 0 0); }
.cc-line { position: absolute; inset-inline: 0; top: var(--cut, 100%); height: 2px; background: var(--lime); transform: translateY(-1px); opacity: var(--lo, 1); }
.cc-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 8px; }
.cc-index { opacity: .7; }
.cc-name { margin: 4px 0 6px; }
.cc-logo { height: clamp(72px, 8vw, 116px); width: auto; }
.cc-sector { font-weight: 500; }
.cc-how { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.6; max-width: 26ch; }
@media (max-width: 899px) { .case-card { grid-template-columns: minmax(0, 1fr); } }

/* process on violet: the horizon line fills as each step is reached */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 6vw, 88px); padding-top: 34px; }
.steps-line { position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--snow-a24); }
.steps-fill { position: absolute; inset: 0; background: var(--lime); height: 3px; top: -1px; transform: scaleX(var(--p, 0)); transform-origin: var(--origin, right); }
html[dir="ltr"] .steps-fill { --origin: left; }
.step { display: flex; flex-direction: column; gap: 10px; opacity: .55; transition: opacity .5s; }
.step.on { opacity: 1; }
.step-n { color: var(--lime); }
.step-k { font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; line-height: 1.3; }
.step-v { font-size: 17px; max-width: 30ch; }
.rm .step { opacity: 1; }
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-inline-start: 28px; }
  .steps-line { top: 0; bottom: 0; inset-inline: 0 auto; width: 1px; height: auto; }
  html[dir="rtl"] .steps-line { inset-inline: 0 auto; }
  .steps-fill { width: 3px; height: auto; inset: 0; transform: scaleY(var(--p, 0)); transform-origin: top; }
}

/* end band + the crest arriving */
.end { position: relative; overflow: clip; padding: clamp(96px, 13vw, 200px) 0 0; }
.end-in { position: relative; z-index: 2; padding-bottom: calc(112vw * 0.4767 * 0.56 + 40px); }
.end-title { font-weight: 500; font-size: clamp(42px, 7.6vw, 124px); line-height: 1.12; max-width: 13ch; }
html[lang="en"] .end-title { letter-spacing: -.03em; line-height: 1.02; }
.end-body { margin-top: 22px; font-size: clamp(18px, 1.6vw, 24px); max-width: 34ch; opacity: .86; }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 40px; }
.end-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--snow-a24); }
.end-crest, .pg-crest { position: absolute; inset-inline: 0; bottom: 0; height: calc(112vw * 0.4767 * 0.56); pointer-events: none; overflow: hidden; }
.crest { position: absolute; left: -6vw; width: 112vw; aspect-ratio: 86 / 41; top: 0; transform: translate3d(0, var(--cy, 0px), 0);
  -webkit-mask: url("/assets/brand/crest.svg") 0 0 / 100% 100% no-repeat; mask: url("/assets/brand/crest.svg") 0 0 / 100% 100% no-repeat; }
.crest-lime { background: var(--lime); }
.crest-violet { background: var(--violet); }
.crest-pink { background: var(--pink); }

/* page tops */
.pg-top { position: relative; overflow: clip; padding: calc(var(--hdr) + clamp(56px, 10vw, 150px)) 0 clamp(64px, 9vw, 140px); }
.pg-top-short { padding-bottom: clamp(64px, 8vw, 120px); }
.pg-top .display-xl { margin-top: .3em; }

/* service detail */
.sd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: start; margin-top: clamp(8px, 2vw, 24px); }
.sd-fits { margin-top: 28px; max-width: 40ch; }
.sd-get { border-top: 1px solid currentColor; padding-top: 22px; margin-top: clamp(0px, 3vw, 48px); }
.sd-get-h { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.sd-get ul li { padding: 12px 0; border-bottom: 1px solid var(--night-a10); }
[data-scene="night"] .sd-get ul li, [data-scene="violet"] .sd-get ul li { border-color: var(--snow-a12); }
.sd-ex { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.sd-ex .btn { white-space: normal; text-align: start; min-height: 48px; padding-block: 8px; }
@media (max-width: 899px) { .sd-grid { grid-template-columns: minmax(0, 1fr); } }
.sec-both { padding: clamp(64px, 9vw, 140px) 0; }
.sec-both .display { max-width: 20ch; margin: 0; }
.faq { margin-top: 24px; border-top: 1px solid var(--night-a20); }
.faq details { border-bottom: 1px solid var(--night-a20); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq-sign { position: relative; width: 18px; height: 18px; flex: none; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; top: 50%; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq details[open] .faq-sign::after { transform: rotate(0); }
.faq details p { padding: 0 0 24px; max-width: 52ch; }

/* studio */
.verse { border-top: 1px solid currentColor; padding-top: 26px; margin-top: clamp(0px, 3vw, 48px); }
.verse-ar { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.9; font-weight: 400; }
.verse-en { margin-top: 10px; font-size: 18px; }
.verse figcaption { margin-top: 14px; font-size: 14px; opacity: .72; }
.acts-on-dark .act-v { opacity: .9; }
.person { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }
.person-name { font-size: clamp(40px, 6vw, 92px); font-weight: 500; line-height: 1.15; }
.person-role { font-size: clamp(18px, 1.6vw, 23px); opacity: .78; }
.person-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* contact */
.sec-contact { padding-top: clamp(56px, 7vw, 104px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.form { display: flex; flex-direction: column; gap: 30px; }
.fld { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fld label, .fld legend { font-weight: 500; font-size: 16px; padding: 0; }
.fld input[type="text"], .fld input[type="tel"], .fld input[type="email"], .fld textarea { width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--night-a64); background: transparent; padding: 10px 0; font-size: 19px; border-radius: 0; outline: none; transition: border-color .3s; }
.fld textarea { resize: vertical; min-height: 132px; line-height: 1.7; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--night-a64); opacity: 1; }
.fld input:focus, .fld textarea:focus { border-bottom: 2px solid var(--violet); padding-bottom: 9px; }
html[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.fld-help { font-size: 14px; opacity: .72; }
.fld-err { font-size: 14px; color: var(--violet); font-weight: 500; min-height: 0; }
.fld-err:empty { display: none; }
.fld.bad input, .fld.bad textarea { border-bottom: 2px solid var(--pink); }
.fld.bad .fld-err { color: var(--night); }
.fld.bad .fld-err::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-inline-end: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--night-a64); border-radius: 999px; transition: background-color .3s, color .3s; }
.chip input:checked + span { background: var(--night); color: var(--snow); border-color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hp input { visibility: hidden; }
.check { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; font-weight: 400 !important; font-size: 15.5px !important; line-height: 1.7; padding: 10px 0; min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; top: 12px; inset-inline-start: 0; cursor: pointer; }
.check-box { width: 26px; height: 26px; border: 1.5px solid var(--night); border-radius: 6px; margin-top: 2px; display: grid; place-items: center; transition: background-color .25s; }
.check input:checked + .check-box { background: var(--night); }
.check input:checked + .check-box::after { content: ""; width: 12px; height: 7px; border-inline-start: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg) translate(1px, -1px); }
html[dir="rtl"] .check input:checked + .check-box::after { transform: rotate(45deg) translate(-1px, -1px) scaleX(-1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--violet); outline-offset: 3px; }
.check-t a { font-weight: 500; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-note { font-size: 14px; opacity: .78; max-width: 36ch; }
.form-status { font-size: 17px; outline: none; }
.form-status:empty { display: none; }
.form-status { border-top: 1px solid var(--night-a20); padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form-status.ok { border-top: 3px solid var(--lime); }
.manual-summary { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 160px; padding: 12px; border: 1px solid var(--night-a20); background: var(--snow); color: var(--night); font: inherit; resize: vertical; }
.form.busy button[type="submit"] { opacity: .6; pointer-events: none; }
.ct-direct { border-top: 1px solid currentColor; padding-top: 24px; position: sticky; top: calc(var(--hdr) + 24px); }
.ct-h { font-size: 16px; font-weight: 500; margin-bottom: 18px; }
.ct-direct .person-name { font-size: clamp(36px, 4vw, 56px); }
.ct-phone a { display: inline-block; font-size: clamp(22px, 2vw, 28px); margin-top: 14px; text-decoration: none; border-bottom: 1px solid var(--night-a20); }
@media (max-width: 899px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-direct { position: static; } }

/* privacy */
.prose { max-width: 820px; }
.pv { padding: 28px 0; border-top: 1px solid var(--night-a20); }
.pv h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.pv p { max-width: 62ch; }
.pill { font-size: 13px; background: var(--lime); color: var(--night); border-radius: 999px; padding: 2px 12px; font-family: "SomarX", sans-serif; }

/* footer */
#site-footer { padding: clamp(56px, 7vw, 96px) var(--gut) 28px; }
.ft-grid { max-width: 1400px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--snow-a12); }
.ft-logo .lg { height: 56px; width: auto; }
.ft-line { margin-top: 22px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; }
.ft-sub { margin-top: 6px; opacity: .72; }
.ft-person { display: flex; flex-direction: column; }
.ft-person span:first-child { font-size: 22px; font-weight: 500; }
.ft-phone a { display: inline-block; margin-top: 12px; font-size: 22px; text-decoration: none; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ft-nav { display: flex; flex-direction: column; align-items: flex-start; }
.ft-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-copy { max-width: 1400px; margin: 22px auto 0; font-size: 14px; opacity: .6; }
@media (max-width: 899px) { .ft-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- case pages ---------- */
.case-cover { position: relative; height: 230svh; }
.cv-pin { position: sticky; top: 0; height: 100svh; overflow: clip; background: var(--snow); color: var(--night); }
.cv-head { position: relative; z-index: 1; padding-top: calc(var(--hdr) + clamp(20px, 4svh, 48px)); transform: translate3d(0, var(--hy, 0px), 0); opacity: var(--ho, 1); }
.cv-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 15px; }
html[dir="rtl"] .cv-back .ico-arrow { transform: scaleX(-1); }
html[dir="ltr"] .cv-back .ico-arrow { transform: none; }
.cv-title { margin: clamp(8px, 2svh, 24px) 0 clamp(20px, 4svh, 44px); }
.cv-logo { height: clamp(96px, 17svh, 200px); width: auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--night-a20); padding-top: 18px; }
.facts dt { opacity: .64; margin-bottom: 4px; }
.facts dd { font-size: 16px; line-height: 1.6; font-weight: 500; }
.cv-rise { position: absolute; inset: 0; z-index: 2; clip-path: inset(var(--top, 72%) 0 0 0); }
.cv-rise picture, .cv-rise .cv-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-rise .cv-img { object-fit: cover; transform: scale(var(--zs, 1.08)); }
.cv-mark { position: absolute; z-index: 2; inset-inline-start: var(--gut); bottom: clamp(28px, 6svh, 72px); height: clamp(80px, 14svh, 160px); width: auto; opacity: var(--mo, 0); }
.cv-line { position: absolute; inset-inline: 0; top: var(--top, 72%); height: 2px; background: var(--lime); z-index: 3; transform: translateY(-1px); }
.rm .case-cover, .no-js .case-cover { height: auto; }
.rm .cv-pin, .no-js .cv-pin { position: relative; height: auto; }
.rm .cv-rise, .no-js .cv-rise { position: relative; clip-path: none; height: 70svh; margin-top: 40px; }
@media (max-width: 899px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case-world { position: relative; }
.case-how { max-width: 22ch; }
html[lang="ar"] .case-how { line-height: 1.35; }
.case-hero2 { border: 0; padding: 0; }
.case-hero2 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.case-how-stage { position: relative; height: 420svh; }
.cs-pin { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; padding: calc(var(--hdr) + 20px) 0 28px; }
.cs-head { display: flex; flex-direction: column; gap: 6px; }
.cs-scrub { opacity: var(--so, .7); }
.cs-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: center; width: 100%; max-width: 1400px; margin-inline: auto; padding: 12px var(--gut); }
.cs-cons { min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.cons-svg { width: 100%; height: 100%; max-height: 62svh; }
.cs-count { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.count-svg { width: 100%; max-height: 46svh; }
.count-svg use { fill: var(--c-ink); opacity: .12; transition: opacity .2s, fill .2s; }
.count-svg use.on { fill: var(--c-2); opacity: 1; }
.cs-counter { font-family: "SomarX", sans-serif; font-size: clamp(28px, 3.4vw, 52px); font-weight: 500; line-height: 1; display: flex; gap: .3em; align-items: baseline; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .cs-counter { justify-content: flex-start; }
.cs-of { font-size: .45em; opacity: .6; }
.cs-steps { display: grid; width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gut); }
.cs-steps li { grid-area: 1 / 1; font-size: clamp(20px, 2.1vw, 32px); font-weight: 500; line-height: 1.45; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .45s var(--ease), transform .45s var(--ease); max-width: 32ch; }
.cs-steps li.on { opacity: 1; transform: none; }
.cs-total { font-size: clamp(18px, 1.8vw, 26px) !important; }
@media (max-width: 899px) {
  .cs-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; }
  .cons-svg { max-height: 36svh; }
  .count-svg { max-height: 20svh; }
  .cs-count { flex-direction: row; align-items: center; }
  .count-svg { width: 70%; }
}
.rm .case-how-stage, .no-js .case-how-stage { height: auto; }
.rm .cs-pin, .no-js .cs-pin { position: relative; height: auto; min-height: 100svh; }
.rm .cs-steps li, .no-js .cs-steps li { grid-area: auto; opacity: 1; transform: none; margin-bottom: 10px; }

.sub-h { font-size: 15px; font-weight: 500; margin: clamp(56px, 7vw, 96px) 0 20px; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sw { display: flex; flex-direction: column; gap: 4px; }
.sw-chip { aspect-ratio: 1 / 1.15; background: var(--sw); margin-bottom: 10px; outline: 1px solid var(--night-a10); outline-offset: -1px; }
.sw-name { font-weight: 500; }
.sw-hex { opacity: .7; text-align: start; }
.sw-role { font-size: 14.5px; line-height: 1.55; opacity: .82; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.types { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.spec { line-height: 1.15; overflow-wrap: anywhere; }
.spec-d { font-size: clamp(40px, 7vw, 116px); color: var(--c-ink); }
.spec-a { font-size: clamp(30px, 4.4vw, 70px); line-height: 1.6; color: var(--c-ink); }
.type-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.type-notes li { border-top: 1px solid var(--night-a20); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.tn-name { font-weight: 500; text-align: start; }
@media (max-width: 760px) { .type-notes { grid-template-columns: minmax(0, 1fr); } }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dev img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dev-name { display: block; margin-top: 10px; font-weight: 500; }
@media (max-width: 760px) { .devices { grid-template-columns: minmax(0, 1fr); } }

.apps { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(24px, 4vw, 56px); }
.app-row { display: flex; gap: clamp(12px, 1.6vw, 24px); align-items: flex-start; }
.app { flex: var(--grow) 1 0; min-width: 0; }
.app img { width: 100%; }
.app figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.app-n { opacity: .55; padding-top: 2px; }
@media (max-width: 760px) { .app-row { flex-direction: column; } .app { flex: none; width: 100%; } }

.case-web { position: relative; height: 300svh; }
.wb-pin { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; padding: calc(var(--hdr) + 20px) 0 28px; gap: 16px; }
.wb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 48px); }
.wb-desk, .wb-phone { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wb-desk { flex: 3.2 1 0; min-width: 0; }
.wb-phone { flex: 1 1 0; min-width: 0; max-width: 300px; }
.wb-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--c-paper); border-radius: 10px 10px 0 0; }
.wb-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink); opacity: .25; }
.wb-view { position: relative; overflow: hidden; background: var(--c-paper); }
.wb-desk .wb-view { aspect-ratio: 16 / 10; max-height: 62svh; border-radius: 0 0 10px 10px; }
.wb-phone .wb-view { aspect-ratio: 390 / 820; max-height: 66svh; border-radius: 22px; outline: 6px solid var(--c-paper); outline-offset: -1px; }
.wb-shot { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translate3d(0, var(--sy, 0px), 0); will-change: transform; }
.wb-desk figcaption, .wb-phone figcaption { font-size: 14px; opacity: .76; }
@media (max-width: 760px) {
  .wb-stage { flex-direction: column; align-items: stretch; }
  .wb-desk { flex: none; }
  .wb-desk .wb-view { max-height: 30svh; }
  .wb-phone { flex: 1; align-self: center; width: 46%; max-width: none; }
  .wb-phone .wb-view { max-height: 38svh; }
}
.rm .case-web, .no-js .case-web { height: auto; }
.rm .wb-pin, .no-js .wb-pin { position: relative; height: auto; min-height: 100svh; }

.case-next { position: relative; overflow: clip; padding: clamp(80px, 10vw, 150px) 0; }
.nx-link { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 40px; text-decoration: none; }
.nx-logo { height: clamp(80px, 10vw, 150px); width: auto; }
.nx-go { font-size: 32px; }

/* ---------- print / safety ---------- */
@media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } }

/* product screens (dashboard, app) */
.case-screens { padding-top: 0; }
.scr-row { display: flex; gap: clamp(16px, 2vw, 32px); align-items: flex-end; }
.scr { flex: var(--grow) 1 0; min-width: 0; }
.scr img { width: 100%; border-radius: 10px; }
.scr-tall img { border-radius: 22px; }
.scr figcaption { margin-top: 12px; font-size: 14px; opacity: .76; }
@media (max-width: 760px) { .scr-row { flex-direction: column; align-items: stretch; } .scr-tall { width: 62%; align-self: center; } }
/* case devices: separate layers beside the client's mark (never built from the mark's geometry) */
.dv-markwrap { display: flex; align-items: center; justify-content: center; min-height: 0; }
.dv-mark { width: auto; height: auto; max-width: 100%; max-height: clamp(90px, 22svh, 240px); opacity: var(--mo, 0); transform: translate3d(0, calc((1 - var(--mo, 0)) * 18px), 0); }
.cs-talqiya { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.cons-svg text { opacity: 0; }
.cons-svg #drop { opacity: 0; }
.rm .cons-svg text, .rm .cons-svg #drop { opacity: 1; }
.kh-cons { height: auto; flex: 0 1 auto; min-height: 0; }
.kh-cons .cons-svg { max-height: 40svh; }
.dv-neck { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dv-neck svg { height: 100%; max-height: 62svh; width: auto; overflow: visible; }
.tq-glass { fill: none; stroke: var(--c-ink); stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: var(--gl, 1); }
.tq-water { fill: var(--c-ink); opacity: calc(.08 * var(--wo, 0)); }
.tq-line { stroke: var(--c-ink); stroke-width: 2.5; stroke-dasharray: 9 7; transform-box: fill-box; transform-origin: right center; transform: scaleX(var(--ll, 0)); }
html[dir="ltr"] .tq-line { transform-origin: left center; }
.tq-drop { fill: var(--c-4); transform: translate3d(0, var(--dy, 380px), 0); opacity: var(--do, 0); }
.cs-count .count-svg path { fill: var(--c-ink); opacity: .13; transition: opacity .18s, fill .18s; }
.cs-count .count-svg path.on { fill: var(--c-2); opacity: 1; }
.cs-khayt { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(8px, 2svh, 24px); }
.kh-markwrap { clip-path: inset(var(--mk, 100%) -5% -2% -5%); }
.kh-markwrap .dv-mark { opacity: 1; transform: none; max-height: clamp(90px, 24svh, 260px); }
.kh-line { position: relative; height: 110px; width: 100vw; margin-inline: calc(50% - 50vw); }
.kh-thread, .kh-x { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; }
.kh-thread { inset-inline: 0; background: var(--c-2); transform: scaleX(var(--th, 0)); transform-origin: right center; }
html[dir="ltr"] .kh-thread { transform-origin: left center; }
.kh-x { left: var(--a); width: calc(var(--b) - var(--a)); background: var(--c-3); border-radius: 0; opacity: var(--xo, 0); }
.kh-r { position: absolute; top: 50%; left: var(--at); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--c-2); box-shadow: 0 0 0 5px var(--c-paper); transform: translate3d(0, var(--fy, -220px), 0); opacity: var(--ro, 0); }
.kh-rx.red { background: var(--c-3); }
.kh-band { position: absolute; top: calc(50% + 26px); inset-inline-end: var(--gut); font-family: "khayt-display", sans-serif; font-size: 20px; color: var(--c-2); opacity: var(--bo, 0); }
.kh-band-l { font-family: "Somar", sans-serif; font-size: 14px; color: var(--c-ink); }
@media (max-width: 899px) {
  .cs-talqiya { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .cs-talqiya .cons-svg { max-height: 34svh; }
  .kh-cons .cons-svg { max-height: 26svh; }
  .cs-talqiya .cs-count { flex-direction: column; align-items: stretch; }
  .cs-talqiya .count-svg { width: 100%; max-height: 24svh; }
  .cs-talqiya .dv-mark { max-height: 14svh; }
  .kh-r { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 3px var(--c-paper); }
  .kh-thread, .kh-x { height: 8px; margin-top: -4px; }
}
.rm .dv-mark { opacity: 1; transform: none; }

/* tap targets ≥ 44px (sweep) */
.hdr-logo { height: 44px; }
.hdr-logo .lg { inset: 4px 0; height: calc(100% - 8px); }
@media (max-width: 999px) { .hdr-logo { height: 44px; width: 96px; } }
.ft-logo { display: inline-block; }
.ft-phone a, .ct-phone a { display: inline-flex; align-items: center; min-height: 44px; }
.check input { width: 44px; height: 44px; top: 1px; inset-inline-start: -9px; }
.check-t a { padding-block: 12px; }
/* 01's construction labels are set in a font the site does not load for them, and RTL flips their anchors: the step captions carry the explanation */
.cons-svg text, .cs-talqiya .cons-svg > line:not([id]), .kh-cons .cons-svg > line:not(:first-of-type) { display: none; }
.cons-svg { direction: ltr; }

/* ---------- UX R1 ---------- */
.btn-lg { white-space: normal; max-width: 100%; text-align: center; }
.nw { white-space: nowrap; }
.hdr-cta-sm { display: none; }
@media (max-width: 999px) { .hdr-cta-sm { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 15px; } }
#site-header[data-on="lime"] .hdr-cta-sm { background: var(--night); color: var(--snow); }
#site-header[data-foot="1"] .hdr-logo { visibility: hidden; }
.hero { height: 260svh; }
@media (max-width: 700px) { .hero { height: 220svh; } }
.hero-final { position: absolute; z-index: 4; inset-inline: 0; bottom: clamp(56px, 11svh, 120px); max-width: 1400px; margin-inline: auto; padding-inline: var(--gut); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 3svh, 32px); color: var(--night); opacity: var(--fo, 0); transform: translate3d(0, calc((1 - var(--fo, 0)) * 24px), 0); visibility: hidden; }
.hero-final.on, .hero-final:focus-within { visibility: visible; }
.hero-final:focus-within { opacity: 1; transform: none; }
.hf-list { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.hf-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: clamp(24px, 3.4vw, 46px); font-weight: 500; line-height: 1.25; text-decoration: none; border-bottom: 2px solid currentColor; }
.hf-link .ico { width: .7em; height: .7em; }
.rm .hero-final { opacity: 1; transform: none; visibility: visible; }
.no-js .hero-final { opacity: 1; transform: none; visibility: visible; color: var(--snow); }
.no-js .hf-cta { background: var(--lime); color: var(--night); }
.rm .hero-cue { display: none; }
.rm .cv-head { transform: none; opacity: 1; }
.rm .cv-mark { opacity: 1; }
.cc-tags { font-size: 15px; opacity: .8; margin: 4px 0 10px; }
.cons-lazy { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.cons-lazy > svg { width: 100%; height: 100%; max-height: 62svh; }
.kh-cons .cons-lazy > svg { max-height: 40svh; }
@media (max-width: 899px) { .cs-talqiya .cons-lazy > svg { max-height: 34svh; } .kh-cons .cons-lazy > svg { max-height: 26svh; } }
.hdr-lang .short { display: none; }
@media (max-width: 420px) {
  #site-header { gap: 10px; }
  .hdr-end { gap: 4px; }
  .hdr-lang .long { display: none; }
  .hdr-lang .short { display: inline; font-weight: 500; }
}

/* ---------- design R1 ---------- */
/* one modular scale (×1.333 from 17): 13 · 17 · 23 · 30 · 40 · 54 · 72 · 96 · 128, plus the hero */
:root { --t1: 13px; --t2: 17px; --t3: 23px; --t4: 30px; --t5: 40px; --t6: 54px; --t7: 72px; --t8: 96px; --t9: 128px; --t-hero: 176px; --gap-lh: 40px; }
@media (max-width: 999px) { :root { --t-hero: 128px; --gap-lh: 32px; } }
@media (max-width: 700px) { :root { --t-hero: clamp(44px, 15vw, 54px); --gap-lh: 24px; } }
body, .hdr-nav a, .btn, .btn-lg, .hdr-cta, .hdr-cta-sm, .act-v, .step-v, .faq details p, .pv p, .fld input[type], .fld textarea, .fld label, .fld legend, .check, .form-status, .sd-get ul li, .sub-h, .sd-get-h, .ct-h, .menu-foot a, .ft-nav a, .type-notes li, .app figcaption, .dev-name, .svc-both, .end-body, .cc-sector, .facts dd, .end-wa, .verse-en, .cv-back a { font-size: var(--t2) !important; }
.eyebrow, .hz-label, .cc-index, .svc-n, .step-n, .app-n, .facts dt, .sw-hex, .cs-scrub, .small, .form-note, .fld-help, .fld-err, .sw-role, .cc-tags, .voice figcaption, .verse figcaption, .ft-copy, .pill, .menu-n, .hero-cue, .wb-desk figcaption, .wb-phone figcaption, .scr figcaption, html[lang="en"] .eyebrow, html[lang="en"] .hz-label, html[lang="en"] .facts dt { font-size: var(--t1) !important; }
.lede, .cc-how, .svc-line, .hero-sub, .person-role, .ft-person span:first-child, .ft-phone a, .sw-name, .tn-name { font-size: var(--t3) !important; }
.lede-lg, .act-k, .step-k, .faq summary, .voice blockquote p, .pv h2, .ft-line, .cs-steps li, .ct-phone a, .nx-sector { font-size: var(--t4) !important; }
.display-sm, .hf-link, .ct-direct .person-name, .cs-counter, .cs-total { font-size: var(--t5) !important; }
.display, .verse-ar, .spec-a, .menu-nav a { font-size: var(--t6) !important; }
.svc-name, .person-name { font-size: var(--t7) !important; }
.display-xl, .end-title, .spec-d { font-size: var(--t8) !important; }
.hero-h1, html[lang="en"] .hero-h1 { font-size: var(--t-hero) !important; }
@media (max-width: 700px) {
  .lede-lg, .act-k, .step-k, .faq summary, .voice blockquote p, .pv h2, .ft-line, .cs-steps li, .ct-phone a, .nx-sector { font-size: var(--t3) !important; }
  .lede, .cc-how, .svc-line, .hero-sub, .person-role, .sw-name { font-size: var(--t2) !important; }
  .display-sm, .hf-link, .ct-direct .person-name, .cs-counter, .cs-total { font-size: var(--t4) !important; }
  .display, .verse-ar, .spec-a, .menu-nav a, .svc-name, .person-name { font-size: var(--t5) !important; }
  .display-xl, .end-title, .spec-d { font-size: var(--t6) !important; }
}
@media (min-width: 701px) and (max-width: 999px) {
  .display-xl, .end-title, .spec-d, .svc-name, .person-name { font-size: var(--t7) !important; }
}
/* one gap between a section's label and its headline, everywhere */
.hz + .display, .hz + h1, .hz + h2, .hz + .sd-grid, .hz + .person, .hz + .faq, .hz + .lede, .hz + p { margin-top: var(--gap-lh) !important; }
.eyebrow, .display, .end-title, .lede { text-wrap: balance; }
@media (min-width: 1000px) { .svc-name { white-space: nowrap; } }
.check input, .chip input { accent-color: var(--night); -webkit-appearance: none; appearance: none; background: transparent; border: 0; }
.verse-ar { font-weight: 400; }
/* case cover: a hero-scale mark, the photo keeps its subject in the visible band, the mark sits on a ground plate */
.cv-logo { height: auto; width: min(46vw, 560px); max-height: 32svh; object-fit: contain; object-position: right center; }
html[dir="ltr"] .cv-logo { object-position: left center; }
@media (max-width: 700px) { .cv-logo { width: 72vw; max-height: 26svh; } }
.cv-rise picture { transform: translate3d(0, calc(var(--tn, .72) * 50%), 0); }
.cv-mark { background: var(--c-ink); padding: clamp(12px, 2vw, 22px) clamp(16px, 2.6vw, 28px); box-sizing: content-box; height: clamp(56px, 10svh, 110px); }
.rm .cv-rise picture { transform: none; }
/* stage on one axis */
.cs-count { align-items: flex-start; }
html[dir="rtl"] .cs-counter { justify-content: flex-start; }
.cs-steps { text-align: start; }
