/* www.scaffapps.com: the SCAFFApps company site.
   Light cream with a dot grid, a heavy monospace, ink text; gold for the fills (the full stop of a headline, the call to
   action), purple for accent words (the brand's colour for the second half of a name on a light background); the
   "What we do" sections on white. Colours are the brand kit's (erp.scaffapps
   marketing/branding/README.md). Logical properties throughout (inline-start/end), so the Arabic page mirrors itself.
   Every motion respects prefers-reduced-motion (at the bottom). */
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 400 800; font-display: swap }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/PlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/PlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap }

:root {
  --bg: #faf7f1; --bg-2: #f2ede4; --night: #2b1640; --tile: #45215f; --purple: #5b2c83; --lilac: #b79bd6;
  --gold: #f0c33c; --gold-deep: #d9a91c; --cream: #fff8e6;
  --text: #17141c; --muted: #5d5866; --dim: #8c8496; --line: rgba(23, 20, 28, .09); --line-2: rgba(23, 20, 28, .16); --card: #fff;
  --light: #faf7f1; --ink: #17141c; --ink-muted: #5d5866; --ink-line: #e6e0d6;
  --ok: #1f7a4d; --bad: #b3261e;
  --r-s: 6px; --r: 14px; --r-l: 22px;
  --wrap: 1240px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ar: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --dots: radial-gradient(rgba(23, 20, 28, .1) 1px, transparent 1.6px);
  --dots-ink: radial-gradient(rgba(23, 20, 28, .09) 1px, transparent 1.6px);
}
*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }   /* hidden wins over any display rule (the form after sending, the phone row) */
html { -webkit-text-size-adjust: 100%; background: var(--bg) }
body { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg);
  background-image: var(--dots); background-size: 26px 26px; overflow-x: hidden }
html[dir="rtl"] body { font-family: var(--ar); font-size: 16px }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1 }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.25 }
p { margin: 0 0 1em }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px }
.dot { color: var(--gold) }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: var(--r-s) }
.skip:focus { inset-inline-start: 8px }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }
::selection { background: var(--gold); color: var(--ink) }

/* [ a label in brackets ] */
.label { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px }
.label::before { content: "[ " } .label::after { content: " ]" }
html[dir="rtl"] .label { font-family: var(--ar); letter-spacing: 0; font-size: 14px }
.nc { text-transform: none }   /* a brand name inside an uppercase label keeps its spelling: SCAFFApps */
.on-light .label { color: var(--ink-muted) }

/* ---------------------------------------------------------------- the floating top bar */
.top { position: fixed; z-index: 90; top: 14px; inset-inline: 0; margin: 0 auto; width: min(var(--wrap), calc(100% - 28px)); height: 66px;
  display: flex; align-items: center; gap: 18px; padding: 0 12px 0 24px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(250, 247, 241, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px rgba(43, 22, 64, .08); transition: transform .35s ease; direction: ltr }   /* stays put in Arabic: only the words change */
.top .links a, .top .pill-cta span { unicode-bidi: plaintext }
.top.away { transform: translateY(-110px) }
.brand { display: flex; flex: none }
.brand img { height: 36px; width: auto }
.links { display: flex; gap: 6px; margin: 0 auto }
.links a { position: relative; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: color .2s }
html[dir="rtl"] .links a { letter-spacing: 0; font-size: 15px }
.links a:hover { color: var(--text) }
.links a[aria-current="page"] { color: var(--text) }
.links a[aria-current="page"]::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold) }
.actions { display: flex; align-items: center; gap: 8px; flex: none }
.lang { font: 500 13px var(--ar); color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color .2s, border-color .2s }
html[dir="rtl"] .lang { font-family: var(--mono) }
.lang:hover { color: var(--text); border-color: var(--muted) }
.pill-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--gold); text-decoration: none;
  padding: 11px 18px; border-radius: 999px; transition: background .2s }
.pill-cta:hover { background: var(--gold-deep) }
.pill-cta i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink) }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; place-items: center }
.menu-btn svg { width: 20px; height: 20px }
@media (max-width: 980px) {
  .links, .actions .lang, .actions .pill-cta { display: none }
  .menu-btn { display: grid; margin-inline-start: auto }
  .top { padding: 0 10px 0 20px }
}

/* the full-screen menu (phones and tablets) */
.sheet { position: fixed; inset: 0; z-index: 95; background: rgba(250, 247, 241, .97); background-image: var(--dots); background-size: 26px 26px;
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s }
.sheet.open { opacity: 1; visibility: visible }
.sheet a.big { display: flex; align-items: baseline; gap: 16px; font-size: clamp(34px, 9vw, 56px); font-weight: 800; letter-spacing: -.04em; text-decoration: none; padding: 6px 0; color: var(--text) }
html[dir="rtl"] .sheet a.big { letter-spacing: 0 }
.sheet a.big small { font-size: 13px; color: var(--purple); font-weight: 500; letter-spacing: 0 }
.sheet .sheet-foot { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap }
.sheet-x { position: absolute; top: 26px; inset-inline-end: 24px; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px }

/* how far down the page: a thin line and a number on the right edge */
.meter { position: fixed; z-index: 80; right: 22px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--dim); direction: ltr; pointer-events: none }
.meter b { position: relative; width: 1px; height: 64px; background: var(--line-2) }
.meter b::after { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: calc(var(--sp, 0) * 64px); background: var(--gold); border-radius: 2px }
@media (max-width: 760px) { .meter { display: none } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--mono); text-decoration: none; cursor: pointer; padding: 15px 24px;
  border-radius: 999px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s }
html[dir="rtl"] .btn { font-family: var(--ar); font-size: 16px }
.btn:hover { transform: translateY(-2px) }
.btn-gold { background: var(--gold); color: var(--ink) }
.btn-gold:hover { background: var(--gold-deep) }
.btn-line { border-color: var(--line-2); color: var(--text) }
.btn-line:hover { border-color: var(--text) }
.btn[disabled] { opacity: .6; cursor: wait; transform: none }
.arrow { display: inline-block; transition: transform .2s }
a:hover > .arrow, button:hover > .arrow { transform: translateX(4px) }
html[dir="rtl"] .arrow { transform: scaleX(-1) }
html[dir="rtl"] a:hover > .arrow, html[dir="rtl"] button:hover > .arrow { transform: scaleX(-1) translateX(4px) }
.btns { display: flex; flex-wrap: wrap; gap: 12px }

/* ---------------------------------------------------------------- hero: the dotted earth */
.hero { position: relative; min-height: max(100vh, 760px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 110px 0 84px; overflow: hidden; text-align: center }
.globe-wrap { position: absolute; top: 92px; left: 50%; width: min(600px, 92vw); aspect-ratio: 1; transform: translateX(-50%) }
.globe-wrap::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(240, 195, 60, .1), transparent 65%); filter: blur(30px) }
#globe { position: relative; width: 100%; height: 100%; display: block }
.globe-tag { position: absolute; top: 13%; inset-inline-end: -4%; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
html[dir="rtl"] .globe-tag { font-size: 14px }
.globe-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: ping 2s infinite }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 195, 60, .6) } 70% { box-shadow: 0 0 0 10px rgba(240, 195, 60, 0) } 100% { box-shadow: 0 0 0 0 rgba(240, 195, 60, 0) } }
.hero-copy { position: relative; z-index: 2; width: 100% }
.hero h1 { font-size: clamp(50px, 10vw, 146px); }
.hero h1 .l2 { display: block; color: rgba(23, 20, 28, .16) }
.hero h1 .l2 { white-space: nowrap }
.cycle { display: inline-block; transition: opacity .35s ease, filter .35s ease, transform .35s ease }
.cycle.swap { opacity: 0; filter: blur(8px); transform: translateY(12px) }
.hero-lead { max-width: 66ch; margin: 28px auto 32px; color: var(--muted); font-size: 15px }
html[dir="rtl"] .hero-lead { font-size: 18px }
.hero .btns { justify-content: center }
.cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 6px }
.cue::after { content: ""; width: 1px; height: 24px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 1.8s infinite }
@keyframes cue { 0% { transform: scaleY(0) } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
@media (max-width: 760px) { .globe-wrap { top: 100px } .globe-tag { display: none } }

/* ---------------------------------------------------------------- the moving ticker */
.ticker { position: relative; padding: 24px 0; border-block: 1px solid var(--line); overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent) }
.ticker-track { display: flex; width: max-content; animation: tick 50s linear infinite }
.ticker:hover .ticker-track { animation-play-state: paused }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap }
.ticker span::after { content: "◆"; color: var(--gold); font-size: 9px }
html[dir="rtl"] .ticker span { letter-spacing: 0; font-family: var(--ar); font-size: 16px }
@keyframes tick { to { transform: translateX(-50%) } }

/* ---------------------------------------------------------------- sections */
.band { position: relative; padding: 140px 0 }
.on-light { background: #fff; color: var(--ink); background-image: var(--dots-ink); background-size: 26px 26px }
.h2 { font-size: clamp(38px, 6vw, 84px) }
.lead { color: var(--muted); max-width: 62ch; font-size: 15px }
html[dir="rtl"] .lead { font-size: 18px }
.on-light .lead { color: var(--ink-muted) }

/* who we are: the words light up as the paragraph scrolls by */
.words { font-size: clamp(24px, 3.3vw, 44px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; max-width: 28ch; margin: 0 }
html[dir="rtl"] .words { letter-spacing: 0; line-height: 1.7 }
.words .w { color: rgba(23, 20, 28, .13); transition: color .25s }
.words .w.on { color: var(--text) }

/* rise into view */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1) }
.rise.in { opacity: 1; transform: none }
.rise.d1 { transition-delay: .08s } .rise.d2 { transition-delay: .16s } .rise.d3 { transition-delay: .24s } .rise.d4 { transition-delay: .32s }

/* ---------------------------------------------------------------- what we do: the headline that turns to dust */
.dust { position: relative; height: 230vh }
.dust-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden }
#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.dust-copy { position: relative; text-align: center; padding: 0 24px }
.dust-copy h2 { font-size: clamp(56px, 11vw, 160px) }
.dust-copy h2.gone, .dust-copy h2.gone .dot { color: transparent }
.dust-copy .lead { margin: 34px auto 30px; max-width: 60ch }
.steps-line { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink) }
.steps-line b { font-weight: 500 } .steps-line b + b::before { content: " · "; color: var(--ink-muted) }
.steps-line b:last-child { color: var(--purple) }
html[dir="rtl"] .steps-line { letter-spacing: 0; font-size: 16px }

/* ---------------------------------------------------------------- the four steps, scrolled sideways */
.side { position: relative; height: 400vh }
.side-stage { position: sticky; top: 0; height: 100vh; overflow: hidden }
.side-track { display: flex; height: 100%; width: 400vw; transform: translateX(calc(var(--p, 0) * -300vw)); will-change: transform }
html[dir="rtl"] .side-track { transform: translateX(calc(var(--p, 0) * 300vw)) }
.panel { position: relative; width: 100vw; flex: none; height: 100%; display: flex; align-items: center; padding: 0 max(28px, calc((100vw - var(--wrap)) / 2 + 28px)) }
.panel .ghost { position: absolute; inset-inline-end: 4vw; top: 50%; transform: translateY(-50%); font-size: clamp(220px, 40vw, 580px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: rgba(23, 20, 28, .05); pointer-events: none; direction: ltr }
.panel-copy { position: relative; max-width: 720px }
.panel h3 { font-size: clamp(56px, 10vw, 140px) }
.panel .rule { width: 120px; height: 1px; background: var(--ink-line); margin: 32px 0 26px }
.panel .tagline { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; margin-bottom: 24px }
.dash { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--ink-muted); font-size: 14px }
html[dir="rtl"] .dash { font-size: 17px }
.dash li { position: relative; padding-inline-start: 30px }
.dash li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 16px; height: 1px; background: currentColor }
.side-nav { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-start }
.side-nav span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink-muted); transition: color .3s; width: 40px; direction: ltr }
.side-nav span small { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: .75 }
html[dir="rtl"] .side-nav span small { font-family: var(--ar); letter-spacing: 0; font-size: 12px }
.side-nav span.on { color: var(--purple) }
.side-nav span.on b::after { content: "."; color: var(--gold) }
.side-nav i { width: 54px; height: 1px; margin-top: 12px; background: var(--ink-line) }
@media (max-width: 600px) { .side-nav i { width: 26px } .side-nav span small { display: none } }

/* ---------------------------------------------------------------- services: cards lit where the pointer is */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px }
.spot { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px; background: var(--card); overflow: hidden; transition: border-color .3s }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 195, 60, .2), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none }
.spot:hover { border-color: rgba(217, 169, 28, .6) }
.spot:hover::before { opacity: 1 }
.spot .n { font-size: 12px; color: var(--purple); letter-spacing: .2em; direction: ltr; display: inline-block }
.spot h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin: 26px 0 12px; line-height: 1.2 }
html[dir="rtl"] .spot h3 { letter-spacing: 0 }
.spot p { color: var(--muted); margin: 0 }
.spot .ico { position: absolute; top: 30px; inset-inline-end: 30px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center }
.spot .ico svg { width: 22px; height: 22px; stroke: var(--purple); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr } .spot { padding: 28px } }

/* ---------------------------------------------------------------- the product: SCAFFERP */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center }
.product-name { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; direction: ltr }
.product-name img { width: 52px; height: 52px; border-radius: 12px }
.product-name b { font-size: 30px; font-weight: 800; letter-spacing: -.02em } .product-name b em { font-style: normal; color: var(--purple) }
.live { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ok); margin-bottom: 18px }
html[dir="rtl"] .live { letter-spacing: 0; font-size: 13px }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping-ok 2s infinite }
@keyframes ping-ok { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .5) } 70% { box-shadow: 0 0 0 9px rgba(31, 122, 77, 0) } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0) } }
.product h3 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 20px }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px }
.chips span { font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted) }
html[dir="rtl"] .chips span { font-size: 14px }
.tilt { position: relative; perspective: 1400px }
.tilt-in { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 40px 90px rgba(43, 22, 64, .2) }
.tilt-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 40%); pointer-events: none }
.tilt-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); direction: ltr }
.tilt-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(23, 20, 28, .14) }
.tilt-bar span { margin-inline-start: 10px; font-size: 11px; color: var(--dim) }
.glow { position: absolute; inset: -18% -10%; background: radial-gradient(closest-side, rgba(91, 44, 131, .2), transparent); filter: blur(40px); pointer-events: none }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 44px } }

/* ---------------------------------------------------------------- the tilted bands of moving words */
.bands { position: relative; height: 280px; overflow: hidden; direction: ltr }
.bands div { position: absolute; left: -10%; width: 140%; white-space: nowrap; font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -.03em; line-height: 1 }
.bands .b1 { top: 50px; transform: rotate(-4deg) translateX(calc(var(--p, 0) * -20%)); color: transparent; -webkit-text-stroke: 1px rgba(23, 20, 28, .3) }
.bands .b2 { top: 150px; transform: rotate(3deg) translateX(calc(-20% + var(--p, 0) * 20%)); color: var(--purple) }
html[dir="rtl"] .bands div { font-family: var(--ar); letter-spacing: 0 }

/* ---------------------------------------------------------------- how we work */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px }
.step-n { font-size: 88px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(91, 44, 131, .45); margin-bottom: 18px; direction: ltr; text-align: start }
.step h3 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 20px }
.step .dash { color: var(--muted) }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; gap: 40px } }

/* ---------------------------------------------------------------- talk to us + the closing line, over a field of stars */
.finale { position: relative; overflow: hidden; padding: 140px 0 160px }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.finale .wrap { position: relative }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; background: var(--card); transition: border-color .25s, background .25s }
.contact-card:hover { border-color: var(--gold-deep); background: #fffaf0 }
.contact-card .ci { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none }
.contact-card .ci svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.contact-card b { display: block; font-size: 17px }
.contact-card small { color: var(--muted); font-size: 12.5px }
html[dir="rtl"] .contact-card small { font-size: 15px }
.contact-card .arrow { margin-inline-start: auto; color: var(--muted) }
@media (max-width: 760px) { .cards-2 { grid-template-columns: 1fr } }
.closing { font-size: clamp(42px, 8vw, 118px); margin-top: 150px }
.closing .blur { display: inline-block; color: var(--purple); filter: blur(18px); opacity: .2; transition: filter 1.4s ease, opacity 1.4s ease }
.closing.in .blur { filter: blur(0); opacity: 1 }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 54px 0 34px; font-size: 13px; color: var(--muted) }
html[dir="rtl"] .foot { font-size: 15px }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px }
.foot img { height: 34px; width: auto; margin-bottom: 14px }
html[dir="rtl"] .foot-brand a { display: inline-block; direction: ltr }
.foot h4 { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--dim) }
html[dir="rtl"] .foot h4 { letter-spacing: 0; font-size: 13px }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.foot a { text-decoration: none } .foot a:hover { color: var(--purple) }
.foot .mail { direction: ltr; unicode-bidi: isolate }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; font-size: 12px; color: var(--dim) }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr } .foot-brand { grid-column: 1 / -1 } }

/* ---------------------------------------------------------------- inner pages (About, Contact) */
.page-hero { position: relative; padding: 200px 0 110px; overflow: hidden }
.page-hero .wrap { position: relative }
.page-hero h1 { font-size: clamp(52px, 9vw, 128px) }
.page-hero .lead { margin-top: 32px; font-size: 16px; max-width: 66ch }
html[dir="rtl"] .page-hero .lead { font-size: 19px }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start }
.split p { color: var(--muted) }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 20px } }
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; direction: ltr }
.fam { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 40px 28px; text-align: center; background: var(--card) }
.fam b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em }
.fam b em { font-style: normal; color: var(--purple) }
.fam span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px }
html[dir="rtl"] .fam span { direction: rtl; font-family: var(--ar); font-size: 15px }
.fam-soon { border-style: dashed; background: transparent } .fam-soon b em { color: var(--lilac) }
@media (max-width: 760px) { .family { grid-template-columns: 1fr } }

/* the contact form */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr } }
.contact-side .contact-card { margin-top: 14px }
.form { border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 38px; background: var(--card); box-shadow: 0 20px 60px rgba(43, 22, 64, .07); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.form form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px }
.form label { display: grid; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
html[dir="rtl"] .form label { letter-spacing: 0; font-size: 14px }
.form .wide { grid-column: 1 / -1 }
.form input, .form textarea { font: 400 15px var(--mono); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 2px; width: 100%; transition: border-color .2s }
html[dir="rtl"] .form input, html[dir="rtl"] .form textarea { font-family: var(--ar); font-size: 17px }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--purple) }
.form textarea { resize: vertical; min-height: 120px }
.form .ltr-in { direction: ltr; text-align: left }
html[dir="rtl"] .form .ltr-in { text-align: right }
.req { color: var(--purple) }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px }
.form-foot small { color: var(--dim); font-size: 12px }
.form-error { color: var(--bad); margin: 0; font-size: 14px }
.thanks { text-align: center; padding: 30px 6px }
.thanks .tick { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--ok); display: grid; place-items: center; margin: 0 auto 22px }
.thanks .tick svg { width: 30px; height: 30px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }
.thanks h2 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 12px }
.thanks p { color: var(--muted) }
@media (max-width: 560px) { .form { padding: 24px } .form form { grid-template-columns: 1fr } }

.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 24px }
.lost h1 { font-size: clamp(80px, 18vw, 220px) }
.lost .btns { justify-content: center; margin-top: 10px }

/* ---------------------------------------------------------------- less motion, when the visitor asks for it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .rise { opacity: 1; transform: none }
  .words .w { color: var(--text) }
  .dust { height: auto } .dust-stage { position: relative; height: auto; padding: 140px 0 }
  .side { height: auto } .side-stage { position: relative; height: auto } .side-track { width: 100%; flex-direction: column; transform: none !important }
  .panel { width: 100%; padding-block: 90px } .side-nav { display: none }
  .closing .blur { filter: none; opacity: 1 }
}
.ltr { direction: ltr; unicode-bidi: isolate }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.grid-2.three-up { grid-template-columns: repeat(3, 1fr) }
@media (max-width: 980px) { .grid-2.three-up { grid-template-columns: 1fr } }
.finale .closing:first-child { margin-top: 0 }
.finale-btns { margin-top: 44px }
.lost { position: relative; overflow: hidden }
.lost > div { position: relative }
.lost .lead { margin: 20px auto 28px }
.h2 + .lead { margin-top: 26px }
#product { padding-top: 40px }
.contact-band { padding-top: 0 }

/* ---------------------------------------------------------------- the team (cards drawn by site.js from team.js) */
.team-band { padding-top: 0 }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.member { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px 30px; background: var(--card);
  transition: border-color .3s, box-shadow .3s, opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1) }
.member:hover { border-color: rgba(217, 169, 28, .6); box-shadow: 0 24px 60px rgba(43, 22, 64, .08) }
.avatar { position: relative; isolation: isolate; width: 96px; height: 96px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 26px }
.avatar img { width: 100%; height: 100%; object-fit: cover }
.avatar svg { width: 54px; height: 54px; stroke: var(--purple); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.member-ai .avatar { background: var(--night); border: 0; overflow: visible }
.member-ai .avatar::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; background: conic-gradient(var(--gold), var(--purple), var(--gold)); animation: ring 5s linear infinite }
.member-ai .avatar::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--night) }
.member-ai .avatar svg { stroke: var(--gold) }
@keyframes ring { to { transform: rotate(360deg) } }
.ai-badge { position: absolute; top: 30px; inset-inline-end: 28px; font-size: 11px; font-weight: 700; letter-spacing: .2em; padding: 4px 10px; border-radius: 999px; background: var(--night); color: var(--gold) }
.member .role { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px }
html[dir="rtl"] .member .role { letter-spacing: 0; font-size: 14px }
.member h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 14px }
html[dir="rtl"] .member h3 { letter-spacing: 0 }
.member h3.soon { color: var(--dim) }
.member p { color: var(--muted); margin: 0; font-size: 14px }
html[dir="rtl"] .member p { font-size: 16px }
.member .li { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--purple); text-decoration: none; border-bottom: 1px solid currentColor }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr } }
.team-link { margin-top: 30px }
.globe-tag .where { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-size: 12px }
.globe-tag { direction: ltr }   /* the place is always in English, so the tag reads left to right on the Arabic page too */
