/* ==========================================================================
   The Common Denominator
   Light, bold and airy. Mobile first. Logical properties throughout so the
   Arabic (RTL) layout mirrors automatically. Colors come from the logo.
   ========================================================================== */

/* Fonts: Poppins, self hosted from /fonts */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Poppins-Bold.woff2") format("woff2"); }

/* Tokens */
:root {
  --white: #FFFFFF;
  --tint: #F5F8FA;
  --text: #1E293B;
  --muted: #64748B;
  --muted-on-tint: #566378;
  --accent: #3E6B52;
  --accent-dark: #2F4D3C;
  --accent-soft: #DCEBE1;
  --sage: #88AF96;
  --butter: #FBF1DC;
  --field-edge: #8193A8;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 18px 44px rgba(15, 23, 42, 0.11);

  --header-h: 64px;
  --maxw: 1160px;
  --section-pad: clamp(64px, 10vw, 128px);

  --font: "Poppins", "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.01em; }

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

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
  padding: 10px 18px; background: var(--accent); color: var(--white);
  border-radius: 999px; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Icons (simple line icons) */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section--tint { background: var(--tint); --muted: var(--muted-on-tint); }

.section-head { max-width: 720px; margin-block-end: clamp(36px, 6vw, 64px); }
.section-head h2, .section-head .page-title { margin-block: 16px 16px; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 300; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.5;
}
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(3.2); opacity: 0; } }

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 30px;
  border: 0; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1.3;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn .icon { width: 20px; height: 20px; transition: transform 0.2s ease; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 26px rgba(62, 107, 82, 0.28); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(62, 107, 82, 0.34); }
  .btn-primary:hover .icon-arrow { transform: translateX(3px); }
  html[dir="rtl"] .btn-primary:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
  .btn-soft:hover { background: #CADFD1; transform: translateY(-3px); }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card--tint { background: var(--tint); box-shadow: none; --muted: var(--muted-on-tint); }
.card h3 { margin-block-end: 12px; }
.card p { color: var(--muted); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card--tint:hover { box-shadow: var(--shadow-sm); }
}

.grid { display: grid; gap: 20px; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }

.icon-wrap {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-block-end: 20px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 18px;
}
.icon-wrap .icon { width: 28px; height: 28px; }
.icon-wrap--sm { width: 48px; height: 48px; margin: 0; border-radius: 15px; }
.icon-wrap--sm .icon { width: 22px; height: 22px; }

/* ==========================================================================
   Header: a floating pill
   ========================================================================== */
.site-header {
  position: sticky; top: 12px; z-index: 100;
  margin-block-start: 12px;
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: 20px 10px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .header-inner { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.92); }

.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--text);
}
.wordmark-mark { height: 38px; width: auto; }
.wm-the { font-weight: 300; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  min-height: 44px; padding: 8px 20px;
  background: var(--tint); color: var(--text);
  border: 0; border-radius: 999px;
  font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.2s ease;
}
@media (hover: hover) { .lang-toggle:hover { background: var(--accent-soft); } }

.menu-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--tint); border: 0; border-radius: 50%;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav panel */
.site-nav {
  display: none;
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 10px;
}
.site-nav.is-open { display: block; animation: panel-in 0.2s ease; }
.nav-list { display: grid; gap: 2px; }
.nav-link {
  display: block; padding: 13px 18px; border-radius: 14px;
  font-weight: 500; color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { background: var(--accent-soft); color: var(--accent-dark); }

@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  margin-block-start: calc(var(--header-h) * -1 - 12px);
  padding-block-start: calc(clamp(56px, 10vw, 128px) + var(--header-h) + 12px);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow--a { width: min(640px, 80vw); height: min(640px, 80vw); inset-block-start: -180px; inset-inline-end: -140px; background: #CFE6D6; opacity: 0.75; }
.glow--b { width: min(520px, 70vw); height: min(520px, 70vw); inset-block-start: 160px; inset-inline-start: -200px; background: #FBEAC2; opacity: 0.6; }

.hero-copy { position: relative; z-index: 1; }
.hero-title {
  max-width: 17ch;
  margin-block: 24px;
  font-size: clamp(2.5rem, 7.4vw, 5.6rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
}
.hero-title .accent {
  color: var(--accent);
  background: linear-gradient(100deg, #2F4D3C 10%, #4F8566 55%, #88AF96 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 600px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }

/* Scrolling brand strip */
.marquee {
  position: relative; z-index: 1;
  margin-block-start: clamp(48px, 7vw, 88px);
  display: grid; gap: 16px;
  padding-block-end: 8px;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { overflow: hidden; padding-block: 8px; }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 110s linear infinite;
}
.marquee-row.is-reverse .marquee-track { animation-direction: reverse; animation-duration: 130s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  flex: none; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 148px; height: 92px; padding: 14px;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.marquee-chip img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding-block: clamp(48px, 7vw, 88px) 0; }
.stats-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--tint); border-radius: 36px;
}
.stat { text-align: center; }
.stat-num {
  font-weight: 600; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; direction: ltr;
  color: var(--accent);
  background: linear-gradient(120deg, #2F4D3C, #5E9473);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { margin-block-start: 12px; font-size: 0.95rem; line-height: 1.4; color: var(--muted-on-tint); }

/* ==========================================================================
   About
   ========================================================================== */
.about-head { max-width: 960px; margin-block-end: clamp(40px, 6vw, 72px); }
.statement {
  margin-block-start: 22px;
  font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.1; letter-spacing: -0.035em;
}
.statement .soft { color: var(--muted); font-weight: 400; }

/* ==========================================================================
   Bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bento-card { display: flex; flex-direction: column; min-height: 240px; }
.bento-card .icon-wrap { margin-block-end: auto; }
.bento-card h3 { margin-block: 36px 10px; font-size: 1.35rem; }
.bento-card--deep { background: var(--accent-dark); color: var(--white); }
.bento-card--deep h3 { color: var(--white); }
.bento-card--deep p { color: #D3E5DA; }
.bento-card--deep .icon-wrap { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.bento-card--soft { background: var(--accent-soft); }
.bento-card--soft p { color: #3F5A4A; }
.bento-card--soft .icon-wrap { background: var(--white); }
.bento-card--warm { background: var(--butter); }
.bento-card--warm p { color: #6B5A33; }
.bento-card--warm .icon-wrap { background: var(--white); color: #7A5A12; }

/* ==========================================================================
   Steps
   ========================================================================== */
.step-num {
  margin-block-end: 18px;
  font-weight: 600; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em;
  color: #BFD8C9 !important; direction: ltr;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-tools { display: grid; gap: 18px; margin-block-end: 20px; }

.search { position: relative; max-width: 520px; }
.search-icon {
  position: absolute; inset-inline-start: 20px; inset-block-start: 50%;
  transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none;
}
.search-input {
  width: 100%; min-height: 56px;
  padding: 12px 22px; padding-inline-start: 54px;
  background: var(--white); border: 1.5px solid var(--field-edge); border-radius: 999px;
  transition: border-color 0.2s ease;
}
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input:focus-visible { border-color: var(--accent); outline-offset: 2px; border-radius: 999px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 8px 20px;
  background: var(--tint); color: var(--text);
  border: 0; border-radius: 999px;
  font-weight: 500; font-size: 0.93rem; line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip-count { font-weight: 400; font-size: 0.8rem; color: var(--muted-on-tint); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--white); }
.chip[aria-pressed="true"] .chip-count { color: var(--accent-soft); }
@media (hover: hover) {
  .chip[aria-pressed="false"]:hover { background: var(--accent-soft); color: var(--accent-dark); transform: translateY(-2px); }
}

.results-count { color: var(--muted); font-size: 0.9rem; margin-block-end: 24px; min-height: 1.6em; }

.brand-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.brand-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.brand-logo {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  aspect-ratio: 5 / 4; padding: 26px;
  background: var(--tint); overflow: hidden;
}
.brand-logo img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s ease;
}
@media (hover: hover) { .brand-card:hover .brand-logo img { transform: scale(1.07); } }
.brand-initials { font-weight: 600; font-size: 2.6rem; letter-spacing: 0.02em; direction: ltr; }
.brand-logo.tone-amber  { background: #FEF3C7; color: #92400E; }
.brand-logo.tone-rose   { background: #FEE2E2; color: #991B1B; }
.brand-logo.tone-indigo { background: #E0E7FF; color: #3730A3; }
.brand-logo.tone-sage   { background: #DCEBE1; color: #2F4D3C; }
.brand-logo.tone-pink   { background: #FCE7F3; color: #9D174D; }
.brand-logo.tone-sky    { background: #E0F2FE; color: #075985; }
.brand-logo:not(.is-initials) { background: var(--tint); }

.brand-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 24px; }
.brand-name { font-size: 1.12rem; line-height: 1.3; margin: 6px 0 0; }
.brand-desc { flex: 1; font-size: 0.93rem; margin-block-end: 8px; }

.visit {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 20px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; font-weight: 500; font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.visit .icon { width: 18px; height: 18px; }
.visit.is-soon { background: var(--tint); color: var(--muted-on-tint); font-weight: 400; }
@media (hover: hover) { a.visit:hover { background: #CADFD1; } }

.empty { text-align: center; max-width: 520px; margin-inline: auto; padding: 44px 24px; }
.empty .btn { margin-block-start: 20px; }
.empty-text { color: var(--muted); }

/* ==========================================================================
   Contact: a deep green panel
   ========================================================================== */
.contact-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 40px; align-items: start;
  padding: clamp(28px, 6vw, 72px);
  background: var(--accent-dark); color: var(--white);
  border-radius: 36px;
}
.contact-panel::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  inset-block-start: -200px; inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(136, 175, 150, 0.35), transparent 70%);
  pointer-events: none;
}
.contact-copy, .contact-form { position: relative; z-index: 1; }
.contact-copy h2 { margin-block: 18px 16px; color: var(--white); }
.contact-copy .lead { margin-block-end: 32px; color: #D3E5DA; }
.eyebrow--onDeep { background: rgba(255, 255, 255, 0.14); color: #E4F1E9; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; align-items: center; gap: 16px; }
.contact-panel .icon-wrap--sm { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.info-label { color: #BBD6C5; font-size: 0.82rem; line-height: 1.4; }
.info-value { font-weight: 500; overflow-wrap: anywhere; color: var(--white); }
@media (hover: hover) { a.info-value:hover { color: var(--accent-soft); } }
.contact-copy :focus-visible { outline-color: #FFFFFF; }

.contact-form { display: grid; gap: 18px; background: var(--white); color: var(--text); }
.contact-form:hover { transform: none; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%; padding: 14px 18px; min-height: 54px;
  background: var(--white); border: 1.5px solid var(--field-edge); border-radius: 16px;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); outline-color: var(--accent); outline-offset: 2px; border-radius: 16px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.85rem; }
.form-status { font-size: 0.92rem; color: var(--accent-dark) !important; font-weight: 500; }
.form-status:empty { display: none; }

/* ==========================================================================
   Page hero (privacy)
   ========================================================================== */
.page-hero { padding-block: clamp(48px, 8vw, 96px) 0; }
.page-title { font-size: clamp(2.3rem, 5.4vw, 3.6rem); letter-spacing: -0.03em; }
.policy-section { margin-block-start: clamp(32px, 5vw, 56px); }
.policy-wrap { max-width: 860px; }
.policy-card { min-height: 280px; padding: clamp(24px, 4vw, 44px); background: var(--white); }
.policy-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.policy-card h2 { margin-block: 16px 12px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.back-link-wrap { margin-block-start: 28px; }
.icon-arrow--back { transform: none; }
html[dir="rtl"] .icon-arrow--back { transform: scaleX(-1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--tint); --muted: var(--muted-on-tint); padding-block: clamp(56px, 8vw, 96px) 28px; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { max-width: 660px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: clamp(180px, 40vw, 245px); height: auto; }
.footer-tag { margin-block: 18px 12px; font-weight: 600; font-size: 1.2rem; line-height: 1.4; color: var(--accent-dark); }
.footer-note { color: var(--muted); font-size: 0.9rem; }
.footer-title { font-weight: 600; margin-block-end: 12px; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-block-start: 44px; color: var(--muted); font-size: 0.85rem; }

/* RTL: mirror directional arrows */
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ==========================================================================
   Motion: fade in on scroll, only when scripting is on and motion is welcome
   ========================================================================== */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 22px; }
  .reveal.is-visible { opacity: 1; translate: none; }
  .reveal { transition: opacity 0.8s ease, translate 0.8s ease; }
  .card.reveal { transition: opacity 0.8s ease, translate 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease; }
  .bento .reveal:nth-child(2), .grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .bento .reveal:nth-child(3), .grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .bento .reveal:nth-child(4), .grid .reveal:nth-child(4) { transition-delay: 0.24s; }
  .hero-copy .reveal:nth-child(2) { transition-delay: 0.1s; }
  .hero-copy .reveal:nth-child(3) { transition-delay: 0.2s; }
  .hero-copy .reveal:nth-child(4) { transition-delay: 0.3s; }
}
@media (scripting: none) { .stats { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover, .chip:hover { transform: none !important; }
  .marquee-row { overflow-x: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ==========================================================================
   Arabic / RTL typography
   ========================================================================== */
html[lang="ar"] body { line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] .hero-title { line-height: 1.3; max-width: 20ch; }
html[lang="ar"] .statement { line-height: 1.35; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
html[lang="ar"] .wordmark { letter-spacing: 0; }
html[lang="ar"] .lead, html[lang="ar"] .hero-sub { font-weight: 400; }

/* Small phones: the pill shows the cd mark only, so it never overflows */
@media (max-width: 459px) {
  .wordmark > span { display: none; }
  .wordmark-mark { height: 42px; }
  .header-inner { padding-inline: 16px 8px; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-web, .b-ord { grid-column: span 2; }
  .stats-panel { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; box-shadow: none; padding: 0; animation: none; }
  .nav-list { display: flex; gap: 4px; }
  .nav-link { padding: 10px 18px; font-size: 0.95rem; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps .step:nth-child(even) { margin-block-start: 32px; }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-web { grid-column: span 4; }
  .b-app { grid-column: span 2; }
  .b-dom { grid-column: span 2; }
  .b-ord { grid-column: span 4; }
  .b-soc, .b-host { grid-column: span 3; }

  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-panel { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
}

@media (min-width: 1100px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
