/* Pavé — temporary public site. Warm ivory, terracotta and gold; Alexandria / IBM Plex Sans Arabic for Arabic,
   Fraunces / Inter Tight for English. A field of small set stones (the pavé setting) is the one motif. */

:root {
  --ivory: #f7f0e6;
  --paper: #fffaf3;
  --sand: #ead9c3;
  --ink: #2b1e18;
  --ink-soft: #6b5548;
  --terracotta: #b4532a;
  --terracotta-deep: #8f3c1b;
  --gold: #c49a5a;
  --line: rgba(43, 30, 24, 0.12);
  --stone: rgba(180, 83, 42, 0.18);
  --radius: 22px;
  --wrap: 1080px;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-ar-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-en: "Inter Tight", system-ui, sans-serif;
  --font-en-display: "Fraunces", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #1d1512;
    --paper: #251b17;
    --sand: #3a2a22;
    --ink: #f4e9dc;
    --ink-soft: #c2ab98;
    --terracotta: #e07a4b;
    --terracotta-deep: #f09a6e;
    --gold: #d9b479;
    --line: rgba(244, 233, 220, 0.12);
    --stone: rgba(224, 122, 75, 0.22);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }

a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-ar { font-family: var(--font-ar-display); font-weight: 700; font-size: 24px; }
.brand-en { font-family: var(--font-en-display); font-style: italic; font-weight: 500; font-size: 21px; color: var(--terracotta); }
.brand-sep { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  padding: 6px 10px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.lang {
  font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; min-height: 36px;
}
.lang:hover { border-color: var(--terracotta); }
.lang .ar { font-family: var(--font-en); }
.lang .en { font-family: var(--font-ar); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.pave {
  position: absolute; inset-block: 0; inset-inline-end: -6%; width: 58%;
  background-image: radial-gradient(circle at 50% 50%, var(--stone) 0 34%, transparent 36%);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 45%, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 65% at 60% 45%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--terracotta); letter-spacing: 0.02em;
  padding: 4px 12px; border: 1px solid var(--stone); border-radius: 999px; background: var(--paper);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--font-ar-display); font-weight: 700;
  font-size: clamp(38px, 7vw, 76px); line-height: 1.2;
  margin: 22px 0 18px; max-width: 14ch; letter-spacing: -0.01em;
}
html[lang="en"] .hero h1 {
  font-family: var(--font-en-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--terracotta); }
html[lang="en"] .hero h1 em { font-style: italic; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 38ch; margin: 0 0 32px; }

.soon {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--ivory);
  border-radius: 14px; padding: 10px 20px 10px 16px; text-decoration: none;
}
.soon svg { width: 26px; height: 26px; flex: none; }
.soon small { display: block; font-size: 12px; opacity: 0.75; line-height: 1.3; }
.soon strong { display: block; font-family: var(--font-en); font-weight: 600; font-size: 19px; line-height: 1.2; }

/* Features */
.features { padding: 24px 0 96px; }
.section-title {
  font-family: var(--font-ar-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 28px;
}
html[lang="en"] .section-title { font-family: var(--font-en-display); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--stone); }
.card .num {
  font-family: var(--font-en-display); font-style: italic; font-size: 15px; color: var(--gold);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sand); color: var(--terracotta); margin: 14px 0 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-ar-display); font-weight: 600; font-size: 21px; margin: 0 0 8px; line-height: 1.4; }
html[lang="en"] .card h3 { font-family: var(--font-en-display); font-weight: 500; font-size: 23px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.note {
  margin-top: 56px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--sand); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.note p { margin: 0; max-width: 56ch; }

/* Prose pages */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 {
  font-family: var(--font-ar-display); font-weight: 700; font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 6px; line-height: 1.25;
}
html[lang="en"] .page h1 { font-family: var(--font-en-display); font-weight: 500; letter-spacing: -0.02em; }
.updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 36px; }
.prose h2 {
  font-family: var(--font-ar-display); font-weight: 600; font-size: 21px;
  margin: 36px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
}
html[lang="en"] .prose h2 { font-family: var(--font-en-display); font-weight: 500; font-size: 23px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--terracotta); }

/* Contact */
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; margin-top: 28px;
}
.contact-card .label { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.email-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.email {
  font-family: var(--font-en); font-weight: 600; font-size: clamp(20px, 4.4vw, 28px);
  direction: ltr; unicode-bidi: isolate; color: var(--ink); word-break: break-all;
  user-select: all; -webkit-user-select: all;
}
.copy {
  font: inherit; font-size: 15px; cursor: pointer; border: 0; border-radius: 999px;
  background: var(--terracotta); color: #fff; padding: 9px 18px; min-height: 40px;
  display: inline-flex; align-items: center; gap: 8px;
}
.copy:hover { background: var(--terracotta-deep); }
.copy svg { width: 18px; height: 18px; }
.copy .done { display: none; }
.copy.is-copied .idle { display: none; }
.copy.is-copied .done { display: inline; }
.contact-card .hint { margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--terracotta); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .mail { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .pave { width: 100%; inset-inline-end: -30%; opacity: 0.7; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top .wrap { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin-inline-start: 0; overflow-x: auto; }
  .lang { margin-inline-start: auto; }
  .hero { padding: 56px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
