/*
 * COVITA landing page. Built on the Figma design system:
 * roast / caramel / cream / leaf, 6px radii, warm borders, no decorative gradients.
 * DM Serif Display for Latin headings, Cairo for Arabic, DM Mono for every figure.
 */

@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url('/landing/assets/fonts/cairo-arabic-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url('/landing/assets/fonts/cairo-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/landing/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-display: swap; font-weight: 400; src: url('/landing/assets/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('/landing/assets/fonts/dm-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('/landing/assets/fonts/dm-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --espresso: #1c0f0a;
  --roast: #2c1810;
  --roast-hover: #3a2518;
  --mahogany: #6b3f2a;
  --caramel: #c8a96e;
  --caramel-dark: #7d5e26;
  --caramel-light: #f0e6d3;
  --paper: #fdfbf8;
  --cream: #f8f4ee;
  --sand: #f2ede6;
  --fog: #e5ddd5;
  --stone: #7a6c62;
  --taupe: #948376;
  --leaf: #3d6b4f;
  --leaf-light: #e8f2ec;
  --amber-dark: #8a4b0f;
  --amber-light: #fdf0dc;
  --white: #fff;

  --font-ar: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'DM Mono', ui-monospace, 'Cairo', monospace;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgb(28 15 10 / 0.05), 0 2px 8px rgb(28 15 10 / 0.04);
  --shadow-lg: 0 24px 60px -18px rgb(28 15 10 / 0.28), 0 8px 18px -8px rgb(28 15 10 / 0.12);
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--espresso);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(en) body { font-family: var(--font-en); line-height: 1.6; }

img, svg { display: block; max-inline-size: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--caramel-light); color: var(--roast); }
:focus-visible { outline: 2px solid var(--mahogany); outline-offset: 3px; border-radius: 3px; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { inline-size: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--radius); background: var(--roast); color: var(--paper); text-decoration: none; }
.skip:focus { inset-block-start: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 50px;
  padding-inline: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform 260ms var(--ease); }
[dir='rtl'] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir='rtl'] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }
.btn--sm { min-block-size: 40px; padding-inline: 16px; font-size: 0.9375rem; }
.btn--primary { background: var(--roast); color: var(--paper); box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 10px 22px -12px rgb(44 24 16 / 0.7); }
.btn--primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 16px 30px -12px rgb(44 24 16 / 0.65); }
.btn--primary:hover { background: var(--roast-hover); }
.btn--ghost { border-color: var(--roast); color: var(--roast); }
.btn--ghost:hover { background: var(--cream); }
.btn--caramel { background: var(--caramel); color: var(--espresso); box-shadow: 0 14px 30px -14px rgb(200 169 110 / 0.7); }
.btn--caramel:hover { background: #b8975a; }

/* ── Type ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 18px;
  color: var(--caramel-dark);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }
.eyebrow--light { color: var(--caramel); }

.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--cream { background: var(--cream); border-block: 1px solid var(--fog); }
.section--paper { background: var(--paper); }
.section__head { max-inline-size: 720px; margin-block-end: clamp(36px, 5vw, 56px); }
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
:lang(en) .section__title, :lang(en) .hero__title, :lang(en) .app__title, :lang(en) .closing__title, :lang(en) .sheet__title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section__lead { margin-block-start: 18px; max-inline-size: 60ch; color: var(--stone); font-size: 1.125rem; text-wrap: pretty; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--paper);
  border-block-end: 1px solid transparent;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.nav.is-scrolled { border-block-end-color: rgb(229 221 213 / 0.8); background: rgb(253 251 248 / 0.78); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 10px 30px -20px rgb(28 15 10 / 0.4); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-block-size: 76px; }
.nav__logo img { inline-size: 138px; block-size: auto; }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 0.9375rem; font-weight: 600; }
.nav__links a { position: relative; color: var(--stone); text-decoration: none; transition: color 160ms; }
.nav__links a::after { content: ''; position: absolute; inset-inline: 0; inset-block-end: -6px; block-size: 1.5px; background: var(--caramel); transform: scaleX(0); transition: transform 200ms var(--ease); }
.nav__links a:hover { color: var(--roast); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  min-inline-size: 44px;
  min-block-size: 40px;
  padding-inline: 10px;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--roast);
  font: 600 0.875rem/1 var(--font-ar);
  cursor: pointer;
}
.lang:hover { border-color: var(--taupe); }
.nav__signin { padding-inline: 6px; color: var(--roast); font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.nav__signin:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 520px) {
  .nav__actions .btn--primary { display: none; }
  .nav__signin { display: inline-flex; align-items: center; min-block-size: 40px; padding-inline: 14px; border-radius: 6px; background: var(--roast); color: var(--paper); }
  .nav__signin:hover { text-decoration: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .nav__logo img { inline-size: 116px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.hero__texture, .app__texture {
  position: absolute;
  inset: 0;
  background: url('/landing/assets/contours.svg') center / 1200px auto repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 85% 40%, #000 30%, transparent 75%);
}
[dir='rtl'] .hero__texture { -webkit-mask-image: radial-gradient(120% 90% at 15% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 15% 40%, #000 30%, transparent 75%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__title .accent { color: var(--caramel-dark); }
:lang(en) .hero__title .accent { font-style: italic; }
.hero__lead { margin-block-start: 24px; max-inline-size: 54ch; color: var(--stone); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }

/* A bag-label strip of lot data under the hero copy. */
.lot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-block-start: 44px;
  border-block: 1px dashed var(--taupe);
}
.lot-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; }
.lot-strip > div:first-child { padding-inline-start: 0; }
.lot-strip > div + div { border-inline-start: 1px solid var(--fog); }
.lot-strip dt { color: var(--stone); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
:lang(ar) .lot-strip dt:not(:first-child) { font-family: var(--font-ar); letter-spacing: 0; }
.lot-strip dd { color: var(--roast); font-size: 0.9375rem; font-weight: 700; }
.lot-strip dd.mono, .lot-strip > div:first-child dd { font-family: var(--font-mono); font-weight: 500; }

.hero__visual { position: relative; display: grid; place-items: center; min-block-size: 680px; perspective: 1800px; }

/* Warm light behind the device, like a lamp over a coffee bar. */
.hero__glow {
  position: absolute;
  inset: 8% 4% 6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(200 169 110 / 0.42), rgb(200 169 110 / 0.12) 55%, transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}

/* ── Device: titanium phone with real proportions (iPhone 15 Pro, 71.6 × 146.6 mm) ── */
.device {
  --w: 312px;
  --ry: 10deg;
  position: relative;
  z-index: 1;
  inline-size: var(--w);
  aspect-ratio: 71.6 / 146.6;
  direction: ltr;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--tilt-y, 0deg) - var(--ry))) rotateX(calc(var(--tilt-x, 0deg) + 3deg)) rotateZ(1deg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
[dir='rtl'] .device { transform: rotateY(calc(var(--tilt-y, 0deg) + var(--ry))) rotateX(calc(var(--tilt-x, 0deg) + 3deg)) rotateZ(-1deg); }
.device.is-tracking { transition: transform 0.25s ease-out; }
/* Ground shadow: a soft contact shadow plus a long ambient one. */
.device::after {
  content: '';
  position: absolute;
  inset-inline: 8%;
  inset-block-end: -46px;
  block-size: 46px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(28 15 10 / 0.38), transparent);
  filter: blur(10px);
  transform: translateZ(-60px);
}
.device__frame {
  position: relative;
  block-size: 100%;
  padding: 3.5px;
  border-radius: calc(var(--w) * 0.178);
  /* Brushed natural titanium. */
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.5), transparent 6%, transparent 94%, rgb(255 255 255 / 0.4)),
    linear-gradient(160deg, #a7a19a 0%, #e4dfd8 14%, #7c766f 32%, #cfc9c1 52%, #6c6660 74%, #b9b3ab 90%, #8d8781 100%);
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 0.6),
    0 0 0 0.5px rgb(0 0 0 / 0.35),
    0 2px 2px rgb(28 15 10 / 0.08),
    0 18px 30px -10px rgb(28 15 10 / 0.35),
    0 60px 90px -30px rgb(28 15 10 / 0.5);
}
.device__bezel {
  position: relative;
  block-size: 100%;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.168);
  background: #050505;
  box-shadow: inset 0 0 0 1px #1d1d1d, inset 0 0 6px rgb(255 255 255 / 0.06);
}
.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  block-size: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.136);
  background: var(--paper);
  color: var(--espresso);
  font-size: 13px;
  line-height: 1.5;
}
:lang(ar) .device__screen { direction: rtl; }
.device__status { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 14px 26px 6px 30px; direction: ltr; color: var(--espresso); }
.device__status .mono { font-family: var(--font-en); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.device__icons { display: flex; align-items: center; gap: 5px; }
.device__icons svg { display: block; fill: currentColor; }
.device__island {
  position: absolute;
  inset-block-start: calc(var(--w) * 0.05);
  left: 50%;
  z-index: 3;
  inline-size: 33%;
  block-size: calc(var(--w) * 0.098);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.device__island i { position: absolute; inset-block-start: 50%; right: 16%; inline-size: 11px; block-size: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a 0 18%, #12162a 40%, #050505 70%); transform: translateY(-50%); }
.device__home { position: absolute; inset-block-end: 7px; left: 50%; z-index: 3; inline-size: 36%; block-size: 5px; border-radius: 999px; background: var(--espresso); opacity: 0.85; transform: translateX(-50%); }
/* Glass: a soft diagonal reflection across the screen. */
.device__glare {
  position: absolute;
  inset: calc(var(--w) * 0.034);
  z-index: 4;
  border-radius: calc(var(--w) * 0.136);
  background: linear-gradient(118deg, rgb(255 255 255 / 0.32) 0%, rgb(255 255 255 / 0.08) 24%, transparent 38%, transparent 78%, rgb(255 255 255 / 0.06) 100%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
/* Titanium side buttons (physical sides, independent of text direction). */
.device__btn { position: absolute; z-index: -1; inline-size: 4px; border-radius: 2px; background: linear-gradient(90deg, #6d6761, #d8d2ca 45%, #8a847d); box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); }
.device__btn--action { left: -2.5px; top: 17%; block-size: 4.5%; }
.device__btn--vol-up { left: -2.5px; top: 25%; block-size: 9%; }
.device__btn--vol-down { left: -2.5px; top: 36%; block-size: 9%; }
.device__btn--power { right: -2.5px; top: 28%; block-size: 14%; }

.ui-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px; font-weight: 700; font-size: 13px; }
.ui-bar__back { font-size: 20px; line-height: 1; color: var(--stone); }
[dir='rtl'] .ui-bar__back { transform: scaleX(-1); }
.ui-media { margin-inline: 0; background: #ededeb; aspect-ratio: 1.3; overflow: hidden; }
.ui-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ui-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 0; }
.ui-badge { align-self: flex-start; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.ui-badge--leaf { background: var(--leaf-light); color: var(--leaf); }
.ui-title { font-size: 16px; font-weight: 800; line-height: 1.35; }
:lang(en) .ui-title { font-family: var(--font-serif); font-weight: 400; font-size: 18px; }
.ui-seller { display: inline-flex; align-items: center; gap: 5px; color: var(--mahogany); font-weight: 600; }
.ui-seller svg { color: var(--leaf); }
.ui-notes { display: flex; gap: 6px; }
.ui-notes span { padding: 1px 8px; border-radius: 3px; background: var(--sand); color: var(--stone); font-size: 11px; }
.ui-price { margin-block-start: 2px; font-size: 22px; color: var(--espresso); }
.ui-price small { font-size: 12px; color: var(--stone); }
.ui-vat { color: var(--stone); font-size: 11px; }
.ui-cta { margin: auto 14px 24px; padding: 13px; border-radius: var(--radius); background: var(--roast); color: var(--paper); font-weight: 700; text-align: center; box-shadow: 0 8px 16px -8px rgb(44 24 16 / 0.6); }

/* ── Frosted floating cards ── */
.float {
  position: absolute;
  z-index: 5;
  padding: 14px 18px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 0 0 1px rgb(44 24 16 / 0.06), 0 24px 48px -16px rgb(44 24 16 / 0.35), 0 6px 14px -6px rgb(44 24 16 / 0.18);
}
.float__k { display: flex; align-items: center; gap: 7px; color: var(--stone); font-size: 0.75rem; font-weight: 700; }
.float__dot { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 4px rgb(200 169 110 / 0.25); animation: pulse 2.4s ease-in-out infinite; }
.float__v { color: var(--roast); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.float__v .mono { font-size: 1.6rem; }
.float__s { color: var(--stone); font-size: 0.75rem; }
.float--quote { inset-block-start: 64px; inset-inline-end: -6px; min-inline-size: 196px; }

.score {
  position: absolute;
  z-index: 5;
  inset-block-start: 18px;
  inset-inline-start: 6%;
  display: grid;
  place-items: center;
  align-content: center;
  inline-size: 98px;
  block-size: 98px;
  border-radius: 50%;
  background: rgb(253 251 248 / 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), inset 0 0 0 7px rgb(253 251 248 / 0.5), inset 0 0 0 8px var(--caramel), 0 22px 40px -16px rgb(44 24 16 / 0.4);
  color: var(--roast);
}
.score .mono { font-size: 1.625rem; line-height: 1; }
.score small { margin-block-start: 4px; color: var(--caramel-dark); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; }

/* ── Floating dallah with rising steam ── */
.dallah {
  position: absolute;
  z-index: 6;
  inset-block-end: -54px;
  inset-inline-start: -8%;
  inline-size: clamp(150px, 15vw, 212px);
  pointer-events: none;
}
.dallah img {
  position: relative;
  z-index: 1;
  inline-size: 100%;
  block-size: auto;
  filter: drop-shadow(0 26px 22px rgb(44 24 16 / 0.32)) drop-shadow(0 6px 6px rgb(44 24 16 / 0.18));
  animation: float 8s ease-in-out infinite;
}
.dallah__shadow { position: absolute; inset-inline: 10%; inset-block-end: -6px; block-size: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgb(28 15 10 / 0.35), transparent); filter: blur(6px); animation: shadow 8s ease-in-out infinite; }
.dallah__steam { position: absolute; z-index: 2; inline-size: 42%; inset-block-start: -2%; left: -12%; overflow: visible; }
.dallah__steam path { stroke: rgb(255 255 255 / 0.9); stroke-width: 5; stroke-linecap: round; filter: blur(3px); opacity: 0; stroke-dasharray: 180; stroke-dashoffset: 180; animation: steam 5.5s ease-in-out infinite; }
.dallah__steam path:nth-child(2) { animation-delay: 1.8s; }
.dallah__steam path:nth-child(3) { animation-delay: 3.6s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(0.5deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.86); opacity: 0.7; } }
@keyframes steam { 0% { stroke-dashoffset: 180; opacity: 0; transform: translateY(10px); } 25% { opacity: 0.55; } 70% { opacity: 0.25; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-26px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgb(200 169 110 / 0.3); } 50% { box-shadow: 0 0 0 7px rgb(200 169 110 / 0.05); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-block-size: 0; padding-block: 36px 40px; }
  .lot-strip > div { padding-inline: 12px; }
}
@media (max-width: 520px) {
  .device { --w: 236px; --ry: 6deg; }
  .float--quote { inset-inline-end: -8px; inset-block-start: 34px; min-inline-size: 0; padding: 10px 14px; }
  .float__v .mono { font-size: 1.3rem; }
  .score { inline-size: 76px; block-size: 76px; inset-inline-start: -2px; }
  .score .mono { font-size: 1.25rem; }
  .dallah { inline-size: 118px; inset-inline-start: -6px; inset-block-end: -6px; }
  .hero__cta .btn { flex: 1; }
  .lot-strip > div { flex: 1 1 30%; padding: 10px 8px; }
  .lot-strip > div:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ── Roast curve ─────────────────────────────────────────── */
.curve { position: relative; margin-block-end: 48px; direction: ltr; }
.curve svg { inline-size: 100%; block-size: clamp(140px, 22vw, 240px); overflow: visible; }
.curve__grid line { stroke: var(--fog); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve__bt { fill: none; stroke: var(--roast); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.curve__ror { fill: none; stroke: var(--caramel); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.js .curve.reveal .curve__bt { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 200ms; }
.js .curve.reveal.is-visible .curve__bt { stroke-dashoffset: 0; }
.curve__marks { position: absolute; inset: 0; pointer-events: none; }
.curve__marks li { position: absolute; inset-block-end: -28px; inset-inline-start: var(--x); transform: translateX(-50%); }
.curve__marks li::before { content: ''; position: absolute; inset-block-end: 26px; inset-inline-start: 50%; inline-size: 1px; block-size: clamp(100px, 18vw, 200px); background: repeating-linear-gradient(to bottom, var(--taupe) 0 3px, transparent 3px 7px); opacity: 0.6; }
.curve__marks span { color: var(--caramel-dark); font-size: 0.6875rem; letter-spacing: 0.12em; }
.curve__axis { position: absolute; inset-block-start: -22px; inset-inline-end: 0; color: var(--taupe); font-size: 0.6875rem; letter-spacing: 0.1em; }

/* ── Chain: photo cards, one per link ── */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-block-start: 72px; }
.chain__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: 440px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--roast);
  color: var(--paper);
  isolation: isolate;
  box-shadow: 0 2px 4px rgb(28 15 10 / 0.08), 0 24px 48px -24px rgb(28 15 10 / 0.45);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chain__img { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1); }
/* Espresso shade from the bottom so text always reads, whatever the photo. */
.chain__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(28 15 10 / 0.94) 0%, rgb(28 15 10 / 0.72) 34%, rgb(28 15 10 / 0.12) 64%, rgb(28 15 10 / 0) 80%),
    linear-gradient(to bottom, rgb(28 15 10 / 0.35), transparent 26%);
}
.chain__item:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgb(28 15 10 / 0.08), 0 40px 70px -28px rgb(28 15 10 / 0.6); }
.chain__item:hover .chain__img { transform: scale(1.08); }
.chain__stage {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  background: rgb(28 15 10 / 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f0e6d3;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
}
.chain__body { padding: 22px 22px 24px; }
.chain__no { display: inline-block; margin-block-end: 10px; color: var(--caramel); font-size: 0.875rem; }
.chain__item h3 { margin-block-end: 8px; color: var(--paper); font-size: 1.35rem; font-weight: 800; line-height: 1.35; }
:lang(en) .chain__item h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; }
.chain__item p { color: #e3d9ce; font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 1100px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chain__item { min-block-size: 400px; } }
/* Phones: a swipeable row of cards. */
@media (max-width: 640px) {
  .chain {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block-end: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .chain::-webkit-scrollbar { display: none; }
  .chain__item { min-block-size: 430px; scroll-snap-align: start; }
  .curve__marks span { font-size: 0.5625rem; letter-spacing: 0.06em; }
}

/* ── Lot sheet ───────────────────────────────────────────── */
.lots { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.lots__copy { margin-block-end: 0; }
.ticks { display: grid; gap: 12px; margin-block-start: 28px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--espresso); font-weight: 600; }
.ticks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.5em;
  inline-size: 18px;
  block-size: 18px;
  border-radius: 50%;
  background: var(--leaf-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%233D6B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.sheet {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
/* Kraft-paper tab, like a sample bag label. */
.sheet::before { content: ''; position: absolute; inset-block-start: -1px; inset-inline-start: 32px; inline-size: 56px; block-size: 6px; border-end-start-radius: 3px; border-end-end-radius: 3px; background: var(--caramel); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-end: 14px; border-block-end: 1px dashed var(--fog); }
.sheet__tag { color: var(--caramel-dark); font-size: 0.75rem; letter-spacing: 0.1em; }
.sheet__title { margin-block: 18px 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 400; font-family: var(--font-serif); line-height: 1.15; direction: ltr; text-align: start; }
[dir='rtl'] .sheet__title { text-align: right; }
.sheet__title span { color: var(--stone); font-family: var(--font-ar); font-size: 0.7em; font-weight: 600; }
:lang(en) .sheet__title span { font-family: var(--font-serif); font-weight: 400; }
.sheet__body { display: grid; grid-template-columns: 1fr 230px; align-items: center; gap: 24px; margin-block-start: 12px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; }
.specs > div { padding-block: 10px; border-block-end: 1px solid var(--sand); }
.specs > div:nth-child(odd) { padding-inline-end: 12px; }
.specs dt { color: var(--stone); font-size: 0.75rem; font-weight: 600; }
.specs dd { color: var(--espresso); font-weight: 700; }
.specs dd.strong { color: var(--caramel-dark); font-size: 1.25rem; line-height: 1.3; }

.radar { position: relative; inline-size: 230px; block-size: 230px; }
.radar svg { inline-size: 100%; block-size: 100%; overflow: visible; }
.radar__rings polygon, .radar__rings line { fill: none; stroke: var(--fog); stroke-width: 1; }
.radar__shape { fill: rgb(200 169 110 / 0.28); stroke: var(--caramel-dark); stroke-width: 1.6; stroke-linejoin: round; transform-origin: center; transform-box: fill-box; }
.js .sheet.reveal .radar__shape { transform: scale(0.2); opacity: 0; transition: transform 1.1s var(--ease) 300ms, opacity 0.6s 300ms; }
.js .sheet.reveal.is-visible .radar__shape { transform: scale(1); opacity: 1; }
.radar figcaption span {
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  color: var(--stone);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--a) * 60deg - 90deg)) translate(108px) rotate(calc(90deg - var(--a) * 60deg));
}
.sheet__notes { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 22px; }
.sheet__notes span { padding: 3px 12px; border: 1px solid var(--caramel-light); border-radius: 999px; background: var(--cream); color: var(--mahogany); font-size: 0.8125rem; font-weight: 600; }

.tiers { inline-size: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tiers th { padding-block: 8px; color: var(--stone); font-size: 0.75rem; font-weight: 600; text-align: start; border-block-end: 1px solid var(--fog); }
.tiers td { padding-block: 10px; border-block-end: 1px solid var(--sand); }
.tiers td:last-child, .tiers th:last-child { text-align: end; }
.tiers small { color: var(--stone); }
.save { margin-inline-start: 6px; padding: 1px 6px; border-radius: 3px; background: var(--leaf-light); color: var(--leaf); font-size: 0.75rem; }
.sheet__foot { margin-block-start: 14px; color: var(--taupe); font-size: 0.75rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 3px; background: var(--sand); color: var(--stone); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.pill--leaf { background: var(--leaf-light); color: var(--leaf); }
.pill--amber { background: var(--amber-light); color: var(--amber-dark); }

@media (max-width: 960px) { .lots { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sheet__body { grid-template-columns: 1fr; }
  .radar { margin-inline: auto; inline-size: 210px; block-size: 210px; }
  .radar figcaption span { transform: translate(-50%, -50%) rotate(calc(var(--a) * 60deg - 90deg)) translate(98px) rotate(calc(90deg - var(--a) * 60deg)); }
}

/* ── Wholesale / RFQ ─────────────────────────────────────── */
.trade { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: clamp(32px, 6vw, 72px); }
.steps { position: relative; display: grid; gap: 26px; }
.steps::before { content: ''; position: absolute; inset-block: 18px; inset-inline-start: 17px; inline-size: 1px; background: repeating-linear-gradient(to bottom, var(--taupe) 0 4px, transparent 4px 9px); }
.steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.steps li > span { grid-row: span 2; display: grid; place-items: center; inline-size: 36px; block-size: 36px; border: 1px solid var(--roast); border-radius: 50%; background: var(--paper); color: var(--roast); font-size: 0.875rem; }
.steps li:last-child > span { background: var(--roast); color: var(--paper); }
.steps b { font-size: 1.125rem; line-height: 1.4; }
.steps small { color: var(--stone); font-size: 0.875rem; }

.rfq { border: 1px solid var(--fog); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.rfq__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px; border-block-end: 1px solid var(--fog); background: var(--cream); }
.rfq__no { color: var(--caramel-dark); font-size: 0.75rem; letter-spacing: 0.1em; }
.rfq__what { font-weight: 700; }
.quotes { inline-size: 100%; border-collapse: collapse; }
.quotes th { padding: 12px 22px; color: var(--stone); font-size: 0.75rem; font-weight: 600; text-align: start; border-block-end: 1px solid var(--fog); }
.quotes td { padding: 16px 22px; border-block-end: 1px solid var(--sand); vertical-align: middle; }
.quotes td:nth-child(2) { font-size: 1.125rem; }
.quotes td small { display: block; color: var(--leaf); font-size: 0.75rem; font-weight: 600; }
.quotes td:last-child { text-align: end; }
.quotes tr.is-best td { background: #f6faf7; }
.quotes tr.is-best td:first-child { box-shadow: inset 3px 0 0 var(--leaf); }
[dir='rtl'] .quotes tr.is-best td:first-child { box-shadow: inset -3px 0 0 var(--leaf); }
.rfq__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; color: var(--taupe); font-size: 0.75rem; }
@media (max-width: 900px) { .trade { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .quotes th, .quotes td { padding-inline: 12px; }
  .quotes th:last-child, .quotes td:last-child { display: none; }
  .rfq__head, .rfq__foot { padding-inline: 14px; }
}

/* ── Trust ───────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1px solid var(--fog); border-inline-start: 1px solid var(--fog); }
.trust li { padding: clamp(22px, 3vw, 34px); border-block-end: 1px solid var(--fog); border-inline-end: 1px solid var(--fog); background: var(--white); transition: background-color 200ms; }
.trust li:hover { background: var(--cream); }
.trust svg { inline-size: 30px; block-size: 30px; margin-block-end: 18px; fill: none; stroke: var(--caramel-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust h3 { margin-block-end: 8px; font-size: 1.15rem; font-weight: 800; }
:lang(en) .trust h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; }
.trust p { color: var(--stone); font-size: 0.95rem; }
.methods { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.methods li { padding: 8px 16px; border: 1px solid var(--fog); border-radius: var(--radius); background: var(--white); color: var(--roast); font-weight: 700; font-size: 0.875rem; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ── App band (the one dark section) ─────────────────────── */
.app { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 120px); background: var(--roast); color: var(--paper); }
.app__texture { opacity: 0.18; -webkit-mask-image: none; mask-image: none; }
.app__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.app__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.25; }
.app__lead { margin-block: 20px 32px; max-inline-size: 52ch; color: #d9cfc4; font-size: 1.125rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-block-size: 56px; padding-inline: 18px 22px; border: 1px solid rgb(242 237 230 / 0.35); border-radius: 10px; color: var(--paper); font-weight: 700; font-size: 1.05rem; line-height: 1.1; direction: ltr; }
.store small { display: block; color: #a39385; font-size: 0.6875rem; font-weight: 600; }
:lang(ar) .store small { font-family: var(--font-ar); }
.app__visual { display: grid; place-items: center; perspective: 1800px; }
.device--dash { --w: 300px; }
.app .device { transform: rotateY(calc(var(--tilt-y, 0deg) + var(--ry))) rotateX(calc(var(--tilt-x, 0deg) + 3deg)) rotateZ(-1.5deg); }
[dir='rtl'] .app .device { transform: rotateY(calc(var(--tilt-y, 0deg) - var(--ry))) rotateX(calc(var(--tilt-x, 0deg) + 3deg)) rotateZ(1.5deg); }
.app .device::after { background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent); }
.ui-org { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.ui-org__avatar { display: grid; place-items: center; inline-size: 34px; block-size: 34px; border-radius: var(--radius); background: var(--caramel-light); color: var(--roast); font-weight: 800; }
.ui-org b { display: block; font-size: 13px; }
.ui-org small { color: var(--stone); font-size: 11px; }
.ui-greet { padding: 10px 16px; font-size: 17px; font-weight: 800; color: var(--espresso); }
:lang(en) .ui-greet { font-family: var(--font-serif); font-weight: 400; font-size: 20px; }
.ui-kpis { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding-inline: 14px; color: var(--espresso); }
.ui-kpis > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--fog); border-radius: var(--radius); background: var(--white); }
.ui-kpis small { color: var(--stone); font-size: 10.5px; line-height: 1.3; }
.ui-kpis b { font-size: 18px; font-weight: 500; }
.ui-kpis b .mono { font-size: 20px; }
.ui-kpis b span:not(.mono) { font-size: 11px; color: var(--stone); }
.ui-kpis em { color: var(--leaf); font-style: normal; font-size: 11px; }
.ui-section { padding: 16px 16px 8px; color: var(--espresso); font-weight: 800; }
.ui-list { margin-inline: 14px; border: 1px solid var(--fog); border-radius: var(--radius); background: var(--white); color: var(--espresso); }
.ui-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: 12px; font-weight: 600; }
.ui-list li + li { border-block-start: 1px solid var(--sand); }
.ui-list i { flex-shrink: 0; inline-size: 26px; block-size: 26px; border-radius: var(--radius); background: var(--amber-light); }
.ui-tabs { display: flex; justify-content: space-around; margin-block-start: auto; padding: 12px 6px 26px; border-block-start: 1px solid var(--fog); background: var(--white); color: var(--stone); font-size: 10.5px; font-weight: 600; }
.ui-tabs .is-on { color: var(--roast); font-weight: 800; box-shadow: 0 -12px 0 -9px var(--caramel); }
@media (max-width: 900px) { .app__grid { grid-template-columns: 1fr; } .app__visual { padding-block-start: 16px; } }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 6vw, 80px); }
.faq__list { border-block-start: 1px solid var(--fog); }
.faq details { border-block-end: 1px solid var(--fog); }
.faq summary { position: relative; display: block; padding: 22px 0; padding-inline-end: 40px; font-size: 1.125rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; inset-inline-end: 4px; inset-block-start: 50%; inline-size: 14px; block-size: 14px; margin-block-start: -7px; background: linear-gradient(var(--roast), var(--roast)) center / 14px 1.5px no-repeat, linear-gradient(var(--roast), var(--roast)) center / 1.5px 14px no-repeat; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block-end: 22px; max-inline-size: 62ch; color: var(--stone); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ── Closing ─────────────────────────────────────────────── */
.closing { padding-block: clamp(64px, 9vw, 112px); background: var(--caramel-light); border-block-start: 1px solid var(--fog); }
.closing__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.closing__title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.3; text-wrap: balance; }
.closing p { max-inline-size: 52ch; color: var(--mahogany); font-size: 1.125rem; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding-block: 48px 36px; border-block-start: 1px solid var(--fog); background: var(--paper); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.footer__brand img { inline-size: 132px; block-size: auto; margin-block-end: 10px; }
.footer__brand p { color: var(--stone); font-size: 0.9375rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; }
.footer__links a { color: var(--stone); text-decoration: none; }
.footer__links a:hover { color: var(--roast); }
.footer__legal { grid-column: 1 / -1; padding-block-start: 22px; border-block-start: 1px solid var(--fog); color: var(--taupe); font-size: 0.8125rem; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

/* ── Reveal on scroll (only when JS runs; off for reduced motion) ── */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 1100ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .chain__item.reveal.is-visible:hover { transform: translateY(-6px); }
.js .curve.reveal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .score, .dallah img, .dallah__shadow, .float__dot { animation: none; }
  .dallah__steam { display: none; }
  .device { transition: none; }
  .js .reveal { filter: none; }
  .js .curve.reveal .curve__bt { stroke-dashoffset: 0; transition: none; }
  .js .sheet.reveal .radar__shape { transform: none; opacity: 1; transition: none; }
}

/* Avoid a flash of Arabic text while English loads. */
.is-en-pending body { visibility: hidden; }

/* Film grain: a faint print texture over the whole page. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
