/* ==========================================================================
   ECHO — Creative Marketing Agency
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Buttons
   5.  Header & navigation
   6.  Hero
   7.  Intro
   8.  Services
   9.  Process
   10. About
   11. Final CTA
   12. Contact & form
   13. Footer
   14. Utilities, motion, responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --plum-900: #1C0A11;
  --plum-800: #2A1119;
  --plum:     #371724;
  --plum-600: #4A1F31;
  --plum-500: #5E2A3F;

  --cream:      #D9CEBB;
  --cream-soft: #EFE9DD;
  --cream-warm: #F4EFE5;
  --white:      #FCFAF6;

  --blue:       #74A5C5;
  --blue-soft:  #9CC0D8;
  --blue-deep:  #4E7F9F;

  --ink: #221019;

  /* Text roles — tuned for contrast, not guessed alphas */
  --text-on-light:        #221019;
  --text-on-light-muted:  #5A464E;
  --text-on-light-subtle: #7C6A72;
  --text-on-dark:         #F1E9DB;
  --text-on-dark-muted:   #C4B7A4;
  --text-on-dark-subtle:  #9E9184;

  --line-light: rgba(55, 23, 36, 0.14);
  --line-dark:  rgba(217, 206, 187, 0.18);

  /* Type */
  --font-en-display: 'Jost', 'Segoe UI', sans-serif;
  --font-en-body:    'Inter', 'Segoe UI', sans-serif;
  --font-ar:         'Cairo', 'Segoe UI', sans-serif;
  --font-display: var(--font-en-display);
  --font-body:    var(--font-en-body);

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.34vw, 1.32rem);
  --step-2:  clamp(1.3rem, 1.16rem + 0.66vw, 1.72rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.7vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.3vw, 4.5rem);

  /* Space */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.25rem;
  --space-xl:  3.25rem;
  --space-2xl: clamp(3.5rem, 7vw, 6rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Shape */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Depth — warm-tinted, never neutral grey */
  --shadow-sm: 0 2px 8px rgba(55, 23, 36, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(55, 23, 36, 0.22);
  --shadow-lg: 0 28px 60px -24px rgba(55, 23, 36, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.2s;
  --base: 0.35s;
  --slow: 0.7s;

  --focus-ring: 0 0 0 3px rgba(116, 165, 197, 0.55);
  --header-h: 82px;
}

html[lang="ar"] {
  --font-display: var(--font-ar);
  --font-body: var(--font-ar);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
section { position: relative; }

/* Anchors must clear the fixed header */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* One consistent focus treatment across the whole site */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
  top: var(--space-sm);
  inset-inline-start: var(--space-sm);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-full);
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  transform: translateY(-160%);
  transition: transform var(--base) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); line-height: 1.3; }

html[lang="ar"] h1 { line-height: 1.25; letter-spacing: 0; }
html[lang="ar"] h2 { line-height: 1.35; letter-spacing: 0; }
html[lang="ar"] h3 { line-height: 1.5; }

.lede {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--text-on-light-muted);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

.section-head {
  max-width: 48ch;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.95em 1.85em;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--base) var(--ease),
    color var(--base) var(--ease),
    border-color var(--base) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--base) var(--ease);
}
.btn .arrow {
  width: 17px; height: 17px;
  flex: none;
  transition: transform var(--base) var(--ease);
}
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-primary {
  background: var(--cream);
  color: var(--plum);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
  background: var(--white);
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}

/* On light backgrounds the primary button flips to plum */
.intro .btn-primary,
.services .btn-primary,
.about .btn-primary,
.process .btn-primary {
  background: var(--plum);
  color: var(--cream);
}
.intro .btn-primary:hover,
.services .btn-primary:hover,
.about .btn-primary:hover,
.process .btn-primary:hover { background: var(--plum-600); }

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; background: rgba(217, 206, 187, 0.12); }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding-block: 0.9rem;
  transition: min-height var(--base) var(--ease);
  color: var(--cream);
}
.site-header.is-scrolled {
  background: rgba(252, 250, 246, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line-light), var(--shadow-sm);
}
.site-header.is-scrolled .header-inner {
  min-height: 64px;
  color: var(--ink);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-en-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: inherit;
}
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-word { transform: translateX(0.13em); } /* balance the tracked-out word */
.logo-sub {
  margin-top: 0.4em;
  transform: translateX(0.25em); /* balance its own trailing letter-spacing */
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 1.5em;
  opacity: 0.62;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--blue);
  vertical-align: middle;
  margin-block-end: 0.2em;
}
.site-header.is-scrolled .logo-mark { color: var(--plum); }

.about h2 .logo-mark,
.contact-intro h2 .logo-mark {
  width: 0.62em;
  height: 0.62em;
  margin-inline: 0.1em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.5rem);
}
.nav-desktop a {
  position: relative;
  padding-block: 0.35rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
  transition: opacity var(--base) var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform var(--base) var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.is-current { opacity: 1; }
.nav-desktop a:hover::after,
.nav-desktop a.is-current::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: var(--r-full);
  border: 1.5px solid currentColor;
  opacity: 0.75;
  transition: opacity var(--base) var(--ease);
}
.lang-switch:hover { opacity: 1; }
.lang-switch button {
  min-width: 34px;
  padding: 0.3rem 0.45rem;
  border-radius: var(--r-full);
  font-family: var(--font-en-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: 0.65;
  transition: background var(--base) var(--ease), opacity var(--base) var(--ease), color var(--base) var(--ease);
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button.is-active {
  opacity: 1;
  background: var(--cream);
  color: var(--plum);
}
.site-header.is-scrolled .lang-switch button.is-active {
  background: var(--plum);
  color: var(--cream);
}

.header-cta { padding: 0.7em 1.4em; font-size: var(--step--1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  border: 1.5px solid currentColor;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  opacity: 0.85;
}
.nav-toggle .bar {
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
}
.nav-toggle.is-active .bar:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

.scroll-progress {
  height: 2px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cream));
  transition: width 0.1s linear;
}
[dir="rtl"] .scroll-progress span { margin-inline-start: auto; }

/* ---------- Mobile nav ---------- */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--plum);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.nav-mobile-list a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  color: var(--cream);
  line-height: 1.2;
}
.nav-mobile-cta { margin-top: var(--space-2xs); }
.nav-mobile-mail {
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: calc(var(--space-2xl) + 2rem);
  background: radial-gradient(120% 90% at 78% 12%, var(--plum-600) 0%, var(--plum) 42%, var(--plum-900) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--blue-soft); margin-bottom: var(--space-md); }

.hero-title { max-width: 15ch; color: var(--cream); }
.hero-sub {
  margin-top: var(--space-md);
  max-width: 48ch;
  font-size: var(--step-1);
  color: var(--text-on-dark-muted);
  text-wrap: pretty;
}
.hero-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-actions .btn-ghost { color: var(--cream); }

.hero-facts {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--step--1);
  color: var(--text-on-dark-subtle);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.hero-facts li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
  flex: none;
}

/* Echo rings — the brand mark, expanded */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco .ring {
  position: absolute;
  top: 50%;
  inset-inline-end: 6%;
  border: 1.5px solid var(--cream);
  border-radius: var(--r-lg);
  /* translate by half the element's own size so every ring shares one centre */
  transform: translate(50%, -50%) rotate(45deg);
  animation: echo-pulse 7s var(--ease) infinite;
}
[dir="rtl"] .hero-deco .ring { transform: translate(-50%, -50%) rotate(45deg); }
.hero-deco .r1 { width: min(20vw, 190px); aspect-ratio: 1; opacity: 0.55; animation-delay: 0s; }
.hero-deco .r2 { width: min(31vw, 310px); aspect-ratio: 1; opacity: 0.3; animation-delay: 0.5s; }
.hero-deco .r3 { width: min(43vw, 440px); aspect-ratio: 1; opacity: 0.17; animation-delay: 1s; }
.hero-deco .r4 { width: min(56vw, 580px); aspect-ratio: 1; opacity: 0.09; animation-delay: 1.5s; }
.hero-deco .glow {
  position: absolute;
  top: 50%;
  inset-inline-end: 6%;
  width: min(30vw, 300px);
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  background: radial-gradient(circle, rgba(116, 165, 197, 0.4), transparent 68%);
  filter: blur(12px);
}
/* Animate `scale` on its own so the direction-aware transform above stays intact */
@keyframes echo-pulse {
  0%, 100% { scale: 1; }
  50%      { scale: 1.05; }
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
  transition: color var(--base) var(--ease);
}
html[lang="ar"] .scroll-cue { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .scroll-cue { transform: translateX(50%); }
.scroll-cue:hover { color: var(--cream); }
.scroll-cue .line {
  width: 1px; height: 38px;
  background: currentColor;
  opacity: 0.4;
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -100%;
  height: 100%;
  background: var(--cream);
  animation: scrollcue 2s ease-in-out infinite;
}
@keyframes scrollcue {
  0%   { top: -100%; }
  65%  { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   7. INTRO
   ========================================================================== */
.intro {
  /* Services follows on the same white ground, so the pair shares one gap */
  padding-block: var(--section-y) calc(var(--section-y) * 0.45);
  background: var(--white);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.1fr);
  gap: var(--space-lg) var(--space-2xl);
  align-items: start;
}
.intro-grid > .eyebrow { padding-top: 0.7em; }
.intro-body { display: flex; flex-direction: column; gap: var(--space-md); }
.intro-body h2 { color: var(--plum); max-width: 20ch; }
.intro-body .lede { max-width: 58ch; }

/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.services {
  padding-block: calc(var(--section-y) * 0.55) var(--section-y);
  background: var(--white);
}
.services .section-head h2 { color: var(--plum); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(116, 165, 197, 0.5);
  box-shadow: var(--shadow-md);
}
.service-num {
  font-family: var(--font-en-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--blue-deep);
}
.service-icon {
  width: 46px; height: 46px;
  margin-top: 0.2rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cream-soft);
  color: var(--plum);
  transition: background var(--base) var(--ease), color var(--base) var(--ease), transform var(--base) var(--ease);
}
.service-icon svg { width: 23px; height: 23px; }
.service-card:hover .service-icon {
  background: var(--plum);
  color: var(--cream);
  transform: rotate(-4deg);
}
.service-card h3 { color: var(--plum); margin-top: 0.3rem; }
.service-card p {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-on-light-muted);
  text-wrap: pretty;
}

/* ==========================================================================
   9. PROCESS
   ========================================================================== */
.process {
  padding-block: var(--section-y);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
}
.process .section-head h2 { color: var(--plum); }

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.process-step {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--line-light);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  transition: border-color var(--base) var(--ease);
}
.process-step::before {
  content: "";
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--slow) var(--ease);
}
.process-step.is-visible::before { width: 100%; }
.process-num {
  font-family: var(--font-en-display);
  font-size: var(--step-3);
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1;
}
.process-step h3 { color: var(--plum); margin-top: var(--space-2xs); }
.process-step p {
  color: var(--text-on-light-muted);
  font-size: var(--step--1);
  line-height: 1.65;
  max-width: 38ch;
  text-wrap: pretty;
}

/* ==========================================================================
   10. ABOUT
   ========================================================================== */
.about {
  padding-block: var(--section-y);
  background: var(--cream-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-2xl);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 100% at 30% 18%, var(--plum-600), var(--plum) 45%, var(--plum-900) 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 26% 20%, rgba(116, 165, 197, 0.32), transparent 58%);
  pointer-events: none;
}

.echo-mark {
  position: relative;
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.echo-mark .e {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 18%;
  transform: rotate(45deg);
  animation: echo-drift 6s var(--ease) infinite;
}
.echo-mark .e1 { width: 30%; aspect-ratio: 1; background: var(--cream); animation-delay: 0s; }
.echo-mark .e2 { width: 52%; aspect-ratio: 1; background: var(--blue); opacity: 0.85; animation-delay: 0.4s; }
.echo-mark .e3 { width: 74%; aspect-ratio: 1; border: 1.5px solid var(--cream); opacity: 0.38; animation-delay: 0.8s; }
.echo-mark .e4 { width: 96%; aspect-ratio: 1; border: 1.5px solid var(--cream); opacity: 0.18; animation-delay: 1.2s; }
.echo-mark .e2 { mix-blend-mode: screen; }
@keyframes echo-drift {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.07); }
}

.about-visual-caption {
  position: absolute;
  bottom: var(--space-md);
  inset-inline: var(--space-md);
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--text-on-dark-muted);
}

.about-body { display: flex; flex-direction: column; gap: var(--space-md); container-type: inline-size; }
.about-body h2 {
  color: var(--plum);
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1rem, 4.2cqw, 2.9rem);
}
.about-body .lede { max-width: 56ch; }

.about-values {
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}
.about-values li {
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.about-values li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-num {
  display: block;
  font-family: var(--font-en-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.1;
}
.value-label {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  color: var(--text-on-light-subtle);
}

/* ==========================================================================
   11. FINAL CTA
   ========================================================================== */
.final-cta {
  padding-block: var(--section-y);
  background: radial-gradient(110% 130% at 50% 0%, var(--plum-600) 0%, var(--plum) 45%, var(--plum-900) 100%);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final-cta .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.final-cta .eyebrow { color: var(--blue-soft); }
.final-cta .eyebrow::before { display: none; }
.final-cta h2 { max-width: 18ch; color: var(--cream); }
.final-cta-text { max-width: 48ch; color: var(--text-on-dark-muted); }
.final-cta .btn { margin-top: var(--space-2xs); }

.cta-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.cta-deco .ring {
  position: absolute;
  border: 1.5px solid var(--cream);
  border-radius: var(--r-xl);
  transform: rotate(45deg);
  animation: cta-pulse 8s var(--ease) infinite;
}
.cta-deco .r1 { width: min(46vw, 420px); aspect-ratio: 1; opacity: 0.1; animation-delay: 0s; }
.cta-deco .r2 { width: min(64vw, 620px); aspect-ratio: 1; opacity: 0.06; animation-delay: 0.7s; }
.cta-deco .r3 { width: min(84vw, 820px); aspect-ratio: 1; opacity: 0.04; animation-delay: 1.4s; }
@keyframes cta-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.06); }
}

/* ==========================================================================
   12. CONTACT & FORM
   ========================================================================== */
.contact {
  padding-block: var(--section-y);
  background: var(--plum-800);
  color: var(--text-on-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-2xl);
  align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-intro .eyebrow { color: var(--blue-soft); }
.contact-intro h2 { max-width: 13ch; color: var(--cream); }
.contact-text { max-width: 42ch; color: var(--text-on-dark-muted); }

.contact-info {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease);
}
a.contact-info-item:hover {
  background: rgba(217, 206, 187, 0.07);
  border-color: rgba(217, 206, 187, 0.35);
}
.ci-icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(116, 165, 197, 0.16);
  color: var(--blue-soft);
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-body { display: flex; flex-direction: column; min-width: 0; }
.ci-body .label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
html[lang="ar"] .ci-body .label { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.ci-body .value {
  font-size: var(--step-0);
  color: var(--cream);
  overflow-wrap: anywhere;
}

.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted);
  transition: background var(--base) var(--ease), color var(--base) var(--ease),
              border-color var(--base) var(--ease), transform var(--base) var(--ease);
}
.social-row a svg { width: 19px; height: 19px; }
.social-row a:hover {
  background: var(--cream);
  color: var(--plum);
  border-color: var(--cream);
  transform: translateY(-3px);
}

/* ---------- Form ---------- */
.form-card {
  background: rgba(252, 250, 246, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-intro {
  margin-bottom: var(--space-md);
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}
.field { margin-bottom: var(--space-sm); }
.field label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-bottom: 0.45rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--cream);
}
.field .req { color: var(--blue-soft); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: rgba(28, 10, 17, 0.4);
  color: var(--cream);
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-on-dark-subtle); opacity: 0.75; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: rgba(217, 206, 187, 0.36); }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: rgba(28, 10, 17, 0.62);
  box-shadow: var(--focus-ring);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E2857E; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.6rem;
  cursor: pointer;
}
.select-wrap select option { color: var(--ink); background: var(--white); }
.select-arrow {
  position: absolute;
  inset-inline-end: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--text-on-dark-muted);
  pointer-events: none;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #EFA49E;
}
.field-error.is-visible { display: block; }

/* Honeypot — off-screen, never focusable by design */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-foot {
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.form-note { font-size: var(--step--1); color: var(--text-on-dark-subtle); }

/* Stays in the accessibility tree at all times so the live region actually
   announces; with no text it collapses to zero height and shows nothing. */
.form-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
}
.form-status.is-success,
.form-status.is-error {
  margin-top: var(--space-sm);
  padding: 0.85rem 1rem;
}
.form-status.is-success {
  background: rgba(116, 165, 197, 0.16);
  border: 1px solid rgba(116, 165, 197, 0.42);
  color: var(--blue-soft);
}
.form-status.is-error {
  background: rgba(226, 133, 126, 0.14);
  border: 1px solid rgba(226, 133, 126, 0.4);
  color: #EFA49E;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--plum-900);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-2xl) var(--space-md);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; max-width: 34ch; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-mark { color: var(--blue); }
.footer-brand p { font-size: var(--step--1); }
.footer-mail {
  align-self: flex-start;
  font-size: var(--step--1);
  color: var(--blue-soft);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base) var(--ease);
}
.footer-mail:hover { border-color: currentColor; }

.footer-nav { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col .label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
html[lang="ar"] .footer-col .label { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.footer-col a, .footer-col span:not(.label) { font-size: var(--step--1); }
.footer-col a { transition: color var(--base) var(--ease); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--text-on-dark-subtle);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
}
.footer-legal li { display: flex; align-items: center; gap: 0.85em; }
.legal-badge {
  width: auto;
  height: 46px;
  border-radius: 4px;
  flex: none;
}
.legal-body { display: flex; flex-direction: column; gap: 0.15rem; }
.legal-label { color: var(--text-on-dark-subtle); }
.legal-value {
  color: var(--text-on-dark-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.footer-copy {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-on-dark-subtle);
}
.footer-bottom .social-row a { width: 38px; height: 38px; }
.footer-bottom .social-row a svg { width: 16px; height: 16px; }

/* ==========================================================================
   SPLASH
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 42%, var(--plum-600) 0%, var(--plum) 45%, var(--plum-900) 100%);
  color: var(--cream);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.splash-deco .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1.5px solid var(--cream);
  border-radius: var(--r-lg);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
  animation: splash-ring 2.6s var(--ease) infinite;
}
.splash-deco .r1 { width: 130px; animation-delay: 0s; }
.splash-deco .r2 { width: 210px; animation-delay: 0.45s; }
.splash-deco .r3 { width: 290px; animation-delay: 0.9s; }
@keyframes splash-ring {
  0%   { opacity: 0; scale: 0.82; }
  18%  { opacity: 0.4; }
  100% { opacity: 0; scale: 1.15; }
}

.splash-mark {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  color: var(--blue);
  opacity: 0;
  transform: scale(0.6);
  animation: splash-mark-in 0.7s var(--ease) 0.15s forwards;
}
@keyframes splash-mark-in {
  to { opacity: 1; transform: scale(1); }
}

.splash-text {
  position: relative;
  z-index: 1;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.splash-word {
  font-family: var(--font-en-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translate(0.15em, 10px);
  animation: splash-word-in 0.6s var(--ease) 0.45s forwards;
}
@keyframes splash-word-in {
  to { opacity: 1; transform: translate(0.15em, 0); }
}
.splash-sub {
  margin-top: 0.6em;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  opacity: 0;
  letter-spacing: 0.1em;
  animation: splash-sub-in 0.8s var(--ease) 0.75s forwards;
}
@keyframes splash-sub-in {
  0%   { opacity: 0; letter-spacing: 0.1em; }
  100% { opacity: 1; letter-spacing: 0.5em; }
}

/* ==========================================================================
   14. UTILITIES, MOTION, RESPONSIVE
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  inset-inline-end: var(--space-md);
  z-index: 80;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--plum);
  color: var(--cream);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease),
              visibility var(--base), background var(--base) var(--ease);
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--plum-600); }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Staggered children within a grid */
.services-grid [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }
.process-list [data-reveal] { transition-delay: calc(var(--i, 0) * 110ms); }

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-desktop,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .intro-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .intro-grid > .eyebrow { padding-top: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: 1fr; gap: var(--space-sm); }
  .process-step { padding-block: var(--space-md); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-visual { order: -1; aspect-ratio: 16 / 11; }
  .echo-mark { width: 30%; }
  .contact-intro h2 { max-width: 22ch; }
  .hero-deco .glow { display: none; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .about-values li { display: flex; align-items: baseline; gap: 0.8rem; }
  .value-num { font-size: var(--step-1); }
  .value-label { margin-top: 0; }
  .footer-top { flex-direction: column; gap: var(--space-lg); }
  .footer-nav { gap: var(--space-xl); }
  .hero-actions .btn { flex: 1 1 100%; }
  .form-foot .btn { width: 100%; }
  .form-note { text-align: center; width: 100%; }
  .scroll-cue { display: none; }
  .back-to-top { width: 44px; height: 44px; }
}

/* Respect the system preference — every motion here is decorative */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .process-step::before { width: 100%; }
}
