/* acode.tech homepage, immersive redesign (v2). No third-party request: fonts are self-hosted (SIL OFL 1.1).
   Logical properties everywhere: one layout serves LTR (en, fr) and RTL (ar). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/space-grotesk-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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/dm-sans-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: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(assets/fonts/cairo-arabic.woff2) format('woff2');
  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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour: acode identity (ink, cream, orange #ff6b35) */
  --ink: #151713;
  --ink-2: #20231d;
  --ink-3: #2b2f27;
  --cream: #e9e8df;
  --paper: #f5f4ee;
  --white: #fffefa;
  --orange: #ff6b35;
  --orange-hi: #ff8a5c;
  --rust: #a8390f;            /* accent text on light surfaces (orange fails contrast there) */
  --muted: #464940;
  --muted-on-ink: #c3c3b6;
  --line: #c9c8bc;
  --line-on-ink: #3a3d35;       /* decorative rules on ink */
  --edge-on-ink: #71756a;       /* boundary of a control on ink (3:1 and more) */
  --field-line: #6d7065;
  --danger: #a11a1a;
  --danger-bg: #fbeaea;
  --danger-text: #6f1010;
  --focus: #151713;

  /* Type */
  --head: 'Space Grotesk', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: clamp(2.7rem, 7.2vw, 7.25rem);
  --fs-h2: clamp(2.1rem, 5.4vw, 4.6rem);
  --fs-product: clamp(2.6rem, 7vw, 6rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-lead: clamp(1.0625rem, 1.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --lh-tight: 0.96;
  --lh-head: 1.04;
  --lh-body: 1.6;
  --track-tight: -0.04em;
  --track-label: 0.12em;

  /* Space (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --gutter: 20px;
  --section: clamp(72px, 11vw, 168px);
  --header-h: 60px;

  /* Shape */
  --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-pill: 999px;
  --shadow-card: 0 30px 60px -28px rgba(10, 12, 8, .55), 0 2px 0 rgba(255, 255, 255, .04) inset;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s; --t-mid: .45s; --t-slow: .9s;

  /* Layers */
  --z-stage: 0; --z-content: 1; --z-header: 30; --z-progress: 40; --z-skip: 50;
}
@media (min-width: 720px) { :root { --gutter: 40px; --header-h: 68px; } }
/* French: the longest word of the title (« Automatisation ») must fit the hero column without breaking. */
:lang(fr) { --fs-display: clamp(2.5rem, 6vw, 6.25rem); }
:lang(ar) {
  --lh-tight: 1.28; --lh-head: 1.32; --lh-body: 1.85; --track-tight: 0em; --track-label: 0em;
  --fs-label: 0.9375rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 28px); }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }   /* Lenis does the smoothing: never two smoothings at once */
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: var(--lh-head); letter-spacing: var(--track-tight); margin: 0; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-ink { --focus: #ffb499; }
.on-light { --focus: #151713; color: var(--ink); }
main > section:focus { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -90px; z-index: var(--z-skip);
  background: var(--orange); color: var(--ink); padding: 12px 18px; border-radius: var(--r-s); font-weight: 700;
}
.skip-link:focus { top: 12px; outline-color: var(--cream); }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }

.eyebrow {
  margin-block-end: var(--s-5);
  font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--rust);
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 2px; margin-inline-end: 12px; background: currentColor; }
.on-ink .eyebrow { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  font-family: var(--head); font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) ease, background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
:lang(ar) .btn { font-weight: 700; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-3); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--white); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.on-ink .btn-line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.arrow { display: inline-block; transition: transform var(--t-fast) ease; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .progress i { transform-origin: 100% 50%; }

/* ---------- Header: floating capsule ---------- */
.site-header { position: sticky; top: 0; height: 0; z-index: var(--z-header); --focus: #ffb499; }
.bar {
  position: absolute; inset-inline: 12px; top: 10px; margin-inline: auto; max-width: 1296px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 8px 6px 14px;
  background: rgba(21, 23, 19, .84); color: var(--cream); border: 1px solid var(--line-on-ink); border-radius: 30px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
[dir="rtl"] .bar { padding: 6px 14px 6px 8px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-family: var(--head); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand i { color: var(--orange); font-style: normal; }
.main-nav { order: 5; width: 100%; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0 2px; padding-block: 4px 6px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1rem; border-radius: var(--r-pill);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a[aria-current="true"] { background: var(--ink-3); color: var(--orange); }
.lang { margin-inline-start: auto; }
.lang ul { display: flex; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 8px;
  border-radius: var(--r-pill); text-decoration: none; font-family: var(--head); font-size: var(--fs-small); font-weight: 600;
}
.lang a:hover { color: var(--orange); }
.lang a[aria-current="true"] { background: var(--cream); color: var(--ink); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--orange); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nav-toggle .l1, .nav-toggle .l2 { transition: transform var(--t-fast) ease; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { transform: translateY(-3.5px) rotate(-45deg); }
html.js .main-nav:not(.is-open) { display: none; }
html.js .main-nav ul { flex-direction: column; }
html.js .main-nav a { width: 100%; font-size: 1.25rem; min-height: 52px; }
@media (min-width: 900px) {
  .bar { flex-wrap: nowrap; gap: 8px; padding-block: 8px; }
  .main-nav, html.js .main-nav:not(.is-open) { display: block; order: 0; width: auto; margin-inline-start: 22px; }
  .main-nav ul, html.js .main-nav ul { flex-direction: row; padding: 0; }
  html.js .main-nav a { width: auto; font-size: 1rem; min-height: 44px; }
  .nav-toggle { display: none; }
}

/* ---------- Stage (3D sculpture) ---------- */
.stage { position: absolute; inset: 0; z-index: var(--z-stage); pointer-events: none; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .7s ease; }
.stage.is-live { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; }
.stage.is-live canvas { opacity: 1; }
.stage-poster {
  position: absolute; top: 50%; inset-inline-end: -8%; width: min(62vw, 108vh); max-width: none;
  transform: translateY(-50%); transition: opacity .3s ease;
}
[dir="rtl"] .stage-poster { transform: translateY(-50%) scaleX(-1); }
/* One object at a time: the still image leaves before the canvas appears, and is removed once the scene is live.
   (animation: none matters: a filled keyframe animation would otherwise override opacity and keep the image visible.) */
.stage.is-swapping .stage-poster, .stage.is-live .stage-poster { animation: none; opacity: 0; }
.stage.is-live .stage-poster { display: none; }
@media (max-width: 759px), (max-aspect-ratio: 9/10) {
  .stage-poster { top: 1.5svh; inset-inline: 0; margin-inline: auto; width: min(90vw, 47svh); transform: none; }
  [dir="rtl"] .stage-poster { transform: scaleX(-1); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 40px) 96px; }
.hero-copy { position: relative; z-index: var(--z-content); max-width: 56%; }
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight); max-width: 9.6em; }
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
:lang(ar) .hero h1 .line { padding-block: 0.14em; margin-block: -0.1em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede { margin-block-start: var(--s-6); max-width: 31em; font-size: var(--fs-lead); color: var(--muted-on-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: var(--s-6); }
.scroll-cue {
  position: absolute; z-index: var(--z-content); inset-inline-start: var(--gutter); bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none;
  font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted-on-ink);
}
.scroll-cue:hover { color: var(--orange); }
.scroll-cue i { position: relative; width: 1px; height: 38px; background: var(--line-on-ink); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(-100%); }
@media (max-width: 759px), (max-aspect-ratio: 9/10) {
  .hero { justify-content: flex-end; padding-block: 41svh 76px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.3rem, 10.6vw, 4rem); }
  :lang(ar) .hero h1 { font-size: clamp(2.1rem, 9.6vw, 3.6rem); }
  .hero-lede { margin-block-start: var(--s-5); }
  .hero-actions { margin-block-start: var(--s-5); }
  .hero-copy::before { content: ""; position: absolute; inset: -60px calc(var(--gutter) * -1) -84px; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(21, 23, 19, .9) 70px); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 16px; white-space: nowrap; }
  }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 1.05s var(--ease-out) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
  .hero-lede, .hero-actions { animation: fade-up .9s var(--ease-out) both; }
  .hero-lede { animation-delay: .28s; } .hero-actions { animation-delay: .38s; }
  .stage-poster { animation: poster-in 1.4s var(--ease-out) both; }
  .scroll-cue i::after { animation: cue 2.4s var(--ease-io) 2; }   /* two passes, under 5 s (WCAG 2.2.2) */
}
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes poster-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: var(--z-content); background: var(--orange); color: var(--ink); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 2.25rem); letter-spacing: -0.02em; }
:lang(ar) .ticker-track { letter-spacing: 0; font-weight: 700; }
.ticker-track svg { width: .8em; height: .8em; flex: none; fill: none; stroke: currentColor; stroke-width: 6; }

/* ---------- Section heads ---------- */
.section-head { max-width: 58rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head > p:not(.eyebrow) { margin-block-start: var(--s-5); max-width: 36em; font-size: var(--fs-lead); color: var(--muted); }
.on-ink .section-head > p:not(.eyebrow) { color: var(--muted-on-ink); }

/* ---------- Themes ---------- */
.themes { position: relative; z-index: var(--z-content); }
.themes-intro { background: var(--cream); padding-block: var(--section) var(--s-8); border-radius: 0; }
.product { position: relative; overflow: clip; padding-block: var(--s-8) var(--section); }
.product--ocre { background: var(--cream); }
.product--ofoq { background: var(--ink); border-block-start: 1px solid var(--line-on-ink); padding-block-start: var(--section); }
.ghost {
  position: absolute; inset-inline-start: -2vw; top: 0; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--head); font-weight: 700; font-size: 27vw; line-height: .8; letter-spacing: -0.05em; color: rgba(21, 23, 19, .055);
}
:lang(ar) .ghost, .ghost:lang(ar) { letter-spacing: 0; line-height: 1.1; }
.on-ink .ghost { color: rgba(233, 232, 223, .05); }
.product-grid { position: relative; z-index: 1; display: grid; gap: var(--s-7); }
.product-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.product-index { font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--rust); }
.on-ink .product-index { color: var(--orange); }
.product-body h3 { margin-block-start: var(--s-3); font-size: var(--fs-product); line-height: var(--lh-tight); }
.product-body h3 small { display: inline-block; font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--rust); vertical-align: middle; margin-inline-start: .2em; }
.on-ink .product-body h3 small { color: var(--orange); }
.product-kind { margin-block-start: var(--s-4); font-family: var(--head); font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
:lang(ar) .product-kind { letter-spacing: 0; line-height: 1.5; }
.product-desc { margin-block-start: var(--s-4); max-width: 32em; color: var(--muted); }
.on-ink .product-desc { color: var(--muted-on-ink); }
.specs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: var(--s-6); }
.specs li {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--r-m);
  font-size: var(--fs-small); font-weight: 500; line-height: 1.3;
}
.on-ink .specs li { border-color: var(--line-on-ink); background: var(--ink-2); }
.specs b { font-family: var(--head); font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--rust); }
.on-ink .specs b { color: var(--orange); }
.sub { margin-block: var(--s-6) var(--s-3); font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.on-ink .sub { color: var(--muted-on-ink); }
.demo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--edge-on-ink); text-decoration: none; font-size: var(--fs-small); font-weight: 500;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.demo-list a::after { content: "↗"; font-family: var(--head); color: var(--orange); transition: transform var(--t-fast) ease; }
[dir="rtl"] .demo-list a::after { content: "↖"; }
.demo-list a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.demo-list a:hover::after { color: var(--rust); transform: translate(2px, -2px); }
[dir="rtl"] .demo-list a:hover::after { transform: translate(-2px, -2px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-commerce="buy"] { max-width: 100%; }

/* ---------- Commerce module (commerce/, not owned by this stylesheet): fitting it into this page ---------- */
/* The banner stays above the fixed 3D stage. */
[data-commerce="banner"] { position: relative; z-index: var(--z-content); }
/* The module is drawn for a light surface. On the ink surface (Ofoq) its tokens are remapped so that the price,
   the notes and the focus ring stay readable; its own paper cards keep the light values. */
.on-ink .acc-buy { --acc-ink: var(--cream); --acc-cream: var(--ink); --acc-muted: var(--muted-on-ink); --acc-line: var(--line-on-ink); color: var(--cream); }
.on-ink .acc-buy .acc-btn-primary { color: var(--ink); }
.on-ink .acc-buy .acc-alt { --acc-ink: var(--ink); --acc-cream: var(--cream); --acc-muted: var(--muted); color: var(--ink); }
.product-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: var(--s-6); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: var(--s-4); font-weight: 600; color: var(--rust); text-underline-offset: 4px; }
.more-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.more-links .text-link { margin-block-start: 0; }
.on-ink .text-link { color: var(--orange); }
.text-link:hover { color: inherit; }

/* Screenshot deck */
.deck { position: relative; min-width: 0; perspective: 1500px; padding-block: 7% 17%; }
.deck-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease-out); }
.deck-card {
  display: block; margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); color: inherit; text-decoration: none;
  border: 1px solid rgba(21, 23, 19, .16); box-shadow: var(--shadow-card);
}
.on-ink .deck-card { border-color: var(--line-on-ink); }
.deck-card::before {
  content: ""; display: block; height: 22px; background-color: var(--ink-2);
  background-image: radial-gradient(circle at 14px 11px, var(--orange) 3.5px, transparent 4px), radial-gradient(circle at 28px 11px, #6d7065 3.5px, transparent 4px), radial-gradient(circle at 42px 11px, #6d7065 3.5px, transparent 4px);
}
.deck-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.deck-a { width: 86%; margin-inline-start: 7%; }
.deck-b, .deck-c { position: absolute; z-index: 2; }
.deck-b { width: 46%; inset-inline-start: 0; bottom: -17%; }
.deck-c { width: 40%; inset-inline-end: 0; top: -9%; }
.deck-b, .deck-c { transform: translateZ(50px); }
@media (min-width: 900px) {
  .product-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .product-body, .deck { position: sticky; top: calc(var(--header-h) + 44px); }
  .product--ofoq .product-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .product--ofoq .deck { order: -1; }
  .deck { margin-block-start: 5vh; }
}

/* ---------- After purchase ---------- */
.after { position: relative; z-index: var(--z-content); padding-block: var(--section); }
.after .wrap > * { max-width: 46rem; }
.steps { display: grid; gap: var(--s-4); margin-block-start: var(--s-7); counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: var(--s-5);
  border: 1px solid var(--line-on-ink); border-radius: var(--r-l); background: rgba(32, 35, 29, .92);
}
.step-n { grid-row: span 3; font-family: var(--head); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: .9; letter-spacing: -0.05em; color: var(--orange); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--muted-on-ink); }
.step .text-link { margin-block-start: 2px; }

/* ---------- Services ---------- */
.services { position: relative; z-index: var(--z-content); background: var(--cream); padding-block: var(--section); border-radius: var(--r-l) var(--r-l) 0 0; }
.sectors { display: grid; gap: var(--s-5); margin-block-start: var(--s-8); }
.sector {
  display: grid; gap: var(--s-5); padding: clamp(24px, 4vw, 56px); border-radius: var(--r-l); transform-origin: 50% 0;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 -18px 40px -30px rgba(10, 12, 8, .5);
}
.sector--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); --focus: #ffb499; }
.sector--orange { background: var(--orange); border-color: var(--orange); }
.sector-head { display: flex; flex-direction: column; gap: var(--s-4); }
.sector-icon { width: 64px; height: 64px; padding: 14px; border-radius: var(--r-m); background: var(--ink); }
.sector--ink .sector-icon { background: var(--orange); }
.sector-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sector--ink .sector-icon svg { stroke: var(--ink); }
.sector-tag { font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.sector--ink .sector-tag { color: var(--muted-on-ink); }
.sector--orange .sector-tag { color: var(--ink); }
.sector h3 { font-size: clamp(2.2rem, 5.6vw, 4.5rem); line-height: var(--lh-tight); }
.sector ul { display: grid; align-content: start; }
.sector li {
  padding-block: 14px; border-block-start: 1px solid currentColor; font-family: var(--head); font-size: clamp(1.0625rem, 1.9vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
}
:lang(ar) .sector li { letter-spacing: 0; line-height: 1.6; }
.sector li:last-child { border-block-end: 1px solid currentColor; }
.services-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: var(--s-8); }
.services-foot p { flex: 1 1 18rem; font-family: var(--head); font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
:lang(ar) .services-foot p { letter-spacing: 0; line-height: 1.5; }
@media (min-width: 900px) {
  .sector { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); min-height: 58vh; align-items: center; }
}
@media (min-height: 680px) {
  .sector { position: sticky; top: calc(var(--header-h) + 26px); }
  .sector:nth-child(2) { top: calc(var(--header-h) + 42px); }
  .sector:nth-child(3) { top: calc(var(--header-h) + 58px); }
}

/* ---------- Quote ---------- */
.quote { position: relative; z-index: var(--z-content); padding-block: var(--section); }
.quote-grid { display: grid; gap: var(--s-6); }
.quote-intro h2 { font-size: var(--fs-h2); }
.quote-intro > p:not(.eyebrow) { margin-block-start: var(--s-5); color: var(--muted-on-ink); font-size: var(--fs-lead); }
.quote-intro .quote-alt { font-size: 1rem; }
.quote-intro a { color: var(--cream); text-underline-offset: 4px; display: inline-block; padding-block: 10px; }
.quote-intro a:hover { color: var(--orange); }
.form-card { --focus: #151713; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-card); }
.form-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.form-note { font-size: var(--fs-small); color: var(--muted); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 1rem; }
.req { color: var(--rust); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-s);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[dir="ltr"] { text-align: start; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; box-shadow: 0 0 0 3px rgba(161, 26, 26, .14); }
.hint { font-size: var(--fs-small); color: var(--muted); }
.row { display: grid; gap: 16px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; min-height: 44px; padding-block: 6px; cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent span { font-weight: 500; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: var(--r-s); border: 2px solid var(--danger); background: var(--danger-bg); color: var(--danger-text); font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-start: 20px; }
.form-progress { font-size: var(--fs-small); color: var(--muted); }
.form-success h3 { font-size: 1.8rem; }
.form-success p { margin-block-start: 10px; color: var(--muted); }
.noscript-note { margin-block-start: 14px; padding: 12px 14px; border-radius: var(--r-s); border: 2px solid var(--ink); font-weight: 500; }
@media (min-width: 640px) { .form-card { padding: 36px; } .row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; } .quote-intro { position: sticky; top: calc(var(--header-h) + 44px); } }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: var(--z-content); padding-block: var(--section) var(--s-8); }
.contact-rows { margin-block-start: var(--s-7); border-block-start: 1px solid var(--line-on-ink); }
.contact-rows a {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding-block: 22px;
  border-block-end: 1px solid var(--line-on-ink); text-decoration: none; transition: color var(--t-fast) ease, padding var(--t-mid) var(--ease-out);
}
.contact-rows .k { grid-column: 1 / -1; font-family: var(--head); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--orange); }
.contact-rows .v { justify-self: start; font-family: var(--head); font-size: clamp(1.45rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; direction: ltr; unicode-bidi: isolate; }
.contact-rows .go { font-family: var(--head); font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--orange); transition: transform var(--t-mid) var(--ease-out); }
.contact-rows a:hover { color: var(--orange); padding-inline-start: 14px; }
.contact-rows a:hover .go { transform: translate(6px, -6px); }
[dir="rtl"] .contact-rows .go { transform: scaleX(-1); }
[dir="rtl"] .contact-rows a:hover .go { transform: scaleX(-1) translate(6px, -6px); }
[dir="rtl"] .contact-rows .k { text-align: right; }
@media (min-width: 900px) { .contact .wrap > * { max-width: 60%; } }

/* ---------- Footer / finale ---------- */
.site-footer { position: relative; z-index: var(--z-content); --focus: #ffb499; color: var(--muted-on-ink); font-size: var(--fs-small); overflow: clip; }
.finale { display: flex; align-items: flex-end; justify-content: center; padding-block-start: var(--s-7); }
html.stage-live .finale { min-height: 88vh; min-height: 88svh; }
.wordmark {
  font-family: var(--head); font-weight: 700; font-size: 27vw; line-height: .78; letter-spacing: -0.06em; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(233, 232, 223, .34); direction: ltr;
}
.wordmark i { font-style: normal; -webkit-text-stroke-color: var(--orange); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 22px; border-block-start: 1px solid var(--line-on-ink); background: var(--ink); }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 0 6px; margin-inline: -8px; }
.footer-row a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 8px; color: var(--cream); text-underline-offset: 4px; }
.footer-row a:hover { color: var(--orange); }

/* ---------- Scroll reveals (only once JS has confirmed motion) ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
html.motion [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
html.motion [data-reveal="clip"].is-in { clip-path: inset(0 0 -20% 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:hover .arrow { transform: none; }
  [dir="rtl"] .btn:hover .arrow { transform: scaleX(-1); }
  .deck-tilt { transform: none; }
}
@media (forced-colors: active) {
  .ghost, .wordmark { display: none; }
  .btn, .demo-list a, .specs li { border: 1px solid ButtonText; }
}

/* ---------- ShipConnect for WooCommerce (free plugin card, third product; additive rules only) ---------- */
.product--shipconnect { background: var(--paper); padding-block-start: var(--section); }
.product--shipconnect .ghost { font-size: 19vw; }                 /* an 11-letter name: smaller than the 4-letter ones */
.product--shipconnect .product-body h3 { font-size: clamp(2.2rem, 4.6vw, 4rem); }   /* keeps "ShipConnect" on one line inside the text column */
.product--shipconnect .product-body h3 small { display: block; margin-inline-start: 0; margin-block-start: .3em; }   /* "for WooCommerce" on its own line */
.product--shipconnect .deck-a::before { display: none; }          /* the main card is a composed visual, not a browser screenshot */
.product--shipconnect .deck-a img { aspect-ratio: 4 / 3; }
/* The main visual is not mirrored in RTL, so the two small cards keep their physical corners (empty areas of the visual). */
[dir="rtl"] .product--shipconnect .deck-b { inset-inline: auto 0; }
[dir="rtl"] .product--shipconnect .deck-c { inset-inline: 0 auto; }
.badge-free {
  display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--orange); color: var(--ink); line-height: 1.5;
}
@media (forced-colors: active) {
  .badge-free { border: 1px solid ButtonText; }
}
