/* =========================================================================
   Warponic Studio: editorial / Swiss direction
   Flat colour blocks (paper, ink, violet), a 12-column grid, hairline rules.
   No glows, no gradients, no drop shadows. See design-system/warponic/MASTER.md
   ========================================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
/* IBM Plex Sans Arabic (SIL Open Font License, see assets/fonts/IBM-Plex-Sans-Arabic-OFL.txt).
   Arabic letters only, so Latin text keeps the brand fonts and English/French pages never download it. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 500 650;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 651 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f2efe8;
  --ink: #16131d;
  --violet: #5b2bff;
  --violet-deep: #3d17c9;
  --lilac: #cbbfff;
  --muted: #5e5866;          /* on paper: 5.97:1 */
  --muted-ink: #b9b3c4;      /* on ink: 9.0:1 */
  --rule: rgba(22, 19, 29, 0.16);
  --rule-ink: rgba(242, 239, 232, 0.16);
  --rule-violet: rgba(242, 239, 232, 0.4);
  --error-on-violet: #ffe08a;
  --ok: #1f7a45;

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Arabic: IBM Plex Sans Arabic, served from this site; system Arabic fonts only as a fallback */
  --font-arabic: "IBM Plex Sans Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;

  --pad: clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --max: 1440px;
  --header-h: 64px;
  --section-y: clamp(96px, 13vw, 184px);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--violet); color: var(--paper); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.work :focus-visible, .membership :focus-visible, .site-footer :focus-visible { outline-color: var(--lilac); }
.contact :focus-visible, .ticker :focus-visible { outline-color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-violet { background: var(--violet); color: var(--paper); }
.btn-violet:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--violet); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.link-btn:hover { color: var(--violet); }
.play-dot {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
}
.play-dot::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  border-left: 9px solid var(--paper);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242, 239, 232, 0.92);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.06em; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 550;
  font-size: 0.97rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 12px calc(100% - 10px);
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s ease;
}
.nav-list a:hover { background-size: calc(100% - 24px) 1.5px; }
.nav-list a[aria-current="true"] { color: var(--violet); background-size: calc(100% - 24px) 1.5px; }
.nav-cta-mobile { display: none; }
.menu-toggle {
  display: none;
  min-height: 44px;
  min-width: 64px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { margin-left: auto; }
  .header-cta + .menu-toggle { margin-left: 0; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 12px var(--pad) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    min-height: 60px;
    padding: 0;
    font-size: 1.9rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    border-bottom: 1px solid var(--rule);
    background-image: none;
  }
  .nav-cta-mobile { display: block; margin-top: 18px; }
  .nav-cta-mobile .btn { width: 100%; font-size: 1.05rem; letter-spacing: 0; border: 0; min-height: 56px; }
}
@media (max-width: 599px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto !important; }
}

/* ---------- language switch (EN / FR / AR) ---------- */
.lang-switch { display: flex; align-items: center; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 40px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.lang-switch a[lang="ar"] { font-family: var(--font-arabic); font-size: 0.95rem; letter-spacing: 0; }
.lang-switch a:hover { color: var(--violet); }
@media (max-width: 1023px) {
  .lang-switch { margin-left: auto; }
  .lang-switch ~ .header-cta, .lang-switch ~ .menu-toggle { margin-left: 0 !important; }
}
@media (max-width: 599px) {
  .header-inner { gap: 12px; }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  html[lang="fr"] .header-inner { gap: 12px; }
  html[lang="fr"] .nav-list a { padding: 0 8px; white-space: nowrap; background-position: 8px calc(100% - 10px); }
  html[lang="fr"] .nav-list a:hover, html[lang="fr"] .nav-list a[aria-current="true"] { background-size: calc(100% - 16px) 1.5px; }
}

/* ---------- section scaffolding ---------- */
.section { position: relative; padding-block: var(--section-y); }
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-label { grid-column: 1 / span 3; padding-top: 0.6em; color: var(--muted); }
.sec-head-main { grid-column: 4 / -1; }
.sec-title {
  font-weight: 750;
  font-size: clamp(2.3rem, 5.4vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 17ch;
  text-wrap: balance;
}
.sec-lead { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); }
[data-split] > div { padding: 0 0.08em 0.1em; margin: 0 -0.08em -0.1em; }
@media (max-width: 899px) {
  .sec-head { grid-template-columns: 1fr; row-gap: 18px; }
  .sec-label, .sec-head-main { grid-column: 1 / -1; padding-top: 0; }
}

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + 28px); }
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 1px;
}
.hero-title {
  margin-top: clamp(40px, 7vw, 104px);
  font-weight: 800;
  font-size: clamp(2.75rem, 8.6vw, 9.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.ht-line { display: block; padding: 0.08em 0.02em 0.1em; margin: -0.08em 0 -0.1em; text-wrap: balance; }
.js .ht-line { overflow: hidden; }
.ht-in { display: inline-block; }
.hero-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.035em;
  color: var(--violet);
}
.hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero-intro { grid-column: 1 / span 6; max-width: 46ch; font-size: clamp(1.08rem, 1.35vw, 1.25rem); }
.hero-actions {
  grid-column: 8 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 28px;
}
.js:not(.anim-off) [data-hero] { visibility: hidden; }
@media (max-width: 899px) {
  .hero-intro, .hero-actions { grid-column: 1 / -1; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- reel ---------- */
.reel { position: relative; }
.reel-clip { position: relative; aspect-ratio: 16 / 9; max-height: 92vh; width: 100%; overflow: hidden; background: var(--ink); }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-hit { position: absolute; inset: 0; border: 0; background: transparent; }
.reel-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 116px;
  height: 116px;
  margin: -58px 0 0 -58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
  transform: scale(0);
}
@media (hover: hover) and (pointer: fine) { .reel-hit { cursor: none; } }
@media (hover: none) {
  .reel-cursor { left: auto; top: auto; right: 16px; bottom: 16px; margin: 0; width: 84px; height: 84px; transform: none; }
}
.reel-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; color: var(--muted); }

/* ---------- ticker ---------- */
.ticker { background: var(--violet); color: var(--paper); overflow: hidden; padding-block: clamp(18px, 2.4vw, 32px); }
.ticker-track { display: flex; width: max-content; }
.ticker-list { display: flex; flex: none; align-items: baseline; }
.ticker-list li {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.ticker-list li em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.03em; }
.ticker-list li::after { content: ""; flex: none; align-self: center; width: 0.16em; height: 0.16em; margin: 0 0.5em; border-radius: 50%; background: currentColor; opacity: 0.55; }
.ticker.is-static .ticker-track { width: auto; }
.ticker.is-static .ticker-list { flex-wrap: wrap; padding-inline: var(--pad); }

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--ink); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
  transition: color 0.35s ease;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  z-index: -1;
  background: var(--violet);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.svc-num { grid-column: 1 / span 1; color: var(--muted); }
.svc-main { grid-column: 2 / span 6; transition: transform 0.5s var(--ease); }
.svc-name { font-weight: 750; font-size: clamp(1.8rem, 3.9vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; }
.svc-name a { text-decoration: none; }
.svc-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-desc { margin-top: 10px; max-width: 50ch; color: var(--muted); transition: color 0.35s ease; }
.svc-tools { grid-column: 9 / span 2; color: var(--muted); transition: color 0.35s ease; }
.svc-time { grid-column: 11 / span 2; text-align: right; color: var(--violet); transition: color 0.35s ease; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { color: var(--paper); }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc-main { transform: translateX(14px); }
  .svc:hover .svc-desc, .svc:hover .svc-tools, .svc:hover .svc-num, .svc:hover .svc-time { color: var(--paper); }
}
.svc:focus-within { color: var(--paper); }
.svc:focus-within::before { transform: scaleY(1); }
.svc:focus-within .svc-desc, .svc:focus-within .svc-tools, .svc:focus-within .svc-num, .svc:focus-within .svc-time { color: var(--paper); }
.svc-name a:focus-visible { outline-color: var(--paper); }
.svc-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: clamp(240px, 22vw, 340px);
  aspect-ratio: 16 / 9;
  margin: -96px 0 0 24px;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  background: var(--ink);
}
.svc-preview video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .svc { grid-template-columns: auto 1fr; row-gap: 10px; }
  .svc-num { grid-column: 1; }
  .svc-main { grid-column: 2; }
  .svc-tools { grid-column: 2; }
  .svc-time { grid-column: 2; text-align: left; }
  .svc-preview { display: none; }
}

/* ---------- work (ink): shown on request ---------- */
.work { background: var(--ink); color: var(--paper); }
.work .sec-head { border-top-color: var(--rule-ink); }
.work .sec-label, .work .sec-lead { color: var(--muted-ink); }
.ask { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; border-top: 1px solid var(--paper); padding-top: 28px; }
.ask-pick { grid-column: 1 / span 7; }
.ask-side { grid-column: 9 / -1; }
.ask-label { color: var(--lilac); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ask-chip {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--rule-violet);
  border-radius: 999px;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ask-chip:hover { background: var(--violet); border-color: var(--violet); color: var(--paper); }
.ask-hint { margin-top: 20px; color: var(--muted-ink); }
.ask-list { margin-top: 18px; border-top: 1px solid var(--rule-ink); }
.ask-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule-ink); font-size: 1.05rem; line-height: 1.45; }
.ask-list .mono { color: var(--lilac); padding-top: 0.2em; flex: none; }
.ask-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.work .direct-link { border-color: var(--rule-violet); }
.work .direct-link:hover { background: var(--violet); border-color: var(--violet); color: var(--paper); }
@media (max-width: 899px) {
  .ask-pick, .ask-side { grid-column: 1 / -1; }
}

/* ---------- process (paper) ---------- */
.process-viewport { position: relative; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.step { padding-top: 22px; border-top: 1px solid var(--ink); }
.step-day { display: flex; align-items: baseline; gap: 12px; }
.step-day em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 6.4vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--violet);
}
.step-day .mono { color: var(--muted); }
.step h3 { margin-top: 22px; font-weight: 750; font-size: clamp(1.5rem, 2.1vw, 2rem); letter-spacing: -0.035em; }
.step p:not(.step-day) { margin-top: 10px; max-width: 34ch; color: var(--muted); }
.process-line { display: none; }
.process.is-horizontal { padding-block: 0; }
.process.is-horizontal .process-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 32px) 56px;
}
.process.is-horizontal .sec-head { margin-bottom: 56px; }
.process.is-horizontal .process-viewport { overflow: hidden; }
.process.is-horizontal .process-line {
  display: block;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto 0;
  padding-inline: var(--pad);
}
.process.is-horizontal .process-line span { display: block; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: 0 50%; }
.process.is-horizontal .steps {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  gap: 0;
  padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2));
}
.process.is-horizontal .step { width: clamp(320px, 29vw, 440px); padding: 26px 40px 0 0; border-top: 0; }
.process.is-horizontal .step + .step { padding-left: 32px; border-left: 1px solid var(--rule); }
.step.is-active h3 { color: var(--violet); }

/* ---------- membership (ink) ---------- */
.membership { background: var(--ink); color: var(--paper); }
.membership .sec-head { border-top-color: var(--rule-ink); }
.membership .sec-label, .membership .sec-lead { color: var(--muted-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper); }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 36px) clamp(30px, 3vw, 44px);
  border-right: 1px solid var(--rule-ink);
}
.plan:first-child { padding-left: 0; }
.plan:last-child { border-right: 0; padding-right: 0; }
.plan-hl { background: var(--violet); padding-left: clamp(20px, 2.4vw, 36px) !important; padding-right: clamp(20px, 2.4vw, 36px) !important; border-right: 0; }
.plan-kicker { color: var(--lilac); }
.plan-hl .plan-kicker { color: var(--paper); }
.plan-name { margin-top: 18px; font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: 0.95; letter-spacing: -0.05em; }
.plan-list { margin: 30px 0 40px; }
.plan-list li { padding: 13px 0; border-top: 1px solid var(--rule-ink); }
.plan-hl .plan-list li { border-top-color: var(--rule-violet); }
.plan-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}
.plan-cta span { transition: transform 0.35s var(--ease); }
.plan-cta:hover span { transform: translateX(4px); }
.plans-note { margin-top: 32px; color: var(--muted-ink); }
.plans-note a { color: var(--lilac); text-underline-offset: 4px; }
@media (max-width: 899px) {
  .plans { grid-template-columns: 1fr; }
  .plan, .plan:first-child, .plan:last-child { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule-ink); }
  .plan-hl { margin-inline: calc(var(--pad) * -1); padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
}

/* ---------- about (paper) ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: end; }
.about-portrait { grid-column: 4 / span 4; margin: 0; }
.about-portrait img, .portrait-slot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.portrait-slot { display: grid; place-items: center; align-content: center; gap: 16px; background: var(--violet); color: var(--paper); }
.portrait-slot svg { width: 34%; height: auto; }
.about-body { grid-column: 8 / -1; }
.about-role { color: var(--muted); }
.about-name { margin-top: 12px; font-weight: 800; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 0.95; letter-spacing: -0.045em; }
.about-bio { margin-top: 22px; max-width: 44ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.45; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--ink); }
.about-facts > div { padding-block: 16px; padding-inline: 0 16px; border-bottom: 1px solid var(--rule); }
.about-facts dt { color: var(--muted); }
.about-facts dd { margin: 6px 0 0; font-weight: 600; }
.about-facts a { color: var(--violet); text-underline-offset: 3px; }
@media (max-width: 899px) {
  .about-portrait { grid-column: 1 / span 8; }
  .about-body { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .about-portrait { grid-column: 1 / -1; }
}
/* yellow highlight = placeholder text to replace before launch */
.ph { background: #fff1a8; color: var(--ink); box-shadow: 0 0 0 3px #fff1a8; border-radius: 2px; }

/* ---------- references (violet): a past client, on request ---------- */
.references { background: var(--violet); color: var(--paper); }
.references .sec-head { border-top-color: var(--rule-violet); }
.references .sec-label, .references .sec-lead { color: var(--paper); }
.references :focus-visible { outline-color: var(--paper); }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper); }
.ref {
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 36px) clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--rule-violet);
}
.ref:first-child { padding-left: 0; }
.ref:last-child { padding-right: 0; border-right: 0; }
.ref-title {
  margin-top: clamp(28px, 3.4vw, 48px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ref p { margin-top: 14px; max-width: 32ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.45; }
.refs-cta { margin-top: clamp(40px, 5vw, 64px); }
.references .btn-ink:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 899px) {
  .refs { grid-template-columns: 1fr; }
  .ref, .ref:first-child, .ref:last-child { padding: 22px 0 28px; border-right: 0; border-bottom: 1px solid var(--rule-violet); }
  .ref-title { margin-top: 14px; }
}

/* ---------- legal pages (privacy) ---------- */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); border-bottom: 1px solid var(--rule); }
.legal { padding-block: clamp(56px, 9vw, 120px); }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.legal-head { grid-column: 1 / span 4; }
.legal-head h1 { font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 0.95; letter-spacing: -0.05em; }
.legal-head p { margin-top: 16px; color: var(--muted); }
.legal-body { grid-column: 6 / -1; max-width: 68ch; }
.legal-body h2 { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--rule); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -0.02em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { margin-top: 12px; line-height: 1.6; }
.legal-body ul { padding-left: 1.2em; list-style: disc; }
.legal-body li::marker { color: var(--violet); }
.legal-body a { color: var(--violet); text-underline-offset: 3px; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 26px; border-top: 1px solid var(--rule); color: var(--muted); }
.legal-foot a { text-decoration: none; }
.legal-foot a:hover { color: var(--violet); }
@media (max-width: 899px) {
  .legal-head, .legal-body { grid-column: 1 / -1; }
  .legal-body { margin-top: 40px; }
}

/* ---------- faq (paper) ---------- */
.faq-list { border-top: 1px solid var(--ink); }
@media (min-width: 900px) {
  .faq-list { margin-left: calc((100% + var(--gap)) * 3 / 12); }
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-weight: 650; font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.25; letter-spacing: -0.025em; }
.faq-item summary:hover h3 { color: var(--violet); }
.faq-sign { font-size: 1.6rem; line-height: 1; transition: transform 0.35s var(--ease); }
.faq-item[open] .faq-sign { transform: rotate(45deg); color: var(--violet); }
.faq-body p { max-width: 62ch; padding-bottom: 26px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-body { animation: faq-in 0.45s var(--ease); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contact (violet) ---------- */
.contact { background: var(--violet); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.contact-copy { grid-column: 1 / span 6; }
.contact .sec-label { color: var(--paper); }
.contact-title { margin-top: 22px; font-weight: 800; font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: 0.9; letter-spacing: -0.055em; text-wrap: balance; }
.contact-lead { margin-top: 28px; max-width: 40ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.contact-mail {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.contact-mail:hover { text-decoration-thickness: 4px; }
.contact-form { grid-column: 8 / -1; display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.field legend { margin-bottom: 10px; }
.field .opt { font-weight: 400; opacity: 0.88; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid var(--rule-violet);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 239, 232, 0.88); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F2EFE8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 20px;
  cursor: pointer;
}
.field select option { color: var(--ink); background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); box-shadow: 0 1.5px 0 var(--paper); }
.field [aria-invalid="true"] { border-bottom-color: var(--error-on-violet); }
.field-error { color: var(--error-on-violet); font-size: 0.92rem; }
.field-error:empty { display: none; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--rule-violet);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pick:hover span { border-color: var(--paper); }
.pick input:checked + span { background: var(--paper); color: var(--violet); border-color: var(--paper); }
.pick input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.contact .btn-ink:hover { background: var(--paper); color: var(--ink); }
.contact .btn-ink[disabled] { cursor: progress; background: var(--ink); color: var(--paper); opacity: 0.8; }
.form-status { padding: 14px 16px; border: 1px solid var(--rule-violet); border-radius: var(--radius); outline: none; }
.form-status.is-error { border-color: var(--error-on-violet); color: var(--error-on-violet); }
.form-status a, .form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: 0.92rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.direct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--rule-violet);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.direct-link:hover { background: var(--paper); color: var(--violet); border-color: var(--paper); }
.direct-num { font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .contact-copy, .contact-form { grid-column: 1 / -1; }
}

/* ---------- footer (ink) ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.footer-blurb { grid-column: 1 / span 6; max-width: 32ch; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em; }
.footer-nav { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 599px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-nav a { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 40px; padding-block: 10px; color: var(--muted-ink); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--paper); }
.footer-mark {
  margin-top: clamp(40px, 6vw, 80px);
  padding-inline: var(--pad);
  font-weight: 800;
  font-size: clamp(3.5rem, 21vw, 30rem);
  line-height: 0.74;
  letter-spacing: -0.075em;
  color: var(--violet);
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.2em; /* room for the descender of "p" */
}
.footer-mark span { display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 26px; padding-inline-end: 240px; border-top: 1px solid var(--rule-ink); color: var(--muted-ink); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 899px) {
  .footer-blurb, .footer-nav { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; padding-inline-end: 88px; }
}

/* ---------- reel dialog ---------- */
.reel-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible; }
.reel-dialog::backdrop { background: rgba(22, 19, 29, 0.94); }
.reel-dialog-inner { position: relative; padding-top: 56px; }
.reel-dialog video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; background: #000; }
.reel-close {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-violet);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
}
.reel-close:hover { background: var(--violet); border-color: var(--violet); }

/* ---------- service pages (/services/…, /fr/services/…, /ar/services/…) ----------
   Written with logical properties (inline-start/end) so they mirror on their own in Arabic. */
.svc-hero { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(64px, 8vw, 120px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 0.78rem; }
.crumbs li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-inline-end: 10px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.svc-hero .sec-label { margin-top: clamp(36px, 5vw, 72px); }
.svc-title {
  margin-top: 16px;
  max-width: 17ch;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.svc-hero-foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
  margin-top: clamp(32px, 4.4vw, 64px);
}
.svc-lead { grid-column: 1 / span 7; max-width: 54ch; font-size: clamp(1.1rem, 1.5vw, 1.32rem); }
.svc-hero-actions { grid-column: 9 / -1; justify-self: end; }
.svc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 6vw, 88px) 0 0; border-top: 1px solid var(--ink); }
.svc-facts > div { padding-block: 16px 18px; padding-inline-end: 16px; border-bottom: 1px solid var(--rule); }
.svc-facts dt { color: var(--muted); }
.svc-facts dd { margin: 6px 0 0; font-weight: 650; font-size: clamp(1.02rem, 1.35vw, 1.25rem); }

.build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.build-grid > li { padding-block: 26px 34px; padding-inline-end: clamp(12px, 2vw, 32px); border-bottom: 1px solid var(--rule); }
.build-grid h3 { font-weight: 750; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.build-grid p { margin-top: 10px; max-width: 38ch; color: var(--muted); }
/* the same grid where each title links to a service page (Tunisia page) */
.svc-links h3 a { text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--violet); transition: color 0.25s var(--ease); }
.svc-links h3 a:hover { color: var(--violet); }
html[dir="rtl"] .svc-links h3 a { text-underline-offset: 0.5em; } /* below the Arabic descenders, so the line is not cut */

.svc-steps-sec { background: var(--ink); color: var(--paper); }
.svc-steps-sec .sec-head { border-top-color: var(--rule-ink); }
.svc-steps-sec .sec-label, .svc-steps-sec .sec-lead { color: var(--muted-ink); }
.svc-steps-sec :focus-visible { outline-color: var(--paper); }
.svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper); }
.svc-steps > li { padding-block: 24px 34px; padding-inline-end: clamp(16px, 2.2vw, 32px); }
.svc-steps > li + li { padding-inline-start: clamp(16px, 2.2vw, 32px); border-inline-start: 1px solid var(--rule-ink); }
.svc-steps .mono { color: var(--lilac); }
.svc-steps h3 { margin-top: clamp(20px, 3vw, 44px); font-weight: 750; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.svc-steps p { margin-top: 10px; max-width: 34ch; color: var(--muted-ink); }

.incl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.incl-list > li { display: flex; gap: 14px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--rule); font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.incl-list > li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--violet); transform: translateY(-1px); }

.others { border-top: 1px solid var(--ink); }
.others a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
  font-weight: 750;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 0.25s ease;
}
.others a .mono { flex: none; min-width: 2.2em; font-weight: 400; font-size: 0.8rem; letter-spacing: 0; color: var(--muted); }
.others a .arr { margin-inline-start: auto; font-weight: 400; transition: transform 0.35s var(--ease); }
.others a:hover { color: var(--violet); }
.others a:hover .arr { transform: translateX(6px); }
[dir="rtl"] .others a:hover .arr { transform: translateX(-6px); }

@media (max-width: 1199px) {
  .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .svc-lead, .svc-hero-actions { grid-column: 1 / -1; justify-self: start; }
  .svc-facts { grid-template-columns: 1fr 1fr; }
  .build-grid, .incl-list { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr; }
  .svc-steps > li, .svc-steps > li + li { padding-inline: 0; border-inline-start: 0; border-bottom: 1px solid var(--rule-ink); }
}

/* ---------- guides (/guides/…, /fr/guides/…, /ar/guides/…) ---------- */
.guide-title { max-width: 20ch; font-size: clamp(2.4rem, 5.4vw, 5.6rem); }
.guide-lead { margin-top: clamp(24px, 3vw, 40px); }
.guide-body-sec { padding-top: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.toc { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); padding-top: 22px; }
.toc .mono { color: var(--muted); }
.toc ol { margin-top: 12px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding-block: 6px; color: var(--muted); font-size: 0.92rem; line-height: 1.35; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-mono); font-size: 0.75rem; padding-top: 0.15em; }
.toc a:hover { color: var(--violet); }
.prose { grid-column: 5 / span 7; padding-top: 22px; }
.prose h2 { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--header-h) + 20px); font-weight: 750; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.035em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; max-width: 64ch; font-size: clamp(1.05rem, 1.25vw, 1.15rem); line-height: 1.65; }
.prose > ul, .prose ul:not(.incl-list) { margin-top: 16px; display: grid; gap: 10px; max-width: 62ch; }
.prose ul:not(.incl-list) li { position: relative; padding-inline-start: 22px; line-height: 1.55; }
.prose ul:not(.incl-list) li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
.checklist { margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--ink); border-radius: 8px; scroll-margin-top: calc(var(--header-h) + 20px); }
.checklist h2 { margin-top: 0; }
.checklist .incl-list { margin-top: 18px; grid-template-columns: 1fr; }
.related {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  margin-top: 32px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.related .mono { grid-column: 1 / -1; color: var(--lilac); font-size: 0.78rem; }
.related-name { font-weight: 750; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; }
.related-lead { grid-column: 1; color: var(--muted-ink); }
.related .arr { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 1.6rem; transition: transform 0.35s var(--ease); }
.related:hover { background: var(--violet); }
.related:hover .mono, .related:hover .related-lead { color: var(--paper); }
.related:hover .arr { transform: translateX(6px); }
[dir="rtl"] .related:hover .arr { transform: translateX(-6px); }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(48px, 6vw, 88px); }
.guide-cards a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--ink); border-radius: 8px; text-decoration: none; transition: background-color 0.25s ease, color 0.25s ease; }
.guide-cards .mono { color: var(--muted); font-size: 0.78rem; }
.guide-card-title { font-weight: 750; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.guide-card-lead { color: var(--muted); }
.guide-card-cta { margin-top: auto; font-weight: 650; color: var(--violet); }
.guide-cards a:hover { background: var(--ink); color: var(--paper); }
.guide-cards a:hover .mono, .guide-cards a:hover .guide-card-lead { color: var(--muted-ink); }
.guide-cards a:hover .guide-card-cta { color: var(--lilac); }
@media (max-width: 899px) {
  .toc { position: static; grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
  .prose { grid-column: 1 / -1; }
  .guide-cards { grid-template-columns: 1fr; }
}
/* words joined by a non-breaking space (French "mot :" / "mot ?") stay on one line in animated headings */
.nb { white-space: nowrap; }
/* key points box at the top of a guide */
.takeaways { margin-top: clamp(28px, 3.4vw, 48px); max-width: 72ch; padding: clamp(18px, 2.4vw, 28px); border-inline-start: 4px solid var(--violet); border-radius: 4px; background: rgba(91, 43, 255, 0.07); }
.takeaways .mono { color: var(--violet); }
.takeaways ul { margin-top: 12px; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-inline-start: 22px; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.5; }
.takeaways li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
/* questions at the end of a guide */
.guide-faq { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--header-h) + 20px); }
.guide-faq h2 { margin-top: 0; }
.guide-faq .faq-list { margin: 18px 0 0 !important; }
/* guide cards outside the guides index: home pages, service pages, "more guides" */
.guides-teaser .guide-cards { margin-top: 0; }
.guides-more { margin-top: 28px; font-weight: 650; }
.guides-more a { color: var(--violet); text-underline-offset: 4px; }
.guides-more .arr { display: inline-block; transition: transform 0.35s var(--ease); }
.guides-more a:hover .arr { transform: translateX(4px); }
[dir="rtl"] .guides-more a:hover .arr { transform: translateX(-4px); }
html[dir="rtl"] .svc-title.guide-title { font-size: clamp(2.1rem, 4.4vw, 4.4rem); line-height: 1.3; }
html[dir="rtl"] .prose h2, html[dir="rtl"] .related-name, html[dir="rtl"] .guide-card-title { line-height: 1.4; }
html[dir="rtl"] .prose p { line-height: 1.85; }

/* ---------- concepts page (/concepts/, /fr/concepts/, /ar/concepts/) ---------- */
.concept-notice { margin-top: clamp(24px, 3vw, 40px); max-width: 74ch; padding: 16px 20px; border: 1px solid var(--ink); border-radius: 6px; font-size: 0.98rem; line-height: 1.5; }
.concept-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(40px, 5vw, 72px) 0 0; border-top: 1px solid var(--ink); }
.concept-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-block: 18px 22px; padding-inline-end: 16px; border-bottom: 1px solid var(--rule); }
.concept-stats dt { color: var(--muted); }
.concept-stats dd { margin: 0; font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.95; letter-spacing: -0.055em; color: var(--violet); }
.concepts-sec { padding-top: 0; }
.concepts-list { display: grid; gap: clamp(80px, 11vw, 168px); }
.concept-shot { margin: 0; border-radius: 10px; overflow: hidden; background: var(--ink); }
.concept-shot img { display: block; width: 100%; height: auto; }
.concept-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; margin-top: clamp(24px, 3vw, 40px); }
.concept-head { grid-column: 1 / span 4; }
.concept-tag { color: var(--violet); }
.concept-name { margin-top: 10px; font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.05em; }
.concept-idea { grid-column: 5 / span 4; }
.concept-ship { grid-column: 9 / -1; }
.concept-idea > .mono, .concept-ship > .mono { color: var(--muted); }
.concept-idea p:not(.mono) { margin-top: 10px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.5; }
.concept-ship .incl-list { margin-top: 2px; grid-template-columns: 1fr; border-top: 0; }
.concept-ship .incl-list > li { padding-block: 10px; font-size: 1rem; }
.concept-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 22px; border-top: 1px solid var(--ink); }
.concept-facts { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0; }
.concept-facts dt { color: var(--muted); }
.concept-facts dd { margin: 4px 0 0; font-weight: 650; }
.concept-facts a { color: inherit; text-underline-offset: 3px; }
.concept-facts a:hover { color: var(--violet); }
.concept-private { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 3.4vw, 44px); border-radius: 10px; background: var(--violet); color: var(--paper); }
.concept-private p { max-width: 26ch; font-weight: 750; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.concept-private .btn-ink:hover { background: var(--paper); color: var(--ink); }
.concept-private :focus-visible { outline-color: var(--paper); }
.concept-foot .btn, .concept-private .btn { max-width: 100%; white-space: normal; line-height: 1.2; padding-block: 14px; }
.reel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) var(--gap); }
.reel-grid figure { margin: 0; }
.reel-grid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.reel-grid figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; }
.reel-name { font-weight: 700; }
.reel-grid .mono { color: var(--muted-ink); font-size: 0.75rem; }
.work .guides-more a { color: var(--lilac); }
@media (max-width: 899px) {
  .concept-head, .concept-idea, .concept-ship { grid-column: 1 / -1; }
  .concept-stats { grid-template-columns: 1fr; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .reel-grid { grid-template-columns: 1fr; }
}
html[dir="rtl"] .concept-private p { line-height: 1.4; }
html[dir="rtl"] .concept-stats dd { line-height: 1.2; }

/* ---------- floating buttons: WhatsApp (phones) + AI assistant ---------- */
.float-btn {
  position: fixed;
  z-index: 90;
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 6px 24px rgba(22, 19, 29, 0.22);
  font: 600 0.95rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.2s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 7px var(--violet); }
.ai-launch { background: var(--ink); color: var(--paper); }
.ai-launch:hover { background: var(--violet); }
.wa-float { display: none; padding: 0; width: 56px; background: #1f7a45; color: #fff; }
@media (max-width: 899px) {
  .wa-float { display: inline-flex; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ai-launch { width: 56px; padding: 0; }
  .ai-launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.menu-open .float-btn, .menu-open .ai-panel, .ai-open .wa-float, .ai-open .ai-launch { opacity: 0; visibility: hidden; pointer-events: none; }

.ai-panel {
  position: fixed;
  z-index: 110;
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 32px));
  height: min(600px, calc(100dvh - 32px));
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(22, 19, 29, 0.28);
  overflow: hidden;
}
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; padding-inline: 18px 10px; background: var(--ink); color: var(--paper); }
.ai-title { font-weight: 700; }
.ai-badge { display: inline-block; margin-inline-start: 6px; padding: 2px 7px; border-radius: 4px; background: var(--violet); font-size: 0.7rem; vertical-align: 2px; }
.ai-close { min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-ink); border-radius: var(--radius); background: transparent; color: var(--paper); font-size: 0.78rem; cursor: pointer; }
.ai-close:hover { border-color: var(--paper); }
.ai-close:focus-visible { outline-color: var(--paper); }
.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 0.97rem; line-height: 1.5; }
.ai-msg p + p { margin-top: 8px; }
.ai-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--rule); border-end-start-radius: 4px; }
.ai-user { align-self: flex-end; background: var(--violet); color: var(--paper); border-end-end-radius: 4px; }
.ai-wait { color: var(--muted); }
.ai-msg a { color: var(--violet); }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.ai-suggest[hidden] { display: none; }
.ai-chip { min-height: 40px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 20px; background: transparent; color: var(--ink); font: 500 0.88rem/1.25 var(--font-sans); text-align: start; cursor: pointer; }
.ai-chip:hover { background: var(--ink); color: var(--paper); }
.ai-brief { margin: 0 14px 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--violet); border-radius: 8px; background: rgba(91, 43, 255, 0.08); color: var(--violet); font: 650 0.92rem/1.2 var(--font-sans); cursor: pointer; }
.ai-brief[hidden] { display: none; }
.ai-brief:hover { background: var(--violet); color: var(--paper); }
.ai-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--rule); }
.ai-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); font: 400 1rem/1.35 var(--font-sans); resize: none; }
.ai-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: transparent; }
.ai-send { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--violet); color: var(--paper); font: 600 0.95rem/1 var(--font-sans); cursor: pointer; }
.ai-send:hover { background: var(--ink); }
.ai-note { padding: 0 14px 12px; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.ai-note a { color: inherit; }
@media (max-width: 599px) {
  .ai-panel { inset-inline: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; height: calc(100dvh - 16px); }
}

/* ---------- Arabic, right to left (pages with <html lang="ar" dir="rtl">) ---------- */
/* Latin letters keep the brand fonts; Arabic letters fall through to the system Arabic font. */
html[dir="rtl"] {
  --font-sans: "Schibsted Grotesk", var(--font-arabic);
  --font-serif: "Schibsted Grotesk", var(--font-arabic);
  --font-mono: "JetBrains Mono", var(--font-arabic);
}
/* Arabic letters join up: no letter spacing, no slanted (italic) text */
html[dir="rtl"] * { letter-spacing: 0 !important; font-style: normal !important; }
html[dir="rtl"] .brand-name { letter-spacing: -0.06em !important; }
html[dir="rtl"] .footer-mark, html[dir="rtl"] .footer-mark span { letter-spacing: -0.075em !important; }
html[dir="rtl"] .contact-mail { font-family: "Newsreader", ui-serif, Georgia, serif; font-style: italic !important; letter-spacing: -0.02em !important; }
/* Arabic letters sit taller than Latin ones at the same size: smaller display sizes, roomier lines and masks */
html[dir="rtl"] .hero-title { font-size: clamp(2.3rem, 6.4vw, 6.8rem); line-height: 1.2; }
html[dir="rtl"] .ht-line { padding: 0.12em 0.02em 0.24em; margin: -0.12em 0 -0.24em; }
html[dir="rtl"] .sec-title { font-size: clamp(2rem, 4.3vw, 4.3rem); line-height: 1.3; }
html[dir="rtl"] .contact-title { font-size: clamp(2.4rem, 5.6vw, 5.8rem); line-height: 1.25; }
html[dir="rtl"] .svc-title { font-size: clamp(2.2rem, 5vw, 5.2rem); line-height: 1.25; }
html[dir="rtl"] .others a, html[dir="rtl"] .build-grid h3, html[dir="rtl"] .svc-steps h3 { line-height: 1.35; }
html[dir="rtl"] .svc-name, html[dir="rtl"] .ref-title, html[dir="rtl"] .ticker-list li { line-height: 1.35; }
html[dir="rtl"] .ticker-list li { font-size: clamp(2rem, 5.2vw, 4.8rem); }
html[dir="rtl"] .mono { text-transform: none; }
html[dir="rtl"] .footer-mark, html[dir="rtl"] .brand, html[dir="rtl"] .ticker-track { direction: ltr; }

[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .plan-cta:hover span { transform: translateX(-4px); }
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-list a { background-position: calc(100% - 12px) calc(100% - 10px); }
[dir="rtl"] .menu-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .status-dot { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .svc-time { text-align: left; }
[dir="rtl"] .process.is-horizontal .process-line span { transform-origin: 100% 50%; }
[dir="rtl"] .process.is-horizontal .step { padding: 26px 0 0 40px; }
[dir="rtl"] .process.is-horizontal .step + .step { padding-left: 40px; padding-right: 32px; border-left: 0; border-right: 1px solid var(--rule); }
[dir="rtl"] .plan { border-right: 0; border-left: 1px solid var(--rule-ink); }
[dir="rtl"] .plan:first-child { padding-left: clamp(20px, 2.4vw, 36px); padding-right: 0; }
[dir="rtl"] .plan:last-child { border-left: 0; padding-left: 0; padding-right: clamp(20px, 2.4vw, 36px); }
[dir="rtl"] .plan-hl { border-left: 0; }
[dir="rtl"] .ref { border-right: 0; border-left: 1px solid var(--rule-violet); }
[dir="rtl"] .ref:first-child { padding-left: clamp(20px, 2.4vw, 36px); padding-right: 0; }
[dir="rtl"] .ref:last-child { border-left: 0; padding-left: 0; padding-right: clamp(20px, 2.4vw, 36px); }
[dir="rtl"] .legal-body ul { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .field select { padding-right: 0; padding-left: 32px; background-position: left 2px center; }
[dir="rtl"] .hp { left: auto; right: -10000px; }
[dir="rtl"] .reel-close { right: auto; left: 0; }
@media (hover: none) {
  [dir="rtl"] .reel-cursor { right: auto; left: 16px; }
}
@media (hover: hover) and (pointer: fine) {
  [dir="rtl"] .svc:hover .svc-main { transform: translateX(-14px); }
}
@media (min-width: 900px) {
  [dir="rtl"] .faq-list { margin-left: 0; margin-right: calc((100% + var(--gap)) * 3 / 12); }
}
@media (max-width: 1023px) {
  [dir="rtl"] .header-cta { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .lang-switch ~ .header-cta, [dir="rtl"] .lang-switch ~ .menu-toggle { margin-right: 0 !important; }
}
@media (max-width: 899px) {
  [dir="rtl"] .svc-time { text-align: right; }
  [dir="rtl"] .plan, [dir="rtl"] .plan:first-child, [dir="rtl"] .plan:last-child { padding-left: 0; padding-right: 0; border-left: 0; }
  [dir="rtl"] .plan-hl { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
  [dir="rtl"] .ref, [dir="rtl"] .ref:first-child, [dir="rtl"] .ref:last-child { padding: 22px 0 28px; border-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- print: show what the scroll animations have not revealed yet ---------- */
@media print {
  [data-split] *, .svc, .ask-chips li, .ask-side > *, .about-body > *, .ref, .refs-cta, .plan, .faq-item, .step, .step-day em,
  .footer-mark span, .svc-facts > div, .build-grid > li, .svc-steps > li, .incl-list > li, .others > li, .guide-cards > li,
  .takeaways, .concept-shot, .reel-grid > li, .concept-stats > div {
    opacity: 1 !important; visibility: visible !important; transform: none !important;
  }
  .about-portrait > * { clip-path: none !important; }
  .float-btn, .ai-panel { display: none !important; }
}
