/* Areeb Lawyers & Consultants — site styles (v4, consolidated) */

@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 {
  color-scheme: dark; accent-color: var(--white);
  --pure: #000000; --ink: #0b0b0b; --panel: #0d0d0d; --edge: #1f1f1f; --charcoal: #333333; --steel: #4A4A4A;
  --gray: #919191; --silver: #B3B3B3; --line: #CCCCCC; --light: #E2E2E2; --soft: #F2F2F2; --white: #FFFFFF; --body: #E2E2E2;
  --wrap: 1160px; --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  /* type scale (design-foundations 1: Apple numbers, fluid 375 -> 1440) */
  --fs-display: clamp(34px, 26.25px + 2.066vw, 56px);
  --fs-section: clamp(28px, 23.77px + 1.127vw, 40px);
  --fs-lead: clamp(19px, 17.24px + 0.469vw, 24px);
  --fs-sub: clamp(19px, 18.30px + 0.188vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;
  --lh-head: 1.1; --lh-body: 1.47;
  --measure: 680px;
  --space-section: clamp(48px, 36.73px + 3.005vw, 80px);
}
.lang-ar { --lh-head: 1.35; --lh-body: 1.8; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--pure); }
html { scrollbar-gutter: stable; scroll-padding-top: 96px; }
::selection { background: var(--white); color: var(--pure); }
h1, h2, h3, .lead, .stage-title { text-wrap: balance; }
.prose p, details p { text-wrap: pretty; }
body { margin: 0; background: var(--pure); color: var(--white); font-family: "Alexandria", "Camel", system-ui, sans-serif; font-weight: 300; font-size: var(--fs-body); line-height: var(--lh-body); position: relative; overflow-x: hidden; min-height: 100dvh; display: flex; flex-direction: column; }
body.lang-ar { font-family: "Alexandria", "Camel", system-ui, sans-serif; }
main { flex: 1 0 auto; }
.latin { font-family: "Alexandria", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: var(--lh-head); 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(--pure); padding: 12px 16px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand pattern: top-left corner, slow breathing */
.pattern { position: absolute; top: 0; left: 0; width: min(45vw, 620px); pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to top, transparent 50%, #000 85%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to top, transparent 50%, #000 85%); mask-composite: intersect;
  aspect-ratio: 1; overflow: hidden; animation: breathe 12s ease-in-out infinite; }
/* diamonds drawn in code: stays sharp at any zoom */
.pattern::before { content: ""; position: absolute; inset: -60%; rotate: 45deg;
  background:
    conic-gradient(#141414 0 25%, transparent 0) 60px 0 / 240px 240px,
    conic-gradient(#0e0e0e 0 25%, transparent 0 50%, #0a0a0a 0 75%, transparent 0) 0 0 / 120px 120px,
    conic-gradient(#080808 0 25%, transparent 0) 30px 30px / 60px 60px; }
@keyframes breathe { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.site-header.is-stuck { background: var(--pure); border-bottom-color: var(--edge); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; transition: padding .35s var(--ease); }
.site-header.is-stuck .header-in { padding-block: 12px; }
.brand { flex: none; }
.brand img { height: 60px; width: auto; display: block; transition: height .35s var(--ease); }
.site-header.is-stuck .brand img { height: 44px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: var(--fs-body); font-weight: 500; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; color: var(--light); transition: color .25s; }
.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[aria-current="page"] { color: var(--white); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: "Alexandria", "Camel", sans-serif; font-size: var(--fs-small); color: var(--silver); transition: color .25s; }

/* home header: no logo, light links */
.is-home-head { position: fixed; inset-inline: 0; top: 0; }
.is-home-head .brand { display: none; }
.is-home-head .main-nav { font-size: var(--fs-body); gap: 4px 28px; font-weight: 300; }
.is-home-head .main-nav a { color: var(--silver); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { font: inherit; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; font-size: var(--fs-body); font-weight: 700; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn .ic { flex: none; }
.btn-light { background: var(--white); color: var(--pure); }
.btn-line { background: transparent; border-color: var(--steel); color: var(--white); font-weight: 500; }

/* ---------- inner page head ---------- */
.page-head { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: var(--fs-display); line-height: var(--lh-head); }
.page-head .lead { margin-top: 4px; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--body); max-width: var(--measure); }
.page-head .actions { margin-top: 12px; }
.rule { border: 0; height: 1px; background: var(--charcoal); margin: 0; }
.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; }
.section-title { font-size: var(--fs-section); margin-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: var(--fs-small); color: var(--gray); }
.crumbs a { color: var(--gray); transition: color .2s; }

/* lists with hairlines */
.lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--charcoal); }
.lines li { padding: 16px 0; border-bottom: 1px solid var(--charcoal); font-size: var(--fs-body); display: flex; gap: 16px; }
.lines-links a, .meta .byline { text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: 5px; transition: text-decoration-color .25s, color .25s; }
.lines-links a:hover, .lines-links a:focus-visible, .meta .byline:hover, .meta .byline:focus-visible { text-decoration-color: currentColor; color: var(--white); }
.num { font-family: "Alexandria", sans-serif; font-weight: 300; color: var(--gray); min-width: 1.4em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }

/* dark panel (prepare / fees) */
.panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; }
.panel > div { padding: 32px; }
.panel > div + div { border-inline-start: 1px solid var(--edge); }
.panel h3 { font-size: var(--fs-sub); margin-bottom: 12px; }
.panel p { font-size: var(--fs-body); color: var(--body); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--charcoal); padding: 20px 0; }
.faq details:first-of-type { border-top: 1px solid var(--charcoal); }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--fs-sub); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: "Alexandria", sans-serif; font-weight: 200; font-size: var(--fs-lead); line-height: 1; color: var(--gray); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: var(--fs-body); color: var(--body); max-width: 860px; }

/* areas index */
.area-list { display: flex; flex-direction: column; 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: 28px 16px; border-bottom: 1px solid var(--charcoal); transition: background .25s; }
.area-name { font-weight: 700; font-size: var(--fs-sub); }
.area-short { color: var(--silver); font-size: var(--fs-body); }
.area-arrow { color: var(--gray); font-size: var(--fs-sub); transition: transform .3s var(--ease), color .3s; }

/* about: commitments */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--charcoal); }
.points > div { padding: 24px 0; border-bottom: 1px solid var(--charcoal); }
.points h3 { font-size: var(--fs-sub); margin-bottom: 8px; }
.points p { font-size: var(--fs-body); color: var(--body); }

/* about: client logo wall */
.client-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.client-wall li { min-height: 132px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.client-wall img { width: auto; max-width: 100%; object-fit: contain; }
.client-wall .c-name { font-size: var(--fs-body); font-weight: 500; color: var(--light); line-height: 1.6; }

/* contact */
.contact-rows { display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--charcoal); max-width: 820px; }
.contact-rows .ct-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; gap: 16px 40px; padding: 24px 16px; border-bottom: 1px solid var(--charcoal); font-size: var(--fs-body); color: var(--silver); transition: background .25s; }
.contact-rows .ct-label { display: inline-flex; align-items: center; gap: 12px; }
.contact-rows strong { justify-self: end; color: var(--white); font-weight: 400; font-size: var(--fs-sub); }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--r-sm); color: var(--white); font-size: var(--fs-body); transition: background .25s, border-color .25s; }
.ct-btn .ic, .ct-btn svg { width: 18px; height: 18px; }
.contact-meta { color: var(--gray); margin-top: 24px; font-size: var(--fs-body); }

/* blog */
.post-list { border-top: 1px solid var(--charcoal); }
.post-row { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px; border-bottom: 1px solid var(--charcoal); transition: background .25s; }
.card-title { font-weight: 700; font-size: var(--fs-sub); line-height: 1.6; }
.eyebrow { font-size: var(--fs-small); color: var(--gray); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); }
.empty p { font-size: var(--fs-body); color: var(--silver); }
.article { max-width: 820px; padding-bottom: 96px; }
.article h1 { font-size: var(--fs-display); margin: 32px 0 16px; }
.meta { color: var(--gray); font-size: var(--fs-small); margin-bottom: 28px; }
.summary { font-size: var(--fs-lead); color: var(--body); padding: 24px 0; border-block: 1px solid var(--charcoal); margin-bottom: 28px; }
.prose { font-size: var(--fs-body); color: var(--body); }
.prose h2 { font-size: var(--fs-section); margin: 40px 0 16px; color: var(--white); }
.prose h3 { font-size: var(--fs-sub); margin: 32px 0 12px; color: var(--white); }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose a { text-decoration: underline; text-underline-offset: 5px; }
.prose h4 { font-size: var(--fs-body); margin: 24px 0 8px; color: var(--white); }
.prose blockquote { margin: 0 0 24px; padding: 16px 20px; border-inline-start: 2px solid var(--edge); background: var(--panel); border-radius: var(--r-sm); color: var(--silver); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: var(--fs-small); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--charcoal); text-align: start; vertical-align: top; }
.prose th { color: var(--white); font-weight: 700; }
.article .actions { margin-top: 40px; }

/* closing call-to-action on inner pages */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-lg); }
.cta h2 { font-size: var(--fs-lead); }
.cta p { color: var(--silver); font-size: var(--fs-body); margin-top: 8px; }

/* ---------- footer (fixed, bilingual) ---------- */
.site-footer { background: var(--pure); border-top: 1px solid var(--edge); margin-top: var(--space-section); font-family: "Alexandria", "Camel", sans-serif; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px; padding-block: 56px 36px; }
.footer-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer-id img { height: 176px; width: auto; align-self: center; margin-bottom: 8px; }
.f-name-ar { font-weight: 700; font-size: var(--fs-sub); }
.f-name-en { font-family: "Alexandria", sans-serif; font-size: var(--fs-small); letter-spacing: .12em; white-space: nowrap; color: var(--gray); }
.f-muted { font-size: var(--fs-small); color: var(--gray); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; max-width: 100%; }
.footer-contact a { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: 16px; min-height: 48px; color: var(--white); font-family: "Alexandria", sans-serif; font-size: var(--fs-body); line-height: 1; transition: color .25s; }
.footer-bottom { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding-block: 24px 104px; border-top: 1px solid var(--edge); }
.social { display: flex; gap: 12px; }
.social a { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--charcoal); border-radius: var(--r-md); transition: border-color .25s, transform .25s var(--ease); }

/* ---------- entrance + reveal ---------- */
.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; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- loader (home) + page veil ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--pure); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; cursor: pointer; animation: ld-out var(--loader) var(--ease) forwards; }
/* one light pass over the logo once it has settled */
.loader .ld-mark, .loader .ld-type { -webkit-mask-image: linear-gradient(110deg, rgba(0,0,0,.8) 40%, #000 50%, rgba(0,0,0,.8) 60%); mask-image: linear-gradient(110deg, rgba(0,0,0,.8) 40%, #000 50%, rgba(0,0,0,.8) 60%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0% 0; mask-position: 0% 0; }
.loader .ld-mark { width: min(22vw, 96px); height: auto; margin-bottom: 8px; animation: ld-in 1.2s var(--ease) both, ld-shine 1.4s 2.6s ease-in-out both; }
.loader .ld-type { width: min(70vw, 336px); height: auto; opacity: 0; animation: rise .8s 1s var(--ease) forwards, ld-shine 1.4s 2.7s ease-in-out both; }
@keyframes ld-shine { from { -webkit-mask-position: 0% 0; mask-position: 0% 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes ld-out { 0%, 86% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ld-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.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; }
.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; } }

/* ---------- home stage ---------- */
body.is-home { min-height: 100dvh; }
.is-home .rise { animation-delay: calc(var(--home-delay, 5s) + var(--i, 0s)); }
.stage { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 64px 16px 8px; overflow-y: auto; }
.stage-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stage-logo { width: auto; height: clamp(190px, 42vh, 410px); }
.stage-logo-h { display: none; width: auto; }
.stage-title { font-size: var(--fs-lead); font-weight: 500; color: var(--light); margin-top: 8px; max-height: 80px; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .5s; }
.stage.is-active { justify-content: flex-start; }
.stage.is-active .stage-logo { display: none; }
.stage.is-active .stage-logo-h { display: block; height: clamp(70px, 12vh, 100px); animation: fade .5s var(--ease) both; }
.stage.is-active .stage-title { max-height: 0; opacity: 0; margin: 0; }
.stage.is-active .home-clients { display: none; }

/* ---------- chat ---------- */
.chat { width: min(680px, 100%); display: flex; flex-direction: column; gap: 12px; 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: var(--fs-small); 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: 8px 4px; scroll-behavior: smooth; }
.chat-log > * { flex-shrink: 0; }
.chat.is-active .chat-log { display: flex; flex: 1; min-height: 120px; }
.msg { max-width: min(80%, 560px); padding: 12px 16px; border-radius: var(--r-lg); font-size: var(--fs-body); 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: var(--panel); border: 1px solid var(--edge); border-start-start-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--white); color: var(--pure); border-start-end-radius: 6px; }
.msg-typing { display: inline-flex; gap: 4px; padding: 16px 20px; }
.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: var(--fs-small); min-height: 40px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--charcoal); background: var(--panel); color: var(--white); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); animation: fade .35s var(--ease) both; }
.chat-input { display: flex; align-items: flex-end; gap: 12px; padding: 8px; padding-inline-start: 20px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--edge); 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: var(--fs-body); line-height: 1.6; padding: 8px 0; max-height: 140px; }
.chat-input textarea::placeholder { color: var(--gray); }
.chat-input textarea:disabled { opacity: .5; }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); border: 0; background: var(--white); color: var(--pure); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.chat-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chat-topics[hidden] { display: none; }
.topic { font: inherit; text-align: start; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border-radius: var(--r-md); border: 1px solid var(--edge); background: var(--panel); color: var(--white); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.t-ic { flex: none; width: 18px; height: 18px; color: var(--gray); }
.t-txt { display: flex; flex-direction: column; min-width: 0; }
.t-title { font-weight: 500; font-size: var(--fs-small); }
.t-ex { display: none; }
.chat-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.chat-note { font-size: var(--fs-small); color: var(--gray); max-width: 640px; }
.chat-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chat-human, .chat-restart { font: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--steel); color: var(--white); background: transparent; font-size: var(--fs-small); cursor: pointer; transition: background .2s, color .2s; }
.chat-restart[hidden] { display: none; }
.summary-card { align-self: stretch; background: var(--white); color: var(--pure); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; animation: fade .45s var(--ease) both; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--light); }
.summary-head img { height: 40px; width: auto; }
.summary-label { font-size: var(--fs-small); color: var(--steel); }
.summary-card dl { margin: 0; padding: 16px 24px; display: grid; grid-template-columns: minmax(110px, 34%) 1fr; font-size: var(--fs-small); }
.summary-card dt, .summary-card dd { padding: 8px 0; border-bottom: 1px solid #efefef; }
.summary-card dt { color: var(--steel); }
.summary-card dd { margin: 0; font-weight: 500; white-space: pre-wrap; }
.summary-card dt:nth-last-of-type(1), .summary-card dd:last-of-type { border-bottom: 0; }
.summary-send { align-self: flex-start; display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; margin: 0 24px 24px; border-radius: var(--r-sm); background: var(--pure); color: var(--white); font-weight: 700; }
.handoff-btn { margin: 0; background: var(--white); color: var(--pure); }

/* ask button + popover (inner pages) */
.ask-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border: 0; border-radius: var(--r-md); background: var(--white); color: var(--pure); font: inherit; font-weight: 700; font-size: var(--fs-body); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.45); transition: transform .25s var(--ease), background .25s; }
.chat-drawer { position: fixed; inset: auto; bottom: 90px; inset-inline-end: 22px; inset-inline-start: auto; margin: 0; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px)); max-height: none; max-width: 100%; padding: 16px; border: 1px solid #262626; border-radius: var(--r-lg); background: var(--pure); color: var(--white); flex-direction: column; gap: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.chat-drawer[open] { display: flex; animation: drawer-in .4s var(--ease); }
.chat-drawer::backdrop { background: rgba(0,0,0,.45); }
@keyframes drawer-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: center; align-items: center; position: relative; }
.drawer-head .drawer-logo { height: 96px; width: auto; }
.drawer-logo-h { display: none; width: auto; }
.chat-drawer:has(.chat.is-active) .drawer-head .drawer-logo { display: none; }
.chat-drawer:has(.chat.is-active) .drawer-head .drawer-logo-h { display: block; height: 52px; }
.chat-drawer:has(.chat.is-active) .drawer-greet { display: none; }
.drawer-close { position: absolute; top: 0; inset-inline-end: 0; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--charcoal); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-greet { text-align: center; font-size: var(--fs-body); font-weight: 500; color: var(--light); }
.chat-drawer .chat { flex: 1; min-height: 0; width: 100%; }
.chat-drawer .chat.is-active .chat-log { flex: 1; }
.chat-drawer .chat-foot .chat-note { font-size: var(--fs-small); }
html.drawer-open { overflow: hidden; }

/* ---------- client marquee ---------- */
.marquee { position: relative; overflow: hidden; width: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee.is-drag { cursor: grabbing; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.m-item { flex: none; height: 88px; padding: 0 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.m-item img { width: auto; height: var(--h, 56px); max-width: 300px; pointer-events: none; transition: transform .35s var(--ease); }
.m-name { font-family: "Alexandria", "Camel", sans-serif; font-weight: 700; font-size: var(--fs-body); color: var(--light); white-space: nowrap; }
.m-name[lang="en"] { font-family: "Alexandria", sans-serif; font-weight: 500; font-size: var(--fs-body); }
.home-clients { width: min(1240px, 100%); display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; }
.hc-label { font-size: var(--fs-sub); font-weight: 500; color: var(--light); }
.home-clients .m-name { font-size: var(--fs-body); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .two-col, .points, .panel { grid-template-columns: 1fr; }
  .panel > div + div { border-inline-start: 0; border-top: 1px solid var(--edge); }
  .area-row { grid-template-columns: 1fr auto; }
  .area-short { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .header-in { flex-wrap: wrap; padding-block: 16px; }
  .brand img { height: 46px; }
  .site-header.is-stuck .brand img { height: 38px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 4px 24px; font-size: var(--fs-body); }
  .site-header.is-stuck .main-nav { display: none; }
  .is-home-head .main-nav { order: 0; flex-basis: auto; font-size: var(--fs-small); gap: 4px 16px; }
  .page-head { padding-block: 36px 28px; }
  .lines li { font-size: var(--fs-body); }
  .panel > div, .cta, .empty { padding: 24px; }
  .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-wall li { min-height: 104px; padding: 16px; }
  .ask-fab span { display: none; }
  .ask-fab { padding: 0 16px; }
  .chat-drawer { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .stage { padding-top: 60px; gap: 12px; }
  .stage-logo { height: clamp(170px, 31vh, 260px); }
  .topic { padding: 8px 12px; }
  .msg { max-width: 88%; }
  .footer-bottom { padding-bottom: 96px; }
}
@media (max-height: 800px) {
  .stage { padding-top: 60px; gap: 8px; }
  .stage-logo { height: clamp(170px, 35vh, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pattern { animation: none; }
  .loader, .veil, .js body:not(.is-home) .veil { display: none; }
  .rise, .is-home .rise { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .topic:hover, .opt:hover, .social a:hover, .ask-fab:hover { transform: none; }
  .msg, .opt, .summary-card, .chat-drawer[open] { animation: none; }
  .msg-typing span, .upload-list li.is-busy::before { animation-duration: 2s; }
  .menu-btn path { transition: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; transform: none !important; }
  .marquee-track .m-item[aria-hidden] { display: none; }
}

/* client name under logos that do not carry it */
.m-label, .c-label { font-family: "Alexandria", "Camel", sans-serif; font-size: var(--fs-small); font-weight: 500; color: var(--silver); line-height: 1.3; white-space: nowrap; }
.m-label[lang="en"], .c-label[lang="en"] { font-family: "Alexandria", sans-serif; font-size: var(--fs-small); }
.client-wall li { flex-direction: column; gap: 12px; }
.client-wall .c-label { font-size: var(--fs-small); }

/* upload inside the chat */
.upload-box { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px dashed var(--steel); border-radius: var(--r-md); background: var(--panel); animation: fade .35s var(--ease) both; }
.upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-pick { background: var(--white); color: var(--pure); border-color: var(--white); }
.upload-go:disabled { opacity: .45; cursor: wait; transform: none; }
.upload-hint { font-size: var(--fs-small); color: var(--gray); }
.upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); }
.upload-list li { padding-inline-start: 24px; position: relative; color: var(--light); overflow-wrap: anywhere; }
.upload-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.upload-list li.is-ok::before { background: var(--white); }
.upload-list li.is-err { color: var(--gray); }
.upload-list li.is-busy::before { animation: dot 1s infinite ease-in-out; }


.m-label, .c-label { white-space: normal; text-align: center; max-width: 230px; }
.home-clients .m-label { font-size: var(--fs-small); max-width: 210px; }

/* services list */
.svc-list { border-top: 1px solid var(--charcoal); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 48px; padding: 28px 8px; border-bottom: 1px solid var(--charcoal); }
.svc-name { font-size: var(--fs-sub); line-height: 1.5; }
.svc-body p { font-size: var(--fs-body); color: var(--body); }
.svc-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.svc-links a { font-size: var(--fs-body); font-weight: 500; color: var(--white); padding-bottom: 4px; --base-line: var(--steel); }
.section-lead { margin: -8px 0 24px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .contact-rows .ct-row { gap: 12px; padding-inline: 4px; }
  .contact-rows strong { font-size: var(--fs-body); }
  .ct-actions { gap: 8px; }
}

/* ---------- header bar ---------- */
.site-header .header-in { max-width: none; display: flex; align-items: center; gap: 16px 28px; padding-inline: clamp(16px, 3vw, 44px); }
.brand { order: 0; }
.main-nav { order: 1; flex: 1; justify-content: flex-start; align-items: center; gap: 4px 28px; font-size: var(--fs-body); font-weight: 500; flex-wrap: nowrap; }
.head-cta { order: 2; flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 24px; border-radius: var(--r-sm); background: var(--white); color: var(--pure); font-weight: 700; font-size: var(--fs-small); transition: background .25s, transform .25s var(--ease); }
.head-tools { order: 3; flex: none; display: flex; align-items: center; gap: 16px; }
.head-phone { font-size: var(--fs-small); color: var(--silver); white-space: nowrap; transition: color .25s; }
.head-social { display: inline-flex; align-items: center; gap: 4px; }
.head-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--silver); border-radius: var(--r-md); transition: color .25s, background .25s; }
.head-social svg { width: 20px; height: 20px; }
.lang-pair { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--steel); margin-inline-start: 8px; }
.lang-pair a { min-height: 44px; display: inline-flex; align-items: center; color: var(--gray); }
.lang-pair a[aria-current] { color: var(--white); font-weight: 700; }
.lang-pair a::after { display: none; }
.theme-toggle { flex: none; width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--edge); background: transparent; color: var(--silver); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .25s, border-color .25s; }
.theme-toggle .ic-moon { display: none; }
.menu-btn path { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--edge); background: transparent; color: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.nav-drop { position: relative; }
.nav-drop > a { gap: 8px; }
.nav-drop .chev { transition: transform .25s; }
.drop-menu { position: absolute; top: 100%; inset-inline-start: -16px; min-width: 230px; padding: 12px; background: var(--pure); border: 1px solid var(--edge); border-radius: var(--r-md); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 40; }
.drop-menu a { min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); font-weight: 400; font-size: var(--fs-small); color: var(--light); white-space: nowrap; }
.drop-menu a::after { display: none; }
.drop-menu .drop-all { border-top: 1px solid var(--edge); border-radius: 0; margin-top: 8px; padding-top: 8px; color: var(--silver); }
.nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.site-header { background: var(--pure); border-bottom-color: var(--edge); }
.is-home-head { position: fixed; background: transparent; border-bottom-color: transparent; }
.is-home-head.is-stuck { background: var(--pure); border-bottom-color: var(--edge); }
.is-home-head .brand { display: block; opacity: 0; visibility: hidden; transition: opacity .3s; }
.is-home-head.is-stuck .brand { opacity: 1; visibility: visible; }
.is-home-head .main-nav { font-size: var(--fs-body); gap: 4px 28px; font-weight: 500; }
.is-home-head .main-nav a { color: var(--light); }
.stage { padding-top: 80px; }
@media (max-width: 1180px) { .head-phone { display: none; } }
@media (max-width: 1100px) { .head-social { display: none; } }
.main-nav { min-width: 0; }
@media (max-width: 960px) {
  .head-social, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(16px, 3vw, 44px) 20px; background: var(--pure); border-bottom: 1px solid var(--edge); display: none; flex-basis: auto; order: 5; }
  .site-header.nav-open .main-nav { display: flex; }
  .site-header.is-stuck .main-nav { display: none; }
  .site-header.is-stuck.nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-drop > a { min-height: 48px; border-bottom: 1px solid var(--edge); }
  .main-nav a::after { display: none; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 12px 8px; min-width: 0; background: transparent; }
  .nav-drop .chev { display: none; }
  .lang-pair { margin: 8px 0 0; }
  .is-home-head .brand { opacity: 1; visibility: visible; }
  .is-home-head .main-nav { font-size: var(--fs-body); }
  .brand { flex: 1; }
  .brand img { height: 42px; }
}

/* ---------- footer ---------- */
.site-footer { text-align: start; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.3fr; gap: 40px 48px; padding-block: 64px 44px; align-items: start; }
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-brand { align-items: flex-start; gap: 8px; }
.f-brand img { height: 230px; width: auto; margin-bottom: 16px; }
.f-head { font-size: var(--fs-body); font-weight: 700; color: var(--white); margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--edge); }
.f-col > a { color: var(--silver); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 12px; min-height: 30px; transition: color .25s; }
.f-contact > a { font-size: var(--fs-body); color: var(--light); }
.f-contact .ic, .f-contact svg { width: 20px; height: 20px; flex: none; }
.f-contact .social { margin-top: 12px; gap: 8px; }
.f-contact .social a { width: 42px; height: 42px; }
.footer-bottom { display: block; text-align: center; padding-block: 24px 100px; border-top: 1px solid var(--edge); color: var(--gray); font-size: var(--fs-small); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; align-items: center; text-align: center; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .f-brand img { height: 180px; } }

/* ---------- home: sections below the chat ---------- */
.home-more { position: relative; z-index: 1; border-top: 1px solid var(--edge); }
.home-more .section-title { margin-bottom: 16px; }
.home-more .section-lead + .section-lead { margin-top: 12px; }

/* ---------- client logos: dark / light versions ---------- */
.lg-l { display: none !important; }

/* ---------- light theme (system preference or toggle) ---------- */
:root[data-theme="light"] {--pure: #FFFFFF; --ink: #F7F7F7; --panel: #F4F4F4; --edge: #E2E2E2; --charcoal: #CCCCCC; --steel: #9A9A9A; --gray: #6B6B6B; --silver: #4A4A4A; --line: #333333; --light: #1F1F1F; --soft: #0D0D0D; --white: #000000; --body: #000000; color-scheme: light;}
:root[data-theme="light"] img[src*="-white.svg"], :root[data-theme="light"] .pattern { filter: invert(1); }
:root[data-theme="light"] .pattern { opacity: .5; }
:root[data-theme="light"] .lg-d { display: none !important; }
:root[data-theme="light"] .lg-l { display: block !important; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .ask-fab { box-shadow: 0 6px 24px rgba(0,0,0,.15); }
:root[data-theme="light"] .drop-menu { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {--pure: #FFFFFF; --ink: #F7F7F7; --panel: #F4F4F4; --edge: #E2E2E2; --charcoal: #CCCCCC; --steel: #9A9A9A; --gray: #6B6B6B; --silver: #4A4A4A; --line: #333333; --light: #1F1F1F; --soft: #0D0D0D; --white: #000000; --body: #000000; color-scheme: light;}
:root:not([data-theme="dark"]) img[src*="-white.svg"], :root:not([data-theme="dark"]) .pattern { filter: invert(1); }
:root:not([data-theme="dark"]) .pattern { opacity: .5; }
:root:not([data-theme="dark"]) .lg-d { display: none !important; }
:root:not([data-theme="dark"]) .lg-l { display: block !important; }
:root:not([data-theme="dark"]) .theme-toggle .ic-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .ic-moon { display: block; }
:root:not([data-theme="dark"]) .ask-fab { box-shadow: 0 6px 24px rgba(0,0,0,.15); }
:root:not([data-theme="dark"]) .drop-menu { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
}
.theme-toggle .ic-moon { }
/* fixes */
.footer-grid > * { min-width: 0; }
@media (min-width: 961px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1.5fr 1.3fr; } }
.f-brand { align-items: center; text-align: center; }
.f-brand .f-name-ar { font-size: var(--fs-sub); }
.lang-en .site-footer, .lang-en .f-col > a { font-family: "Alexandria", system-ui, sans-serif; }
.lang-en .f-head { font-family: "Alexandria", system-ui, sans-serif; font-weight: 600; }
.is-home-head:not(.is-stuck) .brand { display: none; }
@media (max-width: 960px) { .drop-menu { box-shadow: none !important; } .is-home-head:not(.is-stuck) .brand { display: block; } }

/* touch targets on phones and tablets */
@media (max-width: 1023px) {
  .f-col > a, .crumbs a, .svc-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .svc-links { gap: 0 24px; }
}

/* home stage: grows with its content when the screen is short (nothing clipped), fixed height only while chatting */
.stage:not(.is-active) { height: auto; min-height: max(560px, 100vh); min-height: max(560px, 100svh); overflow-y: visible; padding-bottom: 20px; }
@media (max-width: 380px) {
  .topic { padding: 8px 8px; gap: 8px; }
  .t-title { font-size: var(--fs-small); }
  .chat-input { padding-inline-start: 16px; }
}

/* privacy policy */
.policy { max-width: 860px; }
.policy-sec { padding: 28px 0; border-top: 1px solid var(--charcoal); }
.policy-sec h2 { font-size: var(--fs-lead); margin-bottom: 12px; }
.policy-sec p, .policy-sec li { font-size: var(--fs-body); color: var(--body); }
.policy-sec p + p { margin-top: 12px; }
.policy-sec ul { margin: 0 0 12px; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 8px; }
.policy-basis { padding-top: 24px; border-top: 1px solid var(--charcoal); font-size: var(--fs-body); color: var(--gray); }
.policy-basis strong { color: var(--light); font-weight: 700; }
.chat-note a, .upload-hint a, .f-legal a { text-decoration: underline; text-underline-offset: 4px; }
.f-legal { margin-top: 8px; }
.f-legal a { color: var(--gray); }
.policy bdi { white-space: nowrap; }

/* footer contact: icons on the left in Arabic */
html[dir="rtl"] .f-contact > a { flex-direction: row-reverse; }

/* ---------- design foundations: rhythm, touch, press, hover ---------- */
.faq details p, .prose p, .prose ul, .prose ol, .policy-sec p, .policy-sec li, .section-lead { max-width: var(--measure); }
.section-title, .prose h2 { line-height: var(--lh-head); }
* { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"] { touch-action: manipulation; }
.arr { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; margin-inline-start: 4px; }
html[dir="rtl"] .arr { transform: scaleX(-1); }
/* instant press feedback (scale .97 in 100ms), released smoothly */
.btn, .opt, .topic, .chat-send, .ask-fab, .head-cta, .ct-btn, .chat-human, .chat-restart, .summary-send, .theme-toggle, .menu-btn, .social a, .drawer-close, .head-social a { transition-property: background, color, border-color, transform, opacity; transition-duration: .25s; transition-timing-function: var(--ease); }
.btn:active, .opt:active, .topic:active, .chat-send:active, .ask-fab:active, .head-cta:active, .ct-btn:active, .chat-human:active, .chat-restart:active, .summary-send:active, .theme-toggle:active, .menu-btn:active, .social a:active, .drawer-close:active, .head-social a:active { transform: scale(.97); transition-duration: .1s; }
/* hover effects only on devices that hover, so nothing stays lit after a tap */
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--white); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .lang-switch:hover { color: var(--white); }
  .btn:hover { transform: translateY(-2px); }
  .btn-light:hover { background: var(--light); }
  .btn-line:hover { border-color: var(--silver); }
  .crumbs a:hover { color: var(--white); }
  .area-row:hover { background: var(--panel); }
  .area-row:hover .area-arrow { color: var(--white); transform: translateX(-4px); }
  .lang-en .area-row:hover .area-arrow { transform: translateX(4px); }
  .contact-rows a.ct-row:hover { background: var(--panel); }
  .ct-btn:hover { background: var(--panel); border-color: var(--silver); }
  .post-row:hover { background: var(--panel); }
  .footer-contact a:hover { color: var(--silver); }
  .social a:hover { border-color: var(--silver); transform: translateY(-2px); }
  .opt:hover { background: var(--white); color: var(--pure); transform: translateY(-2px); }
  .chat-send:hover { transform: translateY(-2px); background: var(--light); }
  .topic:hover { border-color: var(--gray); background: var(--edge); transform: translateY(-2px); }
  .chat-human:hover, .chat-restart:hover { background: var(--white); color: var(--pure); }
  .summary-send:hover { background: var(--charcoal); color: var(--white); }
  .handoff-btn:hover { background: var(--light); color: var(--pure); }
  .ask-fab:hover { background: var(--light); transform: translateY(-2px); }
  .m-item:hover img { transform: scale(1.05); }
  .upload-pick:hover { background: var(--light); }
  .head-cta:hover { background: var(--light); transform: translateY(-1px); }
  .head-phone:hover { color: var(--white); }
  .head-social a:hover { color: var(--white); background: var(--panel); }
  .theme-toggle:hover { color: var(--white); border-color: var(--steel); }
  .drop-menu a:hover { background: var(--panel); color: var(--white); }
  .nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .chev { transform: rotate(180deg); }
  .f-col > a:hover { color: var(--white); }
  .f-legal a:hover { color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .opt:active, .topic:active, .chat-send:active, .ask-fab:active, .head-cta:active, .ct-btn:active, .chat-human:active, .chat-restart:active, .summary-send:active, .theme-toggle:active, .menu-btn:active, .social a:active, .drawer-close:active, .head-social a:active { transform: none; opacity: .75; }
  .btn:hover, .topic:hover, .opt:hover, .social a:hover, .ask-fab:hover, .head-cta:hover, .chat-send:hover { transform: none; }
}
@media (hover: hover) and (pointer: fine) { .upload-go:disabled:hover { transform: none; } }


/* ---------- loading screen: type scale, 8 grid, one-line names, tap to skip ---------- */
.loader .ld-ar { font-family: "Camel", sans-serif; font-weight: 700; font-size: var(--fs-lead); line-height: var(--lh-head); opacity: 0; animation: rise .8s 1.8s var(--ease) forwards; }
.loader .ld-en { font-family: "Alexandria", sans-serif; font-size: var(--fs-small); letter-spacing: .2em; white-space: nowrap; color: var(--silver); opacity: 0; animation: rise .8s 2.2s var(--ease) forwards; }
.loader.is-skip { animation: none; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
body.intro-done .rise { animation-delay: var(--i, 0s) !important; }
@media (max-width: 380px) { .loader .ld-en { letter-spacing: .1em; } .f-name-en { letter-spacing: .04em; } }

/* ---------- home stage rhythm (8 grid: close inside a group, wider between groups) ---------- */
.stage { gap: 0; }
.stage-head { gap: 24px; }
.stage-logo { height: clamp(160px, 34vh, 340px); }
.stage-title { margin-top: 0; }
.stage .chat { margin-top: 16px; gap: 12px; }
.stage .chat-foot { margin-top: 4px; }
.stage:not(.is-active) { justify-content: center; }
.home-clients { gap: 16px; margin-top: 40px; padding-top: 0; }
.chat-actions:not(:has(> :not([hidden]))) { display: none; }
.stage.is-active .chat { margin-top: 8px; }

/* ---------- client logos: optically balanced (each logo's --h is set from its shape and ink weight) ---------- */
.m-item { height: auto; min-height: 88px; padding: 0 40px; gap: 8px; }
.m-item img, .home-clients .m-item img { height: var(--h, 48px); max-width: 240px; }
.home-clients .m-item { min-height: 96px; padding: 0 40px; }
.m-label, .home-clients .m-label { font-size: var(--fs-small); max-width: 200px; }
@media (max-width: 720px) {
  .stage-logo { height: clamp(140px, 24vh, 220px); }
  .m-item, .home-clients .m-item { min-height: 80px; padding: 0 24px; }
  .m-item img, .home-clients .m-item img { height: calc(var(--h, 48px) * .8); max-width: 200px; }
}
.ld-skip { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: max-content; min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: var(--gray); font: inherit; font-size: var(--fs-small); cursor: pointer; }

/* ---------- spacing pass (8 grid): footer identity in two tight pairs, home fits one screen ---------- */
.f-brand { gap: 0; }
.f-brand img { height: 200px; margin-bottom: 24px; }
.f-pair { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.4; }
.f-pair + .f-pair { margin-top: 16px; }
.f-pair .f-muted { white-space: nowrap; }
.f-name-en { line-height: 1.4; }
html[dir="rtl"] .f-contact .social { justify-content: flex-end; }
html[dir="ltr"] .f-contact .social { justify-content: flex-start; }
@media (max-width: 560px) { .f-brand img { height: 160px; } .f-pair .f-muted { white-space: normal; } }

/* home: one screen on every size. Logo follows screen height; header space reserved; topics never wrap on phones */
.stage { padding-top: clamp(88px, 12vh, 120px); }
@media (min-width: 961px) { .stage { padding-top: clamp(112px, 14vh, 136px); } }
@media (max-height: 760px) {
  .home-clients { gap: 8px; }
  .home-clients .m-item { min-height: 64px; }
  .home-clients .m-item img { height: calc(var(--h, 48px) * .8); }
}
.stage-logo { height: clamp(72px, calc(60vh - 220px), 760px); }
.home-clients { margin-top: clamp(16px, 4vh, 48px); }
.stage-head { gap: clamp(12px, 2.4vh, 24px); }
.stage .chat { margin-top: clamp(8px, 1.6vh, 16px); }
@media (min-width: 761px) and (min-height: 501px) { .stage .chat-topics { width: min(1280px, calc(100vw - 48px)); align-self: center; justify-content: center; } }
@media (max-width: 760px), (max-height: 500px) {
  .stage .chat-topics { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .stage .chat-topics::-webkit-scrollbar { display: none; }
  .stage .topic { flex: none; scroll-snap-align: start; white-space: nowrap; }
}
/* footer: brand column takes its own width on wide screens, its own row on mid screens */
@media (min-width: 1200px) { .footer-grid { grid-template-columns: max-content 1fr 1.4fr 1.2fr; } }
@media (min-width: 961px) and (max-width: 1199px) { .footer-grid { grid-template-columns: 1fr 1.4fr 1.2fr; } .f-brand { grid-column: 1 / -1; } }
/* client logos: one colour, vector (white on dark, black on light via the -white.svg rule) */
.m-logo { display: block; width: auto; opacity: .9; }

/* greeting moved from h1 to p (SEO h1 is the hidden brand line): keep the old heading metrics */
p.stage-title { line-height: var(--lh-head); }
.lang-en p.stage-title { letter-spacing: -0.01em; }

/* brand mark, enlarged and cropped at the left edge, behind the content (card: التصميم الرقمي) */
@media (min-width: 1280px) {
  .side-mark { display: block; position: absolute; left: 0; top: 35vh; width: calc(120vh * .4553 - 10vw); height: 120vh; overflow: hidden; pointer-events: none; z-index: 0; }
  body.is-home .side-mark { top: 42vh; }
  main, .site-footer { position: relative; z-index: 1; }
  :root[data-theme="light"] .side-mark { filter: invert(1); opacity: .5; }
}
@media (min-width: 1280px) and (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .side-mark { filter: invert(1); opacity: .5; }
}

/* home fits one screen on short screens too (320x568, 1280x600): logo gives back height first, then the client strip tightens */
.stage-logo { height: clamp(72px, calc(66vh - 270px), 760px); }
@media (max-height: 700px) {
  .stage-head { gap: 8px; }
  .home-clients { margin-top: 12px; gap: 4px; }
  .home-clients .m-item { min-height: 56px; }
  .home-clients .m-item img { height: calc(var(--h, 48px) * .7); }
}
@media (min-width: 761px) and (max-width: 1279px) { .lang-en .stage .chat-topics { gap: 6px; } .lang-en .stage .topic { padding-inline: 10px; gap: 6px; } }
@media (max-width: 360px) and (max-height: 600px) { .stage-logo { height: clamp(72px, calc(66vh - 294px), 760px); } }
/* the empty box shows its hint on one line (a long hint used to wrap and show a stray dot on 320px phones) */
.chat-input textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* trial (lawyer's decisions 2026-10-23): icons only where they mean contact (phone, WhatsApp, email, social);
   topics read as words; the closing call is a real commitment without a filled box; the corner button steps aside near it */
.stage .topic { background: transparent; border: 0; border-radius: 0; min-height: 40px; padding: 4px 0; gap: 0; color: var(--silver); }
.stage .topic .t-title { font-size: var(--fs-body); font-weight: 400; padding-bottom: 3px; transition: color .2s var(--ease); }
.stage .chat-topics { gap: 8px 24px; }
@media (hover: hover) { .stage .topic:hover { background: transparent; transform: none; color: var(--white); } }
.stage .topic:focus-visible .t-title { color: var(--white); }
@media (min-width: 761px) and (max-width: 1499px) { .lang-en .stage .topic .t-title { font-size: var(--fs-small); } .lang-en .stage .chat-topics { gap: 8px 16px; } }
.ask-fab span { display: inline; }
.cta { background: transparent; border: 0; border-radius: 0; padding: 0; }
.panel { background: transparent; border: 0; border-block: 1px solid var(--edge); border-radius: 0; }
.ask-fab.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
/* send arrow: quiet outline while the box is empty, white once there is text (lawyer kept this detail 2026-10-23) */
.chat-send { background: transparent; color: var(--gray); border: 1px solid var(--edge); }
.chat-input:has(textarea:not(:placeholder-shown)) .chat-send { background: var(--white); color: var(--pure); border-color: var(--white); }
@media (hover: hover) { .chat-input:has(textarea:placeholder-shown) .chat-send:hover { background: transparent; border-color: var(--gray); color: var(--white); transform: none; } }

/* buttons with depth (clip 098): lit from above. 1) a 1px light line on the top edge, 2) a darker line inside the bottom,
   3) a tight shadow where it touches the page, 4) a soft bounce of its own colour, plus a gentle top-to-bottom shade of the same colour.
   Pressed: the light flips (inner shadow on top, no lift). Colours stay black and white; each theme gets its own light. */
:root {
  --solid-bg: linear-gradient(180deg, #ffffff 0%, #eeeeee 100%);
  --solid-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.6);
  --line-bg: linear-gradient(180deg, rgba(255,255,255,.022) 0%, rgba(255,255,255,0) 100%) padding-box, linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.03) 65%, rgba(255,255,255,0) 100%) border-box;
  --line-bg-hover: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%) padding-box, linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.05) 65%, rgba(255,255,255,0) 100%) border-box;
  --line-shadow: none;
  --press-shadow: inset 0 1px 3px rgba(0,0,0,.4);
}
:root[data-theme="light"] {
  --solid-bg: linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
  --solid-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.2);
  --line-bg: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,0) 100%) padding-box, linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.04) 65%, rgba(0,0,0,0) 100%) border-box;
  --line-bg-hover: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 100%) padding-box, linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.06) 65%, rgba(0,0,0,0) 100%) border-box;
  --line-shadow: none;
  --press-shadow: inset 0 1px 3px rgba(0,0,0,.15);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --solid-bg: linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
    --solid-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.2);
    --line-bg: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,0) 100%) padding-box, linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.04) 65%, rgba(0,0,0,0) 100%) border-box;
    --line-bg-hover: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 100%) padding-box, linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.06) 65%, rgba(0,0,0,0) 100%) border-box;
    --line-shadow: none;
    --press-shadow: inset 0 1px 3px rgba(0,0,0,.15);
  }
}
.btn-light, .ask-fab, .chat-input:has(textarea:not(:placeholder-shown)) .chat-send { background: var(--solid-bg); box-shadow: var(--solid-shadow); border-color: transparent; }
/* line buttons sink into the page: the edge is lit at the top and melts away downward, and the pattern shows through */
.btn-line, .ct-btn, .opt, .chat-human, .chat-restart, .theme-toggle, .menu-btn, .drawer-close, .social a, .chat-send { background: var(--line-bg); box-shadow: var(--line-shadow); border: 1px solid transparent; }
.btn-light:active, .ask-fab:active, .btn-line:active, .ct-btn:active, .opt:active, .chat-human:active, .chat-restart:active, .theme-toggle:active, .menu-btn:active, .drawer-close:active, .social a:active, .chat-send:active { box-shadow: var(--press-shadow); transform: translateY(1px); }
@media (hover: hover) { .btn-light:hover { background: var(--solid-bg); filter: brightness(1.04); } }
.summary-send { box-shadow: var(--solid-shadow); }

/* lawyer 2026-10-23: no fade on scroll for Areeb (it reads cheap and AI-made); everything is simply there */
.js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }

/* hover keeps the lit surface (switching the gradient to a flat colour flashed black on "Ask Areeb") */
@media (hover: hover) {
  .ask-fab:hover, .btn-light:hover, .chat-input:has(textarea:not(:placeholder-shown)) .chat-send:hover { background: var(--solid-bg); filter: brightness(1.03); transform: translateY(-1px); }
  .btn-line:hover, .ct-btn:hover, .opt:hover, .chat-human:hover, .chat-restart:hover, .theme-toggle:hover, .menu-btn:hover, .drawer-close:hover, .social a:hover { background: var(--line-bg-hover); border-color: transparent; }
}

/* contact buttons: the icon alone (lawyer 2026-10-23); same height, square */
.ic-only { padding: 0; aspect-ratio: 1; justify-content: center; }
.btn.ic-only { width: 52px; } .ct-btn.ic-only { width: 44px; }
.ic-only svg { width: 22px; height: 22px; }

/* Apple-style continuous corners (clip 104): the curve eases in instead of a quarter circle. Chrome and Edge show it; Safari falls back to the normal radius */
@supports (corner-shape: superellipse(2)) {
  .btn, .ct-btn, .opt, .chat-input, .chat-send, .ask-fab, .theme-toggle, .menu-btn, .drawer-close, .social a, .chat-human, .chat-restart, .summary-send,
  .chat-drawer, .panel, .msg, .summary-card, .upload-box, .drop-menu, .empty, .cta { corner-shape: superellipse(1.6); }
}

/* one underline glides between menu links (clip 103 idea, in Areeb's line style instead of a pill); browsers without anchor positioning keep the per-link underline */
@supports (anchor-name: --a) {
  @media (min-width: 961px) and (hover: hover) {
    .main-nav { position: relative; }
    .main-nav a:hover::after { transform: scaleX(0); }
    .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
    .main-nav a:hover { anchor-name: --navhover; }
    .main-nav::before { content: ""; position: absolute; position-anchor: --navhover; left: anchor(left); right: anchor(right); top: calc(anchor(bottom) - 7px); height: 1px; background: var(--white); opacity: 0; pointer-events: none; transition: left .3s var(--ease), right .3s var(--ease), top .3s var(--ease), opacity .2s; }
    .main-nav:has(a:hover)::before { opacity: 1; }
  }
}

/* client logo cells: a reflected window slides across on hover (clip 100) — light, not a glow; pointer devices only */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .client-wall li { position: relative; overflow: hidden; }
}


/* trials page (preview only) */
.trials .t-h { font-size: var(--fs-sub); margin-top: 64px; }
.trials .t-note { color: var(--gray); font-size: var(--fs-small); margin: 8px 0 24px; }
.t-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .t-pair { grid-template-columns: 1fr; } }
.t-tag { display: block; color: var(--silver); font-size: var(--fs-small); margin-bottom: 8px; }
.t-plain::before { display: none; }
.trials .chat-input textarea { flex: 1; background: transparent; border: 0; color: var(--white); font: inherit; font-size: 17px; resize: none; padding: 8px 0; outline: none; }
.t-cover { position: relative; display: grid; place-items: center; height: 240px; border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; background: var(--pure); }
.t-cover img { position: relative; z-index: 1; width: auto; height: 140px; }
.t-glow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 140px; height: 140px; z-index: 0; background: var(--img) center / contain no-repeat; filter: blur(48px) saturate(1.6); scale: 1.4; opacity: .85; }
.t-pat { height: 240px; border: 1px solid var(--edge); border-radius: var(--r-lg); }
.t-pat-img { background: url(/assets/img/pattern-dark.webp) top left / cover no-repeat, #000; }
.t-pat-css { position: relative; overflow: hidden; background: #000; }
.t-pat-css::before { content: ""; position: absolute; inset: -60%; rotate: 45deg;
  background:
    conic-gradient(#161616 0 25%, transparent 0 50%, #0e0e0e 0 75%, transparent 0) 0 0 / 120px 120px,
    conic-gradient(#0b0b0b 0 25%, transparent 0) 30px 30px / 60px 60px;
  -webkit-mask: linear-gradient(160deg, #000 30%, transparent 62%); mask: linear-gradient(160deg, #000 30%, transparent 62%); }
:root[data-theme="light"] .t-pat { filter: invert(1); opacity: .5; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .t-pat { filter: invert(1); opacity: .5; } }
.t-logo { position: relative; height: 320px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--pure); }
.t-logo img { height: 240px; width: auto; opacity: .78; }
.t-logo::after { content: ""; position: absolute; inset: 0; margin: auto; height: 240px; width: calc(240px * 1616.59 / 1500);
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) no-repeat; background-size: 300% 100%; background-position: 0% 0;
  -webkit-mask: url(/assets/img/logo-v-white.svg) center / contain no-repeat; mask: url(/assets/img/logo-v-white.svg) center / contain no-repeat; pointer-events: none; }
:root[data-theme="light"] .t-logo::after { background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); }
@keyframes shine { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.t-shine-once::after { animation: shine 1.6s .6s ease-in-out both; }
@media (hover: hover) { .t-shine-hover:hover::after { animation: shine 1.4s ease-in-out both; } }

/* smooth page-to-page transition; header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* logo shine: one light pass when a logo comes into view, again on hover (site.js adds .shine-go) */
@property --dim { syntax: "<number>"; inherits: false; initial-value: 1; }
.lg { -webkit-mask-image: linear-gradient(110deg, rgba(0,0,0,var(--dim)) 40%, #000 50%, rgba(0,0,0,var(--dim)) 60%); mask-image: linear-gradient(110deg, rgba(0,0,0,var(--dim)) 40%, #000 50%, rgba(0,0,0,var(--dim)) 60%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0% 0; mask-position: 0% 0; }
.lg.shine-go { animation: lg-shine 1.6s var(--shine-delay, .3s) ease-in-out both; }
.is-home .stage-logo.shine-go { --shine-delay: calc(var(--home-delay, 0s) + .9s); }
.stage.is-active .stage-logo-h.shine-go { animation: fade .5s var(--ease) both, lg-shine 1.6s .4s ease-in-out both; }
@keyframes lg-shine { 0% { --dim: 1; -webkit-mask-position: 0% 0; mask-position: 0% 0; } 15%, 85% { --dim: var(--dim-to, .78); } 100% { --dim: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; } }

/* TRIAL: side mark draws itself as a line, then fills (site.js sets each path length) */
/* below 1280px the mark shows as a slim slice at the left edge, smaller and quieter, behind the content */
@media (max-width: 1279px) {
  .side-mark { display: block; position: absolute; left: 0; top: 34vh; width: min(30vw, 160px); height: 82vh; overflow: hidden; pointer-events: none; z-index: 0; opacity: .7; }
  body.is-home .side-mark { top: 46vh; }
  main, .site-footer { position: relative; z-index: 1; }
  :root[data-theme="light"] .side-mark { filter: invert(1); opacity: .35; }
}
@media (max-width: 1279px) and (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .side-mark { filter: invert(1); opacity: .35; } }
.side-mark svg { position: absolute; right: 0; top: 0; height: 100%; width: auto; aspect-ratio: 354.78 / 779.13; }
.side-mark path { fill: #333333; }
.js .side-mark path { fill-opacity: 0; stroke: #4a4a4a; stroke-width: 1.2; stroke-dasharray: var(--len, 0); stroke-dashoffset: var(--len, 0); }
.side-mark.draw path { animation: mark-draw 1.3s var(--draw-delay, 0s) ease-in-out forwards, mark-fill .6s calc(var(--draw-delay, 0s) + 1s) ease forwards; }
body.is-home .side-mark.draw { --draw-delay: var(--home-delay, 0s); }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; stroke-opacity: 0; } }

/* TRIAL: very fine grain over the page, like printed paper */
/* fine grain lives in the page background itself, not in a layer over the screen: iPhone Safari tints its top and bottom bars from the topmost fixed layer at the edge, and a see-through layer let the page show through the bars */
body { background-image: none; }
:root[data-theme="light"] body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.06' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.06' filter='url(%23n)'/%3E%3C/svg%3E"); } }

/* TRIAL: underline fills from the reading start on hover. The resting line is the same crisp 1px border in the identity grey as before; only the white fill moves over it */
.stage .topic .t-title, .svc-links a { position: relative; border-bottom: 1px solid var(--charcoal); }
.svc-links a { border-bottom-color: var(--steel); }
.stage .topic .t-title::after, .svc-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); pointer-events: none; }
.lang-en .stage .topic .t-title::after, .lang-en .svc-links a::after { transform-origin: left; }
@media (hover: hover) { .stage .topic:hover .t-title::after, .svc-links a:hover::after { transform: scaleX(1); } }
.stage .topic:focus-visible .t-title::after, .svc-links a:focus-visible::after { transform: scaleX(1); }

/* TRIAL: thin reading-progress line on articles */
.read-bar { position: absolute; top: auto; bottom: -1px; inset-inline: 0; height: 2px; z-index: 2; background: var(--white); transform: scaleX(var(--read, 0)); transform-origin: right; pointer-events: none; }
.lang-en .read-bar { transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .js .side-mark path, .side-mark.draw path { animation: none; fill-opacity: 1; stroke: none; }
  .stage .topic .t-title::after, .svc-links a::after { transition: none; }
}

/* TRIAL: "Ask Areeb" becomes the round brand mark (lawyer's reference: black disc, thin grey ring, white mark) */
.ask-fab, .ask-fab:hover, .mark-btn { width: 64px; height: 64px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; corner-shape: round;
  background: var(--pure); color: var(--white); border: 1px solid var(--steel); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ask-fab svg, .mark-btn svg { height: 44px; width: auto; fill: currentColor; }
.mark-btn { display: inline-flex; align-items: center; cursor: pointer; box-shadow: none; }
@media (hover: hover) { .mark-btn:hover { border-color: var(--silver); } }
@media (hover: hover) { .ask-fab:hover { border-color: var(--silver); transform: translateY(-1px); filter: none; } }
:root[data-theme="light"] .ask-fab { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* TRIAL: client logos run in the band between the two edges of the side mark, so both sides stay balanced and nothing passes over the drawing */
@media (min-width: 1280px) {
  .marquee { --mark-w: calc(120vh * .4553 - 10vw); width: min(100%, calc(100vw - 1.7 * var(--mark-w))); margin-inline: auto; }
}

/* TRIAL: bigger home logo, tighter to the greeting, disclaimer a little lower (wide screens) */
@media (min-width: 761px) {
  .stage { padding-top: clamp(104px, 12.6vh, 124px); }
  .stage-logo { height: clamp(72px, min(calc(76vh - 304px), calc(30vw + 160px)), 880px); }
  .home-clients .m-item { min-height: clamp(56px, 8.4vh, 96px); }
  .stage-head { gap: clamp(4px, 1.2vh, 12px); }
  .stage .chat-foot { margin-top: clamp(8px, 1.4vh, 20px); }
  .home-clients { margin-top: clamp(6px, 1.2vh, 20px); }
}
@media (min-width: 761px) and (max-height: 620px) {
  .stage-logo { height: clamp(72px, calc(70vh - 270px), 880px); }
}

/* light theme: the dark logo needs a deeper dip for the light pass to read */
:root[data-theme="light"] .lg { --dim-to: .45; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .lg { --dim-to: .45; } }

/* send and theme buttons sit on panels and the pattern: give them the same solid black base as the social icons, and white glyphs */
.theme-toggle, .chat-send { background: var(--line-bg), linear-gradient(var(--pure), var(--pure)) padding-box; color: var(--white); }
@media (hover: hover) { .theme-toggle:hover, .chat-send:hover { background: var(--line-bg-hover), linear-gradient(var(--pure), var(--pure)) padding-box; } }

/* three values sit in one row on wide screens */
@media (min-width: 861px) { .points.points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the Areeb button beside WhatsApp takes the same rounded-square shape */
.cta .mark-btn.btn { width: 52px; height: auto; border-radius: var(--r-sm); corner-shape: superellipse(1.6); background: var(--line-bg); border: 1px solid transparent; box-shadow: var(--line-shadow); }
.cta .mark-btn.btn svg { height: 28px; }

/* iPhone Safari draws the page under the status bar and the bottom toolbar: the sticky header carries its black band upward so scrolled content never shows above it, and the loading screen reaches past both bars */
/* the page now reaches the screen edges (viewport-fit=cover): the header grows into the status-bar area so it covers it, and nothing sits under the home indicator */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 50vh; background: var(--pure); pointer-events: none; }
.stage { margin-top: env(safe-area-inset-top, 0px); }
.loader { inset: 0; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.ask-fab { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 600px) { .chat-drawer { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); } }

/* TRIAL: client logos in their own colours (dark-background and light-background versions) */
.c-lt { display: none !important; }
:root[data-theme="light"] .c-dk { display: none !important; }
:root[data-theme="light"] .c-lt { display: block !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .c-dk { display: none !important; } :root:not([data-theme="dark"]) .c-lt { display: block !important; } }

/* TRIAL: home sections below the first screen (who we are, our services, contact); the first screen is untouched */
:root { --lh-statement: 1.3; }
.lang-ar { --lh-statement: 1.6; }
.home-intro { font-size: var(--fs-section); line-height: var(--lh-statement); font-weight: 500; color: var(--body); max-width: var(--measure); text-wrap: balance; }
.home-more .area-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 860px) { .home-more .area-row { grid-template-columns: 1fr; gap: 8px; } .home-more .area-short { grid-row: auto; } }
/* the enlarged side mark belongs to the first screen: the sections below sit on solid black so their text never runs over it */
.home-more { background: var(--pure); }
.is-home .site-footer { margin-top: 0; }
