/* ============================================================================
   TELOS NEXUS — telosnexus.services
   Bilingual AR/EN studio site. Arabic-primary, RTL-native.

   Written with CSS logical properties throughout, so the entire layout mirrors
   from a single `dir` attribute. There are no `left`/`right` rules below.
   ========================================================================== */

/* ---------- 1. TOKENS -------------------------------------------------- */

:root {
  /* Brand — sampled from the actual logo pixels, not the old brand doc.
     Grape #750fb7 · Aerospace Orange #ff5004 (the doc's #e30512 was wrong). */
  --grape:        #750fb7;
  --grape-lift:   #9b3fe0;
  --grape-deep:   #4a0a75;
  --orange:       #ff5004;
  --orange-lift:  #ff7a3d;

  /* Surface ladder. Stepped luminance rather than a 1px border cage.
     Not pure #000 — pure black smears on OLED and kills elevation. */
  --bg-0:  #08070b;
  --bg-1:  #0c0a11;
  --bg-2:  #121019;
  --bg-3:  #191521;
  --bg-4:  #221c2d;

  --fg:      #f5f3f8;
  --fg-dim:  #aaa3bb;
  --fg-mute: #726c85;

  --hair:      rgb(255 255 255 / 0.07);
  --hair-lift: rgb(255 255 255 / 0.13);

  /* Fluid type scale — Augmented Fourth at the display end, Major Third below */
  --t-display: clamp(2.65rem, 1.2rem + 5.6vw, 5.75rem);
  --t-h1:      clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  --t-h2:      clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem);
  --t-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --t-lead:    clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  --t-body:    1rem;
  --t-small:   0.875rem;
  --t-micro:   0.75rem;

  /* Spacing rhythm */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;
  --chapter: clamp(5rem, 10vh, 9rem);

  --measure: 62ch;
  --shell:   82rem;
  --radius:  14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

  --font-latin:  "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono:   "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --font-display: var(--font-latin);
  --font-body:    var(--font-latin);
  --lh-body:      1.65;
  --lh-tight:     1.05;
}

/* Arabic needs a different font stack, more leading, and a touch more size.
   Tashkeel, upper hamza and deep descenders clip at Latin line-heights.
   Display sizes come DOWN: Arabic glyphs are wider and taller per character,
   so a scale tuned for Latin overruns the line. */
:root:lang(ar),
[dir="rtl"] {
  --font-display: var(--font-arabic);
  --font-body:    var(--font-arabic);
  --lh-body:      1.9;
  --lh-tight:     1.45;

  --t-display: clamp(2.1rem, 1.1rem + 3.9vw, 4.15rem);
  --t-h1:      clamp(1.85rem, 1.1rem + 2.9vw, 3.15rem);
  --t-h2:      clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem);
  --t-h3:      clamp(1.15rem, 1rem + 0.6vw, 1.4rem);

  /* Body sizes come UP: Arabic reads smaller than Latin at the same px */
  --t-body:  1.05rem;
  --t-small: 0.95rem;
  --t-lead:  clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem);
}

/* ---------- 2. RESET --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--bg-4) var(--bg-0);
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-inline-size: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--grape); color: #fff; }

/* Latin fragments inside Arabic text — brand names, stacks, prices.
   Keeps the Latin run in its own bidi context so trailing punctuation
   and +964 numbers don't jump to the wrong end of the line. */
bdi, .lat {
  unicode-bidi: isolate;
  font-family: var(--font-latin);
}

/* ---------- 3. LAYOUT SHELL ------------------------------------------- */

.shell {
  inline-size: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.chapter { padding-block: var(--chapter); position: relative; }

.chapter + .chapter { border-block-start: 1px solid var(--hair); }

/* Asymmetric editorial split — 38.2 / 61.8, not a lazy 50/50 */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1.618fr; align-items: start; }
  .split--reverse { grid-template-columns: 1.618fr 1fr; }
}

.stack > * + * { margin-block-start: var(--s-3); }
.stack-tight > * + * { margin-block-start: var(--s-2); }

/* ---------- 4. ATMOSPHERE ---------------------------------------------- */

/* Fine film grain over everything. Kills gradient banding on dark surfaces
   and stops the page reading as flat vector output. Costs zero bandwidth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Directional horizon key light. Deliberately NOT a floating purple blur orb —
   that is the single most template-looking thing on the web right now. */
.horizon {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 8%;
  block-size: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgb(155 63 224 / 0.35) 22%,
    rgb(255 255 255 / 0.55) 50%,
    rgb(255 80 4 / 0.35) 78%,
    transparent 100%);
  box-shadow: 0 0 30px 1px rgb(155 63 224 / 0.22);
}

/* Engineering graph paper, faded out toward the fold */
.gridfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right,  var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 5%, transparent 72%);
}

/* ---------- 5. TELEMETRY LEDGER ---------------------------------------- */
/* Replaces the "✨ Announcing v2.0 →" pill badge. */

.ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-block-end: 0.7rem;
  border-block-end: 1px solid var(--hair);
  inline-size: fit-content;
  max-inline-size: 100%;
  /* Monospace telemetry stays LTR even on the Arabic side of the site */
  direction: ltr;
}

.ledger__live { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--fg-dim); }

.ledger__dot {
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 9px var(--orange);
  animation: breathe 3.2s var(--ease-io) infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 6. TYPE HELPERS -------------------------------------------- */

.display {
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -0.045em;
}
:lang(ar) .display, [dir="rtl"] .display { letter-spacing: 0; font-weight: 700; }

.h1 { font-size: var(--t-h1); letter-spacing: -0.035em; }
.h2 { font-size: var(--t-h2); letter-spacing: -0.03em; }
.h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }
:lang(ar) .h1, :lang(ar) .h2, :lang(ar) .h3,
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3 { letter-spacing: 0; }

.lead   { font-size: var(--t-lead); color: var(--fg-dim); max-inline-size: var(--measure); }
.dim    { color: var(--fg-dim); }
.mute   { color: var(--fg-mute); }
.measure{ max-inline-size: var(--measure); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: "";
  block-size: 1px;
  flex: 1;
  background: linear-gradient(to right, var(--hair-lift), transparent);
}
[dir="rtl"] .eyebrow::after { background: linear-gradient(to left, var(--hair-lift), transparent); }

/* The one place a gradient touches type. Used once per page, on a single word. */
.hot { color: var(--orange); }
.cool { color: var(--grape-lift); }

/* ---------- 7. BUTTONS -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-block-size: 48px;
  padding-inline: 1.5rem;
  padding-block: 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--t-small);
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.18s, border-color 0.18s, box-shadow 0.24s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: #14060a;
  box-shadow: 0 0 0 0 rgb(255 80 4 / 0.5);
}
.btn--primary:hover { background: var(--orange-lift); box-shadow: 0 10px 34px -8px rgb(255 80 4 / 0.55); }

.btn--ghost {
  border-color: var(--hair-lift);
  color: var(--fg);
  background: rgb(255 255 255 / 0.02);
}
.btn--ghost:hover { border-color: var(--grape-lift); background: rgb(155 63 224 / 0.09); }

.btn__icon { inline-size: 18px; block-size: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- 8. HEADER --------------------------------------------------- */

.hdr {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.hdr[data-scrolled="true"] { border-block-end-color: var(--hair); }

.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-block-size: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.brand__mark { inline-size: 30px; block-size: 30px; }
.brand__name {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  /* The wordmark is a brand asset — it never mirrors, even in RTL */
  direction: ltr;
}

.nav { display: none; gap: var(--s-3); margin-inline-start: auto; }
@media (min-width: 60rem) { .nav { display: flex; align-items: center; } }

.nav a {
  font-size: var(--t-small);
  color: var(--fg-dim);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1px;
  background: var(--orange);
  transition: inline-size 0.28s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { inline-size: 100%; }

.hdr__end { display: flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; }
@media (min-width: 60rem) { .hdr__end { margin-inline-start: var(--s-3); } }

/* Language toggle */
.lang {
  display: inline-flex;
  align-items: center;
  min-block-size: 40px;
  padding-inline: 0.9rem;
  border: 1px solid var(--hair-lift);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.lang:hover { border-color: var(--grape-lift); color: var(--fg); background: rgb(155 63 224 / 0.09); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--hair-lift);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
@media (min-width: 60rem) { .burger { display: none; } }

.drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-out);
  border-block-start: 1px solid transparent;
}
.drawer[data-open="true"] { grid-template-rows: 1fr; border-block-start-color: var(--hair); }
.drawer__in { overflow: hidden; }
.drawer a {
  display: block;
  padding-block: 0.9rem;
  font-size: 1.05rem;
  color: var(--fg-dim);
  border-block-end: 1px solid var(--hair);
}
.drawer a:last-child { border-block-end: none; }
@media (min-width: 60rem) { .drawer { display: none; } }

/* ---------- 9. HERO ----------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3rem, 7vh, 5.5rem) clamp(3.5rem, 8vh, 6.5rem); overflow: hidden; }
.hero__in { position: relative; z-index: 1; }

.hero__mark {
  inline-size: clamp(210px, 34vw, 420px);
  block-size: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 70px rgb(117 15 183 / 0.35));
}

@media (min-width: 62rem) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
  }
}

/* ---------- 10. CAPABILITY CARDS ---------------------------------------- */
/* Single-edge dividers and surface stepping, not a 1px box around everything. */

.cards {
  display: grid;
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
}
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--bg-1);
  transition: background-color 0.3s var(--ease-out);
  overflow: hidden;
  min-block-size: 100%;
}
.card:hover { background: var(--bg-2); }

/* Top-edge accent that draws in on hover */
.card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 2px;
  background: linear-gradient(to right, var(--grape-lift), var(--orange));
  transition: inline-size 0.42s var(--ease-out);
}
.card:hover::before, .card:focus-within::before { inline-size: 100%; }

.card__idx {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  direction: ltr;
}
.card__title { font-size: var(--t-h3); }
.card__body { color: var(--fg-dim); font-size: var(--t-small); flex: 1; }

.card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--orange);
}
.card__go svg { transition: transform 0.28s var(--ease-out); }
/* The arrow points along the reading direction — it flips with the language */
[dir="rtl"] .card__go svg { transform: scaleX(-1); }
.card:hover .card__go svg { transform: translateX(4px); }
[dir="rtl"] .card:hover .card__go svg { transform: scaleX(-1) translateX(4px); }

/* Whole card is a link target */
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- 11. TIER 2 / PARTNER STRIP ---------------------------------- */

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--bg-1);
  border-inline-start: 2px solid var(--grape);
  border-radius: 0 var(--radius) var(--radius) 0;
}
[dir="rtl"] .strip { border-radius: var(--radius) 0 0 var(--radius); }

/* ---------- 12. PROCESS ------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--hair); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  background: var(--bg-1);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  color: var(--orange);
  direction: ltr;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: var(--t-small); color: var(--fg-dim); }

/* ---------- 13. PRICE ANCHORS ------------------------------------------- */

.prices { display: grid; gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
@media (min-width: 52rem) { .prices { grid-template-columns: repeat(3, 1fr); } }

.price { background: var(--bg-1); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.4rem; }

.price__from {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.price__tag { font-size: clamp(1.5rem, 3vw, 2rem); margin-block-end: 0.2rem; }

/* The figure is its own bidi island. Without this, "$" jumps to the wrong
   end of the line inside an Arabic paragraph. */
.num {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.price__note { font-size: var(--t-small); color: var(--fg-dim); }

/* ---------- 13b. DELIVERABLES LIST -------------------------------------- */

.ticks { display: grid; gap: 1px; background: var(--hair); border-block: 1px solid var(--hair); }
@media (min-width: 46rem) { .ticks { grid-template-columns: repeat(2, 1fr); } }

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem clamp(1rem, 2.5vw, 1.6rem);
  background: var(--bg-1);
  font-size: var(--t-small);
  color: var(--fg-dim);
  transition: background-color 0.25s, color 0.25s;
}
.ticks li:hover { background: var(--bg-2); color: var(--fg); }

/* An odd final item spans the full row instead of leaving a ragged cell */
.ticks li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.tick {
  flex: none;
  display: inline-flex;
  margin-block-start: 0.28rem;
  color: var(--orange);
}

/* Honest-empty panel — used where we refuse to invent proof */
.panel {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  background: var(--bg-1);
  border-radius: var(--radius);
  border-block-start: 1px solid var(--hair-lift);
  max-inline-size: 64ch;
}
.panel p { color: var(--fg-dim); font-size: var(--t-small); }
.panel__glyph { flex: none; color: var(--grape-lift); margin-block-start: 0.15rem; }
[dir="rtl"] .panel .card__go svg { transform: scaleX(-1); }

/* ---------- 14. FOUNDER ------------------------------------------------- */
/* In a market where nobody publishes an address, the named human IS the
   trust signal. This block replaces the office nobody is going to visit. */

.founder {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%);
  border-radius: var(--radius-lg);
  border-block-start: 1px solid var(--hair-lift);
}
@media (min-width: 52rem) { .founder { grid-template-columns: auto 1fr; align-items: center; } }

.founder__mark {
  inline-size: clamp(88px, 16vw, 132px);
  block-size: auto;
  opacity: 0.9;
}

/* ---------- 15. CTA ----------------------------------------------------- */

.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 11vh, 8rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 130% at 50% 100%, rgb(117 15 183 / 0.22), transparent 65%),
    var(--bg-1);
}
.cta__in { position: relative; z-index: 1; display: grid; gap: var(--s-3); justify-items: center; }

/* ---------- 16. FOOTER -------------------------------------------------- */

.ftr { background: var(--bg-0); border-block-start: 1px solid var(--hair); padding-block: var(--s-5) var(--s-4); }
.ftr__grid { display: grid; gap: var(--s-4); }
@media (min-width: 52rem) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.ftr h4 {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
  margin-block-end: var(--s-2);
}
.ftr li + li { margin-block-start: 0.6rem; }
.ftr a { font-size: var(--t-small); color: var(--fg-dim); transition: color 0.2s; }
.ftr a:hover { color: var(--orange); }

.ftr__base {
  margin-block-start: var(--s-4);
  padding-block-start: var(--s-3);
  border-block-start: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  font-size: var(--t-micro);
  color: var(--fg-mute);
}

/* ---------- 17. FLOATING WHATSAPP --------------------------------------- */

.wa {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-end: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 52px;
  padding-inline: 1.15rem;
  border-radius: 999px;
  background: #1faa54;
  color: #fff;
  font-size: var(--t-small);
  font-weight: 600;
  box-shadow: 0 14px 36px -10px rgb(31 170 84 / 0.6);
  transition: transform 0.2s var(--ease-out), box-shadow 0.24s;
}
.wa:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px rgb(31 170 84 / 0.72); }
.wa svg { inline-size: 22px; block-size: 22px; flex: none; }
.wa__label { display: none; }
@media (min-width: 30rem) { .wa__label { display: inline; } }

/* ---------- 18. MOTION -------------------------------------------------- */
/* Scroll-driven reveals in pure CSS. No JS, no IntersectionObserver, and
   nothing is hidden unless the browser can actually animate it back in. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    /* Stagger children off a --i index set in the markup */
    .stagger > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 24%;
      animation-delay: calc(var(--i, 0) * 45ms);
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* The mark assembles itself once on load — each blade rotates into place */
@media (prefers-reduced-motion: no-preference) {
  .mark__blade {
    transform-box: fill-box;
    transform-origin: center;
    animation: blade-in 1.1s var(--ease-out) both;
    animation-delay: calc(var(--b) * 90ms);
  }
  .mark__drop {
    transform-box: fill-box;
    transform-origin: center;
    animation: drop-in 0.75s var(--ease-out) both;
    animation-delay: calc(600ms + var(--b) * 80ms);
  }
}
@keyframes blade-in {
  from { opacity: 0; transform: rotate(-70deg) scale(0.55); }
  to   { opacity: 1; transform: none; }
}
@keyframes drop-in {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: none; }
}

/* The mark idles with a very slow rotation once assembled — the shape is a
   pinwheel, so it wants to turn, but fast enough to notice is fast enough
   to annoy. Two minutes per revolution reads as drift, not animation. */
@media (prefers-reduced-motion: no-preference) {
  .mark--idle { animation: spin 120s linear infinite; transform-origin: center; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 19. UTILITIES ----------------------------------------------- */

.sr-only {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--orange);
  color: #14060a;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: inset-block-start 0.2s;
}
.skip:focus { inset-block-start: 0; }

/* Language visibility. Swapped by the i18n layer on <html>. */
[data-lang="ar"] [data-when="en"],
[data-lang="en"] [data-when="ar"] { display: none !important; }
