/* ============================================================
   RED COAST DUNES — Stylesheet v3 (official brand edition)
   Palette + typography taken from the company business card:
   steel blue #6686AA → slate #364558, ink navy #354457,
   Cabinet Grotesk (Latin) / IBM Plex Sans Arabic (Arabic).
   Fully RTL-ready via CSS logical properties.
   ============================================================ */

:root {
  /* Brand palette (sampled from the business card) */
  --paper:   #F7FAFD;
  --paper-2: #EDF2F8;
  --ink:     #2E3C4E;
  --ink-2:   #3E4E62;
  --navy:    #354457;   /* card text navy */
  --muted:   #67788C;
  --line:    rgba(53, 68, 87, 0.14);
  --steel:   #6686AA;   /* card gradient light end */
  --slate:   #364558;   /* card gradient dark end */
  --accent:  #4E6F97;   /* mid brand tone for links/kickers */
  --mist:    #9FC0E0;   /* pale steel for glows/accents on dark */
  --mist-2:  #C7D9EC;
  --grad: linear-gradient(120deg, #6686AA 0%, #4E6F97 48%, #364558 100%);
  --dark:   #212C3A;
  --dark-2: #2C3A4C;
  --on-dark: #E8EFF6;
  --on-dark-muted: #A9BBCE;

  /* System */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(33, 44, 58, 0.06), 0 4px 14px rgba(33, 44, 58, 0.06);
  --shadow-md: 0 2px 6px rgba(33, 44, 58, 0.07), 0 18px 44px rgba(33, 44, 58, 0.14);
  --font-en: "Cabinet Grotesk", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Tahoma", "Segoe UI", system-ui, sans-serif;
  --nav-h: 82px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] * { letter-spacing: 0 !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: rgba(102, 134, 170, 0.28); }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; color: var(--ink); text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; line-height: 1.38; }
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
html[lang="ar"] .display { line-height: 1.3; }
h2.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.015em; }
h3 { font-size: 1.18rem; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: var(--grad); display: inline-block;
}
.section-head { max-width: 800px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head .lead { margin-top: 16px; }
.section-head.center .lead { margin-inline: auto; }

/* Kinetic split-text (JS wraps words in .w spans) */
.kinetic .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.65em) rotate(1.5deg);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.kinetic.in .w { opacity: 1; transform: none; filter: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  position: relative; overflow: hidden;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.btn svg { width: 17px; height: 17px; flex: none; }
[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
.btn-primary {
  background: linear-gradient(120deg, #6686AA, #4E6F97 40%, #364558 90%, #4E6F97);
  background-size: 220% 100%;
  color: #fff; box-shadow: 0 10px 26px rgba(54, 69, 88, 0.35);
}
.btn-primary:hover { background-position: 92% 0; box-shadow: 0 18px 38px rgba(54, 69, 88, 0.45); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--slate); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-on-dark { background: rgba(255,255,255,0.08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(232, 239, 246, 0.28); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255,255,255,0.15); }

/* Click ripple (JS spawns .ripple) */
.btn .ripple {
  position: absolute; border-radius: 50%;
  width: 12px; height: 12px; margin: -6px;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0); pointer-events: none;
  animation: ripple 0.65s ease-out forwards;
}
.btn-ghost .ripple { background: rgba(102, 134, 170, 0.3); }
@keyframes ripple { to { transform: scale(24); opacity: 0; } }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: 0.82rem; position: relative; z-index: 101; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s ease; }
.topbar a:hover { color: var(--mist-2); }
.topbar svg { width: 13px; height: 13px; color: var(--mist); }
.tb-left { display: flex; align-items: center; gap: 22px; }
.tb-right { color: var(--mist); font-weight: 600; letter-spacing: 0.08em; font-size: 0.76rem; text-transform: uppercase; }
.topbar .ltr { direction: ltr; unicode-bidi: embed; display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) { .tb-right { display: none; } }
@media (max-width: 460px) { .topbar { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(247, 250, 253, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-out), box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247, 250, 253, 0.95); box-shadow: 0 10px 30px rgba(33, 44, 58, 0.06); }
.nav.nav-hidden { transform: translateY(-102%); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}

/* Brand lockup — the real card logo: swoosh above spaced wordmark */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-swoosh { width: 118px; height: auto; color: var(--slate); transition: transform 0.4s var(--ease-out); }
.brand:hover .brand-swoosh { transform: translateY(-2px); }
.brand-lockup b {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.26em;
  color: var(--navy); white-space: nowrap;
}
html[lang="ar"] .brand-lockup b { font-size: 0.95rem; font-weight: 700; }
.brand-lockup .tagline-sm {
  font-size: 0.42rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--steel); white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-item { position: relative; display: flex; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item .chev-dd { width: 13px; height: 13px; transition: transform 0.3s var(--ease-out); }
.nav-item:hover .chev-dd { transform: rotate(180deg); }
.nav-item .dd {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 10px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav-item .dd::before { content: ""; position: absolute; top: -12px; inset-inline: 0; height: 12px; }
.nav-item:hover .dd, .nav-item:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 0.93rem; font-weight: 600; color: var(--ink-2); }
.dd a:hover { background: var(--paper-2); color: var(--accent); }
.dd a svg { width: 15px; height: 15px; color: var(--steel); flex: none; }
.dd .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--accent); font-weight: 700; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 15px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--slate); background: rgba(102, 134, 170, 0.14); font-weight: 700; }
.nav-links a.active::after { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lang-btn:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); transform: translateY(-1px); }
.lang-btn svg { width: 15px; height: 15px; }
.nav .btn-primary { padding: 11px 20px; font-size: 0.92rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; z-index: 130; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px auto; border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Scroll progress + back-to-top (JS injected) ---------- */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 210; border-start-end-radius: 3px;
  pointer-events: none;
}
.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--slate); color: var(--mist-2);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), background 0.25s ease;
  box-shadow: 0 14px 30px rgba(33, 44, 58, 0.32);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: rgba(159, 192, 224, 0.25); stroke-width: 3; }
.to-top svg.ring circle.bar { stroke: var(--mist); stroke-linecap: round; }
.to-top .chev { width: 18px; height: 18px; position: relative; z-index: 1; }

/* ---------- Custom cursor ring (desktop only, JS injected) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 400;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(102, 134, 170, 0.55);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-ring.on-link { width: 58px; height: 58px; border-color: rgba(78, 111, 151, 0.9); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: #1B2534;
  color: var(--on-dark);
  min-height: calc(100svh - var(--nav-h) - 40px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(84px, 10vw, 130px);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: -6% 0 0 0; z-index: 0; pointer-events: none;
  background: url("img/hero.jpg") center / cover no-repeat;
  will-change: transform;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(16, 23, 34, 0.94) 8%, rgba(21, 30, 43, 0.78) 46%, rgba(27, 37, 52, 0.35) 100%);
}
[dir="rtl"] .hero-shade {
  background: linear-gradient(-100deg, rgba(16, 23, 34, 0.94) 8%, rgba(21, 30, 43, 0.78) 46%, rgba(27, 37, 52, 0.35) 100%);
}
.hero canvas.net {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.5;
}
.hero .blob {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  filter: blur(80px); opacity: 0.42; will-change: transform;
}
.hero .blob.b1 { width: 460px; height: 460px; background: #6686AA; top: -140px; inset-inline-end: 8%; animation: blobFloat 16s ease-in-out infinite alternate; }
.hero .blob.b2 { width: 380px; height: 380px; background: #9FC0E0; bottom: -80px; inset-inline-start: -6%; opacity: 0.22; animation: blobFloat 20s ease-in-out infinite alternate-reverse; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-46px, 42px) scale(1.14); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 3; max-width: 860px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(159, 192, 224, 0.12);
  box-shadow: inset 0 0 0 1px rgba(199, 217, 236, 0.35);
  color: var(--mist-2); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 12px var(--mist); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 2px var(--mist); opacity: 0.55; } }
.hero h1 { color: #F4F8FC; }
.hero h1 .accent {
  background: linear-gradient(100deg, #D8E6F4, #9FC0E0 35%, #7FA3C9 60%, #D8E6F4 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }
.caret {
  display: inline-block; width: 3px; height: 0.82em;
  background: var(--mist); border-radius: 2px;
  margin-inline-start: 8px; vertical-align: -0.06em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { color: var(--on-dark-muted); margin-top: 24px; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .btn-primary { background: linear-gradient(120deg, #F2F7FC, #C7D9EC); color: var(--slate); box-shadow: 0 12px 30px rgba(12, 20, 30, 0.35); background-size: 100% 100%; }
.hero .btn-primary:hover { box-shadow: 0 18px 40px rgba(12, 20, 30, 0.45); }

/* entrance choreography */
.hero-inner > * { animation: riseIn 0.9s var(--ease-out) both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.42s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Animated stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 52px;
}
.stat {
  padding: 18px 22px; border-radius: 16px;
  background: rgba(232, 239, 246, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 239, 246, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
  position: relative; overflow: hidden;
}
.stat:hover { transform: translateY(-4px); background: rgba(232, 239, 246, 0.1); }
.stat b {
  display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; line-height: 1.1;
  background: linear-gradient(100deg, #D8E6F4, #9FC0E0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 0.84rem; font-weight: 600; color: var(--on-dark-muted); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3;
  width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--on-dark-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.8; transition: opacity 0.25s ease, color 0.25s ease;
}
.scroll-cue:hover { opacity: 1; color: var(--mist-2); }
.scroll-cue .mouse {
  width: 24px; height: 38px; border-radius: 14px;
  border: 1.5px solid rgba(232, 239, 246, 0.4);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue .wheel {
  width: 3px; height: 7px; border-radius: 3px; background: var(--mist-2);
  animation: wheelDrop 1.8s ease-in-out infinite;
}
@keyframes wheelDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(46px, 7vw, 88px);
  padding-bottom: clamp(46px, 6.5vw, 84px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(102, 134, 170, 0.2), transparent 65%),
    radial-gradient(700px 380px at 8% 118%, rgba(159, 192, 224, 0.18), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
[dir="rtl"] .page-hero {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(102, 134, 170, 0.2), transparent 65%),
    radial-gradient(700px 380px at 92% 118%, rgba(159, 192, 224, 0.18), transparent 60%),
    var(--paper-2);
}
.page-hero .dunes { position: absolute; bottom: -2px; inset-inline: 0; opacity: 0.6; pointer-events: none; }
.page-hero .dunes svg { width: 100%; height: 90px; }
.page-hero .crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs .sep { opacity: 0.5; }
.page-hero .crumbs .here { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; position: relative; z-index: 1; }
.page-hero .lead { margin-top: 16px; position: relative; z-index: 1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .container > * { animation: riseIn 0.8s var(--ease-out) both; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.12s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.24s; }

/* Photo banner variant of the page hero */
.page-hero.photo {
  border-bottom: none;
  background-size: cover; background-position: center;
  padding-top: clamp(64px, 9vw, 118px);
  padding-bottom: clamp(58px, 8vw, 104px);
}
.page-hero.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 23, 34, 0.93), rgba(21, 30, 43, 0.8) 50%, rgba(27, 37, 52, 0.5));
}
[dir="rtl"] .page-hero.photo::after {
  background: linear-gradient(-100deg, rgba(16, 23, 34, 0.93), rgba(21, 30, 43, 0.8) 50%, rgba(27, 37, 52, 0.5));
}
.page-hero.photo h1 { color: #F4F8FC; }
.page-hero.photo .lead { color: var(--on-dark-muted); }
.page-hero.photo .crumbs { color: var(--mist-2); }
.page-hero.photo .crumbs a:hover { color: #fff; }
.page-hero.photo .crumbs .here { color: var(--mist); }
.page-hero.photo .dunes { display: none; }
.ph-about { background-image: url("img/banner-about.jpg"); }
.ph-services { background-image: url("img/banner-services.jpg"); }
.ph-contact { background-image: url("img/banner-contact.jpg"); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section.tint {
  background:
    radial-gradient(rgba(102, 134, 170, 0.07) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--paper-2);
  border-block: 1px solid var(--line);
}
.section.dark { background: linear-gradient(125deg, #33425600, #0000), var(--dark); color: var(--on-dark); }
.section.dark .section-title, .section.dark h3 { color: #F4F8FC; }
.section.dark .lead { color: var(--on-dark-muted); }
.section.dark .kicker { color: var(--mist); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(102, 134, 170, 0.45); }
.card .card-img {
  display: block; width: calc(100% + 60px); height: 158px;
  margin: -32px -30px 0; object-fit: cover;
  filter: brightness(1.2) saturate(1.05);
  transition: transform 0.7s var(--ease-out);
}
.card:hover .card-img { transform: scale(1.06); }
.card .card-img + .icon-chip {
  margin-top: -28px; position: relative; z-index: 2;
  background: linear-gradient(135deg, #fff, #EDF2F8);
  box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(33, 44, 58, 0.18);
}
.card h3 { margin-bottom: 10px; transition: color 0.25s ease; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .icon-chip { margin-bottom: 20px; transition: transform 0.4s var(--ease-out), box-shadow 0.3s ease; }
.card:hover .icon-chip { transform: translateY(-5px) rotate(-4deg) scale(1.06); box-shadow: inset 0 0 0 1px rgba(102, 134, 170, 0.4), 0 10px 20px rgba(102, 134, 170, 0.25); }

/* tilt glare (JS injects .glare) */
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.32), transparent 42%);
  opacity: 0; transition: opacity 0.25s ease;
}
.tilting .glare { opacity: 1; }

.icon-chip {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, rgba(102, 134, 170, 0.14), rgba(159, 192, 224, 0.18));
  box-shadow: inset 0 0 0 1px rgba(102, 134, 170, 0.22);
  color: var(--accent);
}
.icon-chip svg { width: 26px; height: 26px; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-weight: 700; font-size: 0.92rem; color: var(--accent);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease-out); }
[dir="rtl"] .card-link svg { transform: scaleX(-1); }
.card:hover .card-link svg { transform: translateX(5px); }
[dir="rtl"] .card:hover .card-link svg { transform: scaleX(-1) translateX(5px); }

/* ---------- Vision / Mission split ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm-card {
  border-radius: var(--radius); padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.vm-card:hover { box-shadow: var(--shadow-md); }
.vm-card.vision { background: linear-gradient(125deg, #364558, #212C3A); color: var(--on-dark); }
.vm-card.vision h3, .vm-card.mission h3 { font-size: 1.5rem; margin-bottom: 14px; }
.vm-card.vision h3 { color: #F4F8FC; }
.vm-card.vision p { color: var(--on-dark-muted); }
.vm-card.mission { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.vm-card.mission p { color: var(--muted); }
.vm-card .icon-chip { margin-bottom: 22px; }
.vm-card.vision .icon-chip { background: rgba(159, 192, 224, 0.14); box-shadow: inset 0 0 0 1px rgba(199, 217, 236, 0.3); color: var(--mist-2); }
.vm-card .corner {
  position: absolute; inset-inline-end: -60px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 192, 224, 0.3), transparent 70%);
  pointer-events: none;
}
.vm-card.mission .corner { display: none; }

/* ---------- Purpose / promise band ---------- */
.quote-band {
  background: var(--grad);
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  padding: clamp(38px, 5.5vw, 62px);
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.quote-band:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 90% -20%, rgba(226, 238, 249, 0.32), transparent 60%);
  pointer-events: none;
}
.quote-band .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-bottom: 14px; }
.quote-band p.big { font-size: clamp(1.25rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.42; max-width: 30ch; position: relative; z-index: 1; }
html[lang="ar"] .quote-band p.big { line-height: 1.62; }
.quote-band.darkband { background: linear-gradient(125deg, #2C3A4C, #212C3A); color: var(--on-dark); }
.quote-band.darkband .label { color: var(--mist); }
.quote-band.darkband p.big { color: #F4F8FC; }

/* ---------- Marquee (strategic focus areas) ---------- */
.marquee-wrap { overflow: hidden; position: relative; padding-block: 7px; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { inset-inline-start: 0; background: linear-gradient(to right, var(--dark), transparent); }
.marquee-wrap::after { inset-inline-end: 0; background: linear-gradient(to left, var(--dark), transparent); }
[dir="rtl"] .marquee-wrap::before { background: linear-gradient(to left, var(--dark), transparent); }
[dir="rtl"] .marquee-wrap::after { background: linear-gradient(to right, var(--dark), transparent); }
.marquee { display: flex; gap: 14px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee.rev { animation-name: scroll-x-rev; animation-duration: 46s; margin-top: 14px; }
.marquee:hover { animation-play-state: paused; }
[dir="rtl"] .marquee { animation-name: scroll-x-rtl; }
[dir="rtl"] .marquee.rev { animation-name: scroll-x-rtl-rev; }
.marquee .m-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px; white-space: nowrap;
  background: rgba(232, 239, 246, 0.05);
  box-shadow: inset 0 0 0 1px rgba(232, 239, 246, 0.14);
  color: var(--on-dark-muted); font-weight: 600; font-size: 0.96rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.marquee .m-item:hover { background: rgba(102, 134, 170, 0.22); color: var(--on-dark); transform: translateY(-2px); }
.marquee .m-item .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 10px var(--mist); flex: none; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-x-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes scroll-x-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes scroll-x-rtl-rev { from { transform: translateX(50%); } to { transform: translateX(0); } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 22px;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}
.why-item:hover { transform: translateY(-5px); border-color: rgba(102, 134, 170, 0.45); box-shadow: var(--shadow-md); }
.why-item .icon-chip { width: 46px; height: 46px; border-radius: 13px; transition: transform 0.35s var(--ease-out); }
.why-item:hover .icon-chip { transform: rotate(-6deg) scale(1.08); }
.why-item .icon-chip svg { width: 22px; height: 22px; }
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Services accordion ---------- */
.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: calc(var(--nav-h) + 18px);
}
.acc:hover { border-color: rgba(102, 134, 170, 0.4); }
.acc.open { border-color: rgba(102, 134, 170, 0.55); box-shadow: var(--shadow-md); }
.acc-head {
  display: flex; align-items: center; gap: 20px; width: 100%;
  padding: 26px 28px; text-align: start;
}
.acc-num {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em;
  color: var(--steel); flex: none; width: 30px;
}
.acc-head .icon-chip { transition: transform 0.35s var(--ease-out), background 0.3s ease, color 0.3s ease; }
.acc.open .acc-head .icon-chip { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(54, 69, 88, 0.35); }
.acc-meta { flex: 1; min-width: 0; }
.acc-title { display: block; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; color: var(--ink); transition: color 0.25s ease; }
html[lang="ar"] .acc-title { font-weight: 700; }
.acc.open .acc-title, .acc-head:hover .acc-title { color: var(--accent); }
.acc-desc { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.acc-x { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.4s var(--ease-out); }
.acc-x::before, .acc-x::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent);
  border-radius: 2px; transition: transform 0.4s var(--ease-out), background 0.25s ease;
}
.acc-x::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-x::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.acc.open .acc-x { transform: rotate(180deg); background: rgba(102, 134, 170, 0.12); box-shadow: inset 0 0 0 1.5px rgba(102, 134, 170, 0.5); }
.acc.open .acc-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner .tag-grid { padding: 2px 28px 30px calc(28px + 30px + 20px); }
[dir="rtl"] .acc-inner .tag-grid { padding: 2px calc(28px + 30px + 20px) 30px 28px; }

.acc-img {
  display: block; width: calc(100% - 56px); height: 190px;
  margin: 2px auto 18px; object-fit: cover; border-radius: 12px;
  filter: brightness(1.18);
}
@media (max-width: 880px) { .acc-img { width: calc(100% - 36px); height: 150px; } }

.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.92rem; color: var(--ink-2);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out), background 0.25s ease, box-shadow 0.25s ease;
}
.tag:hover { border-color: rgba(102, 134, 170, 0.55); color: var(--accent); transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.tag svg { width: 14px; height: 14px; color: var(--steel); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(125deg, #2C3A4C, #212C3A); color: var(--on-dark); }
.cta-band .bg { position: absolute; inset: 0; pointer-events: none; }
.cta-band .bg svg { width: 100%; height: 100%; }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-inner h2 { color: #F4F8FC; font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -0.015em; }
.cta-inner p { color: var(--on-dark-muted); margin-top: 16px; }
.cta-inner .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- Overview split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split .visual { position: relative; transition: transform 0.4s var(--ease-out); }
.split .visual svg { width: 100%; height: auto; border-radius: var(--radius); }
.overview-points { margin-top: 4px; display: grid; gap: 14px; }
.overview-points li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-2); font-weight: 600; font-size: 0.98rem; transition: transform 0.3s var(--ease-out); }
.overview-points li:hover { transform: translateX(5px); }
[dir="rtl"] .overview-points li:hover { transform: translateX(-5px); }
.overview-points li svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Photo frame + floating chips (overview) ---------- */
.photo-frame { position: relative; }
.photo-frame > img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(53, 68, 87, 0.2);
}
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(102, 134, 170, 0.25), rgba(159, 192, 224, 0.12));
  z-index: -1;
}
[dir="rtl"] .photo-frame::before { inset: 18px 18px -14px -14px; }
.float-chip {
  position: absolute; display: flex; gap: 11px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow-md);
  font-weight: 700; font-size: 0.88rem; color: var(--ink); white-space: nowrap;
  animation: floaty 5s ease-in-out infinite alternate;
}
.float-chip .icon-chip { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.float-chip .icon-chip svg { width: 18px; height: 18px; }
.float-chip.fc1 { top: 9%; inset-inline-end: -20px; }
.float-chip.fc2 { bottom: 10%; inset-inline-start: -24px; animation-delay: 1.4s; }
@keyframes floaty { to { transform: translateY(-10px); } }
@media (max-width: 880px) {
  .float-chip.fc1 { inset-inline-end: 10px; }
  .float-chip.fc2 { inset-inline-start: 10px; }
}

/* ---------- Delivery process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(102, 134, 170, 0.45); }
.step .n {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 18px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.02rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(54, 69, 88, 0.32);
  position: relative; z-index: 1;
}
.step::after {
  content: ""; position: absolute; top: 51px;
  inset-inline-start: 86px; inset-inline-end: -10px; height: 2px;
  background: linear-gradient(to right, rgba(102, 134, 170, 0.4), rgba(102, 134, 170, 0.06));
}
[dir="rtl"] .step::after { background: linear-gradient(to left, rgba(102, 134, 170, 0.4), rgba(102, 134, 170, 0.06)); }
.steps .step:last-child::after { display: none; }
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Industry photo cards ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: #fff; isolation: isolate;
  background: #1B2534;
}
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s var(--ease-out); filter: brightness(1.45) saturate(1.05); }
.ind-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 20, 30, 0.9) 6%, rgba(14, 20, 30, 0.16) 52%, rgba(14, 20, 30, 0));
  transition: background 0.4s ease;
}
.ind-card:hover img { transform: scale(1.08); }
.ind-card .ind-ico {
  position: absolute; top: 18px; inset-inline-start: 18px;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232, 239, 246, 0.12); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(232, 239, 246, 0.25);
  color: var(--mist-2);
}
.ind-card .ind-ico svg { width: 21px; height: 21px; }
.ind-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 5px; }
.ind-card p { color: var(--mist-2); font-size: 0.87rem; line-height: 1.5; }
@media (max-width: 1020px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } .ind-card { min-height: 240px; } }

/* ---------- FAQ variant of accordion ---------- */
.acc.faq .acc-head { padding: 20px 24px; gap: 16px; }
.acc.faq .acc-title { font-size: 1.04rem; }
.faq-p { padding: 0 24px 24px; color: var(--muted); max-width: 80ch; }
.faq-wrap { max-width: 860px; margin-inline: auto; }

/* ---------- CTA photo layer ---------- */
.cta-photo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(16, 23, 34, 0.92), rgba(27, 37, 52, 0.78) 55%, rgba(33, 44, 58, 0.62)),
    url("img/cta.jpg") center / cover no-repeat;
}

/* SVG scene micro-animations */
.wk { animation: winkle 3s ease-in-out infinite; }
@keyframes winkle { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.12; } }
.pulseArc { animation: pulsea 2.6s ease-in-out infinite; }
@keyframes pulsea { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.15; } }
.sunf { animation: sunfloat 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes sunfloat { to { transform: translateY(-9px) scale(1.04); } }
.wkg rect:nth-child(3n) { animation: winkle 3.2s ease-in-out infinite; }
.wkg rect:nth-child(5n) { animation: winkle 2.6s ease-in-out infinite 0.9s; }
.wkg rect:nth-child(7n + 2) { animation: winkle 3.8s ease-in-out infinite 1.6s; }

/* ---------- Values ---------- */
.value-card { text-align: start; }
.value-card .icon-chip { margin-bottom: 18px; }
.value-card h3 { font-size: 1.08rem; }
.value-card p { font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .meta span { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card .meta a, .contact-card .meta p { font-weight: 700; color: var(--ink); font-size: 1.02rem; direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .contact-card .meta p.addr { direction: rtl; }
.contact-card .meta a:hover { color: var(--accent); }
.contact-card .meta small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; font-size: 0.85rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: var(--ink); outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(102, 134, 170, 0.18); background: #fff; transform: translateY(-1px); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 0; right: 0; z-index: 300;
  width: max-content; max-width: 90%; margin-inline: auto;
  background: var(--slate); color: var(--on-dark);
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 18px 44px rgba(33, 44, 58, 0.4);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  display: flex; align-items: center; gap: 10px;
}
.toast .dot2 { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 10px var(--mist); }
.toast.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(160deg, #2C3A4C, #212C3A 70%); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.footer .dune-top { position: absolute; top: 0; inset-inline: 0; opacity: 0.5; pointer-events: none; overflow: hidden; }
.footer .dune-top svg { width: 200%; height: 70px; animation: waveSlide 26s linear infinite; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
[dir="rtl"] .footer .dune-top svg { animation-name: waveSlideR; }
@keyframes waveSlideR { to { transform: translateX(50%); } }
.footer-inner { position: relative; z-index: 1; padding-block: clamp(52px, 7vw, 80px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: clamp(26px, 4vw, 48px); }
.footer .brand-swoosh { color: #fff; }
.footer .brand-lockup { align-items: flex-start; }
[dir="rtl"] .footer .brand-lockup { align-items: flex-start; }
.footer .brand-lockup b { color: #F4F8FC; }
.footer .brand-lockup .tagline-sm { color: var(--mist); }
.footer .blurb { margin-top: 18px; font-size: 0.92rem; max-width: 34ch; }
.footer h5 { color: #F4F8FC; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.94rem; transition: color 0.2s ease, padding 0.25s var(--ease-out); }
.footer-col a:hover { color: var(--mist-2); padding-inline-start: 6px; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.92rem; }
.footer .contact-line svg { width: 16px; height: 16px; color: var(--mist); flex: none; margin-top: 4px; }
.footer .contact-line a:hover { color: var(--mist-2); }
.footer .contact-line .ltr { direction: ltr; unicode-bidi: embed; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(232, 239, 246, 0.06); box-shadow: inset 0 0 0 1px rgba(232, 239, 246, 0.16);
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}
.social-row a:hover { background: rgba(102, 134, 170, 0.28); color: var(--mist-2); transform: translateY(-4px); }
.social-row svg { width: 17px; height: 17px; }
.social-row.light a { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.social-row.light a:hover { background: rgba(102, 134, 170, 0.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(102, 134, 170, 0.5); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-block: 22px;
  border-top: 1px solid rgba(232, 239, 246, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 0.86rem;
}
.footer-bottom .tagline { color: var(--mist); font-weight: 600; }

/* ---------- Small helpers ---------- */
.mini-h {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin: 30px 0 14px;
}
.btn-row-center { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }  .reveal.d6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .kinetic .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee { animation: none !important; }
  .caret { display: none; }
  html { scroll-behavior: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links, .nav .btn-primary { display: none; }
  .nav-toggle { display: block; flex: none; }
  .nav-inner { justify-content: space-between; gap: 10px; }
  .nav-actions { margin-inline-start: auto; gap: 8px; }
  .lang-btn { padding: 8px 12px; font-size: 0.85rem; }
  .brand-swoosh { width: 96px; }
  .brand-lockup b { font-size: 0.68rem; }
  .nav.menu-open { background: var(--paper); }
  .nav-item { position: static; display: contents; }
  .nav-item .dd, .nav-item .chev-dd { display: none !important; }
  .nav-links.mobile-open {
    display: flex; position: absolute; inset-inline: 0; top: 100%; bottom: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px 5vw 26px; z-index: 120;
    box-shadow: 0 30px 50px rgba(33, 44, 58, 0.18);
  }
  .nav-links.mobile-open a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; opacity: 0; transform: translateY(-8px); animation: riseIn 0.4s var(--ease-out) forwards; }
  .nav-links.mobile-open a:nth-child(1) { animation-delay: 0.03s; }
  .nav-links.mobile-open a:nth-child(2) { animation-delay: 0.08s; }
  .nav-links.mobile-open a:nth-child(3) { animation-delay: 0.13s; }
  .nav-links.mobile-open a:nth-child(4) { animation-delay: 0.18s; }
  .nav-links a::after { display: none; }
  .grid-3, .grid-2, .vm-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .quote-band p.big { max-width: none; }
  .hero { min-height: auto; padding-bottom: 110px; }
  .acc-head { padding: 20px 18px; gap: 13px; }
  .acc-num { display: none; }
  .acc-inner .tag-grid { padding: 2px 18px 24px 18px; }
  [dir="rtl"] .acc-inner .tag-grid { padding: 2px 18px 24px 18px; }
}
@media (max-width: 520px) {
  .brand-swoosh { width: 84px; }
  .brand-lockup b { font-size: 0.6rem; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 350px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 9px 11px; }
  .lang-btn svg { width: 17px; height: 17px; }
}
@media (max-width: 560px) {
  .grid-4, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta-inner .actions .btn { width: 100%; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 16px; }
  .scroll-cue { display: none; }
  .to-top { bottom: 18px; inset-inline-end: 18px; width: 48px; height: 48px; }
}
