@font-face { font-family: "Camel"; src: url("/assets/fonts/camel-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Camel"; src: url("/assets/fonts/camel-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Camel"; src: url("/assets/fonts/camel-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("/assets/fonts/alexandria-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --black: #1D1D1D; --pure: #000000; --charcoal: #333333; --steel: #4A4A4A;
  --gray: #919191; --silver: #B3B3B3; --line: #CCCCCC; --light: #E2E2E2; --soft: #F2F2F2; --white: #FFFFFF;
  --wrap: 1200px; --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: "Alexandria", "Camel", system-ui, sans-serif; font-weight: 300; line-height: 1.7;
  position: relative; overflow-x: hidden;
}
.lang-ar body, body.lang-ar { font-family: "Camel", "Alexandria", system-ui, sans-serif; line-height: 1.9; }
.latin { font-family: "Alexandria", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--silver); }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; margin: 0; }
.lang-en h1, .lang-en h2, .lang-en h3 { font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--white); color: var(--black); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* pattern: top-left corner, as in the brand guide */
.pattern { position: absolute; top: 0; left: 0; width: min(45vw, 620px); pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 45%); mask-image: linear-gradient(to left, transparent, #000 45%);
  animation: breathe 12s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.header-in { transition: padding .35s; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; z-index: 5; }
.brand img { height: 64px; width: auto; display: block; transition: height .35s var(--ease); }
.site-header.is-stuck { background: rgba(29,29,29,.9); border-bottom-color: var(--charcoal); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-stuck .header-in { padding-block: 12px; }
.site-header.is-stuck .brand img { height: 46px; }
.main-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; font-size: 19px; font-weight: 500; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: "Alexandria", "Camel", sans-serif; font-size: 15px; color: var(--silver); }
.lang-ar .lang-switch { margin-inline-start: auto; }

/* hero */
.hero { padding-block: 90px 50px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6.5vw, 92px); line-height: 1.2; }
.hero-inner { padding-block: 60px 60px; }
.hero-inner h1 { font-size: clamp(38px, 5.5vw, 80px); }
.lead { font-size: clamp(19px, 2vw, 23px); color: var(--silver); max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.chip { font: inherit; font-weight: 500; font-size: 19px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md); cursor: pointer;
  background: transparent; color: var(--white); border: 1px solid var(--steel); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip:hover { border-color: var(--silver); }
.chip[aria-selected="true"] { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 700; }

/* panels */
.panels { padding-bottom: 100px; }
.panel { display: none; flex-wrap: wrap; gap: 40px; padding: clamp(28px, 4vw, 52px); background: var(--white); color: var(--black); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.panel.is-active { display: flex; animation: fade .45s var(--ease); }
.no-js .panel { display: flex; margin-bottom: 16px; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel.is-active .panel-main > *, .panel.is-active .steps li { animation: fade .5s var(--ease) both; }
.panel.is-active .panel-main > :nth-child(2) { animation-delay: .05s; } .panel.is-active .panel-main > :nth-child(3) { animation-delay: .1s; } .panel.is-active .panel-main > :nth-child(4) { animation-delay: .15s; }
.panel.is-active .steps li:nth-child(1) { animation-delay: .1s; } .panel.is-active .steps li:nth-child(2) { animation-delay: .17s; } .panel.is-active .steps li:nth-child(3) { animation-delay: .24s; } .panel.is-active .steps li:nth-child(4) { animation-delay: .31s; }
.panel-main { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: clamp(28px, 3.2vw, 40px); }
.panel p { font-size: 20px; color: var(--steel); line-height: 1.9; }
.eyebrow { font-size: 17px; color: var(--steel); }
.hero .eyebrow, .post-row .eyebrow, .card .eyebrow { color: var(--gray); }
.more { align-self: flex-start; font-size: 18px; text-decoration: underline; text-underline-offset: 6px; color: var(--black); }
.steps { flex: 1 1 280px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 19px; display: flex; gap: 12px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.num { font-family: "Alexandria", sans-serif; font-weight: 300; color: #767676; min-width: 1.2em; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; font-size: 18px; font-weight: 700; border: 1px solid transparent; border-radius: var(--r-sm); transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,.7); }
.btn .ic { flex: none; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-line-dark { border-color: var(--black); color: var(--black); font-weight: 300; }
.btn-line-dark:hover { background: var(--soft); color: var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--light); color: var(--black); }
.btn-line { border-color: var(--steel); color: var(--white); font-weight: 300; }

/* why */
.section-title { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 26px; }
.section-title.sm { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 18px; }
.why { padding-bottom: 100px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.why-card { perspective: 1200px; min-height: 290px; border-radius: var(--r-lg); outline-offset: 4px; cursor: default; }
.why-inner { position: relative; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.why-face { position: absolute; inset: 0; border-radius: var(--r-lg); -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; padding: 28px; overflow: hidden; }
.why-front { align-items: center; justify-content: center; gap: 22px; background: linear-gradient(160deg, #262626, #161616); border: 1px solid var(--charcoal); }
.why-front::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/pattern-dark.webp") left top / 160% auto no-repeat; opacity: .35; -webkit-mask-image: linear-gradient(135deg, #000, transparent 60%); mask-image: linear-gradient(135deg, #000, transparent 60%); }
.why-front img { position: relative; width: 112px; height: auto; transition: transform .6s var(--ease); }
.why-front-title { position: relative; font-size: 18px; color: var(--silver); }
.why-back { transform: rotateY(180deg); background: var(--white); color: var(--black); justify-content: center; gap: 12px; }
.why-back h3 { font-size: 24px; }
.why-back p { font-size: 18px; color: var(--steel); line-height: 1.8; }
@media (hover: hover) { .why-card:hover .why-inner { transform: rotateY(180deg); } }
.why-card:focus-visible .why-inner, .why-card.is-open .why-inner { transform: rotateY(180deg); }

/* inner pages */
.crumbs { display: flex; gap: 10px; padding-top: 18px; font-size: 16px; color: var(--gray); }
.crumbs a { color: var(--gray); }
.two-col { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-bottom: 80px; }
.two-col > div { flex: 1 1 420px; min-width: 0; }
.lines { margin: 0; padding: 0; list-style: none; }
.lines li { padding: 16px 0; border-top: 1px solid var(--charcoal); font-size: 20px; display: flex; gap: 12px; }
.lines li:last-child { border-bottom: 1px solid var(--charcoal); }
.info-box { display: flex; flex-wrap: wrap; background: var(--white); color: var(--black); margin-bottom: 80px; border-radius: var(--r-lg); overflow: hidden; }
.info-box > div { flex: 1 1 340px; padding: 36px; }
.info-box > div + div { border-inline-start: 1px solid var(--light); }
.info-box h3 { font-size: 24px; margin-bottom: 10px; }
.info-box p { font-size: 19px; color: var(--steel); }
.faq { padding-bottom: 100px; }
details { border-top: 1px solid var(--charcoal); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--charcoal); }
summary { cursor: pointer; font-weight: 700; font-size: 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: "Alexandria", sans-serif; font-weight: 200; color: var(--gray); }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; font-size: 19px; color: var(--silver); }
.clients { list-style: none; margin: 0 0 80px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { padding: 10px 18px; border: 1px solid var(--charcoal); border-radius: var(--r-sm); font-size: 18px; }

/* blog */
.blog-teaser { padding-bottom: 100px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--charcoal); border-radius: var(--r-lg); background: #212121; transition: transform .3s var(--ease), border-color .3s; }
.card:hover { border-color: var(--steel); color: var(--white); transform: translateY(-4px); }
.card-title { font-weight: 700; font-size: 22px; line-height: 1.6; }
.post-list { padding-bottom: 100px; }
.post-row { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid var(--charcoal); }
.article { max-width: 820px; padding-bottom: 100px; }
.article h1 { font-size: clamp(32px, 4.5vw, 54px); margin: 30px 0 14px; }
.meta { color: var(--gray); font-size: 16px; margin-bottom: 26px; }
.summary { font-size: 22px; color: var(--white); padding: 22px 0; border-block: 1px solid var(--charcoal); margin-bottom: 26px; }
.prose { font-size: 20px; color: var(--light); }
.prose h2 { font-size: 30px; margin: 40px 0 14px; color: var(--white); }
.prose h3 { font-size: 24px; margin: 30px 0 10px; color: var(--white); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose a { text-decoration: underline; text-underline-offset: 5px; }
.article .actions { margin-top: 40px; }

/* footer (fixed bilingual) */
.site-footer { background: var(--pure); position: relative; font-family: "Camel", "Alexandria", sans-serif; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-block: 64px 40px; }
.footer-id { display: flex; flex-direction: column; gap: 12px; }
.footer-id img { height: 96px; width: auto; align-self: flex-start; }
.f-name-ar { font-weight: 700; font-size: 22px; }
.f-name-en { font-family: "Alexandria", sans-serif; font-size: 14px; letter-spacing: .2em; color: var(--gray); }
.f-muted { font-size: 16px; color: var(--gray); }
.footer-contact { display: grid; width: max-content; max-width: 100%; gap: 8px; }
.footer-contact a { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 48px; color: var(--white); font-family: "Alexandria", sans-serif; font-size: 19px; line-height: 1; }
.footer-contact a:hover { color: var(--silver); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 26px 110px; border-top: 1px solid var(--charcoal); }
.social { display: flex; gap: 10px; }
.social a { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--charcoal); border-radius: 999px; }
.social a:hover { border-color: var(--steel); color: var(--white); }

/* floating WhatsApp */
.ask-fab, .wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px;
  background: var(--white); color: var(--black); border-radius: 999px; font-weight: 700; font-size: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.wa-float:hover { color: var(--black); background: var(--light); transform: translateY(-2px); }
.wa-float { transition: transform .25s var(--ease), background .25s; }
.lang-ar .wa-float { inset-inline-end: auto; inset-inline-start: 22px; }

/* entrance */
.rise { opacity: 0; animation: rise .8s var(--ease) forwards; }
.d0 { animation-delay: 0s; } .d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
.is-home .rise { animation-delay: calc(var(--home-delay, 5s) + var(--i, 0s)); }
.is-home .d1 { --i: 0s; } .is-home .d2 { --i: .15s; } .is-home .d3 { --i: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* scroll reveal: visible by default, animated only when JS marks it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* loader (home only) */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--pure); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center;
  pointer-events: none; animation: ld-out var(--loader) ease forwards; }
.loader .ld-mark { width: min(22vw, 100px); height: auto; animation: ld-pulse 2.2s ease forwards; }
.loader .ld-type { width: min(70vw, 340px); height: auto; opacity: 0; animation: rise .9s 1s ease forwards; }
.loader .ld-ar { font-family: "Camel", sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 30px); opacity: 0; animation: rise .9s 2s ease forwards; }
.loader .ld-en { font-family: "Alexandria", sans-serif; font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .3em; color: var(--silver); opacity: 0; animation: rise .9s 2.5s ease forwards; }
@keyframes ld-pulse { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: 1; transform: scale(1); } 60% { transform: scale(1.04); } 80% { transform: scale(1); } }
@keyframes ld-out { 0%, 86% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

@media (max-width: 720px) {
  .brand img { height: 48px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 4px 22px; font-size: 17px; }
  .chip { font-size: 17px; }
  .wa-float span { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { min-height: 260px; }
  .why-face { padding: 18px; }
  .why-front img { width: 84px; }
  .why-back h3 { font-size: 20px; }
  .why-back p { font-size: 15px; line-height: 1.7; }
  .site-header.is-stuck .main-nav { display: none; }
  .why-card:last-child:nth-child(odd) { min-height: 220px; }
  .wa-float { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .why-inner { transition: none; }
  .why-card:hover .why-inner, .why-card.is-open .why-inner, .why-card:focus-visible .why-inner { transform: none; }
  .why-card:hover .why-front, .why-card.is-open .why-front, .why-card:focus-visible .why-front { opacity: 0; }
  .why-back { transform: none; opacity: 0; transition: opacity .2s; }
  .why-card:hover .why-back, .why-card.is-open .why-back, .why-card:focus-visible .why-back { opacity: 1; }
  .btn:hover, .chip:hover, .card:hover { transform: none; }
  .loader { display: none; }
  .rise, .is-home .rise { opacity: 1; animation: none; }
  .pattern { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 720px) { .why-card:last-child:nth-child(odd) { grid-column: span 2; } }
.why-front-title { text-align: center; }
.lang-en .why-card { min-height: 320px; }
.lang-en .why-back { padding: 24px; }
.lang-en .why-back h3 { font-size: 21px; }
.lang-en .why-back p { font-size: 16px; line-height: 1.6; }
@media (max-width: 720px) { .lang-en .why-card { min-height: 290px; } .lang-en .why-back p { font-size: 14px; } .lang-en .why-back { padding: 16px; } }

/* ============ v2: chat-first home ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-home { background: radial-gradient(120% 90% at 50% 40%, #1d1d1d 0%, #0b0b0b 60%, #000 100%); height: 100dvh; overflow: hidden; }
.is-home .pattern { opacity: .55; }
.is-home-head { position: absolute; inset-inline: 0; top: 0; background: transparent !important; border: 0 !important; }
.is-home-head .brand { visibility: hidden; }
.is-home-head .main-nav { font-size: 16px; gap: 4px 28px; color: var(--silver); font-weight: 300; }

.stage { position: relative; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 96px 16px 20px; overflow-y: auto; }
.stage-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: gap .5s var(--ease); }
.stage-logo { width: clamp(220px, 26vw, 380px); height: auto; transition: width .6s var(--ease); }
.stage-title { font-size: clamp(26px, 3vw, 36px); margin-top: 14px; max-height: 80px; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .5s; }
.stage-sub { color: var(--silver); font-size: clamp(16px, 1.5vw, 19px); max-width: 620px; max-height: 80px; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.stage.is-active { justify-content: flex-start; }
.stage.is-active .stage-logo { width: clamp(150px, 14vw, 200px); }
.stage.is-active .stage-title, .stage.is-active .stage-sub { max-height: 0; opacity: 0; margin: 0; }

/* identity lines */
.line { position: absolute; pointer-events: none; background: var(--steel); }
.line-h { inset-inline: 0; top: 34%; height: 1px; background: linear-gradient(90deg, transparent, #4a4a4a 18%, transparent 38%, transparent 62%, #4a4a4a 82%, transparent); }
.line-v { top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, #3a3a3a 30%, #3a3a3a 70%, transparent); }
.line-v1 { inset-inline-start: max(16px, calc(50% - 560px)); }
.line-v2 { inset-inline-end: max(16px, calc(50% - 560px)); }
.line-v1::after, .line-v2::after { content: ""; position: absolute; top: 34%; left: -4px; width: 9px; height: 9px; transform: translateY(-4px) rotate(45deg); border: 1px solid var(--gray); background: #000; }
.stage.is-active .line-h { opacity: 0; transition: opacity .5s; }

/* chat */
.chat { width: min(860px, 100%); display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.stage.is-active .chat { flex: 1; min-height: 0; }
.chat-progress { display: none; list-style: none; margin: 0; padding: 0; gap: 8px; }
.chat.is-active .chat-progress { display: flex; }
.chat-progress li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--gray); }
.chat-progress li::before { content: ""; height: 2px; border-radius: 2px; background: var(--charcoal); transition: background .4s; }
.chat-progress li.is-done::before, .chat-progress li.is-now::before { background: var(--white); }
.chat-progress li.is-now { color: var(--white); }
.chat-log { display: none; flex-direction: column; gap: 12px; overflow-y: auto; padding: 6px 2px; scroll-behavior: smooth; }
.chat.is-active .chat-log { display: flex; flex: 1; min-height: 120px; }
.msg { max-width: min(80%, 560px); padding: 12px 16px; border-radius: 18px; font-size: 17px; line-height: 1.8; animation: fade .35s var(--ease) both; }
.msg p { margin: 0; white-space: pre-wrap; }
.msg-bot { align-self: flex-start; background: #161616; border: 1px solid var(--charcoal); border-start-start-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--white); color: var(--black); border-start-end-radius: 6px; }
.msg-typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); animation: dot 1s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: .15s; } .msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-options:empty { display: none; }
.opt { font: inherit; font-weight: 500; font-size: 16px; min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--steel); background: rgba(255,255,255,.03); color: var(--white); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); animation: fade .35s var(--ease) both; }
.opt:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.chat-input { display: flex; align-items: flex-end; gap: 10px; padding: 10px; padding-inline-start: 20px; border-radius: 20px; background: rgba(22,22,22,.85); border: 1px solid var(--steel); box-shadow: 0 20px 50px -25px rgba(0,0,0,.9); transition: border-color .25s; }
.chat-input:focus-within { border-color: var(--silver); }
.chat-input textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--white); font: inherit; font-size: 18px; line-height: 1.6; padding: 10px 0; max-height: 140px; }
.chat-input textarea::placeholder { color: var(--gray); }
.chat-input textarea:disabled { opacity: .5; }
.chat-send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.chat-send:hover { transform: translateY(-2px); background: var(--light); }
.chat-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chat-topics[hidden] { display: none; }
.topic { font: inherit; text-align: start; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; border-radius: var(--r-md); border: 1px solid var(--charcoal); background: rgba(255,255,255,.035); color: var(--white); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.topic:hover { border-color: var(--gray); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.topic:last-child { grid-column: 1 / -1; justify-content: center; min-height: 52px; }
.t-ic { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; border: 1px solid var(--steel); color: var(--silver); }
.t-txt { display: flex; flex-direction: column; min-width: 0; }
.t-title { font-weight: 700; font-size: 16px; }
.t-ex { font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic:last-child .t-ex { display: none; }
.chat-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.chat-note { font-size: 13px; color: var(--gray); max-width: 640px; }
.chat-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chat-human, .chat-restart { font: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--steel); color: var(--white); background: transparent; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.chat-human:hover, .chat-restart:hover { background: var(--white); color: var(--black); }
.summary-card { align-self: stretch; background: var(--white); color: var(--black); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; animation: fade .45s var(--ease) both; }
.summary-card dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 8px 16px; font-size: 15px; }
.summary-card dt { color: var(--steel); }
.summary-card dd { margin: 0; font-weight: 500; white-space: pre-wrap; }
.summary-send { align-self: flex-start; display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: var(--r-sm); background: var(--black); color: var(--white); font-weight: 700; }
.summary-send:hover { background: var(--charcoal); color: var(--white); }

/* drawer + floating button (inner pages) */
.ask-fab { border: 0; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.ask-fab:hover { background: var(--light); transform: translateY(-2px); }
.chat-drawer { position: fixed; inset: 0; inset-inline-start: auto; margin: 0; width: min(480px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; padding: 18px; border: 0; border-inline-start: 1px solid var(--charcoal); background: #0b0b0b; color: var(--white); flex-direction: column; gap: 12px; }
.chat-drawer[open] { display: flex; animation: drawer-in .45s var(--ease); }
.chat-drawer::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes drawer-in { from { transform: translateX(var(--drawer-from, 40px)); opacity: 0; } to { transform: none; opacity: 1; } }
.lang-ar .chat-drawer { --drawer-from: -40px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { height: 40px; width: auto; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--charcoal); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-greet { font-weight: 700; font-size: 22px; }
.chat-drawer .chat { flex: 1; min-height: 0; }
.chat-drawer .chat-topics { grid-template-columns: 1fr; overflow-y: auto; }
.chat-drawer .topic { min-height: 54px; }
.chat-drawer .chat.is-active .chat-log { flex: 1; }
html.drawer-open { overflow: hidden; }

/* page transition veil */
.veil { position: fixed; inset: 0; z-index: 95; background: var(--pure); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .38s ease, visibility 0s .38s; }
.veil img { width: 56px; height: auto; animation: ld-pulse 1.6s ease infinite; }
.veil.is-on { opacity: 1; visibility: visible; transition: opacity .38s ease; }
.js body:not(.is-home) .veil { animation: veil-out .55s .05s ease both; }
.js body:not(.is-home) .veil.is-on { animation: none; }
@keyframes veil-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

/* inner pages: identity line accents */
.hero-inner h1::after { content: ""; display: block; width: 72px; height: 1px; margin-top: 22px; background: linear-gradient(90deg, var(--gray), transparent); }
.lang-ar .hero-inner h1::after { background: linear-gradient(270deg, var(--gray), transparent); }

/* areas index + contact */
.area-list { display: flex; flex-direction: column; margin-bottom: 100px; border-top: 1px solid var(--charcoal); }
.area-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 24px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--charcoal); transition: background .25s, padding .25s var(--ease); }
.area-row:hover { background: rgba(255,255,255,.03); padding-inline: 16px; color: var(--white); }
.area-name { font-weight: 700; font-size: 24px; }
.area-short { color: var(--silver); font-size: 18px; }
.area-arrow { color: var(--gray); font-size: 22px; }
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid var(--charcoal); max-width: 760px; }
.contact-rows a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; border-bottom: 1px solid var(--charcoal); font-size: 19px; color: var(--silver); }
.contact-rows strong { color: var(--white); font-weight: 400; font-size: 22px; }
.contact-rows a:hover strong { color: var(--silver); }
.contact-meta { color: var(--gray); margin: 24px 0 100px; }

@media (max-width: 720px) {
  .stage { padding-top: 84px; gap: 14px; }
  .is-home-head .main-nav { order: 0; flex-basis: auto; font-size: 14px; gap: 2px 14px; }
  .is-home-head .header-in { padding-block: 14px; }
  .chat-topics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .t-ex { display: none; }
  .t-ic { width: 32px; height: 32px; padding: 6px; }
  .topic { min-height: 54px; padding: 10px; gap: 8px; }
  .t-title { font-size: 14px; }
  .msg { max-width: 88%; font-size: 16px; }
  .ask-fab span { display: none; }
  .ask-fab { padding: 0 16px; }
  .area-row { grid-template-columns: 1fr auto; }
  .area-short { grid-column: 1 / -1; grid-row: 2; }
  .line-v { display: none; }
  .chat-input textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .veil, .js body:not(.is-home) .veil { display: none; }
  .msg, .opt, .summary-card { animation: none; }
}
.chat-restart[hidden] { display: none; }
.pattern { -webkit-mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to top, transparent, #000 45%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to top, transparent, #000 45%); mask-composite: intersect; }
.stage { justify-content: safe center; }
.stage-logo { width: clamp(170px, min(26vw, 38vh), 380px); }
@media (max-height: 780px) {
  .stage { gap: 12px; padding-top: 84px; }
  .stage-title { margin-top: 4px; font-size: 26px; }
  .stage-sub { font-size: 16px; }
  .topic { min-height: 52px; padding: 8px 12px; }
  .t-ex { display: none; }
  .chat-input { padding-block: 6px; }
}

/* ============ v3: all black, larger logo, compact chat ============ */
:root { --black: #000000; }
body, body.is-home { background: #000; }
.site-header.is-stuck { background: rgba(0,0,0,.9); border-bottom-color: #1a1a1a; }
.site-footer { border-top: 1px solid #1a1a1a; }
.line { display: none !important; }
.btn-dark { background: #111; }
.why-front { background: #0a0a0a; }

.stage { gap: 18px; }
.stage-head { gap: 14px; }
.stage-logo { width: auto; height: clamp(150px, 34vh, 300px); transition: height .6s var(--ease); }
.stage.is-active .stage-logo { width: auto; height: clamp(70px, 11vh, 100px); }
.stage-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; color: var(--light); margin-top: 6px; }
.chat { width: min(680px, 100%); gap: 12px; }
.chat-input { border-radius: 16px; padding: 6px; padding-inline-start: 18px; background: #0d0d0d; border-color: #2e2e2e; }
.chat-input textarea { font-size: 16px; padding: 8px 0; }
.chat-send { width: 40px; height: 40px; }
.chat-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.topic, .topic:last-child { min-height: 40px; padding: 6px 14px 6px 12px; gap: 8px; border-radius: 12px; background: #0d0d0d; border-color: #262626; grid-column: auto; justify-content: flex-start; }
.topic:hover { border-color: var(--gray); background: #161616; }
.t-ic { width: 18px; height: 18px; padding: 0; border: 0; color: var(--gray); }
.t-title { font-weight: 500; font-size: 14px; }
.t-ex { display: none; }
.chat-note { font-size: 12px; }
.chat-human, .chat-restart { min-height: 38px; font-size: 14px; padding: 0 16px; }
.msg { font-size: 16px; }
.msg-bot { background: #0f0f0f; border-color: #262626; }
.opt { font-size: 14px; min-height: 40px; background: #0d0d0d; border-color: #333; }

/* summary card */
.summary-card { padding: 0; overflow: hidden; gap: 0; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--light); }
.summary-head img { height: 40px; width: auto; }
.summary-label { font-size: 13px; color: var(--steel); }
.summary-card dl { padding: 16px 22px; gap: 0; }
.summary-card dt, .summary-card dd { padding: 9px 0; border-bottom: 1px solid #efefef; }
.summary-card dt:nth-last-of-type(1), .summary-card dd:last-of-type { border-bottom: 0; }
.summary-send { margin: 0 22px 22px; }
.handoff-btn { align-self: flex-start; margin: 0; background: var(--white); color: var(--black); }
.handoff-btn:hover { background: var(--light); color: var(--black); }

/* client logos */
.client-logos { list-style: none; margin: 0 0 80px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.client-logos li { background: var(--white); border-radius: var(--r-md); height: 120px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.client-logos img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.client-logos li:hover img { filter: none; opacity: 1; }

/* ask popover (inner pages) */
.chat-drawer { inset: auto; bottom: 92px; inset-inline-end: 22px; inset-inline-start: auto; top: auto; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); max-height: none; border: 1px solid #262626; border-radius: 22px; background: #000; padding: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.chat-drawer::backdrop { background: rgba(0,0,0,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes drawer-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { justify-content: center; position: relative; }
.drawer-logo { height: 90px; width: auto; transition: height .4s var(--ease); }
.chat-drawer:has(.chat.is-active) .drawer-logo { height: 52px; }
.chat-drawer:has(.chat.is-active) .drawer-greet { display: none; }
.drawer-close { position: absolute; top: 0; inset-inline-end: 0; width: 36px; height: 36px; }
.drawer-greet { text-align: center; font-size: 17px; font-weight: 500; color: var(--light); }
.chat-drawer .chat-topics { display: flex; overflow: visible; }
.chat-drawer .topic { min-height: 38px; }
.chat-drawer .chat-foot .chat-note { display: none; }
.lang-ar .ask-fab { inset-inline-end: 22px; inset-inline-start: auto; }
@media (max-width: 720px) {
  .chat-drawer { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .stage-logo { height: clamp(120px, 24vh, 200px); }
  .topic, .topic:last-child { padding: 6px 10px; }
}
.chat-log > * { flex-shrink: 0; }
.drawer-head .drawer-logo { height: 96px; width: auto; }
.chat-drawer:has(.chat.is-active) .drawer-head .drawer-logo { height: 54px; }

/* client logos marquee */
.client-marquee { position: relative; overflow: hidden; margin: 0 0 80px; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.client-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-track .client-logos { display: flex; gap: 14px; margin: 0; }
.client-track .client-logos li { width: 210px; height: 108px; flex: none; transition: transform .35s var(--ease), box-shadow .35s; }
.client-track .client-logos li:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 18px 40px -18px rgba(255,255,255,.25); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.lang-ar .client-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(calc(50% + 7px)); } }
@media (prefers-reduced-motion: reduce) { .client-track { animation: none; flex-wrap: wrap; width: auto; } .client-track .client-logos[aria-hidden] { display: none; } }
.client-logos li, .client-track .client-logos li { background: transparent; border-radius: 0; padding: 0 18px; height: 90px; width: 200px; }
.client-logos img { filter: none; opacity: .65; max-height: 70px; }
.client-logos li:hover img { opacity: 1; }
.client-track .client-logos li:hover { box-shadow: none; transform: translateY(-4px) scale(1.06); }
.is-home .pattern, .pattern { opacity: 1; } @keyframes breathe { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.stage-logo { height: clamp(170px, 40vh, 340px); } @media (max-height: 780px) { .stage { padding-top: 76px; gap: 10px; } } @media (max-width: 720px) { .stage-logo { height: clamp(140px, 28vh, 230px); } }
