/* Latin faces (en / fr) + Arabic faces (ar). Google serves each script behind
   its own unicode-range, so an English visitor never downloads the Arabic
   fonts, and vice versa. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Reem+Kufi:wght@400;500;600;700&display=swap");

/* =========================================================
   Chenni Holdings — design tokens
   ========================================================= */
:root {
  /* Surfaces */
  --navy-950: #060C16;
  --navy-900: #0A1424;
  --navy-800: #0E1B2E;
  --charcoal: #121821;
  --paper: #FFFFFF;
  --paper-soft: #F5F6F8;

  /* Ink */
  --ink: #0B1220;
  --ink-soft: #48566B;
  --ink-faint: #7A8698;

  /* On dark */
  --on-dark: #EEF2F7;
  --on-dark-soft: #A9B7C9;
  --on-dark-faint: #6E7F95;

  /* Accent */
  --gold: #C8A96A;
  --gold-bright: #E0C58F;
  --gold-ink: #8A6B2E;          /* accessible gold for light backgrounds */
  --steel: #4E6E96;

  /* Lines */
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: rgba(11, 18, 32, 0.10);

  /* Type — --sans/--serif are re-pointed for Arabic further down. */
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  /* Never re-pointed: the wordmark and numerals stay Latin in every language. */
  --sans-latin: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif-latin: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --shell: 1220px;
  --nav-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--gold); color: var(--navy-950); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-950);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 16px; top: 16px; }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__rule {
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.section--about .eyebrow,
.section--contact .eyebrow { color: var(--gold-ink); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h2 em { font-style: italic; color: var(--gold-ink); }
.section--approach .h2 em { color: var(--gold); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 152px);
}

.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 76px); }
.section__sub {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--on-dark-soft);
  max-width: 56ch;
}

/* =========================================================
   Brand
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 13px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.brand__text { font-family: var(--sans-latin); }
.brand__name { color: var(--on-dark); font-weight: 600; }
.brand__suffix { color: var(--on-dark-faint); font-weight: 400; font-size: 11px; letter-spacing: 0.24em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn--gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(200, 169, 106, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 22px; font-size: 13px; }
.btn--full { width: 100%; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease), height 0.4s var(--ease);
}
.nav.is-scrolled {
  height: 66px;
  background: rgba(8, 17, 30, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 32px);
}

/* Fluid gaps: French and Arabic labels run longer than the English ones. */
.nav__links { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 36px); }
.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-soft);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--on-dark); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--on-dark); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 14, 26, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mobile.is-open { opacity: 1; }
.mobile__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--nav-h) clamp(24px, 8vw, 56px) 40px;
}
.mobile__link {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.5;
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.mobile__link:hover { color: var(--gold); padding-inline-start: 10px; }
.mobile__cta { margin-top: 32px; align-self: flex-start; }

/* =========================================================
   Language switcher
   ========================================================= */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
}
.lang__btn {
  font-family: var(--sans-latin);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 9px;
  background: none;
  border: 0;
  border-radius: 2px;
  color: var(--on-dark-faint);
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.lang__btn[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", var(--sans-latin);
  letter-spacing: normal;
}
.lang__btn:hover { color: var(--on-dark); }
.lang__btn.is-active {
  background: rgba(200, 169, 106, 0.15);
  color: var(--gold);
}

/* One switcher lives in the nav bar, a larger one in the mobile menu. */
.lang--mobile { display: none; }
.lang--mobile {
  margin-top: 30px;
  align-self: flex-start;
  gap: 4px;
}
.lang--mobile .lang__btn {
  font-size: 13px;
  padding: 9px 14px;
  letter-spacing: 0.04em;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for engines without svh */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 60px) 120px;
  background:
    radial-gradient(120% 90% at 78% 10%, #16273F 0%, transparent 60%),
    linear-gradient(180deg, #0B1524 0%, #0A1424 55%, #081120 100%);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-16px, -12px, 0) scale(1.03); }
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--gold {
  width: 620px; height: 620px;
  inset-inline-end: -140px; top: -160px;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.30), transparent 65%);
}
.hero__glow--blue {
  width: 700px; height: 700px;
  inset-inline-start: -220px; bottom: -280px;
  background: radial-gradient(circle, rgba(78, 110, 150, 0.32), transparent 65%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 45%, transparent 30%, rgba(6, 12, 22, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.45) 0%, transparent 22%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--gold); font-style: italic; }

.hero__lede {
  margin-top: 30px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.65;
  color: var(--on-dark-soft);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.hero__pillars li { display: flex; align-items: center; gap: 12px; }
.pillar__num {
  font-family: var(--serif-latin);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* =========================================================
   About
   ========================================================= */
.section--about { background: var(--paper-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about__figure {
  width: min(240px, 62%);
  margin-top: clamp(36px, 5vw, 56px);
  color: var(--ink);
}

.about__body p { color: var(--ink-soft); }
.about__body .lede { color: var(--ink); font-weight: 500; }

.about__points { margin-top: 40px; }
.about__points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  font-size: 15px;
  color: var(--ink-soft);
}
.about__points li strong { color: var(--ink); font-weight: 600; }
.about__points svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--gold-ink);
}

/* =========================================================
   Our Approach
   ========================================================= */
.section--approach {
  background: linear-gradient(180deg, #0A1424 0%, #0C1829 50%, #081120 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.approach__bg { position: absolute; inset: 0; pointer-events: none; }
.approach__glow {
  position: absolute;
  width: 720px; height: 720px;
  inset-inline-end: -240px; top: -220px;
  border-radius: 50%;
  filter: blur(110px);
  background: radial-gradient(circle, rgba(200, 169, 106, 0.16), transparent 65%);
}
.section--approach .shell { position: relative; z-index: 2; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 36px 30px 34px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(200, 169, 106, 0.38);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9);
}
.card:hover::before { opacity: 1; }

.card__num {
  font-family: var(--serif-latin);
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  transition: color 0.4s var(--ease);
}
.card:hover .card__num { color: rgba(200, 169, 106, 0.22); }

.card__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  color: var(--gold);
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card__text {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.68;
  color: var(--on-dark-soft);
}

/* =========================================================
   Contact
   ========================================================= */
.section--contact { background: var(--paper-soft); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.contact__intro .lede { color: var(--ink-soft); margin-top: 26px; max-width: 46ch; }

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.contact__details dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.contact__details dd { font-size: 15px; color: var(--ink); }
.contact__details a {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(138, 107, 46, 0.35);
  transition: border-color 0.3s var(--ease);
}
.contact__details a:hover { border-bottom-color: var(--gold-ink); }

.form {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 5px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 60px -40px rgba(11, 18, 32, 0.4);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field__opt { font-weight: 400; opacity: 0.75; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(11, 18, 32, 0.14);
  border-radius: 3px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #A9B2BF; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-ink);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B4453C; }

.form .btn--gold { color: var(--navy-950); }
.form__note {
  margin: 16px 0 0;
  min-height: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.form__note.is-error { color: #A63C33; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--navy-950);
  color: var(--on-dark-soft);
  padding-top: clamp(56px, 7vw, 80px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__tag {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 14px;
  color: var(--on-dark-faint);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__nav a {
  font-size: 14px;
  color: var(--on-dark-soft);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--gold); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 26px 30px;
  font-size: 13px;
  color: var(--on-dark-faint);
}
.footer__base p { margin: 0; }
.footer__base a { transition: color 0.3s var(--ease); }
.footer__base a:hover { color: var(--gold); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }

/* Stagger the approach cards */
.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }
.cards .card:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:nth-child(3) { transition-delay: 0s; }
  .cards .card:nth-child(4) { transition-delay: 0.1s; }
}

/* The nav collapses earlier than the content grids: the longest label set
   (French) needs more room than the English one it was measured against. */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .lang--nav { display: none; }
  .lang--mobile { display: flex; }
  .nav { background: rgba(8, 17, 30, 0.55); }
}

@media (max-width: 900px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__figure { display: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 620px) {
  :root { --nav-h: 68px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card { transition-delay: 0s; }
  .form__row { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 72px) 88px; }
  .hero__pillars { flex-direction: column; gap: 14px; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { flex-direction: column; }
}

/* =========================================================
   Right-to-left (Arabic)
   Everything else mirrors on its own: the layout is built from logical
   properties (padding-inline, inset-inline, flex/grid gap), which follow
   the document direction. Only these four need a hand.
   ========================================================= */
[dir="rtl"] .nav__link::after { transform-origin: right; }

/* Mirror the decorative hero artwork so the composition still opens away from
   the headline. `scale` is used rather than `transform` because the drift
   animation already owns `transform`. */
[dir="rtl"] .hero__grid { scale: -1 1; }

/* Arrow glyphs point the way the text runs. */
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }

/* =========================================================
   Arabic typography
   Reem Kufi stands in for the display serif, IBM Plex Sans Arabic for Inter.
   ========================================================= */
:root[lang="ar"] {
  --sans: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --serif: "Reem Kufi", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
}

/* Arabic has no italic form — synthetic slanting looks broken, so the accent
   line is carried by color alone. */
[lang="ar"] .h2 em,
[lang="ar"] .hero__title .line--accent { font-style: normal; }

/* Letter-spacing pulls joined Arabic letterforms apart. Reset it everywhere
   the Latin design tracks text out. */
[lang="ar"] .eyebrow,
[lang="ar"] .hero__pillars,
[lang="ar"] .hero__title,
[lang="ar"] .hero__scroll,
[lang="ar"] .h2,
[lang="ar"] .card__title,
[lang="ar"] .field label,
[lang="ar"] .contact__details dt,
[lang="ar"] .btn { letter-spacing: normal; }

/* Arabic sits on a taller line than Latin at the same size. */
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] .hero__title { line-height: 1.4; max-width: 20ch; }
[lang="ar"] .h2 { line-height: 1.4; }
[lang="ar"] .mobile__link { line-height: 1.7; }
[lang="ar"] .card__text,
[lang="ar"] .about__points li,
[lang="ar"] .section__sub { line-height: 1.9; }

/* =========================================================
   Motion preferences
   ========================================================= */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .nav, .mobile, .hero__bg, .hero__scroll, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
