/* =========================================================
   HULUL — Premium site components (RTL-first, logical props)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
.en, .num { font-family: var(--font-en); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 700; color: var(--indigo-600);
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--indigo-50); border: 1px solid var(--indigo-100);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 4px rgba(84,224,197,.25); }
.on-dark .eyebrow { color: var(--brand-mint); background: rgba(84,224,197,.08); border-color: rgba(84,224,197,.22); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-block-end: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-h2); margin-block-start: 18px; max-width: 22ch; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-body-lg); max-width: 46ch; }
.on-dark .section-head p { color: rgba(248,250,252,.7); }
.hl-mint { color: var(--brand-mint); }
.hl-sun  { color: var(--brand-sun); }
.hl-underline { background: linear-gradient(transparent 62%, rgba(84,224,197,.55) 62%); padding-inline: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding-inline: 28px; border-radius: var(--r-pill);
  font: inherit; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-inline-end: -16px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: rotate(-45deg); }
.btn-sun { background: var(--brand-sun); color: var(--indigo-900); box-shadow: 0 14px 30px -10px rgba(242,191,4,.6); }
.btn-sun .ic { background: var(--indigo-800); color: var(--brand-sun); }
.btn-indigo { background: var(--indigo-800); color: var(--brand-snow); }
.btn-indigo .ic { background: var(--brand-mint); color: var(--indigo-900); }
.btn-mint { background: var(--brand-mint); color: var(--indigo-900); }
.btn-mint .ic { background: var(--indigo-800); color: var(--brand-mint); }
.btn-ghost { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.btn-ghost-light { background: rgba(248,250,252,.06); color: var(--brand-snow); border: 1px solid rgba(248,250,252,.22); backdrop-filter: blur(8px); }
.btn-sm { --h: 44px; padding-inline: 20px; font-size: 14px; }
.btn-sm .ic { width: 28px; height: 28px; margin-inline-end: -10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--indigo-800); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: var(--indigo-50); color: var(--indigo-700); border: 1px solid var(--indigo-100); }
.chip-mint { background: var(--mint-100); color: var(--mint-700); border-color: transparent; }
.chip-sun { background: var(--sun-100); color: #8a6a00; border-color: transparent; }
.chip-dark { background: rgba(248,250,252,.08); color: var(--brand-snow); border-color: rgba(248,250,252,.16); }

/* ---------- Navbar (floating glass pill) ---------- */
.nav-wrap { position: absolute; inset-inline: 0; top: 24px; z-index: 20; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding-inline: 14px 28px;
  border-radius: var(--r-pill);
  background: rgba(15, 4, 82, .55);
  border: 1px solid rgba(248,250,252,.12);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 16px; border-radius: var(--r-pill); color: rgba(248,250,252,.78); font-size: 15px; font-weight: 700; transition: .25s; }
.nav-links a:hover { color: #fff; background: rgba(248,250,252,.08); }
.nav-links a.active { color: var(--indigo-900); background: var(--brand-mint); }
.nav-links .has-menu::after { content: " ▾"; font-size: 11px; opacity: .7; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-snow); border: 1px solid rgba(248,250,252,.2); font-family: var(--font-en); font-weight: 700; font-size: 14px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-mint); color: var(--indigo-900); place-items: center; }

/* ---------- Hero ---------- */

.hero-ctas { display: flex; gap: 14px; margin-block-start: 40px; flex-wrap: wrap; }

/* hero visual — bento of floating cards */

.float-card {
  position: absolute; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(248,250,252,.07); border: 1px solid rgba(248,250,252,.14);
  backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}

.marquee-label { flex: none; color: rgba(248,250,252,.6); font-size: 14px; max-width: 150px; line-height: 1.5; }
.marquee-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: 16px; align-items: center; width: max-content; animation: scroll 40s linear infinite; }
.logo-tile { flex: none; height: 76px; width: 140px; padding: 8px 18px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.logo-tile img { max-height: 60px; width: auto; object-fit: contain; }
@keyframes scroll { to { transform: translateX(50%); } }
html[dir="ltr"] .marquee-row { animation-name: scroll-ltr; }
@keyframes scroll-ltr { to { transform: translateX(-50%); } }

/* ---------- Services bento ---------- */

.svc {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 34px;
  background: var(--surface); border: 1px solid var(--line); min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-top { display: flex; justify-content: space-between; align-items: start; }
.svc-num { font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--ink-muted); }
.svc-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-800); }
.svc h3 { font-size: var(--fs-h3); margin-block-end: 12px; }
.svc p { color: var(--ink-soft); }
.svc .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-go { position: absolute; inset-inline-end: 28px; bottom: 28px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-800); transition: .35s var(--ease); }
.svc:hover .svc-go { background: var(--brand-sun); transform: rotate(-45deg); }

.svc-mint { background: var(--mint-100); border-color: transparent; }
.svc-mint .svc-icon { background: var(--brand-mint); }

.svc-sun .svc-icon { background: var(--sun-100); color: #8a6a00; }

/* ---------- Work / case studies ---------- */
.work { background: var(--indigo-950); color: var(--brand-snow); border-radius: var(--r-xl); margin-inline: 16px; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.case { position: relative; grid-column: span 6; border-radius: var(--r-lg); overflow: hidden; background: var(--indigo-900); }
.case.wide { grid-column: span 7; }
.case.narrow { grid-column: span 5; }
.case-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.case.wide .case-media, .case.narrow .case-media { aspect-ratio: auto; height: 440px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case-media img { transform: scale(1.05); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,2,56,.85)); }
.case-chips { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 2; display: flex; gap: 8px; }
.case-body { padding: 26px 28px 30px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.case-body h3 { font-size: 22px; margin-block-end: 6px; }
.case-body p { color: rgba(248,250,252,.62); font-size: 15px; }
.case-result { flex: none; text-align: end; }
.case-result b { display: block; font-family: var(--font-en); font-size: 34px; color: var(--brand-mint); line-height: 1; }
.case-result span { font-size: 12px; color: rgba(248,250,252,.55); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.stat { padding: 44px 36px; border-inline-start: 1px solid var(--line); position: relative; }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: var(--font-en); font-weight: 800; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; color: var(--indigo-800); letter-spacing: -.03em; }
.stat b sup { font-size: .45em; color: var(--brand-mint); vertical-align: top; margin-inline-start: 4px; }
.stat span { display: block; margin-block-start: 14px; color: var(--ink-soft); font-weight: 700; }
.stat.featured { background: var(--brand-mint); }
.stat.featured b sup { color: var(--indigo-800); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-en); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--indigo-200); display: block; margin-block-end: 28px; }
.step h4 { font-size: var(--fs-h4); margin-block-end: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.step .line { position: absolute; top: 58px; inset-inline-end: -20px; width: 20px; height: 2px; background: var(--brand-mint); }
.step:last-child .line { display: none; }
.step.active { background: var(--indigo-800); color: var(--brand-snow); border-color: transparent; }
.step.active::before { -webkit-text-stroke-color: var(--brand-mint); }
.step.active p { color: rgba(248,250,252,.7); }

/* ---------- Markets (Egypt / KSA) ---------- */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.market { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 36px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.market.eg { background: var(--indigo-800); color: var(--brand-snow); }
.market.sa { background: var(--brand-mint); color: var(--indigo-900); }
.market .code { position: absolute; inset-inline-end: -10px; bottom: -40px; font-family: var(--font-en); font-weight: 800; font-size: 200px; line-height: 1; opacity: .1; }
.market h3 { font-size: 30px; margin-block-end: 8px; }
.market ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.quote { padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.quote.dark { background: var(--indigo-800); color: var(--brand-snow); border: 0; }
.quote .mark { font-family: Georgia, serif; font-size: 72px; line-height: .6; color: var(--brand-mint); }
.quote p { font-size: 18px; line-height: 1.8; }
.quote.dark p { font-size: 22px; }
.who { display: flex; align-items: center; gap: 14px; }
.who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--indigo-100); display: grid; place-items: center; font-weight: 800; color: var(--indigo-800); }
.quote.dark .who .av { background: var(--brand-mint); }
.who b { display: block; font-size: 15px; }
.who small { color: var(--ink-muted); font-size: 13px; }
.quote.dark .who small { color: rgba(248,250,252,.6); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: .4s var(--ease); }
.post:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-media { aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 24px 26px 28px; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-muted); margin-block-end: 12px; }
.post h3 { font-size: 19px; line-height: 1.55; margin-block-end: 18px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px);
  color: var(--brand-snow); text-align: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(84,224,197,.35), transparent 70%),
    linear-gradient(180deg, var(--indigo-800), var(--indigo-950));
}
.cta h2 { font-size: var(--fs-h1); max-width: 18ch; margin: 22px auto 18px; }
.cta p { color: rgba(248,250,252,.72); font-size: var(--fs-body-lg); max-width: 54ch; margin-inline: auto; }
.cta .hero-ctas { justify-content: center; }
.cta-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 30px; }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-950); color: var(--brand-snow); padding-block: 90px 30px; margin-block-start: var(--space-section); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; position: relative; z-index: 2; }
.footer h5 { font-size: 15px; color: var(--brand-mint); margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: rgba(248,250,252,.72); font-size: 15px; }
.footer p { color: rgba(248,250,252,.66); font-size: 15px; }
.socials { display: flex; gap: 10px; margin-block-start: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(248,250,252,.18); color: var(--brand-snow); }
.socials a:hover { background: var(--brand-mint); color: var(--indigo-900); border-color: transparent; }
.newsletter { display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill); background: rgba(248,250,252,.06); border: 1px solid rgba(248,250,252,.14); margin-block-start: 18px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding-inline: 16px; font: inherit; }
.wordmark { font-family: var(--font-en); font-weight: 800; font-size: clamp(120px, 22vw, 340px); line-height: .8; letter-spacing: -.04em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(84,224,197,.45), rgba(84,224,197,0) 85%); -webkit-background-clip: text; background-clip: text; margin-block: 60px 30px; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block-start: 26px; border-block-start: 1px solid var(--line-dark); color: rgba(248,250,252,.5); font-size: 14px; }

/* ---------- Floating contact ---------- */
.fab { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 170px 90px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: rgba(248,250,252,.6); margin-block-end: 18px; }
.crumbs b { color: var(--brand-mint); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  
  
  
  .case, .case.wide, .case.narrow { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-block-start: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step .line { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-body-lg: 17px; }
  .nav-wrap { top: 14px; }
  .nav { height: 64px; padding-inline: 8px 18px; }
  .nav-logo img { height: 28px; }
  .nav-actions .btn { display: none; }
  
  
  .hero-ctas .btn { width: 100%; }
  
  
  
  
  
  
  
  .marquee-label { max-width: none; }
  .section-head { margin-block-end: 36px; }
  .svc { padding: 26px; min-height: 0; }
  
  
  
  .work { margin-inline: 8px; border-radius: var(--r-lg); }
  .case.wide .case-media, .case.narrow .case-media { height: 280px; }
  .case-body { flex-direction: column; align-items: start; }
  .case-result { text-align: start; }
  .stat { padding: 28px 22px; }
  .process { grid-template-columns: 1fr; }
  .markets { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .fab { width: 54px; height: 54px; bottom: 16px; inset-inline-start: 16px; }
}

/* frames report their height to the design board (index.html) */
@media (max-width: 640px) {
  
  .svc-go { position: static; align-self: flex-end; width: 46px; height: 46px; }
  
  
}

/* ---------- Inner page: service detail ---------- */

.page-hero h1 { font-size: var(--fs-h1); margin-block: 22px 20px; }

.subsvc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.subsvc article { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease); }
.subsvc article:hover { border-color: var(--brand-mint); box-shadow: var(--glow-mint); }
.subsvc .svc-icon { width: 56px; height: 56px; border-radius: 16px; margin-block-end: 24px; }
.subsvc h3 { font-size: 21px; margin-block-end: 10px; }
.subsvc p { color: var(--ink-soft); font-size: 15px; }
.subsvc ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.subsvc li::before { content: "✓"; color: var(--mint-700); font-weight: 800; margin-inline-end: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1/1; background: var(--indigo-800); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float-card { inset-inline-start: 24px; bottom: 24px; padding: 18px 20px; background: rgba(10,2,56,.75); color: #fff; }
.checks { display: grid; gap: 18px; margin-block-start: 30px; }
.checks > div { display: flex; gap: 16px; }
.checks i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-100); color: var(--mint-700); font-style: normal; font-weight: 800; }
.checks b { display: block; font-size: 18px; margin-block-end: 4px; }
.checks p { color: var(--ink-soft); font-size: 15px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); padding: 0 26px; }
.faq details[open] { border-color: var(--indigo-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; font-size: 18px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-50); font-family: var(--font-en); font-size: 22px; }
.faq details[open] summary::after { content: "−"; background: var(--brand-mint); }
.faq details p { padding-block-end: 22px; color: var(--ink-soft); }
.contact-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.contact-split .side { padding: 52px; color: var(--brand-snow); background: radial-gradient(70% 60% at 100% 0%, rgba(84,224,197,.3), transparent 60%), var(--indigo-800); }
.contact-split .side h2 { font-size: 40px; margin-block: 18px; }
.contact-split .side p { color: rgba(248,250,252,.7); }
.contact-split form { padding: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { height: 56px; border-radius: 16px; border: 1.5px solid var(--line); padding: 0 18px; font: inherit; background: var(--bg); color: var(--ink); }
.field textarea { height: 120px; padding-block-start: 14px; resize: none; }
.contact-line { display: flex; gap: 14px; align-items: center; margin-block-start: 18px; }
.contact-line i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,250,252,.08); font-style: normal; }
@media (max-width: 1100px) {
   .split, .contact-split { grid-template-columns: 1fr; }
  .subsvc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding-block: 130px 60px; }
  .subsvc { grid-template-columns: 1fr; }
  .contact-split .side, .contact-split form { padding: 30px; }
  .contact-split form { grid-template-columns: 1fr; }
}

/* =========================================================
   v2 — Full-bleed hero (100vh), calm typography
   ========================================================= */
.hero-full { position: relative; height: var(--vh-frame, 100svh); min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; color: var(--brand-snow); background: var(--indigo-950); }
.hero-full .bg { position: absolute; inset: 0; }
.hero-full .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: kenburns 20s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-full::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(10,2,56,.95) 0%, rgba(10,2,56,.6) 34%, rgba(10,2,56,.12) 66%, rgba(10,2,56,.5) 100%),
    linear-gradient(90deg, rgba(20,5,107,.0) 40%, rgba(20,5,107,.35) 100%); }
.hero-full .container { position: relative; z-index: 2; padding-block-end: 40px; }
.hero-content { max-width: 600px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--brand-mint); letter-spacing: .02em; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--brand-mint); }
.hero-full h1 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.3; margin-block: 16px 14px; font-weight: 800; }
.hero-full .lead { font-size: 15px; line-height: 1.8; color: rgba(248,250,252,.75); max-width: 42ch; }
.hero-full .hero-ctas { margin-block-start: 28px; gap: 12px; }
.hero-full .btn { --h: 50px; font-size: 15px; padding-inline: 24px; }
.hero-full .btn .ic { width: 30px; height: 30px; margin-inline-end: -12px; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-block-start: 52px; padding-block-start: 20px; border-block-start: 1px solid rgba(248,250,252,.16); font-size: 13px; color: rgba(248,250,252,.62); }
.hero-meta .items { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-meta b { color: var(--brand-snow); font-family: var(--font-en); font-weight: 700; margin-inline-end: 6px; }
.scroll-cue { display: flex; align-items: center; gap: 10px; }
.scroll-cue i { position: relative; width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(248,250,252,.45); }
.scroll-cue i::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand-mint); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* clients strip (light, below hero) */
.clients { padding-block: 44px; border-block-end: 1px solid var(--line); background: var(--surface); }
.clients .container { display: flex; align-items: center; gap: 40px; }
.clients .marquee-label { color: var(--ink-muted); }
.clients .logo-tile { box-shadow: none; border: 1px solid var(--line); height: 68px; width: 132px; }
.clients .logo-tile img { max-height: 52px; }

/* services — 6 equal cards, short copy */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-grid .svc { min-height: 300px; }
.svc-grid .svc h3 { font-size: 22px; line-height: 1.45; margin-block-end: 8px; max-width: 18ch; }
.svc-grid .svc p { font-size: 15px; }
.svc-dark { background: var(--indigo-800); color: var(--brand-snow); border-color: transparent; }
.svc-dark::before { content: ""; position: absolute; inset: auto auto -45% -25%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(84,224,197,.35), transparent 65%); }
.svc-dark p { color: rgba(248,250,252,.7); }
.svc-dark .svc-num { color: rgba(248,250,252,.5); }
.svc-dark .svc-icon { background: var(--brand-mint); color: var(--indigo-900); }
.svc-dark .svc-go { background: var(--brand-sun); color: var(--indigo-900); }
.svc-grid .svc > div:nth-child(2) { position: relative; padding-inline-end: 60px; }

/* inner page hero with image */
.page-hero-img { height: auto; min-height: 0; padding-block: 200px 70px; }
.page-hero-img .hero-content { max-width: 640px; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-full { min-height: 560px; }
  .hero-full .container { padding-block-end: 28px; }
  .hero-full h1 { font-size: 30px; }
  .hero-full .lead { font-size: 14px; }
  .hero-full .hero-ctas .btn { width: auto; flex: 1; padding-inline: 16px; }
  .hero-meta { margin-block-start: 32px; }
  .hero-meta .items { gap: 18px; }
  .scroll-cue { display: none; }
  .clients .container { flex-direction: column; align-items: stretch; gap: 18px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid .svc { min-height: 0; }
  .page-hero-img { padding-block: 130px 50px; }
}
/* v2 tweaks */
.hero-full .lead { max-width: 50ch; }
.fab { inset-inline-start: auto; left: 24px; }
.hero-meta { padding-inline-end: 84px; }
@media (max-width: 640px) { .fab { left: 16px; } .hero-meta { padding-inline-end: 0; } }

/* v3 — dark client strip (several partner logos are white-on-transparent) */
.clients { background: var(--indigo-950); border-block-end: 0; border-block-start: 1px solid rgba(248,250,252,.08); }
.clients .marquee-label { color: rgba(248,250,252,.55); }
.clients .logo-tile { background: transparent; border: 0; box-shadow: none; width: 150px; height: 64px; padding: 0 12px; }
.clients .logo-tile img { max-height: 54px; filter: brightness(0) invert(1); opacity: .72; transition: opacity .3s; }
.clients .logo-tile:hover img { opacity: 1; }
/* hero without the numbers row */
.hero-full .container { padding-block-end: 88px; }
.hero-full .bg img { object-position: 30% 40%; }
@media (max-width: 640px) { .hero-full .container { padding-block-end: 56px; } .hero-full .bg img { object-position: 22% center; } }
/* logos whose artwork sits small / faint inside their canvas */
.clients .logo-tile img[src*="1781707531"] { transform: scale(1.9); }
.clients .logo-tile img[src*="1780925536"] { transform: scale(1.35); opacity: 1; }

/* =========================================================
   FRONTEND — preloader, fixed nav, dropdown, mobile menu, reveals
   ========================================================= */
.marquee-label { flex: none; font-size: 14px; max-width: 150px; line-height: 1.5; }

/* ---------- Preloader (shows on every visit to the home page) ---------- */
.preloader { display: none; }
.js .preloader {
  --logo-w: 260px;
  /* logo embedded inline: Chrome blocks mask images loaded from files when the page is opened as file:/// */
  --logo-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANEAAABGCAYAAABSWXEUAAAQAElEQVR4AeydB5glRRGA98CcQFHBhAFQzKJiFjChoBLMkgQDBjCAiaSA+ilR5VAUFQkGUCSoGFBQzDkrBsxiBJGgAhLO/597/W5C94S3e3dv93q/ru2e7uqanpqu6VRVb7WZKfxbsmTJWsDBwPnAxcApwKZT2NTcpMyBmakTIoRlLd7LF4BNgFcDzwL+A3yEsu2Jc8gcmCoOzKkQ0cmvAzwAeAXwAeBs4CzgOGA34D7AdTo4sCflVwLPAJ4IKEQnEr8BeA31FTKSOWQOTAcH5kSI6NjXBZ7KI30f+C7wNmAH4NHAY4DnAO8AfgT8BNynAQ1hIu+6lCs4RxFfAawNfA54JnAmsATYGMghc2BqODBrIaLj35an+egI7k3cFTYE4WTgNOremrgcbM/qZChARDM35d8rgbcA1wBXAw3hIy+HzIEuDiy3cjvtxMQRgrtQ+RPANsBQWk+izpegsS5xERYtWuQ07qtc7AI46nyYeG/gZsBDgJsAjmZEOWQOTAcHhnb8cavp/Lfg4hjgAcCkwVHpVGitUSLgqGO+U0IF6g+UuTN3GPH7ELQ/EeeQOTA1HJhYiHiCfQE7N9GsgkJ4AIK0SCoIyR+JXUsppF8h/TNgR2B/4HAgh8yBqeLAREJEh7fjP5snKTo+cSq4jrk2VVjKd/rm6FNkIUi/AdxgcPp2fdL3BY4BnOIVOPlf5sC0cGAiIaLxuwO3AVLhaxS45lEIbkzaNdN3iFNC4HTuhZRXgkIDKIiV/HyxkDkw/55tsBAxCl2fx3TLmSga3k/ulnT+TwFXjODj5DlFcxOCZDRsAW1346KFOTNzYFo5MFiIeBCnXTckjoWvk7k3gnMpcSWQ928y9gHcKCBqBM+EhEZBzsgcmGYOTCJEt2t5oJMRln+kyik7l7KzgVhwFHIrO1aW8zIHppYDkwhRahTyIf/ivw74faLctrTRTlTL2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100;
  pointer-events: none;
}
.pl-curtain { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.77,0,.18,1); }
.pl-curtain.mint { background: var(--brand-mint); transition-delay: .12s; }
.pl-curtain.main {
  background:
    radial-gradient(40% 40% at 50% 50%, rgba(84,224,197,.16), transparent 70%),
    var(--indigo-950);
}
.pl-stage { position: relative; z-index: 2; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.pl-logo {
  position: relative; direction: ltr;
  width: var(--logo-w); aspect-ratio: 209 / 70;
  transform: translateX(calc(var(--logo-w) * .39));     /* the mark sits centred while loading */
  transition: transform .9s cubic-bezier(.65,0,.15,1);
}
.pl-mark, .pl-word {
  position: absolute; inset: 0;
  -webkit-mask: var(--logo-mask) 0 0 / 100% 100% no-repeat;
          mask: var(--logo-mask) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(110deg, #fff 42%, var(--brand-mint) 50%, #fff 58%) 120% 0 / 300% 100%;
}
.pl-mark {
  clip-path: inset(0 78% 15% 0);           /* the symbol only (tagline sits below it) */
  transform-origin: 11% 41%;
  animation: pl-pop 1s cubic-bezier(.34,1.56,.64,1) both .1s;
}
.pl-word { clip-path: polygon(21% 0, 21% 0, 21% 100%, 21% 100%, 21% 86%, 21% 86%); transition: clip-path .9s cubic-bezier(.65,0,.15,1) .2s; }
.pl-ring {
  position: absolute; left: 11%; top: 41%;
  width: calc(var(--logo-w) * .5); aspect-ratio: 1;
  translate: -50% -50%;
  transition: opacity .35s, scale .5s var(--ease);
}
.pl-ring svg { width: 100%; height: 100%; animation: pl-spin 1.1s linear infinite; }
.pl-ring circle { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.pl-ring .track { stroke: rgba(248,250,252,.1); }
.pl-ring .arc { stroke: var(--brand-mint); stroke-dasharray: 70 300; filter: drop-shadow(0 0 6px rgba(84,224,197,.7)); }
.pl-tag {
  position: absolute; top: calc(100% + 26px); left: 0; right: 0; text-align: center;
  font-size: 14px; letter-spacing: .04em; color: rgba(248,250,252,.55);
  opacity: 0; transform: translateY(8px); transition: .6s var(--ease) .55s;
}

/* stage 2: page loaded. Ring out, mark slides home, wordmark wipes in, shimmer sweeps */
.preloader.is-ready .pl-ring { opacity: 0; scale: 1.4; }
.preloader.is-ready .pl-logo { transform: none; }
.preloader.is-ready .pl-word { clip-path: polygon(21% 0, 100% 0, 100% 100%, 0 100%, 0 86%, 21% 86%); animation: pl-shine 1.1s ease .65s both; }
.preloader.is-ready .pl-mark { animation: pl-pop 1s cubic-bezier(.34,1.56,.64,1) both .1s, pl-shine 1.1s ease .65s both; }
.preloader.is-ready .pl-tag { opacity: 1; transform: none; }

/* stage 3: curtains lift */
.preloader.is-exit .pl-stage { opacity: 0; transform: translateY(-30px) scale(.96); }
.preloader.is-exit .pl-curtain { transform: translateY(-100%); }

@keyframes pl-pop { from { opacity: 0; transform: scale(.3) rotate(-160deg); } to { opacity: 1; transform: none; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
html.is-loading { overflow: hidden; }

/* hero entrance after the preloader */
.js .hero-content > * { opacity: 0; transform: translateY(26px); }
.js .hero-full .bg img { animation-play-state: paused; }
.js body.is-loaded .hero-content > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js body.is-loaded .hero-content > *:nth-child(2) { transition-delay: .1s; }
.js body.is-loaded .hero-content > *:nth-child(3) { transition-delay: .2s; }
.js body.is-loaded .hero-content > *:nth-child(4) { transition-delay: .3s; }
.js body.is-loaded .hero-content > *:nth-child(5) { transition-delay: .4s; }
.js body.is-loaded .hero-full .bg img { animation-play-state: running; }

/* ---------- Fixed nav, compact on scroll ---------- */
.nav-wrap { position: fixed; transition: top .4s var(--ease); }
.nav { transition: height .4s var(--ease), background .4s, box-shadow .4s; }
.nav-wrap.is-scrolled { top: 12px; }
.nav-wrap.is-scrolled .nav { height: 64px; background: rgba(10, 2, 56, .86); box-shadow: 0 18px 40px -18px rgba(10,2,56,.6); }
.nav-wrap.is-hidden { top: -110px; }

/* services dropdown */
.nav-links li { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); inset-inline-start: -20px; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
  border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease);
}
.dropdown::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-links li:hover > .dropdown, .nav-links li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-links .dropdown a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: var(--ink); background: none; font-size: 14px; }
.nav-links .dropdown a:hover { background: var(--indigo-50); color: var(--ink); }
.nav-links .dropdown a.active { background: var(--mint-100); color: var(--ink); }
.dropdown .d-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-800); }
.dropdown small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; line-height: 1.4; }

/* ---------- Mobile menu ---------- */
.burger { border: 0; cursor: pointer; position: relative; z-index: 2; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 120px var(--gutter) 36px; color: var(--brand-snow); overflow-y: auto;
  background: radial-gradient(60% 40% at 0% 0%, rgba(84,224,197,.22), transparent 70%), var(--indigo-950);
  clip-path: circle(0 at 48px 52px); visibility: hidden;
  transition: clip-path .7s cubic-bezier(.77,0,.18,1), visibility 0s .7s;
}
html[dir="ltr"] .mobile-menu { clip-path: circle(0 at calc(100% - 48px) 52px); }
.menu-open .mobile-menu { clip-path: circle(150% at 48px 52px); visibility: visible; transition: clip-path .7s cubic-bezier(.77,0,.18,1); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu li { opacity: 0; transform: translateY(16px); transition: .5s var(--ease); }
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(1) { transition-delay: .2s; } .menu-open .mobile-menu li:nth-child(2) { transition-delay: .25s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: .3s; } .menu-open .mobile-menu li:nth-child(4) { transition-delay: .35s; }
.menu-open .mobile-menu li:nth-child(5) { transition-delay: .4s; } .menu-open .mobile-menu li:nth-child(6) { transition-delay: .45s; }
.menu-open .mobile-menu li:nth-child(7) { transition-delay: .5s; }
.mobile-menu ul a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 26px; font-weight: 800; border-block-end: 1px solid rgba(248,250,252,.08); }
.mobile-menu ul a span { font-family: var(--font-en); font-size: 13px; color: var(--brand-mint); font-weight: 700; }
.mobile-menu ul a.active { color: var(--brand-mint); }
.mobile-menu .mm-foot { display: grid; gap: 18px; }
.mobile-menu .mm-foot .btn { width: 100%; }
.mobile-menu .socials { margin: 0; }
.burger .x { display: none; }
.menu-open .burger .x { display: block; }
.menu-open .burger .bars { display: none; }
html.menu-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* form feedback */
.form-ok { grid-column: 1 / -1; display: none; padding: 16px 20px; border-radius: 16px; background: var(--mint-100); color: var(--mint-700); font-weight: 700; }
.form-ok.show { display: block; }

@media (min-width: 1101px) { .mobile-menu { display: none; } }
@media (max-width: 640px) { .js .preloader { --logo-w: 200px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-content > * { opacity: 1; transform: none; }
}
.fab { transition: opacity .3s; }
.menu-open .fab { opacity: 0; pointer-events: none; }

/* =========================================================
   INNER PAGES — about, services, portfolio, blog, article, careers, contact, 404
   ========================================================= */

/* current page in nav (set by tools/build.py) */
.nav-links a[aria-current="page"] { color: var(--indigo-900); background: var(--brand-mint); }
.nav-links .dropdown a[aria-current="page"] { background: var(--mint-100); color: var(--ink); }
.mobile-menu ul a[aria-current="page"] { color: var(--brand-mint); }

.skip-link { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200; padding: 10px 18px; border-radius: 12px; background: var(--brand-sun); color: var(--indigo-900); font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 3px; }

/* ---------- Compact page header (no photo) ---------- */
.page-head {
  position: relative; overflow: hidden; color: var(--brand-snow);
  padding-block: 190px 90px;
  background:
    radial-gradient(45% 80% at 90% 0%, rgba(84,224,197,.24), transparent 65%),
    radial-gradient(35% 60% at 0% 100%, rgba(242,191,4,.10), transparent 60%),
    linear-gradient(180deg, var(--indigo-950), var(--indigo-800));
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(248,250,252,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(248,250,252,.05) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(60% 70% at 70% 20%, #000 20%, transparent 75%);
}
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.25; margin-block: 14px 14px; max-width: 22ch; }
.page-head p { color: rgba(248,250,252,.72); font-size: 17px; max-width: 58ch; }
.crumbs a { color: rgba(248,250,252,.6); }
.crumbs a:hover { color: #fff; }
.page-head .head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.story .lead-lg { font-size: clamp(20px, 2vw, 26px); line-height: 1.65; font-weight: 800; margin-block: 18px 22px; }
.story p { color: var(--ink-soft); font-size: 17px; }
.story p + p { margin-block-start: 14px; }
.story-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--indigo-800); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-badge { position: absolute; bottom: 22px; inset-inline-start: 22px; inset-inline-end: 22px; display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); background: rgba(10,2,56,.78); color: #fff; backdrop-filter: blur(10px); }
.story-badge b { font-family: var(--font-en); font-size: 34px; color: var(--brand-mint); line-height: 1; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { position: relative; overflow: hidden; padding: 44px; border-radius: var(--r-xl); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.vm-card.dark { background: var(--indigo-800); color: var(--brand-snow); }
.vm-card.mint { background: var(--brand-mint); color: var(--indigo-900); }
.vm-card .svc-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; }
.vm-card.dark .svc-icon { background: var(--brand-mint); color: var(--indigo-900); }
.vm-card.mint .svc-icon { background: var(--indigo-800); color: var(--brand-mint); }
.vm-card h3 { font-size: 30px; margin-block-end: 12px; }
.vm-card p { font-size: 18px; line-height: 1.8; opacity: .85; }
.vm-card .ghost { position: absolute; inset-inline-end: -10px; bottom: -40px; font-family: var(--font-en); font-weight: 800; font-size: 170px; line-height: 1; opacity: .08; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.value .svc-icon { width: 54px; height: 54px; border-radius: 16px; margin-block-end: 22px; }
.value h3 { font-size: 20px; margin-block-end: 8px; }
.value p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Services overview ---------- */
.svc-rows { border-block-start: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 110px 1.15fr 1fr 64px; gap: 36px; align-items: center; padding-block: 38px; border-block-end: 1px solid var(--line); transition: background .4s var(--ease); }
.svc-row::before { content: ""; position: absolute; inset: 0 -24px; border-radius: var(--r-lg); background: var(--surface); opacity: 0; transition: opacity .4s var(--ease); z-index: -1; box-shadow: var(--shadow-md); }
.svc-row:hover::before { opacity: 1; }
.svc-row { isolation: isolate; }
.svc-row .n { font-family: var(--font-en); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--indigo-200); transition: .4s; }
.svc-row:hover .n { -webkit-text-stroke-color: var(--brand-mint); }
.svc-row h3 { font-size: 26px; line-height: 1.4; margin-block-end: 8px; }
.svc-row p { color: var(--ink-soft); }
.svc-row .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row .go { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-800); transition: .35s var(--ease); }
.svc-row:hover .go { background: var(--brand-sun); transform: rotate(-45deg); }
.svc-row a.cover { position: absolute; inset: 0; z-index: 1; }

/* ---------- Filters (portfolio, careers, blog) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 40px; }
.filter { height: 44px; padding-inline: 20px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: .25s; }
.filter:hover { border-color: var(--indigo-200); }
.filter.is-active { background: var(--indigo-800); color: var(--brand-snow); border-color: transparent; }
.filter span { font-family: var(--font-en); font-size: 12px; opacity: .6; margin-inline-start: 6px; }

/* ---------- Portfolio ---------- */
.pf-grid { columns: 3; column-gap: 20px; }
.pf-item { position: relative; break-inside: avoid; margin-block-end: 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--indigo-900); cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; text-align: start; font: inherit; }
.pf-item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.pf-item:hover img { transform: scale(1.04); }
.pf-item .cap { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; color: #fff; background: linear-gradient(0deg, rgba(10,2,56,.92), transparent); display: flex; justify-content: space-between; align-items: end; gap: 12px; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.pf-item:hover .cap, .pf-item:focus-visible .cap { opacity: 1; transform: none; }
.pf-item .cap b { font-size: 16px; line-height: 1.5; }
.pf-item .cap i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-mint); color: var(--indigo-900); }
.pf-item.is-hidden { display: none; }
.pf-empty { display: none; text-align: center; color: var(--ink-muted); padding: 40px; }

/* lightbox / modal (shared) */
.overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(10,2,56,.92); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.overlay-close { position: absolute; top: 20px; inset-inline-end: 20px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(248,250,252,.1); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.overlay-close:hover { background: var(--brand-mint); color: var(--indigo-900); }
.lightbox figure { margin: 0; display: grid; gap: 16px; justify-items: center; transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: min(1100px, 88vw); max-height: 78vh; width: auto; border-radius: var(--r-md); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.lightbox figcaption { color: #fff; text-align: center; }
.lightbox figcaption small { display: block; color: var(--brand-mint); font-size: 13px; margin-block-end: 4px; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(248,250,252,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav:hover { background: var(--brand-mint); color: var(--indigo-900); }
.lb-prev { inset-inline-start: 20px; }
.lb-next { inset-inline-end: 20px; }
.lb-prev svg { transform: scaleX(-1); }
html.has-overlay { overflow: hidden; }

.modal-card { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 44px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); transform: translateY(20px); transition: transform .4s var(--ease); }
.overlay.is-open .modal-card { transform: none; }
.modal-card .overlay-close { background: var(--indigo-50); color: var(--ink); top: 18px; }
.modal-card h3 { font-size: 26px; margin-block: 10px 6px; }
.modal-card > p { color: var(--ink-soft); margin-block-end: 26px; }

/* ---------- Forms (contact, careers) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field select, .field textarea { width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand-mint); box-shadow: 0 0 0 4px rgba(84,224,197,.2); background: #fff; }
.field .req { color: #e5484d; }
.file-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 84px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--indigo-200); background: var(--indigo-50); color: var(--ink-soft); font-size: 14px; text-align: center; cursor: pointer; transition: .2s; }
.file-drop:hover { border-color: var(--brand-mint); background: var(--mint-100); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop b { color: var(--indigo-700); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; height: 42px; padding-inline: 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.choice input:checked + span { background: var(--indigo-800); color: #fff; border-color: transparent; }
.choice input:focus-visible + span { outline: 2px solid var(--brand-mint); outline-offset: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.info-stack { display: grid; gap: 16px; }
.info-card { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.info-card.dark { background: var(--indigo-800); color: var(--brand-snow); border: 0; }
.info-card.sun { background: var(--brand-mint); color: var(--indigo-900); border: 0; }
.info-card h3 { font-size: 22px; margin-block: 6px 16px; }
.info-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.info-card li svg { flex: none; margin-block-start: 4px; color: var(--brand-mint); }
.info-card.sun li svg, .info-card:not(.dark) li svg { color: var(--indigo-700); }
.info-card a:hover { text-decoration: underline; }
.form-card { padding: 44px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 30px; margin-block: 14px 8px; }
.form-card > p { color: var(--ink-soft); margin-block-end: 28px; }
.perks-inline { display: flex; flex-wrap: wrap; gap: 18px; margin-block-start: 22px; font-size: 14px; color: var(--ink-soft); }
.perks-inline span { display: inline-flex; gap: 8px; align-items: center; }
.perks-inline svg { color: var(--mint-700); }
.map { border-radius: var(--r-xl); overflow: hidden; height: 400px; border: 1px solid var(--line); background: var(--indigo-50); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

/* ---------- Careers ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jobs { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); }
.job:hover { border-color: var(--brand-mint); box-shadow: var(--glow-mint); }
.job .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 12px; }
.job h3 { font-size: 22px; margin-block-end: 6px; }
.job p { color: var(--ink-soft); font-size: 15px; max-width: 70ch; }
.job .acts { display: flex; gap: 10px; }
.job.is-hidden { display: none; }

/* ---------- Blog ---------- */
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-block-end: 28px; transition: .4s var(--ease); }
.post-featured:hover { box-shadow: var(--shadow-lg); }
.post-featured .post-media { aspect-ratio: auto; min-height: 380px; }
.post-featured .post-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.45; margin-block: 8px 16px; }
.post-featured p { color: var(--ink-soft); margin-block-end: 26px; }
.post h3 a:hover, .post-featured h2 a:hover { color: var(--indigo-600); }
.post.is-hidden { display: none; }

/* ---------- Article ---------- */
.reading-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--brand-mint); transform-origin: 100% 50%; transform: scaleX(var(--p, 0)); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-block-start: 22px; color: rgba(248,250,252,.7); font-size: 14px; }
.article-meta span { display: inline-flex; gap: 8px; align-items: center; }
.article-cover { position: relative; margin-block-start: -60px; z-index: 2; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { font-size: 18px; line-height: 2; color: var(--ink-soft); max-width: 760px; }
.prose > * + * { margin-block-start: 18px; }
.prose h2 { color: var(--ink); font-size: 28px; line-height: 1.45; margin-block-start: 48px; scroll-margin-top: 110px; }
.prose h3 { color: var(--ink); font-size: 21px; margin-block-start: 30px; }
.prose ul { padding-inline-start: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-inline-start: 26px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-mint); }
.prose a { color: var(--indigo-600); text-decoration: underline; text-underline-offset: 4px; }
.prose .callout { padding: 26px 28px; border-radius: var(--r-md); background: var(--mint-100); color: var(--ink); border-inline-start: 4px solid var(--brand-mint); }
.aside-stack { position: sticky; top: 110px; display: grid; gap: 18px; }
.toc { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.toc h4 { font-size: 15px; margin-block-end: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: t; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); transition: .2s; }
.toc a::before { counter-increment: t; content: counter(t); font-family: var(--font-en); font-weight: 700; color: var(--ink-muted); }
.toc a:hover { background: var(--indigo-50); color: var(--ink); }
.toc a.is-active { background: var(--mint-100); color: var(--ink); font-weight: 700; }
.aside-cta { padding: 28px; border-radius: var(--r-lg); color: var(--brand-snow); background: radial-gradient(80% 60% at 100% 0%, rgba(84,224,197,.3), transparent 60%), var(--indigo-800); }
.aside-cta h4 { font-size: 20px; line-height: 1.5; margin-block: 0 10px; }
.aside-cta p { color: rgba(248,250,252,.7); font-size: 14px; margin-block-end: 20px; }
.share { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-muted); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--brand-mint); border-color: transparent; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.notfound .big { font-family: var(--font-en); font-weight: 800; font-size: clamp(120px, 22vw, 280px); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--brand-mint); }
.notfound h1 { font-size: clamp(26px, 3vw, 40px); margin-block: 10px 12px; }
.notfound p { color: rgba(248,250,252,.7); margin-block-end: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .story, .contact-grid, .article-layout, .post-featured { grid-template-columns: 1fr; }
  .story-media { aspect-ratio: 16 / 11; }
  .values, .perks { grid-template-columns: 1fr 1fr; }
  .pf-grid { columns: 2; }
  .svc-row { grid-template-columns: 80px 1fr 58px; }
  .svc-row .chips { grid-column: 2 / -1; grid-row: 2; }
  .aside-stack { position: static; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .page-head { padding-block: 130px 60px; }
  .vm-grid, .values, .perks, .form-grid { grid-template-columns: 1fr; }
  .vm-card { padding: 30px; min-height: 0; }
  .pf-grid { columns: 1; }
  .pf-item .cap { opacity: 1; transform: none; }
  .svc-row { grid-template-columns: 1fr 50px; gap: 14px; padding-block: 28px; }
  .svc-row .n { font-size: 40px; grid-column: 1 / -1; }
  .svc-row .chips { grid-column: 1 / -1; grid-row: auto; }
  .svc-row .go { width: 50px; height: 50px; grid-column: 2; grid-row: 2; }
  .svc-row h3 { font-size: 22px; }
  .job { grid-template-columns: 1fr; padding: 24px; }
  .form-card, .modal-card { padding: 28px 22px; }
  .post-featured .post-body { padding: 28px; }
  .post-featured .post-media { min-height: 240px; }
  .prose { font-size: 17px; }
  .lb-nav { top: auto; bottom: 20px; translate: none; }
  .map { height: 300px; }
}
@media (max-width: 1100px) { .contact-grid .form-card { order: -1; } }

/* =========================================================
   ENGLISH / LTR — everything else already uses logical properties
   ========================================================= */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.015em; }
html[lang="en"] .hero-full h1 { line-height: 1.12; }
html[lang="en"] .section-head h2 { line-height: 1.15; }
html[lang="en"] .prose { line-height: 1.85; }

/* arrows are drawn pointing "forward" for RTL (left); mirror them in LTR */
[dir="ltr"] svg:has(> use[href="#i-arrow"]),
[dir="ltr"] svg:has(> use[href="#i-diag"]) { transform: scaleX(-1); }
[dir="ltr"] .lb-prev svg { transform: none; }
[dir="ltr"] .link-arrow:hover svg { transform: scaleX(-1) translateX(-4px); }

/* hero overlay: darken the side the text sits on */
[dir="ltr"] .hero-full::before {
  background:
    linear-gradient(0deg, rgba(10,2,56,.95) 0%, rgba(10,2,56,.6) 34%, rgba(10,2,56,.12) 66%, rgba(10,2,56,.5) 100%),
    linear-gradient(270deg, rgba(20,5,107,.0) 40%, rgba(20,5,107,.35) 100%);
}
/* home hero: mirror the photo so the presenter stays clear of the left-aligned text */
[dir="ltr"] .page-index .hero-full .bg { transform: scaleX(-1); }
[dir="ltr"] .page-index .hero-full .bg img { object-position: 30% 40%; }

/* floating WhatsApp button sits on the opposite side of the text start */
[dir="ltr"] .fab { left: auto; right: 24px; }
[dir="ltr"] .hero-meta { padding-inline-end: 0; padding-inline-start: 0; }

/* mobile menu grows from the burger (right side in LTR) */
html[dir="ltr"].menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 52px); }

/* the logo preloader is always laid out LTR (it's a Latin wordmark) */
[dir="ltr"] .pl-tag { letter-spacing: .3em; text-transform: uppercase; font-size: 11px; }

/* language switch: Arabic label */
.lang[lang="ar"] { font-family: var(--font-ar); font-size: 13px; font-weight: 700; width: auto; min-width: 44px; padding-inline: 10px; border-radius: var(--r-pill); }

@media (max-width: 640px) {
  [dir="ltr"] .fab { right: 16px; }
}

/* responsive hardening */
.footer-grid > *, .contact-grid > *, .story > *, .split > *, .article-layout > * { min-width: 0; }
.newsletter input { width: 0; }
.newsletter .btn { flex: none; }
@media (max-width: 640px) {
  .svc-row::before { inset: 0 -10px; }
}

/* blog cards: the image wrapper is a link on most pages — make it a block so its aspect ratio applies */
.post-media { display: block; position: relative; }
.post { display: flex; flex-direction: column; }
.post-body { flex: 1; display: flex; flex-direction: column; }
.post-body .link-arrow { margin-block-start: auto; }
.post-featured .post-media { height: 100%; }
.post-meta { flex-wrap: wrap; }
.post-meta .num { white-space: nowrap; }

/* FAQ page */
.faq-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.faq p a { color: var(--indigo-600); text-decoration: underline; text-underline-offset: 3px; }
[data-cat].is-hidden { display: none; }
@media (max-width: 1100px) { .faq-page { grid-template-columns: 1fr; } }
.menu-open .mobile-menu li:nth-child(8) { transition-delay: .55s; }

/* nav: 8 links — keep labels on one line and tighten on mid-size screens */
.nav-links a { white-space: nowrap; }
@media (max-width: 1360px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: 14px; }
  .nav { gap: 16px; padding-inline: 12px 18px; }
  .nav-actions .btn-sm { padding-inline: 16px; }
}

/* ---------- Floating WhatsApp button ---------- */
.fab {
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6), 0 4px 12px rgba(10,2,56,.18);
  animation: fab-float 3.2s ease-in-out infinite;
  transition: opacity .3s, box-shadow .3s;
}
.fab::before, .fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,.45); z-index: -1;
  animation: fab-pulse 2.6s ease-out infinite;
}
.fab::after { animation-delay: 1.3s; }
.fab svg { position: relative; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.fab:hover { animation-play-state: paused; box-shadow: 0 18px 36px -8px rgba(37,211,102,.75), 0 4px 12px rgba(10,2,56,.2); }
.fab-label {
  position: absolute; top: 50%; translate: 0 -50%;
  left: calc(100% + 14px);                      /* RTL: button sits bottom-left, label opens to its right */
  padding: 9px 16px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
[dir="ltr"] .fab-label { left: auto; right: calc(100% + 14px); transform: translateX(8px); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: none; }
/* show the label once, a few seconds after the page settles */
body.is-loaded .fab-label { animation: fab-hint 4.5s var(--ease) 2.5s 1 backwards; }
@keyframes fab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes fab-hint { 0%, 100% { opacity: 0; transform: translateX(-8px); } 12%, 82% { opacity: 1; transform: none; } }
[dir="ltr"] body.is-loaded .fab-label { animation-name: fab-hint-ltr; }
@keyframes fab-hint-ltr { 0%, 100% { opacity: 0; transform: translateX(8px); } 12%, 82% { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .fab { width: 56px; height: 56px; }
  .fab svg { width: 28px; height: 28px; }
  .fab-label { display: none; }
}

/* WhatsApp logo inside buttons: no hover tilt, brand green on light buttons */
.btn:hover .ic:has(use[href="#i-whatsapp"]) { transform: none; }
.btn-indigo .ic:has(use[href="#i-whatsapp"]) { background: #25d366; color: #fff; }

/* =========================================================
   MOHSEN — the Hulul mascot (assets/img/mohsen/*.webp)
   One appearance per screen; gentle bob; mirrored in LTR so he faces the content.
   ========================================================= */
@keyframes mascot-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.cta-mascot, .nf-mascot, .mb-img, .aside-mascot, .card-mascot, .row-mascot { animation: mascot-bob 4.5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(10,2,56,.28)); }
[dir="ltr"] .cta-mascot, [dir="ltr"] .nf-mascot { scale: -1 1; }

/* end-of-page CTA: Mohsen stands at the start edge and points at the buttons */
.cta.has-mascot { overflow: visible; }
.cta-mascot { position: absolute; bottom: 0; inset-inline-start: 3%; height: min(330px, 78%); width: auto; pointer-events: none; }

/* form success: thumbs up / jump */
.form-ok.has-mascot.show { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.ok-mascot { flex: none; height: 104px; width: auto; animation: ok-pop .6s cubic-bezier(.34,1.56,.64,1) both; }
.form-ok.has-mascot b { display: block; font-size: 17px; color: var(--indigo-800); margin-block-end: 2px; }
.form-ok.has-mascot span { font-weight: 500; color: var(--ink-soft); }
@keyframes ok-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }

/* empty filter results */
.pf-empty img.empty-mascot { display: block; height: 150px; width: auto; margin: 0 auto 10px; }

/* FAQ help card: thinking Mohsen peeks over the top */
.aside-cta.has-mascot { position: relative; margin-block-start: 84px; padding-block-start: 64px; }
.aside-mascot { position: absolute; top: -92px; inset-inline-end: 14px; height: 150px; width: auto; }

/* contact quick-chat card: waving Mohsen */
.info-card.has-mascot { position: relative; padding-inline-end: 150px; overflow: visible; }
.card-mascot { position: absolute; bottom: 0; inset-inline-end: 14px; height: 175px; width: auto; }

/* careers "didn't find a role?" row */
.row-mascot { flex: none; height: 120px; width: auto; margin-block: -40px -10px; }

/* 404 */
.nf-mascot { display: block; height: 230px; width: auto; margin: 0 auto -18px; }

/* about: meet Mohsen */
.mascot-band { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; padding: 34px 56px; border-radius: var(--r-xl);
  background: radial-gradient(60% 90% at 0% 100%, rgba(84,224,197,.35), transparent 70%), var(--mint-100); }
.mascot-band .mb-img { height: 340px; width: auto; justify-self: center; margin-block: -90px -34px; }
.mascot-band h2 { font-size: clamp(26px, 2.6vw, 38px); margin-block: 14px 12px; }
.mascot-band p { color: var(--ink-soft); font-size: 17px; max-width: 58ch; margin-block-end: 24px; }

/* WhatsApp button: Mohsen waves from above it with the greeting */
.fab-mascot { position: absolute; bottom: calc(100% - 8px); left: 50%; height: 92px; width: auto; translate: -50% 0;
  opacity: 0; transform: translateY(14px) scale(.7); transform-origin: 50% 100%; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 8px 12px rgba(10,2,56,.25)); }
.fab:hover .fab-mascot, .fab:focus-visible .fab-mascot { opacity: 1; transform: none; }
body.is-loaded .fab-mascot { animation: fab-mascot-hint 4.5s var(--ease) 2.5s 1 backwards; }
@keyframes fab-mascot-hint { 0%, 100% { opacity: 0; transform: translateY(14px) scale(.7); } 12%, 82% { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1239px) {
  .cta.has-mascot { padding-block-start: 120px; margin-block-start: 60px; }
  .cta-mascot { position: absolute; top: -70px; bottom: auto; left: 50%; inset-inline-start: auto; translate: -50% 0; height: 170px; animation: none; }
  [dir="ltr"] .cta-mascot { scale: 1 1; }
}
@media (max-width: 900px) {
  .mascot-band { grid-template-columns: 1fr; text-align: center; padding: 30px 26px 36px; gap: 18px; }
  .mascot-band .mb-img { height: 240px; margin-block: -80px 0; }
  .mascot-band p { margin-inline: auto; }
}
@media (max-width: 640px) {
  .fab-mascot { display: none; }
  .info-card.has-mascot { padding-inline-end: 30px; padding-block-end: 150px; }
  .card-mascot { height: 140px; }
  .row-mascot { display: none; }
  .form-ok.has-mascot.show { flex-direction: column; text-align: center; }
  .nf-mascot { height: 180px; }
}
@media (min-width: 1240px) {
  .cta.has-mascot { padding-inline: clamp(60px, 25%, 330px); }
  .cta-mascot { height: min(310px, 74%); }
}

/* =========================================================
   v4 — tighter rhythm (less dead space), compact footer
   ========================================================= */
.section-head { margin-block-end: 40px; }
.section-head h2 { margin-block-start: 14px; }
.clients { padding-block: 30px; }
.svc-grid .svc { min-height: 250px; }
.svc { gap: 22px; padding: 30px; }
.market { min-height: 220px; padding: 32px; }
.vm-card { min-height: 240px; padding: 38px; }
.stat { padding: 36px 32px; }
.step { padding: 26px; }
.step::before { margin-block-end: 20px; font-size: 56px; }
.split { gap: 48px; }
.cta { padding: clamp(40px, 5.5vw, 72px); }
.cta h2 { margin-block: 18px 14px; }
.hero-ctas { margin-block-start: 30px; }
.work { margin-inline: 12px; }

.footer { margin-block-start: clamp(48px, 5vw, 72px); padding-block: 56px 26px; }
.footer-bottom { margin-block-start: 44px; }
.footer h5 { margin-block-end: 16px; }

@media (max-width: 640px) {
  .footer { padding-block: 44px 22px; }
  .footer-bottom { margin-block-start: 32px; }
  .section-head { margin-block-end: 28px; }
  .svc { padding: 24px; }
}

/* =========================================================
   Mohsen above the WhatsApp button — livelier, repeating greeting
   every 16s: pops up with a bounce, waves, bobs, then ducks back down.
   Hover: he stays up and keeps waving.
   ========================================================= */
.fab-mascot { transform-origin: 50% 100%; }
body.is-loaded .fab-mascot { animation: fab-mascot-cycle 16s cubic-bezier(.3,.7,.3,1) 2.5s infinite backwards; }
body.is-loaded .fab-label { animation: fab-label-cycle 16s ease 2.5s infinite backwards; }
[dir="ltr"] body.is-loaded .fab-label { animation-name: fab-label-cycle-ltr; }
.fab:hover .fab-mascot, .fab:focus-visible .fab-mascot { animation: fab-mascot-wave 1.3s ease-in-out infinite; opacity: 1; transform: none; }
.fab:hover .fab-label, .fab:focus-visible .fab-label { animation: none; opacity: 1; transform: none; }

@keyframes fab-mascot-cycle {
  0%, 3%   { opacity: 0; transform: translateY(20px) scale(.55) rotate(0); }
  6%       { opacity: 1; transform: translateY(-8px) scale(1.1) rotate(0); }
  8%       { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  10%      { opacity: 1; transform: rotate(-11deg); }
  12%      { opacity: 1; transform: rotate(9deg); }
  14%      { opacity: 1; transform: rotate(-7deg); }
  16%      { opacity: 1; transform: rotate(5deg); }
  18%      { opacity: 1; transform: rotate(0) translateY(0); }
  21%      { opacity: 1; transform: translateY(-5px); }
  24%      { opacity: 1; transform: translateY(0) scale(1); }
  27%      { opacity: 1; transform: translateY(-3px) scale(1.04); }
  31%, 100% { opacity: 0; transform: translateY(20px) scale(.55); }
}
@keyframes fab-label-cycle {
  0%, 5%    { opacity: 0; transform: translateX(-10px); }
  8%, 26%   { opacity: 1; transform: none; }
  30%, 100% { opacity: 0; transform: translateX(-10px); }
}
@keyframes fab-label-cycle-ltr {
  0%, 5%    { opacity: 0; transform: translateX(10px); }
  8%, 26%   { opacity: 1; transform: none; }
  30%, 100% { opacity: 0; transform: translateX(10px); }
}
@keyframes fab-mascot-wave {
  0%, 100% { transform: rotate(0) translateY(0); }
  25%      { transform: rotate(-10deg) translateY(-3px); }
  75%      { transform: rotate(8deg) translateY(-3px); }
}

/* =========================================================
   MOHSEN — one animation per pose (everywhere except the WhatsApp
   button, which has its own greeting cycle). Chosen by image file,
   so a pose animates the same wherever it is placed.
   Loops use the individual translate / rotate / scale properties so
   they stack with entrance pops (transform) and the LTR mirror.
   ========================================================= */
html[dir="rtl"] { --md: -1; }   /* "toward the content" for pointing */
html[dir="ltr"] { --md: 1; }
img[src*="mohsen/"]:not(.fab-mascot) { transform-origin: 50% 100%; }

/* pointing: nudges toward the buttons twice ("over here!"), then bobs */
img[src*="mohsen/point"] { animation: m-point 5s ease-in-out infinite; }
@keyframes m-point {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  12%      { translate: calc(var(--md) * 9px) -4px; rotate: calc(var(--md) * 4deg); }
  22%      { translate: calc(var(--md) * 3px) 0; rotate: calc(var(--md) * 1deg); }
  32%      { translate: calc(var(--md) * 9px) -4px; rotate: calc(var(--md) * 4deg); }
  46%      { translate: 0 0; rotate: 0deg; }
  72%      { translate: 0 -7px; rotate: 0deg; }
}

/* thumbs up: pumps the thumb with a little hop */
img[src*="mohsen/thumbs"] { animation: m-thumbs 2.8s ease-in-out infinite; }
img.ok-mascot[src*="mohsen/thumbs"] { animation: ok-pop .6s cubic-bezier(.34,1.56,.64,1) both, m-thumbs 2.8s ease-in-out .8s infinite; }
@keyframes m-thumbs {
  0%, 52%, 100% { translate: 0 0; rotate: 0deg; }
  12% { translate: 0 -11px; rotate: -7deg; }
  24% { translate: 0 0; rotate: 2deg; }
  34% { translate: 0 -6px; rotate: -4deg; }
  44% { translate: 0 0; rotate: 0deg; }
}

/* jumping: crouch, spring up, land with a squash */
img[src*="mohsen/jump"] { animation: m-jump 1.7s cubic-bezier(.4,0,.3,1) infinite; }
img.ok-mascot[src*="mohsen/jump"] { animation: ok-pop .6s cubic-bezier(.34,1.56,.64,1) both, m-jump 1.7s cubic-bezier(.4,0,.3,1) .8s infinite; }
@keyframes m-jump {
  0%, 100% { translate: 0 0; scale: 1 1; rotate: 0deg; }
  10%      { translate: 0 0; scale: 1.07 .9; }
  32%      { translate: 0 -24px; scale: .95 1.06; rotate: -3deg; }
  50%      { translate: 0 -30px; scale: 1 1; rotate: -5deg; }
  76%      { translate: 0 0; scale: 1.06 .91; rotate: 0deg; }
  88%      { translate: 0 0; scale: 1 1; }
}

/* thinking: slow head tilts side to side, like weighing an answer */
img[src*="mohsen/think"] { animation: m-think 6.5s ease-in-out infinite; }
@keyframes m-think {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  18%, 38% { rotate: -4.5deg; translate: 0 -3px; }
  52%      { rotate: 0deg; translate: 0 0; }
  66%, 84% { rotate: 3.5deg; translate: 0 -3px; }
}

/* walking: strolls back and forth across the 404, turning at each end, with a step bounce */
img[src*="mohsen/walk"] { --walk: min(20vw, 170px); animation: m-walk-path 11s linear infinite, m-step .55s ease-in-out infinite; }
@keyframes m-walk-path {
  0%   { translate: calc(var(--walk) * -1) 0; scale: 1 1; }
  46%  { translate: var(--walk) 0; scale: 1 1; }
  50%  { translate: var(--walk) 0; scale: -1 1; }
  96%  { translate: calc(var(--walk) * -1) 0; scale: -1 1; }
  100% { translate: calc(var(--walk) * -1) 0; scale: 1 1; }
}
@keyframes m-step { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }

/* waving: idles, then waves three times */
img[src*="mohsen/wave"]:not(.fab-mascot) { animation: m-wave 4.4s ease-in-out infinite; }
@keyframes m-wave {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  20%      { rotate: 0deg; translate: 0 -5px; }
  40%      { rotate: 0deg; translate: 0 0; }
  48%      { rotate: -9deg; }
  56%      { rotate: 8deg; }
  64%      { rotate: -7deg; }
  72%      { rotate: 5deg; }
  82%      { rotate: 0deg; translate: 0 -4px; }
  90%      { translate: 0 0; }
}

/* standing: calm breathing and a curious glance; hops when you hover the band */
img[src*="mohsen/stand"] { animation: m-breathe 4.8s ease-in-out infinite; }
@keyframes m-breathe {
  0%, 100% { scale: 1 1; translate: 0 0; rotate: 0deg; }
  30%      { scale: 1.015 1.03; translate: 0 -4px; }
  55%      { scale: 1 1; translate: 0 0; rotate: 0deg; }
  68%, 80% { rotate: -3deg; }
  90%      { rotate: 0deg; }
}
.mascot-band:hover img[src*="mohsen/stand"] { animation: m-hop .75s cubic-bezier(.3,.7,.3,1) infinite; }
@keyframes m-hop { 0%, 100% { translate: 0 0; scale: 1 1; } 15% { scale: 1.06 .92; } 45% { translate: 0 -22px; scale: .96 1.05; } 80% { translate: 0 0; scale: 1.04 .95; } }

/* small screens: centre the CTA mascot without using translate, so his animation is free to move him */
@media (max-width: 1239px) {
  .cta-mascot { left: 0; right: 0; inset-inline-start: 0; margin-inline: auto; translate: none; }
}
