/* ============================================================
   Nordbox — design system
   Paper #fafaf9 · Ink #16181d · Night #10151d / #1c2430
   North gradient #7fb3e0 → #3d5d8a · Archivo + Inter
   ============================================================ */

:root {
  --paper: #fafaf9;
  --paper-2: #f1f1ef;
  --ink: #16181d;
  --ink-2: #55575e;
  --ink-3: #86888f;
  --night: #0e131b;
  --night-2: #1c2430;
  --night-3: #253041;
  --north-1: #7fb3e0;
  --north-2: #3d5d8a;
  --grad: linear-gradient(135deg, #7fb3e0 0%, #4f79ad 55%, #3d5d8a 100%);
  --grad-text: linear-gradient(100deg, #a8cdec 0%, #7fb3e0 40%, #4f79ad 100%);
  --line: rgba(22, 24, 29, 0.09);
  --line-dark: rgba(250, 250, 249, 0.1);
  --font-display: 'Archivo', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-card: 0 1px 2px rgba(16, 21, 29, 0.04), 0 12px 40px rgba(16, 21, 29, 0.07);
  --shadow-pop: 0 2px 8px rgba(16, 21, 29, 0.08), 0 24px 70px rgba(16, 21, 29, 0.16);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --nav-h: 60px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a, button { touch-action: manipulation; }
::selection { background: rgba(127, 179, 224, 0.35); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* Cross-document view transitions (Chrome/Edge/Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.4s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ---------- type scale ---------- */
.display {
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.4rem);
  line-height: 1.02;
}
.h-xl { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.9rem); }
.h-lg { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); }
.h-md { font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.8rem); }
.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.dark .lead, .lead.on-dark { color: rgba(250, 250, 249, 0.72); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--north-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}
.dark .eyebrow { color: var(--north-1); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-text-light {
  background: linear-gradient(100deg, #5d87b8, #3d5d8a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, transform 0.4s var(--ease-out);
  padding-top: env(safe-area-inset-top);
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: rgba(250, 250, 249, 0.66);
  opacity: 0;
  transition: opacity 0.35s;
}
.nav.solid::before { opacity: 1; }
.nav.solid { box-shadow: 0 1px 0 var(--line); }
.nav.on-dark:not(.solid) { color: #fafaf9; }
.nav.on-dark.solid::before { background: rgba(14, 19, 27, 0.62); }
.nav.on-dark.solid { color: #fafaf9; box-shadow: 0 1px 0 var(--line-dark); }

.nav-inner {
  position: relative;
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand .mark { width: 26px; height: 26px; }
.brand .cursor {
  color: var(--north-2);
  animation: blink 1.15s steps(1) infinite;
}
.nav.on-dark:not(.solid) .brand .cursor,
.nav.on-dark.solid .brand .cursor { color: var(--north-1); }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 26px; align-items: center; position: relative; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.3s var(--ease-spring);
  padding: 6px 0;
  position: relative;
  z-index: 1;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover { transform: translateY(-1.5px); }
/* glass pill that glides between hovered links */
.nav-pill {
  position: absolute;
  top: 50%;
  height: 34px;
  transform: translateY(-50%) scale(0.86);
  border-radius: 99px;
  background: rgba(22, 24, 29, 0.07);
  opacity: 0;
  pointer-events: none;
  transition: left 0.35s var(--ease-spring), width 0.35s var(--ease-spring),
              opacity 0.22s, transform 0.35s var(--ease-spring), background 0.3s;
}
.nav-pill.on { opacity: 1; transform: translateY(-50%) scale(1); }
.nav.on-dark:not(.solid) .nav-pill,
.nav.on-dark.solid .nav-pill { background: rgba(250, 250, 249, 0.13); }
/* the brand's north star spins on hover */
.brand .mark { transition: transform 0.6s var(--ease-spring); }
.brand:hover .mark { transform: rotate(180deg) scale(1.1); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--grad);
}

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.25s var(--ease-spring), background 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { transform: scale(1.05); }
.nav.on-dark:not(.solid) .nav-cta,
.nav.on-dark.solid .nav-cta { background: var(--paper); color: var(--ink); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px;
  height: 1.8px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s, top 0.35s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
body.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 19, 27, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 8px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.55s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a.mm-link .num {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--north-1);
  transition: transform 0.4s var(--ease-spring);
}
/* gradient sweeps across the label on hover / touch */
.mm-txt { position: relative; display: inline-block; }
.mm-txt::after {
  content: attr(data-txt);
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #a8cdec, #7fb3e0 45%, #4f79ad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--ease-out);
}
body.menu-open .mobile-menu a.mm-link:hover,
body.menu-open .mobile-menu a.mm-link:active {
  transform: translateX(14px);
}
.mobile-menu a.mm-link:hover .mm-txt::after,
.mobile-menu a.mm-link:active .mm-txt::after { clip-path: inset(0 0 0 0); }
.mobile-menu a.mm-link:hover .num,
.mobile-menu a.mm-link:active .num { transform: translateX(-4px) scale(1.25); }
body.menu-open .mobile-menu a.mm-link { transform: none; opacity: 1; }
body.menu-open .mobile-menu a.mm-link:nth-child(2) { transition-delay: 0.05s; }
body.menu-open .mobile-menu a.mm-link:nth-child(3) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a.mm-link:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu .mm-cta {
  margin-top: 34px;
  align-self: flex-start;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out) 0.2s, opacity 0.55s 0.2s;
}
body.menu-open .mobile-menu .mm-cta { transform: none; opacity: 1; }
.mobile-menu .mm-foot {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 32px;
  font-size: 13px;
  color: rgba(250, 250, 249, 0.45);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 30px;
  border-radius: 99px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s, color 0.3s;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16, 21, 29, 0.25); }
.btn-north { background: var(--grad); color: #fff; }
.btn-north:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(61, 93, 138, 0.45); }
.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(22, 24, 29, 0.3); transform: translateY(-2px); }
.dark .btn-ghost, .btn-ghost.on-dark {
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(250, 250, 249, 0.25);
}
.dark .btn-ghost:hover, .btn-ghost.on-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(250, 250, 249, 0.55); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.btn .arr { transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px;
  color: var(--north-2);
}
.dark .link-arrow { color: var(--north-1); }
.link-arrow svg { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 12vw, 140px) 0; }
.sec-tight { padding: clamp(56px, 8vw, 96px) 0; }
.dark {
  background: var(--night);
  color: var(--paper);
}
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin-top: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero.dark { background: var(--night); }
#aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero .display { max-width: 15ch; }
.hero .lead { margin-top: 26px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2;
}
.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.45);
}
.scroll-hint {
  display: inline-flex; align-items: center; gap: 10px;
}
.scroll-hint .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(250,250,249,0.5), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-hint .line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--north-1);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { top: 110%; } }

/* word-by-word headline reveal */
.split-words .w {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  /* extend the clip window below the baseline so descenders
     (Latin y/g/p, Arabic ع/و/ق) are never cut off */
  padding-bottom: 0.26em;
  margin-bottom: -0.26em;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(140%);
  animation: word-up 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes word-up { to { transform: none; } }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.94) translateY(16px); }

/* scroll-driven parallax where supported */
@supports (animation-timeline: view()) {
  .parallax-slow, .parallax-fast {
    animation: parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  .parallax-slow { --p: -36px; }
  .parallax-fast { --p: -80px; }
  @keyframes parallax {
    from { transform: translateY(calc(var(--p) * -1)); }
    to { transform: translateY(var(--p)); }
  }
}

/* ---------- service cards (home) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: clip;
  isolation: isolate;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.service-card.night { background: var(--night-2); color: var(--paper); }
.service-card h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin-bottom: 12px; }
.service-card p { color: var(--ink-2); max-width: 40ch; }
.service-card.night p { color: rgba(250, 250, 249, 0.68); }
.service-card .card-cta { margin-top: 20px; }
.service-card .art {
  margin-top: auto;
  padding-top: 30px;
}

/* mini browser mock inside web card */
.mini-browser {
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(16, 21, 29, 0.35);
  overflow: hidden;
  border: 1px solid rgba(250, 250, 249, 0.08);
  transform: perspective(900px) rotateX(6deg) rotateY(-4deg);
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .mini-browser { transform: perspective(900px) rotateX(2deg) rotateY(-1deg) translateY(-4px); }
.mini-browser .bar {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px;
  background: #ececea;
}
.mini-browser .bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d6d6d3;
}
.mini-browser .bar .url {
  margin-left: 8px;
  flex: 1;
  height: 14px;
  border-radius: 7px;
  background: #fff;
  font-size: 8.5px;
  color: var(--ink-3);
  display: flex; align-items: center;
  padding: 0 8px;
  font-family: var(--font-body);
}
.mini-browser .page { padding: 16px; }
.skel { border-radius: 6px; background: var(--paper-2); }
.skel.hero-skel {
  height: 54px;
  background: var(--grad);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.skel.hero-skel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3s var(--ease-out) infinite;
}
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.skel-row { display: flex; gap: 8px; margin-top: 8px; }
.skel-row .skel { height: 34px; flex: 1; }

/* film-strip art inside content card */
.film-strip {
  display: flex;
  gap: 10px;
  transform: rotate(-3deg) translateX(-4%);
  width: 108%;
}
.film-strip .frame {
  flex: 1;
  aspect-ratio: 9 / 14;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .film-strip .frame:nth-child(1) { transform: translateY(-8px) rotate(-2deg); }
.service-card:hover .film-strip .frame:nth-child(3) { transform: translateY(-10px) rotate(2deg); }
.film-strip .frame::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: 55% center;
}
.f1 { background: linear-gradient(160deg, #2b3d55, #7fb3e0); }
.f2 { background: linear-gradient(200deg, #101722, #3d5d8a 80%); }
.f3 { background: linear-gradient(140deg, #5d87b8, #131a26); }

/* strategy banner card */
.strategy-card {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 30px;
  align-items: center;
  background: linear-gradient(120deg, rgba(127, 179, 224, 0.09), rgba(61, 93, 138, 0.07)), #fff;
  border: 1px solid rgba(61, 93, 138, 0.14);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 44px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.strategy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.strategy-card h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem); margin-bottom: 10px; }
.strategy-card p { color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.strategy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.strategy-pillars span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 99px;
  background: rgba(61, 93, 138, 0.08);
  color: var(--north-2);
  transition: transform 0.3s var(--ease-spring), background 0.3s, color 0.3s;
}
.strategy-card:hover .strategy-pillars span { background: var(--grad); color: #fff; }
.strategy-card:hover .strategy-pillars span:nth-child(odd) { transform: translateY(-3px); }
.strategy-card:hover .strategy-pillars span:nth-child(even) { transform: translateY(3px); }
@media (max-width: 900px) {
  .strategy-card { grid-template-columns: 1fr; gap: 20px; }
  .strategy-pillars { justify-content: flex-start; }
  .strategy-card .link-arrow { align-self: flex-start !important; }
}

/* ---------- principle tiles ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }
.tile {
  background: #fff;
  border-radius: var(--r-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.dark .tile {
  background: var(--night-2);
  box-shadow: none;
  border: 1px solid var(--line-dark);
}
.tile .ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 18px;
}
.tile h4 { font-size: 1.15rem; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-2); }
.dark .tile p { color: rgba(250, 250, 249, 0.62); }

/* ---------- big statement ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 3.4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.22;
  max-width: 24ch;
}
.statement .dim { color: var(--ink-3); }
.dark .statement .dim { color: rgba(250, 250, 249, 0.35); }
.statement .hl { color: var(--north-2); }
.dark .statement .hl { color: var(--north-1); }

/* line-by-line statement reveal */
.statement-lines .sl {
  opacity: 0.14;
  transition: opacity 0.6s var(--ease-out);
}
.statement-lines .sl.lit { opacity: 1; }

/* ---------- demo band ---------- */
.demo-band {
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--paper);
  padding: clamp(36px, 6vw, 72px);
  position: relative;
  overflow: clip;
}
.demo-band::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 179, 224, 0.28), transparent 65%);
  pointer-events: none;
}
.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
}
@media (max-width: 820px) { .demo-steps { grid-template-columns: 1fr; } }
.demo-step {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 24px 22px;
  counter-increment: step;
  background: rgba(250, 250, 249, 0.03);
}
.demo-step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--north-1);
  display: block;
  margin-bottom: 12px;
}
.demo-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.demo-step p { font-size: 14.5px; color: rgba(250, 250, 249, 0.6); }

/* ---------- marquee ---------- */
.marquee {
  overflow: clip;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  user-select: none;
}
.dark .marquee { border-color: var(--line-dark); }
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}
.dark .marquee span { color: rgba(250, 250, 249, 0.4); }
.marquee .star { color: var(--north-2); }
.dark .marquee .star { color: var(--north-1); }

/* ---------- work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  border-radius: var(--r-lg);
  overflow: clip;
  background: #fff;
  color: var(--ink); /* don't inherit .dark section's light text onto white cards */
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.work-card .visual {
  aspect-ratio: 16 / 10.5;
  overflow: clip;
  position: relative;
  background: var(--paper-2);
}
.work-card .meta {
  padding: 20px 24px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.work-card .meta h3 { font-size: 1.2rem; }
.work-card .meta .cat {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  display: block;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge.live {
  background: rgba(52, 168, 110, 0.12);
  color: #1f7a4d;
}
.badge.live::before { content: "● "; font-size: 8px; vertical-align: 2px; }
.badge.concept { background: rgba(61, 93, 138, 0.1); color: var(--north-2); }

/* browser-frame mockups inside work visuals */
.shot {
  position: absolute;
  inset: 10% 8% -6% 8%;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 21, 29, 0.24);
  overflow: clip;
  transition: transform 0.6s var(--ease-out);
  transform: translateY(6px);
}
.work-card:hover .shot { transform: translateY(-4px) scale(1.015); }
.shot .sbar {
  height: 22px;
  background: #f2f2f0;
  display: flex; align-items: center; gap: 4px;
  padding: 0 10px;
  border-bottom: 1px solid #e8e8e6;
}
.shot .sbar i { width: 6px; height: 6px; border-radius: 50%; background: #d9d9d6; }
.shot .sbody { padding: 0; height: calc(100% - 22px); overflow: clip; position: relative; }

/* ---------- craft details / feature list ---------- */
.feature-rows { display: grid; gap: 14px; }
.feature-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out);
}
.feature-row:hover { transform: translateX(6px); }
.feature-row .ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(127,179,224,0.16), rgba(61,93,138,0.16));
  color: var(--north-2);
}
.feature-row h4 { font-size: 1.05rem; }
.feature-row p { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.feature-row .tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .feature-row { grid-template-columns: 44px 1fr; }
  .feature-row .tag { display: none; }
  .feature-row .ic { width: 40px; height: 40px; border-radius: 12px; }
}

/* ---------- horizontal scroller (mobile-friendly showcase) ---------- */
.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 380px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  padding: 6px 16px 30px;
  margin: 0;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: center; }
@media (min-width: 900px) {
  .h-scroll {
    grid-auto-columns: 340px;
    /* full-bleed via padding only — negative margins overflow the page in RTL */
    padding-inline: max(20px, calc((100vw - 1160px) / 2));
    margin: 0;
  }
}

/* ---------- process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.dark .process { border-color: var(--line-dark); }
@media (max-width: 820px) { .process { grid-template-columns: 1fr; border-top: 0; } }
.process-step {
  padding: 30px 24px 30px 0;
  border-top: 2px solid transparent;
  margin-top: -1px;
  position: relative;
}
@media (max-width: 820px) {
  .process-step { border-top: 1px solid var(--line); padding: 24px 0; }
  .dark .process-step { border-color: var(--line-dark); }
}
.process-step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--north-2);
  display: block;
  margin-bottom: 14px;
}
.dark .process-step .num { color: var(--north-1); }
.process-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-2); }
.dark .process-step p { color: rgba(250, 250, 249, 0.6); }

/* ---------- compare slider ---------- */
.compare {
  position: relative;
  border-radius: var(--r-lg);
  overflow: clip;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-pop);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 640px) {
  .compare { aspect-ratio: 4 / 3.4; }
}
.compare .pane { position: absolute; inset: 0; }
.compare .pane.after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cut, 50%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
  z-index: 3;
}
.compare .handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.compare .lab {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.compare .lab.before { left: 14px; }
.compare .lab.after-l { right: 14px; }

/* ---------- quote form ---------- */
.quote-sec {
  background: var(--night);
  color: var(--paper);
  overflow: clip;
}
.quote-sec .glow {
  position: absolute;
  width: 720px; height: 720px;
  left: 50%; top: -320px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 179, 224, 0.16), transparent 62%);
  pointer-events: none;
}
.quote-card {
  background: rgba(250, 250, 249, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4.5vw, 48px);
  max-width: 760px;
  margin-inline: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.q-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
}
.q-progress .seg {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: rgba(250, 250, 249, 0.12);
  overflow: hidden;
  position: relative;
}
.q-progress .seg::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.q-progress .seg.done::after { transform: scaleX(1); }
.q-progress .lbl {
  font-size: 12px;
  color: rgba(250, 250, 249, 0.5);
  white-space: nowrap;
}
.q-step { display: none; }
.q-step.active { display: block; animation: q-in 0.45s var(--ease-out); }
@keyframes q-in {
  from { opacity: 0; transform: translateX(18px); }
}
.q-step h3 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); margin-bottom: 6px; }
.q-step .sub { font-size: 15px; color: rgba(250, 250, 249, 0.55); margin-bottom: 26px; }
.q-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 249, 0.65);
  margin: 24px 0 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 11px 18px;
  border-radius: 99px;
  border: 1px solid rgba(250, 250, 249, 0.18);
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.8);
  transition: all 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: rgba(250, 250, 249, 0.45); }
.chip[aria-pressed="true"] {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  transform: scale(1.03);
}
.q-input, .q-textarea {
  width: 100%;
  background: rgba(250, 250, 249, 0.05);
  border: 1px solid rgba(250, 250, 249, 0.15);
  border-radius: 14px;
  color: var(--paper);
  font: inherit;
  font-size: 15.5px;
  padding: 15px 17px;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.q-input::placeholder, .q-textarea::placeholder { color: rgba(250, 250, 249, 0.35); }
.q-input:focus, .q-textarea:focus {
  outline: none;
  border-color: var(--north-1);
  background: rgba(250, 250, 249, 0.08);
}
.q-input.err { border-color: #e07f7f; }
.q-textarea { resize: vertical; min-height: 110px; }
.q-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .q-grid-2 { grid-template-columns: 1fr; } }
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  gap: 12px;
}
.q-back {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(250, 250, 249, 0.55);
  padding: 12px 8px;
  transition: color 0.2s;
}
.q-back:hover { color: var(--paper); }
.q-hint { font-size: 13px; color: rgba(250, 250, 249, 0.4); margin-top: 18px; }
.q-error {
  display: none;
  font-size: 13.5px;
  color: #eba1a1;
  margin-top: 14px;
}
.q-error.show { display: block; }
.q-done { text-align: center; padding: 30px 0 10px; }
.q-done .check {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  margin: 0 auto 26px;
  animation: pop 0.6s var(--ease-spring);
}
@keyframes pop { from { transform: scale(0); } }
.q-done h3 { font-size: 1.7rem; margin-bottom: 10px; }
.q-done p { color: rgba(250, 250, 249, 0.6); max-width: 38ch; margin-inline: auto; }

/* ---------- footer ---------- */
footer {
  background: var(--night);
  color: var(--paper);
  padding: clamp(56px, 8vw, 88px) 0 0;
  position: relative;
  overflow: clip;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 34px; } }
.foot-brand p {
  color: rgba(250, 250, 249, 0.55);
  font-size: 15px;
  max-width: 30ch;
  margin-top: 14px;
}
.foot-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.4);
  margin: 0 0 16px;
}
.foot-col a {
  display: block;
  font-size: 15px;
  color: rgba(250, 250, 249, 0.75);
  padding: 5px 0;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--north-1); }
.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(250, 250, 249, 0.4);
}
.foot-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 13rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  background: linear-gradient(to bottom, rgba(250, 250, 249, 0.1), rgba(250, 250, 249, 0.015));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-top: 20px;
  margin-bottom: -0.12em;
  user-select: none;
  white-space: nowrap;
}

/* ---------- misc ---------- */
.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px 9px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-dark);
  color: rgba(250, 250, 249, 0.75);
  background: rgba(250, 250, 249, 0.04);
  margin-bottom: 28px;
}
.pill-note .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
}

.tilt { transform-style: preserve-3d; will-change: transform; }

.big-cta {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
}
.big-cta h2 { font-size: clamp(2.2rem, 1.2rem + 5vw, 4.6rem); }
.big-cta .btn { margin-top: 38px; }

/* inline WhatsApp quick links */
.wa-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: #4ade80;
  transition: color 0.25s, transform 0.3s var(--ease-spring);
}
.wa-quick:hover { color: #86efac; transform: translateY(-1px); }
.wa-quick svg { flex-shrink: 0; }
.wa-quick.inline { margin-top: 10px; display: flex; }

/* ---------- instagram → website section ---------- */
.ig-duo {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  max-width: 860px;
}
.ig-arrow {
  color: var(--north-1);
  display: grid;
  place-items: center;
}
.ig-arrow svg { animation: ig-nudge 2s var(--ease-out) infinite; }
@keyframes ig-nudge { 50% { transform: translateX(6px); } }
@media (max-width: 720px) {
  .ig-duo { grid-template-columns: 1fr; max-width: 420px; }
  .ig-arrow svg { transform: rotate(90deg); animation: ig-nudge-v 2s var(--ease-out) infinite; }
  @keyframes ig-nudge-v { 50% { transform: rotate(90deg) translateX(6px); } }
}
.ig-profile {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ig-profile .ig-head { display: flex; align-items: center; gap: 12px; }
.ig-profile .ig-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  padding: 2.5px;
}
.ig-profile .ig-avatar i {
  display: block; width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(140deg, #d8cbb8, #a58f70);
  border: 2px solid #fff;
}
.ig-profile .ig-stats { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.ig-profile .ig-stats b { color: var(--ink); font-size: 12.5px; }
.ig-profile .ig-name { font-weight: 700; font-size: 14px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; }
.ig-grid i { aspect-ratio: 1; border-radius: 4px; }
.ig-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
}

/* floating WhatsApp */
.wa-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 85;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(20, 90, 50, 0.4);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.6s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-fab:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 34px rgba(20, 90, 50, 0.5);
}
.wa-fab:active { transform: scale(0.95); }

/* skip link */
.skip {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

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

/* ============================================================
   Arabic (lang=ar) — Cairo for display, IBM Plex Sans Arabic for body.
   Connected script rules: zero letter-spacing, slightly larger body,
   taller line-height. RTL flips flex/grid automatically; the physical
   properties below get explicit mirrors.
   ============================================================ */
.lang-toggle {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.25s, transform 0.25s var(--ease-spring);
  font-family: var(--font-body), 'IBM Plex Sans Arabic', sans-serif;
}
.lang-toggle:hover { box-shadow: inset 0 0 0 1.5px rgba(22, 24, 29, 0.35); transform: scale(1.05); }
.nav.on-dark:not(.solid) .lang-toggle,
.nav.on-dark.solid .lang-toggle { box-shadow: inset 0 0 0 1.5px rgba(250, 250, 249, 0.3); }
@media (max-width: 860px) { .nav .lang-toggle { display: none; } }
.mobile-menu .mm-lang {
  align-self: flex-start;
  margin-top: 16px;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(250, 250, 249, 0.3);
  font-size: 15px;
  padding: 10px 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.55s var(--ease-out) 0.25s, opacity 0.55s 0.25s;
}
body.menu-open .mobile-menu .mm-lang { opacity: 1; transform: none; }

html[lang="ar"] {
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .display, html[lang="ar"] .statement, html[lang="ar"] .brand,
html[lang="ar"] .cliche, html[lang="ar"] .foot-word, html[lang="ar"] .marquee span {
  letter-spacing: 0;
}
html[lang="ar"] .display { line-height: 1.18; }
html[lang="ar"] .h-xl, html[lang="ar"] .h-lg, html[lang="ar"] .statement { line-height: 1.35; }
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; }

/* RTL mirrors for physical properties */
[dir="rtl"] .brand > span, [dir="rtl"] .foot-word { direction: ltr; unicode-bidi: isolate; }
/* Arabic glyphs sit taller+deeper than Latin — give clipped-height boxes room */
html[lang="ar"] .bcard-tag { height: 2em; }
[dir="rtl"] .btn .arr, [dir="rtl"] .link-arrow svg, [dir="rtl"] .ig-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .feature-row:hover { transform: translateX(-6px); }
[dir="rtl"] .map-note {
  border-left: 0;
  border-right: 3px solid;
  border-image: var(--grad) 1;
  padding: 4px 22px 4px 0;
}
[dir="rtl"] .cliche::after { left: auto; right: -2%; transform-origin: right; }
[dir="rtl"] .compare .lab.before { left: auto; right: 14px; }
[dir="rtl"] .compare .lab.after-l { right: auto; left: 14px; }
[dir="rtl"] .mm-txt::after { clip-path: inset(0 0 0 100%); }
[dir="rtl"] .mobile-menu a.mm-link:hover .mm-txt::after,
[dir="rtl"] .mobile-menu a.mm-link:active .mm-txt::after { clip-path: inset(0 0 0 0); }
body[dir="rtl"] .mobile-menu a.mm-link:hover,
[dir="rtl"] body.menu-open .mobile-menu a.mm-link:hover,
[dir="rtl"] body.menu-open .mobile-menu a.mm-link:active { transform: translateX(-14px); }
[dir="rtl"] .wa-fab {
  right: auto;
  left: max(18px, env(safe-area-inset-left));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; animation: none; }
}
