/* ==========================================================================
   Quanta — Applied Intelligence Company. "Structured light" (v4, phase 1).

   Grid     every row divides 10 : 15 : 22, the heights of the logo's three bars
   Colour   white page, ink hero and footer, the three logo blues; amber marks
            the single point that matters in a view and is never text on white
   Type     Space Grotesk (display) · Inter (text) · JetBrains Mono (labels)
            Alexandria (Arabic display) · IBM Plex Sans Arabic (Arabic text)
   Logical properties throughout, so Arabic mirrors without overrides.
   No inline styles or scripts anywhere: the site runs under a strict CSP.
   ========================================================================== */

:root {
  --ink: #0B0E17; --graphite: #14182A; --slate: #565D72; --mist: #EEF0F4; --line: #D9DDE6; --white: #FFFFFF;
  --b-deep: #1F45B0; --b-mid: #4B7BF5; --b-light: #8AB4FF; --amber: #F2A65A;
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --ft: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 3vw, 44px);
  --pad: clamp(22px, 3vw, 44px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: var(--white); --fg: var(--graphite); --muted: var(--slate); --accent: var(--b-deep); --mark: var(--b-deep);
  --btn-bg: var(--graphite); --btn-fg: #fff;
}
html[lang="ar"] {
  --fd: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --ft: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --fm: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
}
.dark { --bg: var(--ink); --fg: #F1F3F8; --muted: #A9B0C4; --line: rgba(255, 255, 255, .13); --accent: var(--b-light); --mark: var(--amber); --btn-bg: #fff; --btn-fg: var(--ink); background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
/* The canvas behind the page is ink: every page opens on a dark hero and ends on the dark footer, so the
   phone's status-bar area (Safari tints it from the page background) and any overscroll stay dark.
   The white editorial body is painted by <main>. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--ink); color-scheme: light; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--ft); color: var(--fg); background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
main { display: block; background: var(--bg); }
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.9; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--b-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--b-mid); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .nav :focus-visible { outline-color: var(--b-light); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 200; inset-block-start: 10px; inset-inline-start: 10px; padding: 12px 18px; background: #fff; color: var(--ink); border-radius: 8px; font-weight: 600; text-decoration: none; transform: translateY(-220%); }
.skip:focus { transform: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- The logo (approved geometry, em-based so it scales; never mirrored) ---------- */
.logo { display: inline-flex; align-items: flex-end; gap: .169em; direction: ltr; line-height: 1; color: inherit; text-decoration: none; font-size: 1.85rem; flex-shrink: 0; padding-block: 6px; }
.logo b { font: 300 1em/1 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
html[lang="ar"] .logo b { font-family: 'Cairo', 'Space Grotesk', sans-serif; letter-spacing: 0; }
.logo span { display: flex; align-items: flex-end; gap: .101em; margin-bottom: .135em; }
.logo i { display: block; width: .152em; border-radius: .068em; }
.logo i:nth-child(1) { height: .338em; background: #8AB4FF; opacity: .85; }
.logo i:nth-child(2) { height: .507em; background: #4B7BF5; }
.logo i:nth-child(3) { height: .743em; background: #1F45B0; }

/* ---------- The sheet and the three registers ---------- */
.frame { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.sheet { }
.reg { display: grid; grid-template-columns: 10fr 15fr 22fr; }
.sec-head { border-top: 1px solid var(--line); }
.cell { position: relative; min-width: 0; padding: var(--pad); }
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; }
.c12 { grid-column: 1 / 3; } .c23 { grid-column: 2 / 4; } .c123 { grid-column: 1 / 4; }
.c1, .c12, .c123 { border-inline-start: 0; }
.cell--tall { padding-block: clamp(48px, 7vw, 104px); }
.cell--mist { background: var(--mist); }
.cell--flush { padding: clamp(10px, 1.4vw, 20px); }
@media (max-width: 899px) {
  .reg { grid-template-columns: minmax(0, 1fr); }
  .cell, .c1, .c2, .c3, .c12, .c23, .c123 { grid-column: 1; border-inline-start: 0; }
  .reg > .cell--join { border-top: 0; padding-top: 0; }
}

/* ---------- Type ---------- */
.label { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--mark); }
html[lang="ar"] .label { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.display { font: 500 clamp(3.4rem, 9.4vw, 9rem)/.94 var(--fd); letter-spacing: -.045em; }
html[lang="ar"] .display { font-size: clamp(2.8rem, 7.6vw, 7.2rem); line-height: 1.24; letter-spacing: -.012em; }
.h2 { font: 500 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--fd); letter-spacing: -.035em; text-wrap: balance; }
html[lang="ar"] .h2 { font-size: clamp(1.75rem, 3.2vw, 2.9rem); line-height: 1.32; letter-spacing: -.008em; }
.h3 { font: 500 1.375rem/1.25 var(--fd); letter-spacing: -.02em; }
html[lang="ar"] .h3 { line-height: 1.5; letter-spacing: 0; }
.display u, .h2 u { text-decoration: none; color: var(--accent); }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 34em; }
html[lang="ar"] .lede { line-height: 1.9; }
.body { color: var(--muted); max-width: 36em; font-size: 1.0625rem; }
.body + .body { margin-top: 1em; }
.stack > * + * { margin-top: clamp(18px, 2.2vw, 30px); }

/* ---------- Buttons and links ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); font: 600 .9375rem/1 var(--ft); text-decoration: none; cursor: pointer; transition: color .4s var(--ease), border-color .4s var(--ease); }
html[lang="ar"] .btn { font-size: 1rem; }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--b-deep); transform: translateY(102%); transition: transform .5s var(--ease); }
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--b-deep); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--line { background: transparent; color: var(--fg); border-color: var(--fg); }
.arr { width: 18px; height: 12px; flex-shrink: 0; transition: transform .4s var(--ease); }
html[dir="rtl"] .arr { transform: scaleX(-1); }
.btn:hover .arr, .link:hover .arr { transform: translateX(5px); }
html[dir="rtl"] .btn:hover .arr, html[dir="rtl"] .link:hover .arr { transform: scaleX(-1) translateX(5px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: .9375rem; color: var(--fg); text-decoration: none; border-bottom: 1px solid currentColor; }
html[lang="ar"] .link { font-size: 1rem; }
.link:hover { color: var(--accent); }

/* ---------- Navigation: two floating pills; the first folds to the mark on scroll ---------- */
.nav { position: fixed; z-index: 60; inset-block-start: 14px; inset-inline: 0; pointer-events: none; }
.nav__in { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill { pointer-events: auto; display: flex; align-items: center; height: 58px; padding-inline: 24px; border-radius: 999px; color: #fff; background: rgba(11, 14, 23, .74); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 10px 30px -18px rgba(11, 14, 23, .6); }
.pill--b { padding-inline: 8px; gap: 4px; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); margin-inline-start: clamp(24px, 3vw, 44px); max-width: 560px; overflow: hidden; white-space: nowrap; transition: max-width .7s var(--ease), opacity .35s ease, margin .7s var(--ease); }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 .9375rem/1 var(--ft); color: #C4CAD9; text-decoration: none; transition: color .25s ease; }
html[lang="ar"] .nav__links a { font-size: 1.0625rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.menu a.menu__link[aria-current="page"] { color: var(--b-light); }
.menu a.menu__link[aria-current="page"] span { color: var(--amber); }
.nav.is-compact .nav__links { max-width: 0; opacity: 0; margin-inline-start: 0; }
.nav.is-compact .pill--a:hover .nav__links, .nav.is-compact .pill--a:focus-within .nav__links { max-width: 560px; opacity: 1; margin-inline-start: clamp(24px, 3vw, 44px); }
.lang { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 14px; border-radius: 999px; font: 500 .9375rem/1 'IBM Plex Sans Arabic', sans-serif; color: #C4CAD9; text-decoration: none; }
html[lang="ar"] .lang { font-family: 'Inter', sans-serif; font-size: .875rem; }
.lang:hover { color: #fff; }
.nav__cta { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 20px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 .9375rem/1 var(--ft); text-decoration: none; transition: background-color .3s ease, color .3s ease; }
.nav__cta:hover { background: var(--b-mid); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 899px) { .nav__links, .nav__cta { display: none; } .burger { display: flex; } .pill { height: 54px; padding-inline: 18px; } .pill--b { padding-inline: 6px; } .logo { font-size: 1.6rem; } }
.menu { position: fixed; inset: 0; z-index: 55; padding: 104px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu a.menu__link { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 clamp(2.2rem, 10vw, 3.4rem)/1.05 var(--fd); letter-spacing: -.035em; color: #fff; text-decoration: none; }
html[lang="ar"] .menu a.menu__link { font-size: clamp(1.9rem, 8.4vw, 2.8rem); line-height: 1.4; letter-spacing: 0; }
.menu__link span { font: 500 .75rem/1 'JetBrains Mono', monospace; color: var(--muted); }
.menu__foot { display: grid; gap: 8px; margin-top: 36px; color: var(--muted); font-size: .9375rem; }
.menu__foot a { color: #fff; }
.menu__lang { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; padding-inline: 18px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; text-decoration: none; font: 500 1rem/1 'IBM Plex Sans Arabic', sans-serif; }
html[lang="ar"] .menu__lang { font-family: 'Inter', sans-serif; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: flex-end; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 58% at 72% 46%, rgba(43, 91, 214, .36), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(31, 69, 176, .22), transparent 70%); }
html[dir="rtl"] .hero__art::before { transform: scaleX(-1); }
.hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.js) .hero__art { background: url(../images/hero-still.png) 100% 50% / auto 100% no-repeat; }
html:not(.js)[dir="rtl"] .hero__art { background-position: 0% 50%; }
.hero__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 140px clamp(32px, 5vw, 64px); }
.hero__copy { max-width: min(62%, 860px); }
.hero__copy .label { margin-bottom: clamp(18px, 2.4vw, 30px); color: #B4BCD0; }
.hero__foot { display: flex; align-items: center; gap: 18px; font: 500 .75rem/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: #8E97AE; text-decoration: none; white-space: nowrap; }
.hero__foot i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-style: normal; transition: background-color .3s ease, border-color .3s ease; }
.hero__foot:hover i { background: var(--b-deep); border-color: var(--b-deep); }
.hero__foot svg { width: 12px; height: 16px; }
@media (max-width: 899px) {
  .hero__art canvas { height: 62%; }
  .hero__in { flex-direction: column; align-items: flex-start; padding-block-end: 28px; gap: 24px; }
  .hero__copy { max-width: none; }
  .hero__foot span { font-size: .6875rem; }
  .hero__foot i { width: 40px; height: 40px; }
}

/* ---------- Sections: every one opens with the same head row, then a body row ----------
   Type scale below the hero, used everywhere: h2 section heading, lede, h3 item title, body, kicker/label. */
main > section:not(.hero) { padding-block: clamp(80px, 9vw, 144px); }
/* two plain white sections in a row share one gap; after a toned band the full space returns */
main > section:not(.hero):not(.tone):not(.dark) + section:not(.tone):not(.dark) { padding-top: 0; }
.tone { background: var(--mist); }
.sec-head > .cell { padding-block: clamp(22px, 2.2vw, 30px) clamp(32px, 3.4vw, 52px); }
.sec-head > .c1 { padding-top: calc(clamp(22px, 2.2vw, 30px) + .55em); }
.sec-body > .cell { padding-block: 0; }
.sec-body > .c23:first-child { grid-column: 2 / 4; }
.caps__body { margin-top: 0; }
.item .kicker { margin-bottom: clamp(20px, 2.6vw, 36px); }
/* equal columns inside the content registers, divided by hairlines */
.split { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.split--2 { --n: 2; } .split--3 { --n: 3; }
.split { column-gap: clamp(28px, 3.4vw, 56px); }
.split > * { min-width: 0; }
@media (max-width: 899px) {
  .rail { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > * + * { margin-top: 32px; }
}
.item .h3 + .body { margin-top: 10px; }
@media (max-width: 899px) {
  main > section:not(.hero) { padding-block: 64px; }
  .sec-head > .cell { padding-block: 0; }
  .sec-head > .c1 { padding-top: 20px; padding-bottom: 16px; }
  .sec-head > .c23 { padding-bottom: 32px; }
}
.kicker { font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
html[lang="ar"] .kicker { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
[data-type] .w { display: inline-block; }

/* ---------- Scenes: dark panels of cells ---------- */
.scene { position: relative; overflow: hidden; border-radius: 10px; background: #0F1322; width: 100%; aspect-ratio: 16 / 7; margin: 0; }
.scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 55% 38%, rgba(43, 91, 214, .4), transparent 72%); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene figcaption { position: absolute; inset-inline-start: var(--pad); bottom: 16px; font: 500 .6875rem/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: #8E97AE; }
html[lang="ar"] .scene figcaption { font-size: .8125rem; letter-spacing: 0; text-transform: none; }
/* a wide scene breaks out of the frame and runs edge to edge */
.scene--wide { border-radius: 0; aspect-ratio: 21 / 8; min-height: 300px; border-block: 1px solid rgba(255, 255, 255, .08); }
.cap__scene { margin-inline: calc(-1 * var(--gut)); }
@media (max-width: 899px) { .scene--wide { aspect-ratio: 4 / 3; min-height: 0; } }

/* ---------- Capabilities ----------
   No scripts or narrow screens: every capability is shown, scene then text.
   Wide screens with scripts (home): one scene across the page, the numbered list beside its text. */
.cap { display: grid; grid-template-columns: 10fr 15fr 22fr; }
.cap > .cap__scene { grid-column: 1 / -1; }
.cap > .cap__text { grid-column: 2 / 4; padding: clamp(32px, 3.4vw, 52px) var(--pad) clamp(56px, 6vw, 96px); }
.cap + .cap { margin-top: clamp(16px, 2vw, 32px); }
.cap__text .body + .body { margin-top: .8em; }
.cap__text .h3 { margin-bottom: 12px; }
.involves li { position: relative; padding: 9px 0; padding-inline-start: 20px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--fg); }
.involves li:first-child { border-top: 1px solid var(--line); }
.involves li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 2px; background: var(--b-mid); }
.involves + .btn { margin-top: 24px; }
.caps__tabs { display: none; }
@media (max-width: 899px) { .cap { grid-template-columns: minmax(0, 1fr); } .cap > .cap__text { grid-column: 1; padding-inline: 0; } }
@media (min-width: 900px) {
  .js .caps:not(.caps--static) .caps__body { display: grid; grid-template-columns: 10fr 15fr 22fr; }
  .js .caps:not(.caps--static) .caps__tabs { display: block; grid-column: 1; grid-row: 2; padding: clamp(32px, 3.4vw, 52px) var(--pad); }
  .js .caps:not(.caps--static) .cap { display: none; }
  .js .caps:not(.caps--static) .cap.is-active { display: contents; }
  .js .caps:not(.caps--static) .cap > .cap__scene { grid-row: 1; }
  .js .caps:not(.caps--static) .cap > .cap__text { grid-row: 2; animation: capIn .6s var(--ease) both; }
}
.caps__tabs button { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 12px; align-items: center; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: start; cursor: pointer; font: 500 1.125rem/1.3 var(--fd); letter-spacing: -.015em; color: var(--muted); transition: color .3s ease; }
.caps__tabs button:first-child { border-top: 1px solid var(--line); }
html[lang="ar"] .caps__tabs button { letter-spacing: 0; line-height: 1.5; }
.caps__tabs button span { font: 500 .75rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; }
.caps__tabs button::after { content: ""; width: 10px; height: 10px; border-radius: 2.5px; background: var(--amber); transform: scale(0); transition: transform .4s var(--ease); }
.caps__tabs button:hover, .caps__tabs button[aria-selected="true"] { color: var(--fg); }
.caps__tabs button[aria-selected="true"]::after { transform: none; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Larger statements: used twice per page at most ---------- */
.h2--xl { font-size: clamp(2.4rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; }
html[lang="ar"] .h2--xl { font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.3; letter-spacing: -.01em; }

/* ---------- Values: a centred pause, then numbered rows ---------- */
.values__head { max-width: 900px; margin-inline: auto; text-align: center; padding: clamp(8px, 1vw, 16px) var(--pad) clamp(40px, 5vw, 72px); }
.values__head .label { justify-content: center; }
.values__head .h2 { margin-top: clamp(16px, 1.8vw, 24px); }
.values__head .lede { margin: clamp(18px, 2.2vw, 30px) auto 0; }
.vrows { border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 10fr 15fr 22fr; align-items: baseline; border-bottom: 1px solid var(--line); }
.vrow > * { padding: clamp(20px, 2.2vw, 30px) var(--pad); }
.vrow__n { font: 500 .8125rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; color: var(--accent); }
.vrow .body { max-width: 34em; }
@media (max-width: 899px) { .vrow { grid-template-columns: 44px minmax(0, 1fr); } .vrow > * { padding-inline: 0; } .vrow .body { grid-column: 2; padding-top: 0; } }

/* ---------- Big facts ---------- */
.bigfact__v { font: 500 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--fd); letter-spacing: -.035em; color: var(--accent); margin: 2px 0 14px; }
html[lang="ar"] .bigfact__v { line-height: 1.35; letter-spacing: 0; }
.bigfacts .kicker { margin-bottom: 8px; }

/* ---------- Inner-page opening ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--nav-h, 86px) + clamp(56px, 8vw, 120px)) clamp(56px, 7vw, 104px); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 75% at 86% 70%, rgba(43, 91, 214, .3), transparent 72%), radial-gradient(40% 50% at 0% 100%, rgba(31, 69, 176, .16), transparent 70%); }
html[dir="rtl"] .phero::before { transform: scaleX(-1); }
.phero__copy { max-width: 860px; position: relative; }
.phero__copy .label { margin-bottom: clamp(18px, 2.4vw, 30px); color: #B4BCD0; }
.phero .lede { margin-top: clamp(20px, 2.4vw, 32px); color: #C3CAD9; }
.phero .actions { margin-top: 32px; }
.display--page { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .98; }
html[lang="ar"] .display--page { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.28; }
.display u { text-decoration: none; color: var(--accent); }
/* the mark, rebuilt from cells at monument scale; always ascends left to right */
.monument { position: absolute; z-index: -1; inset-block-end: 0; inset-inline-end: var(--gut); height: 78%; }
.monument__bars { display: flex; align-items: flex-end; gap: clamp(10px, 1.6vw, 22px); height: 100%; direction: ltr; }
.monument i { display: block; width: clamp(34px, 5.2vw, 76px); border-radius: 6px 6px 0 0; transform-origin: bottom; background-color: var(--b-light); background-image: linear-gradient(var(--ink) 3px, transparent 3px), linear-gradient(90deg, var(--ink) 3px, transparent 3px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(to top, transparent, #000 40%); mask-image: linear-gradient(to top, transparent, #000 40%); }
.monument i:nth-child(1) { height: 45.45%; opacity: .85; }
.monument i:nth-child(2) { height: 68.18%; background-color: var(--b-mid); }
.monument i:nth-child(3) { height: 100%; background-color: #2B5BD6; }
@media (max-width: 899px) { .monument { height: 44%; opacity: .3; } }
.js .monument i { animation: rise 1.4s var(--ease) .2s both; }
.js .monument i:nth-child(2) { animation-delay: .34s; } .js .monument i:nth-child(3) { animation-delay: .48s; }
@keyframes rise { from { transform: scaleY(0); } to { transform: none; } }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }

/* ---------- Steps: stages in sequence, led by large numbers ----------
   Typographic and calm: the number carries the order, so there are no lines, bars or icons. */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.steps--3 { --n: 3; } .steps--4 { --n: 4; }
.step { min-width: 0; }
.step__n { display: block; font: 300 clamp(3rem, 4.6vw, 4.5rem)/.9 'Space Grotesk', sans-serif; letter-spacing: -.04em; color: var(--b-mid); font-variant-numeric: tabular-nums; direction: ltr; margin-bottom: clamp(18px, 2vw, 28px); }
/* the digits stay left-to-right; in Arabic they sit at the start (right) of their column */
html[dir="rtl"] .step__n { text-align: right; }
.step .h3 + .body { margin-top: 8px; }
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .step { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .step__n { font-size: 2.75rem; margin: -4px 0 0; }
  html[lang="ar"] .step__n { margin-top: 4px; }
}
.sec-body--gap { margin-top: clamp(48px, 5vw, 72px); }
.sec-body--gap .kicker { margin-bottom: 28px; }

/* ---------- Bring list ---------- */
.bring { border-top: 1px solid var(--line); }
.bring li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--fd); letter-spacing: -.02em; }
html[lang="ar"] .bring li { line-height: 1.5; letter-spacing: 0; }
.bring li span { font: 500 .75rem/1 'JetBrains Mono', monospace; letter-spacing: .08em; color: var(--accent); }

/* ---------- Definition ---------- */
.defn__word { font: 500 clamp(2.6rem, 5vw, 4.4rem)/.98 var(--fd); letter-spacing: -.04em; }
html[lang="ar"] .defn__word { line-height: 1.3; letter-spacing: 0; }
.defn__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font: 500 .875rem/1.5 'JetBrains Mono', monospace; color: var(--muted); }
html[lang="ar"] .defn__meta { font-family: var(--ft); font-size: 1rem; }
/* the definition, folded into one card that opens on demand */
.defn-card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.defn-card summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 3vw, 40px); }
.defn-card summary::-webkit-details-marker { display: none; }
.defn-card summary:focus-visible { outline-offset: -4px; border-radius: 14px; }
.defn-card__head { display: grid; }
.defn-card .defn__meta { margin-top: 12px; }
.defn-card__toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 600 .9375rem/1 var(--ft); color: var(--fg); }
html[lang="ar"] .defn-card__toggle { font-size: 1rem; }
.defn-card__toggle i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s ease, border-color .3s ease, transform .45s var(--ease); }
.defn-card__toggle i::before, .defn-card__toggle i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 1.5px; background: currentColor; }
.defn-card__toggle i::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.defn-card[open] .defn-card__toggle i { transform: rotate(180deg); background: var(--graphite); border-color: var(--graphite); color: #fff; }
.defn-card[open] .defn-card__toggle i::after { transform: rotate(0deg); }
.defn-card__less, .defn-card[open] .defn-card__more { display: none; }
.defn-card[open] .defn-card__less { display: inline; }
.defn-card .defn__list { margin: 0 clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 20px); }
.defn-card[open] .defn__list { animation: defnIn .5s var(--ease) both; }
@keyframes defnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .defn-card summary:hover .defn-card__toggle i { border-color: var(--graphite); } }

.defn__list { counter-reset: d; border-top: 1px solid var(--line); }
.defn__list li { counter-increment: d; display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--line); }
.defn__list li::before { content: counter(d) "."; font: 500 1rem/1.6 'JetBrains Mono', monospace; color: var(--accent); }
.defn__list p { font-size: 1.125rem; line-height: 1.55; }
.defn__list q { grid-column: 2; display: block; margin-top: 8px; color: var(--muted); quotes: none; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 3.4vw, 56px); }
.facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts dt { font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .facts dt { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.facts dd { margin: 6px 0 0; font: 500 1.25rem/1.35 var(--fd); letter-spacing: -.015em; }
html[lang="ar"] .facts dd { line-height: 1.5; letter-spacing: 0; }
.facts dd a { color: inherit; }
.facts--compact { grid-template-columns: minmax(0, 1fr); margin: 24px 0 36px; }
/* the essentials, set as a company card: identity on one side, registry details on the other */
.co-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 4vw, 64px); padding: clamp(28px, 3.4vw, 52px); border-radius: 16px; background-image: radial-gradient(60% 90% at 100% 0%, rgba(43, 91, 214, .32), transparent 70%); }
.co-card__id { display: flex; flex-direction: column; }
.co-card .logo { font-size: 2.2rem; padding-block: 0; align-self: flex-start; }
.co-card__kicker { margin-top: auto; padding-top: 40px; font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .co-card__kicker { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.co-card__name { margin-top: 6px; font: 500 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--fd); letter-spacing: -.025em; }
.co-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); align-content: start; }
.co-card__facts > div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.co-card__facts dt { font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .co-card__facts dt { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.co-card__facts dd { margin: 6px 0 0; font: 500 1.125rem/1.4 var(--fd); letter-spacing: -.01em; overflow-wrap: anywhere; }
html[lang="ar"] .co-card__facts dd { line-height: 1.6; letter-spacing: 0; }
.co-card__facts dd a { color: inherit; }
.co-card__facts dd a:hover { color: var(--b-light); }
@media (max-width: 899px) { .co-card { grid-template-columns: minmax(0, 1fr); } .co-card__kicker { padding-top: 28px; } }
@media (max-width: 599px) { .co-card__facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.split--contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 899px) { .split--contact { grid-template-columns: minmax(0, 1fr); } }
.contact__details .ftr__mail { color: var(--fg); }
.contact__details .h3 { margin-bottom: 8px; }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; }
.topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.topic:hover span { border-color: var(--graphite); }
.topic input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--b-mid); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 599px) { .form__row { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.field { display: grid; gap: 6px; }
.field label { font: 500 .75rem/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .field label { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.field label small { text-transform: none; letter-spacing: 0; font-size: inherit; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid #B6BCCB; border-radius: 0; padding: 10px 0 12px; transition: border-color .25s ease, box-shadow .25s ease; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--b-deep); box-shadow: 0 1px 0 var(--b-deep); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #B3261E; box-shadow: 0 1px 0 #B3261E; }
.field input[type="email"] { direction: ltr; text-align: start; }
.err { font-size: .875rem; color: #9C1F18; }
.err:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 14px; justify-items: start; }
.form__note { font-size: .875rem; color: var(--muted); max-width: 34em; }
.form__note a { color: var(--fg); }
.form__status { font-size: .9375rem; padding: 12px 16px; border-radius: 10px; background: #FBE9E7; color: #7A1912; }
.form__status a { color: inherit; }
.form__done { display: grid; gap: 18px; }
.form__done:focus { outline: none; }

/* ---------- Legal ---------- */
.legal { padding-top: clamp(40px, 5vw, 72px) !important; }
.prose { max-width: 720px; }
.prose h2 { font: 500 1.375rem/1.25 var(--fd); letter-spacing: -.02em; margin: 2.4em 0 .6em; }
html[lang="ar"] .prose h2 { line-height: 1.5; letter-spacing: 0; }
.prose h2:first-of-type { margin-top: 1.4em; }
.prose p { color: var(--muted); margin-bottom: 1em; }
.prose a { color: var(--fg); }
.prose .meta { font: 500 .8125rem/1.4 'JetBrains Mono', monospace; color: var(--muted); }

/* ---------- Closing band: the page's last word, given room to breathe ---------- */
main > section.band.dark { padding-block: clamp(112px, 12vw, 192px) clamp(104px, 11vw, 176px); }
.band .sec-head > .cell { padding-block-end: 0; }
.band .lede { max-width: 30em; }
.band .actions { margin-top: clamp(32px, 3.4vw, 48px); }
@media (max-width: 899px) {
  main > section.band.dark { padding-block: 96px 88px; }
  .band .sec-head > .c1 { padding-bottom: 28px; }
  .band .lede { margin-top: 24px; }
}

/* ---------- Footer: on the same three registers as the page ---------- */
.ftr { padding-block: clamp(56px, 6vw, 96px) 28px; }
.ftr__main { border-top: 1px solid var(--line); }
.ftr__main > .cell { padding-block: clamp(28px, 3vw, 44px) clamp(40px, 5vw, 72px); }
.ftr .logo { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
.ftr__list a, .ftr__legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg); text-decoration: none; transition: color .25s ease; }
.ftr__list a { font: 500 1.125rem/1.3 var(--fd); letter-spacing: -.01em; }
html[lang="ar"] .ftr__list a { letter-spacing: 0; }
.ftr__list a:hover, .ftr__legal a:hover, .ftr__mail:hover { color: var(--b-light); }
.ftr__mail { display: inline-flex; align-items: center; min-height: 44px; font: 500 clamp(1.25rem, 1.9vw, 1.75rem)/1.2 var(--fd); letter-spacing: -.02em; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .25s ease, border-color .25s ease; }
.ftr__mail:hover { border-color: var(--b-light); }
.ftr__addr { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.ftr__social { display: flex; gap: 10px; margin-top: 24px; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.ftr__social a:hover { background: var(--b-deep); border-color: var(--b-deep); color: #fff; }
.ftr__social svg { width: 18px; height: 18px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 18px var(--pad) 0; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
html[lang="ar"] .ftr__bottom { font-size: .9375rem; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ftr__legal a { color: var(--muted); font-size: inherit; }
@media (max-width: 899px) {
  .ftr__main > .cell { padding-block: 0 32px; }
  .ftr__main > .ftr__brand { padding-top: 32px; }
  .ftr__bottom { padding-inline: 0; }
}

/* spacing between a label and what it introduces */
.cell > .label + * { margin-top: clamp(16px, 1.8vw, 24px); }

/* ---------- Phones and small tablets ----------
   One gutter, one left edge: every block starts on the same line as the logo.
   The two nav pills merge into one bar that steps aside while reading and returns on the way back up. */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.btn:active, .nav__cta:active, .link:active, .topic:active span { transform: scale(.98); }
@media (max-width: 899px) {
  :root { --gut: 20px; --pad: 20px; }
  html { scroll-padding-top: 84px; }
  .nav { inset-block-start: max(10px, env(safe-area-inset-top)); transition: transform .45s var(--ease); }
  .nav.is-away { transform: translateY(calc(-100% - 24px)); }
  .nav__in { width: auto; margin-inline: 10px; height: 56px; padding-inline: 16px 6px; pointer-events: auto; border-radius: 999px; background: rgba(11, 14, 23, .84); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 12px 32px -20px rgba(11, 14, 23, .7); }
  .pill { height: 100%; padding-inline: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pill--b { padding-inline: 0; }
  .logo { font-size: 1.5rem; }
  .lang { min-height: 44px; }
  .burger { width: 44px; height: 44px; padding-inline: 12px; }
  .menu { padding-top: calc(max(10px, env(safe-area-inset-top)) + 84px); }
  .menu a.menu__link { padding-block: 16px; }

  .cell { padding-inline: 0; }
  .sec-body > .c23:first-child { grid-column: 1; }
  .hero__in { padding-block-start: 120px; }
  .hero__foot { min-height: 44px; }
  main > section:not(.hero) { padding-block: 56px; }
  main > section.phero { padding-block: 136px 56px; }
  .values__head { text-align: start; padding-inline: 0; padding-block-end: 32px; }
  .values__head .label { justify-content: flex-start; }
  .values__head .lede { margin-inline: 0; }
  .vrow { grid-template-columns: 36px minmax(0, 1fr); }
  .vrow > * { padding-block: 18px; }
  .vrow .body { padding-block: 0 20px; }
  .bring li { grid-template-columns: 40px minmax(0, 1fr); padding-block: 16px; }
  .involves li { padding-block: 11px; }
  .scene figcaption { bottom: 12px; font-size: .75rem; }
  .facts dd a, .contact__details a.ltr { display: inline-block; padding-block: 8px; margin-block: -8px; }
  .ftr__bottom { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 599px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .form__foot { justify-items: stretch; }
  .form__foot .btn { width: 100%; }
  .display:not(.display--page) { font-size: clamp(3rem, 14.5vw, 3.6rem); }
  .h2--xl { font-size: clamp(2.2rem, 10vw, 2.6rem); }
}

/* ---------- Motion ---------- */
.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-r].in { opacity: 1; transform: none; }
.js [data-r="1"] { transition-delay: 80ms; } .js [data-r="2"] { transition-delay: 160ms; } .js [data-r="3"] { transition-delay: 240ms; }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .hero__copy .label { animation: up .9s var(--ease) .2s both; }
.js .hero__copy .display { animation: up 1.1s var(--ease) .35s both; }
.js .hero__foot { animation: up 1s var(--ease) 1.2s both; }
@view-transition { navigation: auto; }

/* Phones: one quiet reveal per section (its heading); everything else is simply there, so scrolling never repeats itself */
@media (max-width: 899px) {
  .js [data-r]:not(.h2):not(.lede) { opacity: 1; transform: none; transition: none; }
  /* heading and its lede rise together, slowly, on an even ease-out so nothing snaps */
  .js .h2[data-r], .js .lede[data-r] { transition: opacity 1.1s cubic-bezier(.33, 1, .68, 1), transform 1.3s cubic-bezier(.33, 1, .68, 1); will-change: opacity, transform; }
  .js .h2[data-r]:not(.in), .js .lede[data-r]:not(.in) { transform: translateY(18px); }
  .js .lede[data-r] { transition-delay: .15s; }
  .js .h2[data-r].in, .js .lede[data-r].in { will-change: auto; }
}

/* ---------- Opening: the three bars rise once per visit, then the page appears ----------
   Shown only when boot.js sets .intro-on (scripts on, motion allowed, first page of the visit).
   Bars keep the logo's proportions and colours and always ascend left to right. */
.intro { display: none; }
/* one continuous movement: the bars grow with a soft ease-out (no bounce), drift up and dissolve while the
   cover cross-fades into the page and the headline arrives underneath. Transform and opacity only. */
.intro-on .intro { --soft: cubic-bezier(.22, 1, .36, 1); position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; background: radial-gradient(38% 26% at 50% 50%, rgba(43, 91, 214, .22), transparent 70%), var(--ink); will-change: opacity; animation: introOut .95s cubic-bezier(.45, 0, .2, 1) 1.15s forwards; }
.intro__bars { display: flex; align-items: flex-end; gap: 14px; height: 96px; direction: ltr; will-change: transform, opacity; animation: introLift 1s var(--soft) 1s forwards; }
.intro__bars i { display: block; width: 20px; border-radius: 3px; transform-origin: bottom; transform: scaleY(0); opacity: 0; will-change: transform, opacity; animation: introPop .9s var(--soft) forwards; }
.intro__bars i:nth-child(1) { --o: .85; height: 45.45%; background: #8AB4FF; animation-delay: .08s; }
.intro__bars i:nth-child(2) { height: 68.18%; background: #4B7BF5; animation-delay: .2s; }
.intro__bars i:nth-child(3) { height: 100%; background: #1F45B0; animation-delay: .32s; }
@keyframes introPop { from { transform: scaleY(0); opacity: 0; } 30% { opacity: var(--o, 1); } to { transform: scaleY(1); opacity: var(--o, 1); } }
@keyframes introLift { from { transform: none; opacity: 1; } to { transform: translateY(-18px) scale(1.06); opacity: 0; } }
@keyframes introOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
/* the page's own entrance overlaps the cross-fade, so there is no gap between the two */
.intro-on.js .hero__copy .label { animation-duration: 1.1s; animation-delay: 1.35s; }
.intro-on.js .hero__copy .display { animation-duration: 1.3s; animation-delay: 1.45s; }
.intro-on.js .hero__foot { animation-delay: 1.9s; }
.intro-on.js .monument i { animation-delay: 1.3s; }
.intro-on.js .monument i:nth-child(2) { animation-delay: 1.44s; }
.intro-on.js .monument i:nth-child(3) { animation-delay: 1.58s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
}
