/* ============================================================
   Trilot — site.css
   Shared design tokens, layout, components
   ============================================================ */

:root {
  --cream:    #F5EFE4;
  --cream-2:  #EFE6D5;
  --cream-3:  #E8DCC3;
  --ink:      #1B1714;
  --ink-2:    #2E2823;
  --muted:    #7A6F60;
  --muted-2:  #A89A84;
  --rule:     #D9CDB4;
  --rust:     #B8593B;
  --rust-2:   #8F3F26;
  --sage:     #6B7355;
  --sky:      #5C7686;
  --sky-2:    #46606E;
  --whatsapp: #25D366;

  --serif:  "Instrument Serif", "Noto Naskh Arabic", "Times New Roman", serif;
  --logo:   "Playfair Display", "Noto Naskh Arabic", Georgia, serif;
  --sans:   "Inter", "Cairo", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   "JetBrains Mono", "Cairo", ui-monospace, Menlo, monospace;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rust); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.mono-sm { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.serif { font-family: var(--serif); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 22px); }

.italic { font-style: italic; }
.rust { color: var(--rust); }
.rust-rule { display: inline-block; height: 1px; background: var(--rust); width: 64px; vertical-align: middle; }
.sage { color: var(--sage); }
.sky  { color: var(--sky); }
.hero__brief { font-family: var(--serif); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.55; color: var(--ink-2); margin-top: 22px; max-width: 38ch; }
.hero__brief strong { font-weight: 500; }
.heritage-strip { padding: 18px 0 28px; margin-top: 8px; border-top: 1px solid var(--rule); }
.heritage-strip__caption { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 12px; letter-spacing: 0.02em; }
.heritage-strip__img { width: 100%; max-width: 720px; margin: 0 auto; display: block; }
[dir="rtl"] .hero__brief { max-width: 42ch; }

p { margin: 0 0 1em; }
p.lede { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; color: var(--ink-2); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.section--tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.divider { border-top: 1px solid var(--rule); }

main { display: block; }

/* page-load fade-up */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeUp 600ms ease-out forwards; }
.fade-in.d1 { animation-delay: 80ms; }
.fade-in.d2 { animation-delay: 160ms; }
.fade-in.d3 { animation-delay: 240ms; }
.fade-in.d4 { animation-delay: 320ms; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg, rgba(245, 239, 228, 0.92));
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 14px var(--pad);
}
.site-header__logo {
  font-family: var(--logo);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  line-height: 1;
}
.site-header__logo .symbol {
  display: inline-block; width: 18px; height: 18px;
  background-image: url("assets/logo/symbol-ink.svg");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--rust); }
.site-nav a[data-active="true"] { color: var(--ink); }
.site-nav a[data-active="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--rust);
}
.hamburger { display: none; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: 200ms; }

@media (max-width: 760px) {
  .site-nav {
    position: fixed; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--cream); border-bottom: 1px solid var(--rule);
    padding: 16px var(--pad);
    gap: 14px;
    transform: translateY(-110%); transition: transform 260ms ease;
  }
  .site-nav.open { transform: translateY(0); }
  .hamburger { display: block; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream-2);
  margin-top: 96px;
}
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 56px var(--pad) 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer__col h5 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer__brand {
  font-family: var(--logo); font-style: italic; font-size: 28px; color: var(--ink);
  margin: 0 0 12px;
}
.site-footer__col p, .site-footer__col li { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 6px; }
.site-footer__col a:hover { color: var(--rust); }

.site-footer__bottom {
  border-top: 1px solid var(--rule);
  max-width: var(--container); margin: 0 auto; padding: 22px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}
.site-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--whatsapp); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform 200ms;
}
.wa-fab:hover { transform: translateY(-2px); color: white; }
.wa-fab svg { width: 26px; height: 26px; }
body.no-fab .wa-fab { display: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--cream);
  border-top: 1px solid var(--rust);
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(27,23,20,0.06);
  transform: translateY(110%); transition: transform 320ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__text { font-size: 13.5px; color: var(--ink-2); max-width: 56ch; flex: 1; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border-radius: 0;
  transition: 200ms ease;
  border: 1px solid transparent;
}
.btn--rust { background: var(--rust); color: white; }
.btn--rust:hover { background: var(--rust-2); color: white; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--text { padding: 0; color: var(--rust); font-size: 14px; }
.btn--text:hover { color: var(--rust-2); }

.arrow-link { color: var(--rust); font-family: var(--sans); font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; min-height: 24px; }
.arrow-link:hover { color: var(--rust-2); }

/* ---------- Hero (home) ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 8vw, 112px);
}
.hero__copy h1 { margin-top: 18px; }
.hero__sub { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; color: var(--ink-2); margin-top: 26px; max-width: 22ch; }
.hero__fineprint { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rust); }
.hero__fineprint .mono { font-size: 11.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__photo { aspect-ratio: 3/2; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4/5; }
}

/* ---------- Image placeholder ---------- */
.imgslot {
  background: var(--cream-3);
  background-image: repeating-linear-gradient(
    135deg,
    var(--cream-3),
    var(--cream-3) 14px,
    var(--cream-2) 14px,
    var(--cream-2) 28px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-align: center; padding: 16px;
  border: 1px solid var(--rule);
}
.imgslot[data-ratio="3-2"] { aspect-ratio: 3/2; }
.imgslot[data-ratio="4-5"] { aspect-ratio: 4/5; }
.imgslot[data-ratio="1-1"] { aspect-ratio: 1/1; }
.imgslot[data-ratio="16-9"] { aspect-ratio: 16/9; }

/* ---------- Brand cards (home) ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  background: var(--cream-2);
  border: 1px solid var(--rule);
  padding: 36px 32px 28px;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: 200ms ease;
}
.brand-card:hover { border-color: var(--ink); }
.brand-card__num { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.brand-card__name { font-family: var(--logo); font-style: italic; font-size: 32px; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.brand-card__tag { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.brand-card__desc { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink-2); margin-bottom: 28px; flex: 1; }
.brand-card__cta { color: var(--rust); font-family: var(--sans); font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ---------- Service tiles (home + services index) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-tile {
  display: block;
  border: 1px solid var(--rule);
  background: var(--cream);
  padding: 28px 26px;
  transition: 200ms ease;
}
.svc-tile:hover { background: var(--cream-2); border-color: var(--ink); }
.svc-tile__num { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.svc-tile__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin-bottom: 14px; color: var(--ink); }
.svc-tile__sub { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-bottom: 22px; }
.svc-tile__cta { color: var(--rust); font-family: var(--sans); font-size: 13.5px; font-weight: 500; }

.svc-grid--lg .svc-tile { padding: 40px 36px; }
.svc-grid--lg .svc-tile__title { font-size: 30px; }

@media (max-width: 900px) {
  .svc-grid, .svc-grid--lg { grid-template-columns: 1fr; }
}

/* ---------- Era ribbon ---------- */
.ribbon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ribbon .imgslot { aspect-ratio: 3/4; }
@media (max-width: 760px) {
  .ribbon { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Closing CTA ---------- */
.closing { padding: clamp(72px, 9vw, 128px) 0; text-align: start; border-top: 1px solid var(--rule); }
.closing h2 { font-style: italic; color: var(--rust); max-width: 16ch; }
.closing__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- About page ---------- */
.about-bio { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-bio p { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-bottom: 1em; }
.about-bio .imgslot { aspect-ratio: 4/5; }
@media (max-width: 760px) { .about-bio { grid-template-columns: 1fr; } }

/* Holdings poster */
.holdings-poster { aspect-ratio: 3/2; margin-top: 32px; }

/* Ecosystem strip */
.ecosystem-strip { max-width: 70%; margin: 80px auto; aspect-ratio: 16/6; }
@media (max-width: 760px) { .ecosystem-strip { max-width: 100%; aspect-ratio: 4/3; } }

/* ---------- Service detail ---------- */
.service-page { max-width: 820px; margin: 0 auto; }
.service-page__header { padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 5vw, 72px); }
.service-page__body section { margin-bottom: 56px; }
.service-page__body h3 { font-size: 26px; margin-bottom: 18px; font-style: italic; }
.service-page__body p { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Stats row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 56px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat__num { font-family: var(--mono); font-size: clamp(40px, 5vw, 64px); font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat__lbl { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Filters / search ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.toolbar__search {
  flex: 1; min-width: 240px;
  font: 400 14px var(--sans);
  border: 1px solid var(--rule); background: var(--cream);
  padding: 12px 14px; color: var(--ink);
  outline: none;
}
.toolbar__search:focus { border-color: var(--ink); }
.toolbar__group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 11.5px;
  padding: 7px 12px; color: var(--muted-2);
  border: 1px solid var(--rule); background: transparent;
  transition: 150ms;
  letter-spacing: 0.02em;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[data-active="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.toolbar__count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-inline-start: auto; }

/* ---------- Domains table ---------- */
.dtable { width: 100%; border-collapse: collapse; }
.dtable th {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--rule);
}
.dtable td { padding: 16px 12px; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: middle; }
.dtable td.domain { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.dtable td.price { font-family: var(--mono); color: var(--ink); }
.dtable td.notes { color: var(--muted); font-size: 13px; }
.dtable .pill { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border: 1px solid var(--rule); display: inline-block; letter-spacing: 0.04em; }
.dtable .pill--listed { color: var(--rust); border-color: var(--rust); }
.dtable .pill--held { color: var(--muted); }
.dtable .pill--sold { color: var(--sage); border-color: var(--sage); }

@media (max-width: 760px) {
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tr { border-bottom: 1px solid var(--rule); padding: 14px 0; }
  .dtable td { border: 0; padding: 4px 0; }
  .dtable td::before { content: attr(data-label); font-family: var(--mono); font-size: 11px; color: var(--muted); display: inline-block; width: 90px; }
}

/* ---------- Experience timeline ---------- */
.timeline { position: relative; padding-inline-start: 32px; max-width: 760px; margin: 56px 0; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px;
  width: 1px; background: var(--rust);
}
.tl-entry { position: relative; padding-bottom: 44px; }
.tl-entry::before {
  content: ""; position: absolute; inset-inline-start: -32px; top: 8px;
  width: 9px; height: 9px; background: var(--rust);
  border-radius: 50%;
}
.tl-entry .years { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tl-entry .role { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 4px; line-height: 1.15; }
.tl-entry .company { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.tl-entry .summary { font-family: var(--serif); font-size: 18px; color: var(--ink-2); }

.skills { margin-top: 72px; }
.skill-shelf { padding: 22px 0; border-top: 1px solid var(--rule); }
.skill-shelf:last-child { border-bottom: 1px solid var(--rule); }
.skill-shelf h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.skill-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  padding: 5px 10px; border: 1px solid var(--rule);
}

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  background: var(--cream-2);
  border: 1px solid var(--rule);
  padding: 18px;
  transition: 200ms;
}
.cert-card:hover { border-color: var(--ink); }
.cert-card .imgslot { aspect-ratio: 1/1; margin-bottom: 16px; }
.cert-card .title { font-family: var(--serif); font-size: 19px; line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.cert-card .body { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.cert-card .date { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.cert-card .cat-pill { font-family: var(--mono); font-size: 10.5px; color: var(--rust); border: 1px solid var(--rust); padding: 3px 8px; display: inline-block; letter-spacing: 0.04em; text-transform: lowercase; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: 200ms;
}
.contact-card:hover { border-color: var(--ink); }
.contact-card--primary { border-color: var(--rust); }
.contact-card .icon { width: 28px; height: 28px; margin-bottom: 22px; color: var(--ink); }
.contact-card .icon--wa { color: var(--whatsapp); }
.contact-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.contact-card p { font-size: 14px; color: var(--ink-2); flex: 1; margin-bottom: 18px; }
@media (max-width: 760px) { .contact-row { grid-template-columns: 1fr; } }

.cal-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 480px; background: var(--cream-2); border: 1px solid var(--rule);
  font-family: var(--serif); font-size: 22px; color: var(--ink-2); gap: 10px;
}
.cal-placeholder .muted { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.form-grid { display: grid; gap: 18px; max-width: 680px; }
.form-grid label { display: block; }
.form-grid .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 8px;
}
.form-grid input, .form-grid textarea {
  width: 100%; font: 400 15px var(--sans); color: var(--ink);
  background: var(--cream); border: 1px solid var(--rule);
  padding: 12px 14px; outline: none;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--ink); }
.form-grid textarea { resize: vertical; }
.cf-turnstile {
  display: flex; align-items: center; justify-content: center;
  height: 65px; background: var(--cream-2); border: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.form-foot { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 12px; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.office-card {
  background: var(--cream-2); border: 1px solid var(--rule);
  padding: 28px;
}
.office-card h4 { font-family: var(--serif); font-style: italic; font-size: 22px; margin-bottom: 10px; }
.office-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 0;
}
.legal .draft-note {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--muted); border-inline-start: 2px solid var(--rust); padding-block: 4px; padding-inline-start: 14px;
  margin: 24px 0 40px;
}
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 40px 0 14px; font-style: italic; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-inline-start: 18px; }
.legal .updated { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - 200px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px var(--pad);
}
.not-found .num {
  font-family: var(--serif); font-style: italic; color: var(--rust);
  font-size: clamp(120px, 18vw, 240px); line-height: 0.85; margin: 14px 0 24px;
}
.not-found .map {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  margin-top: 32px; font-family: var(--sans); font-size: 14px;
}
.not-found .map a:hover { color: var(--rust); }

/* ---------- Cross-ref / quiet line ---------- */
.crossref {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--muted); padding: 32px 0; max-width: 60ch;
}
.crossref a { color: var(--ink); border-bottom: 1px solid var(--rust); }

/* ============================================================
   MP10 — Visual life pass
   Portrait, footer avatar, social/payment icons, motion polish
   ============================================================ */

/* ---------- about.html portrait block ---------- */
.portrait-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 540px;
}
.portrait-block__frame {
  width: 480px;
  height: 480px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  padding: 10px;
  background: var(--cream-2);
  box-shadow: 0 14px 36px rgba(27, 23, 20, 0.08);
}
.portrait-block__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-block__caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
  margin-top: 18px;
  text-align: center;
}

/* ---------- contact.html host card ---------- */
.host-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 28px;
  max-width: 460px;
}
.host-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.host-card__meta { display: flex; flex-direction: column; gap: 4px; }
.host-card__name { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); line-height: 1.1; }
.host-card__role { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Footer brand row (avatar + wordmark) ---------- */
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.site-footer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

/* ---------- Footer payments row ---------- */
.site-footer__payments {
  border-top: 1px solid var(--rule);
  padding: 24px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.site-footer__payments-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__payments-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  max-width: 720px;
}

/* MP12 — real-brand-logo footer */
.footer__socials {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}
.footer__social,
.footer__payment,
.footer__community {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease;
}
.footer__social {
  min-width: 24px;
  min-height: 24px;
}
.footer__social { opacity: 0.85; }
.footer__social:hover { opacity: 1; }
.footer__payment { opacity: 0.9; }
.footer__payment:hover { opacity: 1; }
.footer__social img,
.footer__payment img,
.footer__community img {
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.footer__social img {
  width: 24px;
  height: 24px;
}
.footer__payment img {
  height: 28px;
  width: auto; /* wordmark logos keep native aspect */
}
.footer__payment img[width] {
  width: 28px; /* square logos (amex, bitcoin) take the explicit width */
}
.footer__communities {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 0;
}
.footer__community img {
  width: 84px;
  height: auto;
}
.footer__communities-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Page-top scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  z-index: 100;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ---------- Motion / life pass (only when user opts in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .brand-card,
  .cert-card,
  .contact-card,
  .office-card {
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  }
  .brand-card:hover,
  .cert-card:hover,
  .contact-card:hover,
  .office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 23, 20, 0.08);
  }

  .ribbon img {
    transition: transform 400ms ease, filter 400ms ease;
  }
  .ribbon img:hover {
    transform: scale(1.03);
    filter: saturate(1.08);
  }

  .form-grid input,
  .form-grid textarea {
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }
  .form-grid input:focus,
  .form-grid textarea:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(184, 89, 59, 0.15);
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

@media (max-width: 720px) {
  .portrait-block__frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .site-footer__payments-row { gap: 18px; }
  .footer__payment img { height: 22px; }
  .footer__payment img[width] { width: 22px; }
  .footer__socials { gap: 8px; }
  .footer__social img { width: 22px; height: 22px; }
  .footer__community img { width: 76px; }
}

/* MP9 legal additions */
.annex-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0 32px;
}
.dpa-pdf-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 6px 12px;
  margin: 8px 0 24px;
  transition: color 200ms ease, border-color 200ms ease;
}
.dpa-pdf-link:hover {
  color: var(--rust);
  border-color: var(--rust);
}
.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-scroll th,
.table-scroll td {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}
.table-scroll th {
  background: var(--cream-2);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-inline-start: 3px solid var(--rust);
  color: var(--ink-2);
  font-style: italic;
}
.legal h3 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
}

/* ============================================================
   MP11 — content + CTAs + newsletter strip
   ============================================================ */

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-2); }
.small { font-size: 0.85rem; }

/* ---------- Section markers (reused on home iia, about, tertiary) ---------- */
.section-marker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Newsletter strip ---------- */
.newsletter-strip {
  background: var(--cream-2);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  position: relative;
  font-size: 0.92rem;
}
.newsletter-strip[hidden] { display: none; }
.newsletter-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
}
.newsletter-strip__lede { margin: 0; color: var(--ink-2); font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.newsletter-strip__form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.newsletter-strip__form input[type="text"],
.newsletter-strip__form input[type="email"] {
  font-family: inherit; font-size: 0.95rem;
  min-height: 44px;
  padding: 8px 12px; min-width: 0;
  flex: 1 1 180px;
  border: 1px solid var(--rule); background: var(--cream);
  color: var(--ink);
}
.newsletter-strip__form input[type="text"]:focus,
.newsletter-strip__form input[type="email"]:focus {
  outline: 2px solid var(--rust); outline-offset: 1px;
}
.newsletter-strip__status {
  margin: 0; font-size: 0.85rem; color: var(--ink-2);
  grid-column: 1 / -1;
}
.newsletter-strip__status[data-state="error"] { color: var(--rust); }
.newsletter-strip__dismiss {
  background: none; border: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--muted);
  padding: 4px 8px;
}
.newsletter-strip__dismiss:hover { color: var(--ink); }
.newsletter-strip__legal {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 720px) {
  .newsletter-strip__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .newsletter-strip__lede { grid-column: 1 / -1; }
  .newsletter-strip__form { grid-column: 1; grid-row: 2; flex-wrap: wrap; }
  .newsletter-strip__dismiss { grid-column: 2; grid-row: 1; align-self: start; }
  .newsletter-strip__form input[type="text"],
  .newsletter-strip__form input[type="email"] { flex: 1 1 100%; min-width: 0; }
}

/* ---------- Button family (MP11 — single-dash, distinct from BEM .btn--rust) ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block; padding: 12px 18px;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--rust); color: var(--cream);
  border-color: var(--rust);
}
.btn-primary:hover { background: var(--rust-2); border-color: var(--rust-2); color: var(--cream); }
.btn-primary--compact { padding: 8px 14px; font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; }
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--rule);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }

/* ---------- CTA blocks (above-fold / mid-page) ---------- */
.cta-block { padding: 40px 0; text-align: center; }
.cta-block--above-fold { padding: 32px 0 48px; }
.cta-block--mid { padding: 48px 0 32px; }
.cta-block .lede { max-width: 56ch; margin: 0 auto 20px; }
.cta-block__buttons,
.cta-block .buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.cta-block p { max-width: 60ch; margin-inline: auto; }
.cta-block h2.section-marker { margin-bottom: 18px; }

/* ---------- Tertiary handshake ---------- */
.tertiary-handshake {
  padding: 56px 0 32px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.tertiary-handshake__inner { text-align: center; }
.tertiary-handshake__lede { max-width: 60ch; margin: 8px auto 20px; font-family: var(--serif); font-size: 18px; }
.tertiary-handshake__buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 16px;
}
.tertiary-handshake__footer-line { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Service page sections (MP11 clarifications) ---------- */
.service-page__body section { margin-bottom: 28px; }
.service-page__body .muted { color: var(--ink-2); }
.service-page__body dl { margin: 12px 0; }
.service-page__body dt { font-weight: 600; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.service-page__body dd { margin: 4px 0 0; color: var(--ink-2); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.service-cta { padding-top: 8px; }
.service-cta__buttons,
.service-cta .buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- About page asymmetric layout (MP11) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 24px 0 64px;
}
.about-grid__portrait {
  position: sticky; top: 96px;
}
.about-grid__portrait img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  background: var(--cream-2);
}
.about-grid__copy p {
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--ink-2); margin-bottom: 1em;
}
.about-grid__copy section { margin-top: 48px; }
.about-grid__copy section .section-marker { margin-bottom: 14px; }
.about-grid dl { margin: 12px 0 0; }
.about-grid dt { font-weight: 600; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.about-grid dd { margin: 4px 0 0; color: var(--ink-2); font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.about-grid .cta-block { text-align: start; }
.about-grid .cta-block__buttons { justify-content: flex-start; display: flex; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid__portrait { position: static; max-width: 320px; margin: 0 auto; }
}

/* ---------- Cross-brand current-card marker ---------- */
.brand-card[data-brand="trilot"],
.brand-card--current {
  border-color: var(--rust);
}
.brand-card[data-brand="trilot"] .primitive-circle,
.brand-card--current .primitive-circle {
  fill: var(--rust);
}

/* ============================================================
   MP-Theme — dark/light theme toggle
   ============================================================ */

/* ─── Light theme header bg (explicit, matches prior literal) */
:root,
[data-theme="light"] {
  --header-bg: rgba(245, 239, 228, 0.92);
}

/* ─── Dark theme tokens ────────────────────────────────── */
[data-theme="dark"] {
  --cream:    #1B1714;
  --cream-2:  #2E2823;
  --cream-3:  #3A332D;
  --ink:      #F5EFE4;
  --ink-2:    #C9C0B0;
  --rule:     #4A4239;
  --muted:    #9A9384;
  --muted-2:  #8A8378;
  --rust:     #C4593F;
  --rust-2:   #D86A50;
  --sage:     #6E8A6D;
  --header-bg: rgba(27, 23, 20, 0.92);
}

/* Smooth transitions on theme switch */
[data-theme] body,
[data-theme] .site-header,
[data-theme] .site-footer,
[data-theme] .newsletter-strip,
[data-theme] .tertiary-handshake,
[data-theme] .btn-primary,
[data-theme] .btn-secondary,
[data-theme] .btn-ghost,
[data-theme] .svc-tile,
[data-theme] .brand-card,
[data-theme] .service-page__body section {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* ─── Header controls + theme toggle ───────────────────── */
.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 16px;
}
.header-control {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.header-control:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.header-control:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.theme-toggle__icon { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: inline; }
[data-theme="dark"]  .theme-toggle__icon--sun  { display: inline; }
/* Fallback when no data-theme attribute (pre-paint defensive) */
html:not([data-theme]) .theme-toggle__icon--moon { display: inline; }

/* ─── Mobile: keep theme toggle visible alongside hamburger ─ */
@media (max-width: 760px) {
  .header-controls {
    margin-inline-start: auto;
    margin-inline-end: 8px;
    order: 2;
  }
  .site-header__inner .hamburger { order: 3; }
}

/* ─── Image / portrait handling in dark mode ──────────── */
[data-theme="dark"] .about-grid__portrait img,
[data-theme="dark"] img.portrait,
[data-theme="dark"] .portrait-block__frame img,
[data-theme="dark"] .site-footer__avatar,
[data-theme="dark"] .host-card__avatar,
[data-theme="dark"] .ribbon img,
[data-theme="dark"] .hero__photo img {
  filter: brightness(0.92) contrast(0.96);
}

/* ─── Legal page draft-note contrast in dark mode ─────── */
[data-theme="dark"] .draft-note {
  background: var(--cream-2);
  border-color: var(--rust);
  color: var(--ink);
}

/* ─── Inline-style replacement: experience.html year-meta */
.dim-meta {
  color: var(--muted);
  opacity: 0.85;
}

/* ─── Dark-mode payment / social icons (slight lift) ─── */
[data-theme="dark"] .footer__social img,
[data-theme="dark"] .footer__payment img,
[data-theme="dark"] .footer__community img {
  filter: brightness(1.05) invert(0.04);
}

/* ─── Dark-mode logo symbol ──────────────────────────── */
[data-theme="dark"] .site-header__logo .symbol {
  background-image: url("assets/logo/symbol-cream.svg");
}

/* ============================================================
   MP-Lang — Arabic/English infrastructure
   ============================================================ */

/* ─── Font stack RTL override (prefer Arabic faces first) ─ */
[dir="rtl"] {
  --serif: "Noto Naskh Arabic", "Instrument Serif", Georgia, serif;
  --sans:  "Cairo", "Inter", system-ui, sans-serif;
  --logo:  "Cairo", "Playfair Display", Georgia, serif;
  --mono:  "Cairo", "JetBrains Mono", ui-monospace, monospace;
}
[dir="rtl"] body {
  /* Slight letter-spacing reset; Latin-tuned tracking reads tight in Arabic */
  letter-spacing: 0;
}

/* ─── Direction-aware row reversal ─────────────────────── */
[dir="rtl"] .newsletter-strip__form,
[dir="rtl"] .service-cta__buttons,
[dir="rtl"] .tertiary-handshake__buttons,
[dir="rtl"] .cta-block__buttons,
[dir="rtl"] .closing__actions,
[dir="rtl"] .site-header__inner {
  /* The .site-header__inner is already flex; reverse so logo lands on the
     right and nav/controls on the left in RTL. */
}
[dir="rtl"] .site-header__inner { flex-direction: row-reverse; }
[dir="rtl"] .newsletter-strip__form,
[dir="rtl"] .service-cta__buttons,
[dir="rtl"] .tertiary-handshake__buttons,
[dir="rtl"] .cta-block__buttons,
[dir="rtl"] .closing__actions { flex-direction: row-reverse; }

/* The about-grid asymmetric layout: in RTL, prose flows right-to-left
   but the visual portrait-then-prose ordering still reads correctly
   (sticky aside on logical inline-start = right in RTL). No flip needed. */

/* ─── Lang toggle button label swap via [lang] attribute ─ */
.header-control--lang {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-toggle__label {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  font-size: 0; /* hide static fallback text */
}
.lang-toggle__label::before {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
[lang="en"] .lang-toggle__label::before { content: "AR"; }
[lang="ar"] .lang-toggle__label::before { content: "EN"; }
/* Pre-attribute fallback */
html:not([lang]) .lang-toggle__label::before { content: "AR"; }

/* ─── Lang notice ──────────────────────────────────────── */
.lang-notice {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  max-width: 360px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.lang-notice--fade { opacity: 0; }

/* ─── /ar/ stub page minimal layout ──────────────────── */
.ar-stub {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(56px, 9vw, 96px) var(--pad);
  text-align: start;
}
.ar-stub h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}
.ar-stub p { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.ar-stub .back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--rust);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
}

/* ============================================================
   MP-fixes — operator-flagged corrections
   ============================================================ */

/* ─── Fix 1: Payoneer wordmark visibility in dark mode ─── */
[data-theme="dark"] .footer__payment img[src*="payoneer"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.05);
}

/* ============================================================
   MP-palette polish — drop caps, marker hairline, pull-quote
   ( .rust and .italic already defined above — not redeclared )
   ============================================================ */

p[data-dropcap="true"]::first-letter,
p.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  color: var(--rust);
  padding-right: 0.08em;
  padding-top: 0.05em;
  font-weight: 400;
}
[dir="rtl"] p[data-dropcap="true"]::first-letter,
[dir="rtl"] p.dropcap::first-letter {
  float: right;
  padding-right: 0;
  padding-left: 0.08em;
}

.section-marker { position: relative; }
.section-marker::after {
  content: "";
  display: block;
  inline-size: 40px;
  block-size: 1px;
  background: var(--rust);
  margin-block-start: 0.5em;
}

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  border-inline-start: 2px solid var(--rust);
  padding-inline-start: 1.25rem;
  margin-block: 1.75rem;
  color: var(--ink);
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.pull-quote::before { content: open-quote; }
.pull-quote::after  { content: close-quote; }
.pull-quote cite {
  display: block;
  margin-block-start: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  font-family: var(--sans);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pull-quote cite::before { content: "— "; }

/* ============================================================
   Touch targets + mobile table overflow (Sprint 1b)
   ============================================================ */
/* Header logo — expand hit area without changing visual size */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 9px;
}
/* Hamburger — guarantee 44×44 hit area */
.hamburger {
  min-width: 44px;
  min-height: 44px;
}
/* Site nav links — expand hit area */
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 7px;
}
/* Footer Pages column links — expand hit area */
.site-footer__col ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 7px;
}
/* Legal page tables — horizontal scroll at narrow viewports */
@media (max-width: 720px) {
  main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   Mobile touch-target sizing (≤767px) — Sprint 1d
   ============================================================ */
@media (max-width: 767px) {
  .header-control {
    width: 44px;
    height: 44px;
  }
  .site-nav a {
    justify-content: center;
    min-width: 44px;
    padding-inline: 6px;
    flex-shrink: 0;
  }
  .arrow-link {
    min-height: 44px;
    padding-block: 11px;
  }
  .dpa-pdf-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 7px;
  }
  .newsletter-strip__dismiss {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* === Print stylesheet === */
@media print {
  :root, [data-theme="dark"] { color-scheme: light; }

  #site-header, .site-header,
  #site-footer, .site-footer,
  .newsletter-strip,
  .header-controls, .theme-toggle, .lang-toggle,
  .whatsapp-fab,
  .cookie-banner,
  .tertiary-handshake,
  .dpa-pdf-link { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.55;
  }

  main.container, .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  article.legal h1 { font-size: 22pt; margin: 0 0 14pt; }
  article.legal h2 { font-size: 14pt; margin-top: 18pt; }
  article.legal h3 { font-size: 12pt; margin-top: 12pt; }
  article.legal h1, article.legal h2, article.legal h3 { page-break-after: avoid; }
  article.legal p, article.legal li { orphans: 3; widows: 3; }
  article.legal hr { border: none; border-top: 1px solid #ccc; margin: 14pt 0; }
  article.legal a { color: inherit; text-decoration: none; }
  article.legal .eyebrow { font-size: 9pt; color: #666; letter-spacing: 0.08em; }
}


/* Service-page infographic illustrations */
.trilot-infographic {
  display: block;
  max-width: 1200px;
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 490;
  margin: 2rem auto;
}
/* ============================================================
   Trilot — "Calm" design layer (concept C)
   Sits on top of site.css: retunes the shared tokens, then restyles
   components. One signature moment lives on the homepage (calm-home).
   ============================================================ */

/* self-hosted display faces (latin); Arabic, body and mono come from Google Fonts */
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600 700;font-display:swap;src:url(/assets/fonts/InterTight-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/InstrumentSerif-400i-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/IBMPlexSansArabic-400-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/IBMPlexSansArabic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/IBMPlexSansArabic-600-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/IBMPlexSansArabic-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --cream: #FAF8F4;
  --cream-2: #F3F0EA;
  --cream-3: #E9E4DA;
  --card: #FFFFFF;
  --ink: #15140F;
  --ink-2: #45413A;
  --muted: #6E685F;
  --muted-2: #8F897F;
  --rule: #E4DED3;
  --rust: #B24E2B;
  --rust-2: #963F20;
  --rust-soft: rgba(178, 78, 43, .08);
  --on-rust: #FFFFFF;
  --sage: #4F6B4A;
  --sky: #3F6578;

  --display: "Inter Tight", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --logo: var(--display);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --accent-serif: "Instrument Serif", Georgia, serif;

  --container: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 20, 15, .04), 0 10px 30px -14px rgba(21, 20, 15, .14);
  --header-bg: rgba(250, 248, 244, .86);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-theme="light"] { --header-bg: rgba(250, 248, 244, .86); }
[data-theme="dark"] {
  --cream: #111110;
  --cream-2: #181816;
  --cream-3: #22211E;
  --card: #1A1917;
  --ink: #EEEAE2;
  --ink-2: #C2BCB1;
  --muted: #9A948A;
  --muted-2: #7D776E;
  --rule: #2C2A26;
  --rust: #E5784E;
  --rust-2: #F08C64;
  --rust-soft: rgba(229, 120, 78, .10);
  --on-rust: #14110E;
  --sage: #8FB083;
  --sky: #86AFC4;
  --header-bg: rgba(17, 17, 16, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
body { font-family: var(--sans); font-size: 16.5px; line-height: 1.6; letter-spacing: -.003em; background: var(--cream); color: var(--ink); }
html[lang="ar"] body { font-size: 17px; line-height: 1.8; letter-spacing: 0; }
::selection { background: var(--rust); color: var(--on-rust); }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.028em; line-height: 1.06; color: var(--ink); }
h1 { font-size: clamp(40px, 5.2vw, 70px); }
h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -.012em; line-height: 1.3; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
h1 em, h2 em, .accent { font-family: var(--accent-serif); font-style: italic; font-weight: 400; color: var(--rust); letter-spacing: -.01em; background: none; -webkit-text-fill-color: currentColor; }
html[lang="ar"] h1 em, html[lang="ar"] h2 em, html[lang="ar"] .accent { font-family: var(--display); font-style: normal; font-weight: 600; letter-spacing: 0; }
.italic { font-style: normal; }
.rust { color: var(--rust); }
.sage { color: var(--sage); }
.sky { color: var(--sky); }
p { color: inherit; }

.eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); flex: none; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.lede { font-family: var(--sans); font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.6; color: var(--ink-2); font-style: normal; }
.mono, .mono-sm { font-family: var(--mono); }
.section-marker { font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .section-marker { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-header__inner { padding-block: 12px; gap: 20px; }
.site-header__logo { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 23px; letter-spacing: -.045em; }
.site-nav { gap: 6px; }
.site-nav a { font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--cream-3); color: var(--ink); }
.site-nav a[data-active="true"] { color: var(--ink); background: var(--cream-3); }
.site-nav a[data-active="true"]::after { display: none; }
.header-controls { gap: 8px; }
.header-control { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--rule); display: inline-grid; place-items: center; background: transparent; color: var(--ink); }
.header-control:hover { border-color: var(--ink-2); }
.header-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .2s; }
.header-cta:hover { background: var(--rust); color: var(--on-rust); transform: translateY(-1px); }
@media (max-width: 980px) { .header-cta { display: none; } }
@media (max-width: 760px) {
  .site-nav { background: var(--cream); padding: 12px var(--pad) 20px; gap: 2px; }
  .site-nav a { width: 100%; font-size: 16px; padding: 10px 12px; }
}

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost { font-family: var(--sans); font-weight: 600; font-size: 15px; border-radius: 999px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: -.005em; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); text-decoration: none !important; }
.btn-primary { background: var(--rust); border: 1px solid var(--rust); color: var(--on-rust); }
.btn-primary:hover { background: var(--rust-2); border-color: var(--rust-2); color: var(--on-rust); transform: translateY(-1px); }
.btn-secondary, .btn-ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); transform: translateY(-1px); }

/* ---------- cards everywhere ---------- */
.svc-tile, .brand-card, .cert-card, .contact-card, .office-card, .host-card, .d-group, .tl-entry, .cta-block, .service-cta, .seo-services article {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.svc-tile:hover, a.brand-card:hover, a.cert-card:hover, a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cream-3); color: inherit; }
.svc-tile__title, .brand-card__name { font-family: var(--display); font-weight: 600; font-style: normal; letter-spacing: -.02em; }
.svc-tile__num, .brand-card__num { font-family: var(--mono); color: var(--muted); }
.svc-tile__cta, .brand-card__cta { font-weight: 600; color: var(--rust); }
.contact-card--primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.contact-card--primary * { color: inherit; }

/* ---------- inputs ---------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font-family: var(--sans); font-size: 15.5px; background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-soft); outline: none; }

/* ---------- content pages (website / AI / store / cost …) ---------- */
main.seo-copy { max-width: 880px; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.seo-copy > header { padding-bottom: clamp(28px, 4vw, 48px); margin-bottom: clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--rule); }
.seo-copy h1 { font-size: clamp(38px, 5vw, 64px); max-width: 18ch; margin-block: 18px 22px; }
.seo-copy .lede { max-width: 62ch; }
.seo-copy section { margin-block: clamp(36px, 4.5vw, 56px); }
.seo-copy h2 { font-size: clamp(24px, 2.4vw, 32px); margin-block: 0 14px; }
.seo-copy p, .seo-copy li { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
html[lang="ar"] .seo-copy p, html[lang="ar"] .seo-copy li { line-height: 1.9; }
.seo-copy a:not(.btn-primary):not(.btn-secondary):not(.svc-tile) { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.seo-copy ul { padding-inline-start: 22px; }
.seo-copy li::marker { color: var(--rust); }
.seo-actions { gap: 12px; margin-block: 26px 0; }
.seo-copy details { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 0; margin-block: 10px; background: var(--card); }
.seo-copy summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.seo-copy summary::-webkit-details-marker { display: none; }
.seo-copy summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--rust); transition: transform .25s var(--ease); flex: none; }
.seo-copy details[open] summary::after { transform: rotate(45deg); }
.seo-copy details p { padding: 0 20px 18px; margin: 0; }
.seo-copy .seo-proof { border: 0; border-radius: var(--radius); background: var(--rust-soft); padding: clamp(22px, 3vw, 32px); margin-block: 40px; }
.seo-copy .seo-proof h2 { font-size: clamp(20px, 2vw, 24px); }
.seo-services { gap: 18px; }
.seo-services article { padding: 26px; }
.seo-services article h2, .seo-services article h3 { font-size: 22px; }
.seo-table-wrap { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); margin-block: 28px; }
.seo-table { min-width: 520px; }
.seo-table th, .seo-table td { padding: 16px 18px; border-block-end: 1px solid var(--rule); }
.seo-table tr:last-child th, .seo-table tr:last-child td { border-block-end: 0; }
.seo-table thead th { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; background: var(--cream-2); }
.seo-table tbody th { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.seo-table td:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.seo-related { padding-top: 22px; border-top: 1px solid var(--rule); }

/* legacy service pages (fractional / audits / meetings) + about/experience/legal */
.service-page__header h1, .section--tight h1 { margin-block: 14px 18px; }
.service-page__body h3 { font-family: var(--display); font-style: normal; font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.service-page__body p, .about-grid__copy p, article.legal p, article.legal li { color: var(--ink-2); }
.service-page__body dt, .service-page__body dd { font-family: var(--sans); font-style: normal; font-size: 17px; }
.service-cta { padding: clamp(22px, 3vw, 34px); }
article.legal { max-width: 780px; }
article.legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin-block: 40px 12px; }
.trilot-infographic { border-radius: var(--radius); }
.heritage-strip__caption, .section-caption { font-family: var(--sans); color: var(--muted); }

/* ---------- newsletter / closing / footer ---------- */
.newsletter-strip { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-block: 48px 0; padding: 22px 0; }
.newsletter-strip__lede { font-family: var(--sans); font-size: 15.5px; color: var(--ink-2); }
.tertiary-handshake, .closing { text-align: center; }
.tertiary-handshake h2, .tertiary-handshake .mono, .tertiary-handshake__title { font-family: var(--display) !important; letter-spacing: -.03em; text-transform: none; }
.site-footer { background: var(--cream-2); border-top: 1px solid var(--rule); }
.site-footer__brand { font-family: var(--display); font-style: normal; font-weight: 700; letter-spacing: -.04em; }
.site-footer__col h5 { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
html[lang="ar"] .site-footer__col h5 { letter-spacing: 0; font-size: 13px; }
.site-footer__col a { color: var(--ink-2); }
.wa-fab { box-shadow: var(--shadow); }

/* ---------- reveal (shared) ---------- */
.c-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.c-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .c-reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   HOME
   ============================================================ */
.c-wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.c-sec { padding-block: clamp(64px, 8vw, 112px); }
.c-sec + .c-sec { border-top: 1px solid var(--rule); }
.c-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.c-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* hero */
.c-hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px); overflow: hidden; }
.c-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(42% 60% at 85% 30%, var(--rust-soft), transparent 70%),
  radial-gradient(1px 1px at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
html[dir="rtl"] .c-hero::before { background:
  radial-gradient(42% 60% at 15% 30%, var(--rust-soft), transparent 70%),
  radial-gradient(1px 1px at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0) 0 0 / 26px 26px; }
.c-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.c-hero h1 { margin: 18px 0 22px; max-width: none; font-size: clamp(38px, 4.1vw, 58px); }
.c-hero h1 em { white-space: nowrap; }
html[lang="ar"] .c-hero h1 { max-width: 15ch; font-size: clamp(36px, 4.2vw, 58px); }
.c-hero__sub { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin: 0 0 30px; }
.c-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.c-chips li { display: inline-flex; align-items: center; gap: 8px; }
.c-chips li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--rust-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23B24E2B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* the signature moment: a bilingual site that flips EN ⇄ AR */
.c-stage { position: relative; perspective: 1400px; min-height: 420px; }
.c-browser { position: relative; z-index: 2; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 2px 4px rgba(21,20,15,.04), 0 40px 80px -30px rgba(21,20,15,.28); transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .9s var(--ease); overflow: hidden; }
html[dir="rtl"] .c-browser { --ry: 9deg; }
[data-theme="dark"] .c-browser { box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 40px 90px -30px rgba(0,0,0,.9); }
.c-browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--rule); background: var(--cream-2); direction: ltr; }
.c-browser__bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-3); }
.c-url { flex: 1; margin-inline: 10px; height: 26px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); font: 500 12px/26px var(--mono); color: var(--muted); padding-inline: 12px; overflow: hidden; white-space: nowrap; }
.c-url b { color: var(--rust); font-weight: 500; }
.c-pill { position: relative; display: inline-flex; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); padding: 2px; font: 600 11.5px/1 var(--sans); cursor: pointer; }
.c-pill span { position: relative; z-index: 1; padding: 6px 9px; border-radius: 999px; color: var(--muted); transition: color .4s; }
.c-pill::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease); }
.c-browser[data-lang="ar"] .c-pill::before { transform: translateX(100%); }
.c-browser[data-lang="en"] .c-pill span[data-l="en"], .c-browser[data-lang="ar"] .c-pill span[data-l="ar"] { color: var(--cream); }
.c-site { padding: 18px 20px 22px; transition: opacity .45s var(--ease), filter .45s var(--ease), transform .45s var(--ease); font-family: var(--sans); }
.c-site[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--sans); }
.c-browser.is-switching .c-site { opacity: 0; filter: blur(3px); transform: translateX(var(--sx, 10px)); }
.c-site__nav { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 20px; }
.c-site__logo { width: 64px; height: 14px; border-radius: 4px; background: var(--ink); opacity: .85; }
.c-site__links { flex: 1; }
.c-site__btn { padding: 6px 12px; border-radius: 999px; background: var(--rust); color: var(--on-rust); font-weight: 600; font-size: 11px; }
.c-site__hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: center; }
.c-site__copy h4 { font-family: inherit; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
.c-site[dir="rtl"] .c-site__copy h4 { letter-spacing: 0; line-height: 1.45; }
.c-site__copy p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.c-site__ctas { display: flex; gap: 8px; }
.c-site__ctas span { padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 11px; font-weight: 600; }
.c-site__ctas span.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.c-site__img { aspect-ratio: 4 / 3.4; border-radius: 10px; background:
  radial-gradient(60% 50% at 70% 35%, color-mix(in srgb, var(--rust) 45%, transparent), transparent 70%),
  linear-gradient(160deg, var(--cream-3), var(--cream-2)); position: relative; overflow: hidden; }
.c-site__img::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 34%; border-radius: 8px; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(2px); }
.c-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.c-site__cards div { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; font-size: 11px; font-weight: 600; }
.c-site__cards i { display: block; height: 6px; border-radius: 3px; background: var(--cream-3); margin-top: 7px; }
.c-site__cards i + i { width: 70%; }

.c-float { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); font-size: 12.5px; transition: transform 1.1s var(--ease); }
.c-float--estimate { right: -18px; bottom: -40px; padding: 14px 16px; min-width: 210px; transform: translate3d(var(--fx, 0), var(--fy, 0), 0); }
html[dir="rtl"] .c-float--estimate { right: auto; left: -18px; }
.c-float--estimate small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.c-float--estimate strong { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c-float--estimate em { font-style: normal; color: var(--sage); font-size: 11.5px; font-weight: 600; }
.c-float--phone { left: -38px; bottom: -34px; width: 128px; padding: 8px; border-radius: 22px; transform: translate3d(calc(var(--fx, 0) * -1.4), calc(var(--fy, 0) * -1.4), 0); }
html[dir="rtl"] .c-float--phone { left: auto; right: -38px; }
.c-phone { border-radius: 15px; background: var(--cream-2); padding: 12px 10px 14px; font-size: 9.5px; overflow: hidden; }
.c-phone b { display: block; font-size: 11px; line-height: 1.35; margin: 8px 0 6px; }
.c-phone i { display: block; height: 5px; border-radius: 3px; background: var(--cream-3); margin-top: 5px; }
.c-phone i:nth-of-type(2) { width: 75%; }
.c-phone span { display: inline-block; margin-top: 9px; padding: 4px 9px; border-radius: 999px; background: var(--rust); color: var(--on-rust); font-weight: 600; }
.c-phone__top { height: 4px; width: 34px; border-radius: 3px; background: var(--cream-3); margin: 0 auto; }
.c-stage__note { position: absolute; z-index: 3; top: -12px; left: 18px; font: 500 11px/1 var(--mono); color: var(--muted); background: var(--cream); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--rule); }
html[dir="rtl"] .c-stage__note { left: auto; right: 18px; }

/* trust strip */
.c-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.c-trust > div { padding: 24px 24px 26px; }
.c-trust > div + div { border-inline-start: 1px solid var(--rule); }
.c-trust b { display: block; font: 600 18px/1.3 var(--display); letter-spacing: -.015em; margin-bottom: 6px; }
.c-trust p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* services */
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.c-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.c-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rust-soft); color: var(--rust); }
.c-card h3 { margin: 0; font-size: 22px; }
.c-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.c-card__price { font: 600 14px/1.4 var(--sans); color: var(--ink); padding-top: 14px; border-top: 1px solid var(--rule); }
.c-card__price span { color: var(--muted); font-weight: 500; }
.c-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.c-card li { display: flex; gap: 9px; align-items: baseline; }
.c-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); flex: none; transform: translateY(-2px); }
.c-card__go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--rust); font-size: 15px; }
.c-also { margin-top: 26px; font-size: 15px; color: var(--muted); }
.c-also a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.c-also a:hover { color: var(--rust); text-decoration-color: currentColor; }

/* pricing */
.c-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.c-price { padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); display: grid; gap: 8px; align-content: start; }
.c-price small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.c-price strong { white-space: nowrap; font: 600 clamp(21px, 1.95vw, 27px)/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.c-price strong span { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-inline-end: 4px; }
.c-price p { margin: 0; font-size: 14px; color: var(--ink-2); }
.c-price--hl { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.c-price--hl small, .c-price--hl p, .c-price--hl strong span { color: color-mix(in srgb, var(--cream) 72%, transparent); }
.c-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.c-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* steps */
.c-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.c-step { position: relative; padding-top: 58px; }
.c-step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--mono); background: var(--card); border: 1px solid var(--rule); color: var(--rust); z-index: 1; }
.c-step::after { content: ""; position: absolute; top: 20px; inset-inline-start: 40px; inset-inline-end: -18px; height: 1px; background: var(--rule); }
.c-step:last-child::after { display: none; }
.c-step h3 { margin: 0 0 8px; font-size: 19px; }
.c-step p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* proof + operator */
.c-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.c-panel { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); border: 1px solid var(--rule); background: var(--card); display: grid; gap: 14px; align-content: start; }
.c-panel h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); }
.c-panel p { margin: 0; color: var(--ink-2); }
.c-panel--soft { background: var(--rust-soft); border-color: transparent; }
.c-op { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.c-op img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: grayscale(.15); }
.c-arrow { font-weight: 600; color: var(--rust); }

/* faq */
.c-faq { max-width: 860px; }
.c-faq details { border-bottom: 1px solid var(--rule); }
.c-faq details:first-of-type { border-top: 1px solid var(--rule); }
.c-faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font: 600 18px/1.4 var(--display); letter-spacing: -.01em; }
html[lang="ar"] .c-faq summary { letter-spacing: 0; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--rust); transition: transform .3s var(--ease); flex: none; }
.c-faq details[open] summary::after { transform: rotate(45deg); }
.c-faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* closing band */
.c-cta { border-radius: calc(var(--radius) + 8px); background: var(--ink); color: var(--cream); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.c-cta::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rust) 55%, transparent), transparent 65%); opacity: .55; pointer-events: none; }
.c-cta h2 { color: var(--cream); margin: 0 0 10px; }
.c-cta p { margin: 0; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.c-cta .c-hero__ctas { position: relative; z-index: 1; }
.c-cta .btn-secondary { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 30%, transparent); }
.c-cta .btn-secondary:hover { border-color: var(--cream); color: var(--cream); }
[data-theme="dark"] .c-cta { background: var(--card); border: 1px solid var(--rule); color: var(--ink); }
[data-theme="dark"] .c-cta h2 { color: var(--ink); }
[data-theme="dark"] .c-cta p { color: var(--ink-2); }
[data-theme="dark"] .c-cta .btn-secondary { color: var(--ink); border-color: var(--rule); }

.c-software { font-size: 14.5px; color: var(--muted); max-width: 820px; }
.c-software h2 { font-size: 13px; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
html[lang="ar"] .c-software h2 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.c-software a { text-decoration: underline; text-underline-offset: 3px; }

/* responsive */
@media (max-width: 1060px) {
  .c-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-trust > div:nth-child(3) { border-inline-start: 0; }
  .c-trust > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .c-hero__grid { grid-template-columns: 1fr; }
  .c-stage { min-height: 0; margin: 12px 8px 30px; }
  .c-cards, .c-split { grid-template-columns: 1fr; }
  .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .c-step:nth-child(2)::after { display: none; }
  .c-cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .c-trust, .c-prices, .c-steps { grid-template-columns: 1fr; }
  .c-trust > div + div { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .c-step::after { display: none; }
  .c-float--phone { display: none; }
  .c-float--estimate { right: 8px; bottom: -22px; min-width: 0; }
  html[dir="rtl"] .c-float--estimate { left: 8px; }
  .c-site__cards { grid-template-columns: repeat(2, 1fr); }
  .c-site__cards div:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .c-browser, .c-float { transition: none; }
}

/* fixes */
article.legal h2, article.legal h3 { font-style: normal; }
.contact-card--primary, .contact-card--primary p, .contact-card--primary span, .contact-card--primary div { color: var(--cream) !important; }
.contact-card--primary p, .contact-card--primary .contact-card__desc, .contact-card--primary .contact-card__sub { opacity: .78; }
[data-theme="dark"] .contact-card--primary { background: var(--rust); border-color: var(--rust); }
[data-theme="dark"] .contact-card--primary, [data-theme="dark"] .contact-card--primary * { color: var(--on-rust) !important; }

.seo-copy .seo-proof a, .c-panel--soft a, .c-panel--soft .c-arrow { color: var(--rust-2) !important; }
[data-theme="dark"] .seo-copy .seo-proof a, [data-theme="dark"] .c-panel--soft a { color: var(--rust-2) !important; }
