/* Facitra Technologies — site styles (centred tile layout, original palette and type) */
:root {
  /* Layout idea: a slim translucent bar, then full-width centred tiles;
     content sits in rounded panels. Colours and typefaces are the brand's own. */
  --navy: #021735;
  --blue: #0348EB;
  --blue-deep: #0237B8;
  --text: #27364F;
  --muted: #56637C;
  --paper: #FFFFFF;
  --mist: #F2F5FA;
  --line: #D8DEE9;
  --field: #7E8AA1;
  --error: #B3261E;
  --ok: #0A6A3A;
  --display: "Readex Pro", "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 44px);
  --bar: 56px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}
:root[lang="ar"] {
  --display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
[lang="ar"] body { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: #fff; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); font-weight: 500; text-wrap: balance; }
h1 { letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.026em; line-height: 1.1; }
h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 8px; color: #fff; }
.wrap { max-width: calc(1040px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
main, .site-footer { overflow-x: clip; }

/* ---------- Bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--bar); }
.brand { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; transition: opacity .2s var(--ease); }
.brand:hover { opacity: .75; }
.brand img { width: 32px; height: 32px; }
.site-menu { display: flex; align-items: center; flex: 1; gap: 24px; }
.site-menu nav { flex: 1; }
.nav-list { display: flex; justify-content: center; gap: clamp(18px, 3vw, 38px); }
.nav-list a { color: var(--navy); opacity: .8; font-size: .875rem; padding-block: 10px; transition: opacity .2s var(--ease); }
.nav-list a:hover { opacity: 1; text-decoration: none; }
.nav-list a[aria-current="page"] { opacity: 1; font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { color: var(--navy); opacity: .8; font-size: .875rem; padding: 8px 2px; transition: opacity .2s var(--ease); }
.lang-switch:hover { opacity: 1; text-decoration: none; color: var(--navy); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.lang-switch[lang="en"] { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 44px; height: 44px; padding: 0; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--navy);
}
.nav-toggle .bars { width: 18px; height: 10px; position: relative; display: block; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Buttons and links: one filled pill, one text link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 1.0625rem; line-height: 1.2;
  cursor: pointer; text-align: center; transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .arrow, .text-link .arrow, .nf-links .arrow { display: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-small { min-height: 34px; padding: 6px 15px; font-size: .875rem; }
.btn-secondary, .text-link { background: none; border: 0; padding-inline: 4px; color: var(--blue); min-height: 46px; display: inline-flex; align-items: center; }
.btn-secondary::after, .text-link::after { content: "›"; margin-inline-start: .3em; font-size: 1.2em; line-height: 1; transition: transform .25s var(--ease); }
[dir="rtl"] .btn-secondary::after, [dir="rtl"] .text-link::after { content: "‹"; }
.btn-secondary:hover::after, .text-link:hover::after { transform: translateX(3px); }
[dir="rtl"] .btn-secondary:hover::after, [dir="rtl"] .text-link:hover::after { transform: translateX(-3px); }
.btn-secondary:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.on-navy .btn-secondary, .on-navy a:not(.btn) { color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; }

/* ---------- Tiles ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-mist { background: var(--mist); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section[data-flush] { padding-top: 0; }
#approach { padding-bottom: clamp(32px, 4vw, 56px); }
.lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.45; color: var(--text); max-width: 34em; }
[lang="ar"] .lede { line-height: 1.8; }
.prose { display: grid; gap: 1.05em; max-width: 39em; justify-items: center; }
.split { display: grid; gap: clamp(20px, 3vw, 32px); justify-items: center; text-align: center; }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 42em; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { font-size: 1.1875rem; line-height: 1.5; }
.note { color: var(--muted); font-size: .9375rem; }

/* ---------- Navy tops ---------- */
.hero, .page-head { background: var(--navy); color: #C7D1E4; position: relative; overflow: hidden; text-align: center; }
.hero::before, .page-head::before, .msg-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.hero .wrap, .page-head .wrap { position: relative; z-index: 1; }
.hero h1, .page-head h1 { color: #fff; }
.hero .lede, .page-head .lede { color: #D3DBEA; }

.hero { padding-block: clamp(56px, 8vw, 96px) 0; }
.hero-grid { display: grid; justify-items: center; gap: clamp(8px, 2vw, 24px); }
.hero-copy { display: grid; gap: clamp(16px, 2vw, 22px); justify-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
[lang="ar"] .hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); line-height: 1.3; }
.hero h1 span { display: block; }
.hero .actions { margin-top: 6px; }
.hero-art { width: min(640px, 100%); margin-bottom: clamp(8px, 2vw, 28px); }

.city { display: block; width: 100%; height: auto; overflow: visible; }
.city .plate { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.city .grid line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.city .street { fill: none; stroke: #4D82FF; stroke-width: 1.2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .7; }
.city .shadow { fill: rgba(0, 5, 18, .42); }
.city .fl { fill: url(#city-l); }
.city .fr { fill: url(#city-r); }
.city .ft { fill: url(#city-t); }
.city .fl, .city .fr, .city .ft { stroke: rgba(255, 255, 255, .34); stroke-width: .7; stroke-linejoin: round; }
.city .floor { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: .7; }
.city .lit { fill: #C6D7FF; }
.city .lit.r { fill: #7E9FF2; opacity: .75; }
.city .link { fill: none; stroke: #9DB9FF; stroke-width: 1.3; stroke-dasharray: 3 7; stroke-linecap: round; }
.city .node { fill: #fff; }
.city .pulse { fill: none; stroke: #C6D7FF; stroke-width: 1.1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.city .pkt { fill: #fff; offset-rotate: 0deg; filter: drop-shadow(0 0 4px rgba(157, 185, 255, .9)); }
@supports not (offset-path: path("M0 0")) { .city .pkt { display: none; } }

/* Blue bar motif */
.panel-bar {
  display: block; width: 96px; height: 14px; background: var(--blue);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transform-origin: 50% 50%;
}
[dir="rtl"] .panel-bar { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%); }

/* Facts strip under the hero */
.facts-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: clamp(26px, 3.4vw, 40px); text-align: center; align-items: center; }
.facts-title { display: grid; justify-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 1.1875rem; color: var(--navy); line-height: 1.3; }
.facts-title .panel-bar { width: 44px; height: 10px; }
.facts-row { display: contents; }
.facts-row > div { display: grid; gap: 2px; }
.facts-row dt { color: var(--muted); font-size: .9375rem; }
.facts-row dd { color: var(--navy); font-weight: 500; }

/* ---------- Approach cards ---------- */
.stages { counter-reset: stage; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stages > li {
  counter-increment: stage; background: var(--mist); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px);
  display: grid; gap: 12px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stages > li:hover, .rows > div:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(2, 23, 53, .4); }
.stages > li::before {
  content: counter(stage, decimal-leading-zero); font-family: var(--display); font-weight: 500; font-size: 1.75rem;
  line-height: 1; color: var(--blue); margin-bottom: clamp(16px, 3vw, 36px); font-variant-numeric: tabular-nums;
}
.stages h3 { font-size: 1.4375rem; }
.stages p { font-size: 1rem; }

/* ---------- Sub-page header ---------- */
.page-head { padding-block: clamp(64px, 9vw, 116px); }
.page-head .wrap { display: grid; gap: 20px; justify-items: center; }
.page-head h1 { font-size: clamp(2.375rem, 6vw, 4rem); max-width: 14em; }
[lang="ar"] .page-head h1 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); }
.page-head::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: -4%; width: 40%;
  background: linear-gradient(180deg, rgba(3, 72, 235, .5), rgba(3, 72, 235, .06));
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
}
[dir="rtl"] .page-head::after { clip-path: polygon(0 0, 62% 0, 100% 100%, 38% 100%); }

/* ---------- Definition cards ---------- */
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rows > div {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: grid; gap: 12px; align-content: start;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.section:not(.section-mist) .rows > div { background: var(--mist); }
.rows dt { font-family: var(--display); font-weight: 500; font-size: 1.4375rem; letter-spacing: -.015em; line-height: 1.2; color: var(--navy); }
[lang="ar"] .rows dt { letter-spacing: 0; line-height: 1.5; }
.rows dd { font-size: 1rem; }

/* ---------- Navy statement / invitation ---------- */
.statement { background: var(--navy); color: #C9D3E6; border-radius: var(--r-lg); padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 72px); text-align: center; }
.statement .statement-text {
  font-family: var(--display); font-weight: 500; color: #fff; font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  line-height: 1.22; letter-spacing: -.02em; max-width: 22em; margin-inline: auto; text-wrap: balance;
}
[lang="ar"] .statement .statement-text { letter-spacing: 0; line-height: 1.6; }
.invite { display: grid; gap: 26px; justify-items: center; }
.invite h2 { color: #fff; }
.invite p { margin-top: 14px; font-size: 1.1875rem; max-width: 30em; }
.invite .actions { flex-direction: column; gap: 12px; }

/* ---------- Lists and details ---------- */
.checks { display: grid; gap: 10px; width: min(560px, 100%); text-align: start; }
.checks li { background: var(--paper); border-radius: var(--r-md); padding: 16px 20px 16px 48px; position: relative; }
[dir="rtl"] .checks li { padding: 16px 48px 16px 20px; }
.section:not(.section-mist) .checks li { background: var(--mist); }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 20px; top: 50%; width: 14px; height: 6px; margin-top: -3px; background: var(--blue);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.details { display: grid; gap: 22px; }
.details dt { color: var(--muted); font-size: .9375rem; }
.details dd { font-family: var(--display); font-weight: 500; font-size: 1.3125rem; color: var(--navy); line-height: 1.4; }
.details dd a { color: var(--navy); }
.details dd a:hover { color: var(--blue); }

.co-info {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 44px); max-width: 880px; margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 32px; text-align: start;
}
.co-info dd { font-size: 1.125rem; overflow-wrap: anywhere; }

/* ---------- Two-column form layouts ---------- */
.split-two, .split-form { text-align: start; justify-items: stretch; align-items: start; gap: clamp(24px, 4vw, 48px); }
.split-two { grid-template-columns: 5fr 7fr; }
.split-form { grid-template-columns: 7fr 5fr; }
.split-two .prose { justify-items: start; background: var(--mist); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); max-width: none; }
.split-two h2, .split-form h2 { font-size: clamp(1.625rem, 3vw, 2rem); }
.form-title { margin-bottom: 24px; }
.aside-box .aside-title { font-size: 1.3125rem; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 600; color: var(--navy); font-size: .9375rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--field);
  border-radius: 12px; padding: 13px 16px; min-height: 52px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(3, 72, 235, .22); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { color: var(--error); font-size: .875rem; font-weight: 500; line-height: 1.5; }
.field-error:empty, .form-summary:empty, .form-status:empty { display: none; }
.form-summary, .form-status { padding: 14px 18px; border-radius: 12px; line-height: 1.6; font-size: .9375rem; }
.form-summary { color: var(--error); background: #FDF3F2; font-weight: 500; }
.form-status { color: var(--navy); background: var(--mist); }
.form-status.is-success { background: #F0F8F3; color: var(--ok); font-weight: 500; }
.form-status.is-error { background: #FDF3F2; color: var(--error); }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.aside-box { background: var(--mist); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); display: grid; gap: 16px; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 1.7em 1fr; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 600; color: var(--blue); }

/* ---------- Legal pages ---------- */
.legal { max-width: 44em; margin-inline: auto; display: grid; gap: clamp(28px, 4vw, 44px); }
.legal section { display: grid; gap: 14px; }
.legal h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.legal ul { display: grid; gap: 10px; }
.legal li { position: relative; padding-inline-start: 26px; }
.legal li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 12px; height: 5px; background: var(--blue);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
[lang="ar"] .legal li::before { top: .9em; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding-block: clamp(40px, 5vw, 56px) 22px; font-size: .8125rem; line-height: 1.7; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(24px, 5vw, 64px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 16px; justify-items: start; }
.footer-brand img { height: 96px; width: auto; }
.footer-brand p { max-width: 26em; }
.site-footer h2 { font-family: var(--body); font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--navy); margin-bottom: 10px; line-height: 1.7; }
.footer-links, .footer-contact { display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--blue); }
.footer-base { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 18px; padding-inline-end: 76px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; flex-basis: 100%; }
.cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.cookie-settings:hover { color: var(--blue); text-decoration: underline; }
.cookie-settings[hidden] { display: none; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 45; margin-inline: auto; max-width: 720px;
  background: var(--navy); color: #D3DBEA; border-radius: 16px; padding: 20px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center;
  box-shadow: 0 30px 60px -24px rgba(2, 23, 53, .7); font-size: .9375rem; line-height: 1.55;
}
.consent a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent button {
  font: inherit; font-weight: 500; min-height: 44px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; transition: background-color .2s ease, color .2s ease;
}
.consent button:hover { background: #fff; color: var(--navy); }
.consent button[data-choice="yes"] { background: #fff; color: var(--navy); border-color: #fff; }
.consent button[data-choice="yes"]:hover { background: #DCE6FF; }
.consent :focus-visible { outline-color: #fff; }

/* ---------- Loading screen ---------- */
.loader { display: none; }
html.loading .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--paper);
  transition: opacity .55s ease, visibility .55s ease; animation: loader-failsafe .5s 4.5s forwards;
}
html.loading.loaded .loader { opacity: 0; visibility: hidden; }
.loader-ring { position: relative; width: min(240px, 62vw); aspect-ratio: 1; display: grid; place-items: center; }
.loader-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader-ring circle { fill: none; stroke-width: 3; }
.loader-ring .track { stroke: var(--line); stroke-width: 1; }
.loader-ring .arc { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 150 447; transform-origin: 100px 100px; animation: orbit 1.25s cubic-bezier(.55, .2, .45, .8) infinite; }
.loader-ring .arc-2 { stroke: var(--navy); stroke-dasharray: 46 551; animation-duration: 1.9s; animation-direction: reverse; }
.loader-ring img { width: 46%; height: auto; animation: loader-logo .5s ease both, f-circle 1.5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes f-circle { to { transform: rotate(360deg); } }
@keyframes loader-logo { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
html.loading:not(.loaded) main * { animation-play-state: paused !important; }

/* ---------- Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 55; background: var(--blue); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; }
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .page-head h1, .nf-code { animation: rise 1s var(--ease) both; }
  .hero .lede, .page-head .lede { animation: rise 1s .12s var(--ease) both; }
  .hero .actions, .page-head .actions { animation: rise 1s .22s var(--ease) both; }
  .page-head::after { animation: plane 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  .city .scene { animation: bob 7s ease-in-out infinite alternate; }
  .city .b3 { animation: rise3 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .1s + .35s); }
  .city .lit.tw { animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d); }
  .city .net { animation: net-in .9s ease 1.4s both; }
  .city .link, .city .street { animation: flow 1.6s linear infinite; }
  .city .pulse { animation: ping 3s ease-out infinite; animation-delay: var(--d); }
  .city .pkt { animation: travel var(--t) linear infinite; animation-delay: var(--d); }
  .form-summary:not(:empty), .form-status:not(:empty), .consent { animation: rise .45s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes plane { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
@keyframes rise3 { from { transform: translateY(34px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { from { transform: translateY(4px); } to { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes net-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- Message button and panel ---------- */
.msg-fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; border-radius: 50%; }
.msg-fab:focus-visible { outline-offset: 5px; border-radius: 50%; }
.msg-fab-icon {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff;
  box-shadow: 0 20px 40px -14px rgba(2, 23, 53, .65), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.msg-fab:hover .msg-fab-icon, .msg-fab[aria-expanded="true"] .msg-fab-icon { background: var(--blue); }
.msg-fab:hover .msg-fab-icon { transform: scale(1.05); }
.msg-fab-icon svg { grid-area: 1 / 1; transition: opacity .25s ease, transform .4s var(--ease); }
.msg-fab-icon svg:first-child { width: 24px; height: 24px; }
.msg-fab-icon svg:last-child { opacity: 0; transform: rotate(-90deg) scale(.6); }
.msg-fab[aria-expanded="true"] .msg-fab-icon svg:first-child { opacity: 0; transform: rotate(90deg) scale(.6); }
.msg-fab[aria-expanded="true"] .msg-fab-icon svg:last-child { opacity: 1; transform: none; }
.msg-fab-label {
  position: absolute; inset-inline-end: 70px; top: 50%; translate: 0 -50%; white-space: nowrap; pointer-events: none;
  background: var(--paper); color: var(--navy); font-weight: 500; font-size: .875rem; line-height: 1.4; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: 0 14px 30px -16px rgba(2, 23, 53, .5);
  opacity: 0; transform: translateX(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
[dir="rtl"] .msg-fab-label { transform: translateX(-8px); }
.msg-fab:hover .msg-fab-label, .msg-fab:focus-visible .msg-fab-label { opacity: 1; transform: none; }
.msg-fab[aria-expanded="true"] .msg-fab-label { opacity: 0; }
.msg-panel {
  position: fixed; inset-inline-end: 22px; bottom: 94px; z-index: 40; width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 118px); max-height: calc(100dvh - 118px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(2, 23, 53, .08), 0 44px 80px -28px rgba(2, 23, 53, .55);
  opacity: 0; transform: translateY(16px) scale(.96); transform-origin: 100% 100%; transition: opacity .3s ease, transform .4s var(--ease);
}
[dir="rtl"] .msg-panel { transform-origin: 0 100%; }
.msg-panel[hidden] { display: none; }
.msg-panel.is-open { opacity: 1; transform: none; }
.msg-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: var(--navy); color: #C7D1E4; padding: 24px; }
.msg-head > * { position: relative; }
.msg-head h2 { color: #fff; font-size: 1.25rem; }
.msg-head p { font-size: .9375rem; line-height: 1.55; margin-top: 6px; }
.msg-close {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; cursor: pointer; background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; transition: background-color .2s ease, color .2s ease, transform .35s ease;
}
.msg-close:hover { background: #fff; color: var(--navy); transform: rotate(90deg); }
.msg-close:focus-visible { outline-color: #fff; border-radius: 50%; }
.msg-body { padding: 22px 24px 24px; overflow: auto; overscroll-behavior: contain; }
.msg-panel .form { gap: 14px; }
.msg-panel .field input, .msg-panel .field textarea { background: var(--mist); }
.msg-panel .field input:focus-visible, .msg-panel .field textarea:focus-visible { background: var(--paper); }
.msg-panel .field textarea { min-height: 0; height: 112px; }
.msg-panel .form-foot { justify-items: stretch; }
.msg-panel .note { font-size: .8125rem; }

/* ---------- 404 ---------- */
.nf-code {
  font-family: var(--display); font-weight: 600; font-size: clamp(6rem, 19vw, 13rem); line-height: .86; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); direction: ltr;
}
.nf .actions { margin-top: 8px; }
.nf-links { width: min(560px, 100%); }
.nf-links li, [dir="rtl"] .nf-links li { padding: 0; }
.nf-links li::before { display: none; }
.nf-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: var(--navy); font-family: var(--display); font-weight: 500; }
.nf-links a::after { content: "›"; color: var(--muted); font-size: 1.3em; line-height: 1; }
[dir="rtl"] .nf-links a::after { content: "‹"; }
.nf-links a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .js .nav-toggle { display: grid; }
  .js .site-menu {
    display: none; position: absolute; inset-inline: 0; top: 100%; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
    background: var(--paper); padding: 20px var(--gutter) 32px; flex-direction: column; align-items: stretch; gap: 28px; overflow: auto;
  }
  .js .site-menu.is-open { display: flex; animation: menu-in .35s var(--ease) both; }
  .js .site-menu nav { flex: none; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; opacity: 1; padding-block: 10px; }
  [lang="ar"].js .nav-list a { letter-spacing: 0; }
  .js .nav-list a[aria-current="page"] { color: var(--blue); }
  .js .header-tools { flex-direction: column; align-items: stretch; gap: 14px; margin-top: auto; }
  .js .header-tools .btn { min-height: 48px; font-size: 1.0625rem; }
  .js .lang-switch { font-size: 1.0625rem; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 999px; opacity: 1; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-menu, html:not(.js) .nav-list { flex-wrap: wrap; }
  .stages { grid-template-columns: 1fr; }
  .stages > li::before { margin-bottom: 6px; }
  .split-two, .split-form, .footer-grid { grid-template-columns: 1fr; }
  .page-head::after { width: 70%; opacity: .6; }
  .consent { bottom: 88px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  :root { --r-lg: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .facts-band .wrap { grid-template-columns: 1fr; gap: 16px; }
  .hero .actions .btn-primary, .page-head .actions .btn-primary { min-width: 200px; }
  .msg-fab { inset-inline-end: 16px; bottom: 16px; width: 56px; height: 56px; }
  .msg-fab-label { display: none; }
  .msg-panel { inset-inline: 12px; bottom: 84px; width: auto; max-height: calc(100dvh - 100px); }
  .footer-base { flex-direction: column; }
  .consent { grid-template-columns: 1fr; }
  .consent-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .city .pkt { display: none; }
}

/* Approved header: compact navigation and a modest centered wordmark. */
.site-header .wrap { position: relative; }
.header-wordmark-approved {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: calc(var(--bar) / 2);
  transform: translate(-50%, -50%);
  width: clamp(110px, 21vw, 180px);
  padding: 8px 0;
}
.header-wordmark-approved img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}
/* Keep the approved F / wordmark / menu layout on wide screens too. */
@media (min-width: 901px) {
  .js .nav-toggle { display: grid; }
  .js .site-menu {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
    background: var(--paper); padding: 20px var(--gutter) 32px;
    flex-direction: column; align-items: stretch; gap: 28px; overflow: auto;
  }
  .js .site-menu.is-open { display: flex; }
  .js .site-menu nav { flex: none; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a {
    display: block; font-family: var(--display); font-size: 1.75rem;
    font-weight: 500; padding-block: 10px;
  }
  .js .header-tools { flex-direction: column; align-items: stretch; gap: 14px; margin-top: auto; }
  .js .lang-switch { text-align: center; }
}

/* Smooth scroll fade and a compact navigation card. */
.site-header {
  transition: opacity .24s ease, transform .3s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 4px 24px rgba(2,23,53,.06); }
.site-header.is-hidden:not(:focus-within):not(.menu-open) { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.site-header.menu-open { background: #fff; }
.nav-toggle { transition: background-color .2s ease; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--mist); }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 49; background: rgba(2,23,53,.22);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.js .site-header .site-menu {
  display: flex; position: absolute; top: calc(100% + 12px);
  inset-inline-start: auto; inset-inline-end: var(--gutter);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  height: auto; max-height: calc(100dvh - var(--bar) - 32px);
  padding: 16px; gap: 14px; flex-direction: column; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(2,23,53,.16); overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(.98); transform-origin: top;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  animation: none;
}
.js .site-header .site-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1); animation: none;
}
.js .site-header .site-menu nav { flex: none; }
.js .site-header .nav-list { flex-direction: column; gap: 3px; }
.js .site-header .nav-list a {
  display: block; font-family: var(--body); font-size: 1.05rem; font-weight: 500;
  letter-spacing: normal; line-height: 1.5; padding: 11px 16px;
  border-radius: 10px; opacity: 1; transition: background-color .2s ease, color .2s ease;
}
.js .site-header .nav-list a:hover,
.js .site-header .nav-list a[aria-current="page"] { background: var(--mist); color: var(--blue); text-decoration: none; }
.js .site-header .header-tools {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.js .site-header .lang-switch {
  text-align: center; border: 0; padding: 8px 12px; font-size: .95rem;
}
.js .site-header .header-tools .btn { min-height: 44px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .nav-backdrop, .js .site-header .site-menu { transition: none; }
}

/* Gradual scroll-distance fade; keep the bar in place as it fades. */
.site-header {
  opacity: var(--header-opacity, 1);
  transform: none;
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-faded { pointer-events: none; }
.site-header:focus-within, .site-header.menu-open { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .site-header { opacity: 1; transition: none; pointer-events: auto; }
}
