/* ==========================================================================
   Local Mindset Consulting
   Palette: Najd limestone, Al Sadu madder, warm ink. One accent only.
   Type: Noto Kufi Arabic + IBM Plex Sans Arabic (AR), IBM Plex Sans + IBM Plex Mono (EN)
   ========================================================================== */

:root {
  /* Surfaces & text on light */
  --paper: #F4F0E8;
  --paper-2: #EBE5D8;
  --paper-hi: #FAF7F1;
  --line: #D8CFBE;
  --line-strong: #B9AE9A;
  --text: #1B1915;
  --text-2: #5C5448;
  --text-3: #73695A;

  /* Surfaces & text on dark */
  --ink: #1B1915;
  --ink-2: #221F1A;
  --ink-3: #2C2822;
  --ink-line: #3A352D;
  --on-ink: #F4F0E8;
  --on-ink-2: #B5AB99;
  --on-ink-3: #8F8574;

  /* The single accent: Al Sadu madder red */
  --sadu: #A8322D;
  --sadu-press: #8E2924;
  --sadu-glow: #C73A30;       /* graphics on dark */
  --sadu-on-dark: #E5735F;    /* small text on dark */

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 10vw, 152px);
  --header-h: 76px;
  --dir: 1;
}

html[dir="rtl"] { --dir: -1; }

/* Safe areas: the notch, rounded corners and home indicator. Zero on most
   screens; they only take effect because the pages set viewport-fit=cover.
   The insets are physical, so the inline pair swaps in Arabic. */
:root {
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-r: env(safe-area-inset-right, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-l: env(safe-area-inset-left, 0px);
  --sa-is: var(--sa-l);
  --sa-ie: var(--sa-r);
}
html[dir="rtl"] { --sa-is: var(--sa-r); --sa-ie: var(--sa-l); }

/* Language-driven type system */
html[lang="ar"] {
  --f-display: "Noto Kufi Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-text: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-label: "IBM Plex Sans Arabic", "IBM Plex Mono", sans-serif;
  --track-display: 0;
  --track-h2: 0;
}
html[lang="en"] {
  --f-display: "IBM Plex Sans", system-ui, sans-serif;
  --f-text: "IBM Plex Sans", system-ui, sans-serif;
  --f-label: "IBM Plex Mono", ui-monospace, monospace;
  --track-display: -0.026em;
  --track-h2: -0.02em;
}
:root { --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace; }

/* Bilingual content: hide the inactive language */
html[lang="ar"] [data-en],
html[lang="en"] [data-ar] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent; /* every control has its own pressed state */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }
html.menu-open body { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
/* Touch: no double-tap wait on controls, and control labels are not selectable text */
a, button, label, input, select, textarea { touch-action: manipulation; }
button, .btn, .segmented label { -webkit-user-select: none; user-select: none; }
.btn { -webkit-touch-callout: none; }
/* Pressed state for links on any input (hover is mouse-only, the tap highlight is off) */
a:not(.btn):active { opacity: .6; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sadu); color: var(--paper-hi); }
:focus-visible { outline: 2px solid var(--sadu); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), var(--sa-l));
  padding-right: max(var(--gutter), var(--sa-r));
}

.skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: max(12px, var(--sa-is));
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.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;
}

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
html[lang="ar"] .label { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--sadu);
}

.h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.45rem + 3.4vw, 4.375rem);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
html[lang="ar"] .h1 {
  font-size: clamp(2rem, 1.25rem + 2.3vw, 3.25rem);
  font-weight: 700;
  line-height: 1.5;
}
.h1 em, .h2 em { font-style: normal; color: var(--sadu); }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.25rem + 2vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: var(--track-h2);
  text-wrap: balance;
}
html[lang="ar"] .h2 {
  font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.625rem);
  font-weight: 700;
  line-height: 1.55;
}

.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.3125rem, 1.1rem + .6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: var(--track-h2);
}
html[lang="ar"] .h3 { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.5rem); line-height: 1.6; }

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 56ch;
}
html[lang="ar"] .lead { line-height: 1.95; }

.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .04em;
}

/* ---------- Icons ---------- */
.ico { width: 20px; height: 20px; flex: none; }
/* The WhatsApp glyph beside its link. One colour, taken from the text next to it,
   so it never adds a second accent to the palette. */
.ico-wa {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-inline-end: .45em;
  vertical-align: -.16em;
  fill: currentColor;
  flex: none;
}
.ico-arrow { transition: transform .5s var(--ease); }
html[dir="rtl"] .ico-arrow { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico-arrow { transform: translateX(4px); }
  html[dir="rtl"] .btn:hover .ico-arrow { transform: scaleX(-1) translateX(4px); }
}

.btn-primary { background: var(--sadu); color: var(--paper-hi); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--sadu-press); } }
.btn-primary:active { background: var(--sadu-press); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { border-color: var(--text); } }
.btn-ghost:active { border-color: var(--text); }
.btn-paper { background: var(--paper); color: var(--sadu); }
@media (hover: hover) and (pointer: fine) { .btn-paper:hover { background: var(--paper-hi); } }
.btn-paper:active { background: var(--paper-hi); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.is-scrolled,
html.menu-open .site-header {
  background: rgba(244, 240, 232, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 34px; height: 34px; color: var(--text); }
.brand-mark path { fill: currentColor; }
.brand-mark .mark-sq { fill: var(--sadu); }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.brand-name small {
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-3);
}
html[lang="ar"] .brand-name b { font-size: 1rem; letter-spacing: 0; }
html[lang="ar"] .brand-name small {
  margin-top: 1px;
  font-family: var(--f-text);
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: none;
}

.nav { margin-inline-start: auto; display: flex; gap: 30px; }
.nav a {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-2);
  padding-block: 6px;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform .45s var(--ease);
}
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a.is-current { color: var(--text); }
.nav a.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-btn {
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .25s ease, background-color .25s ease;
}
.lang-btn [lang="en"] { font-family: var(--f-mono); letter-spacing: .08em; }
.lang-btn [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
@media (hover: hover) and (pointer: fine) { .lang-btn:hover { border-color: var(--text); } }
.lang-btn:active { border-color: var(--text); background: var(--paper-2); transition-duration: .12s; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  place-content: center;
  justify-items: center;
}
.menu-btn:active { background: var(--paper-2); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
html.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.progress {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  width: 100%;
  height: 2px;
  background: var(--sadu);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
html[dir="rtl"] .progress { transform-origin: right; }

.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  background: var(--paper);
  padding: 32px var(--gutter) 40px;
  padding-left: max(var(--gutter), var(--sa-l));
  padding-right: max(var(--gutter), var(--sa-r));
  padding-bottom: calc(40px + var(--sa-b));
  overscroll-behavior: contain; /* reaching the end of the menu must not scroll the page behind it */
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear .5s;
}
html.menu-open .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .5s var(--ease), visibility 0s;
}
.menu nav { display: grid; border-top: 1px solid var(--line); }
.menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 600;
}
.menu nav a .mono { color: var(--text-3); direction: ltr; unicode-bidi: isolate; }
.menu-foot { display: grid; gap: 16px; }
.menu-foot a.mail { color: var(--text-2); font-size: .9375rem; }

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
}

/* ==========================================================================
   Reveal
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh; /* small viewport: stable while the browser bar hides and shows */
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + clamp(32px, 6vw, 80px)) clamp(48px, 6vw, 80px);
}
.hero-grid { display: grid; gap: 56px; }
.hero-copy .label { margin-bottom: 28px; }
.hero .lead { margin-top: 28px; }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-index {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--text);
  max-width: 600px;
}
.hero-index > div { padding-top: 18px; padding-inline-end: 20px; }
.hero-index > div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.hero-index dt {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.hero-index dd { margin-top: 10px; font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.hero-index dd small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: .8125rem;
  color: var(--text-3);
  line-height: 1.6;
}

.hero-art { position: relative; }
.weave {
  position: relative;
  height: clamp(340px, 62vw, 460px);
  background: var(--ink);
  overflow: hidden;
}
.weave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Najdi parapet edge, cut from the limestone */
.weave::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -1px;
  height: 31px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='30' viewBox='0 0 26 30'%3E%3Cpath d='M0 0H26L13 30Z' fill='%23F4F0E8'/%3E%3C/svg%3E");
  background-size: 26px 30px;
  background-repeat: repeat-x;
  background-position: center top;
}
.fig-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .8125rem;
  color: var(--text-3);
}
.fig-caption .mono { color: var(--text); }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: center;
  }
  .weave { height: min(calc(100svh - 250px), 640px); min-height: 460px; }
}

/* ==========================================================================
   Practice index strip (static, user-paced)
   ========================================================================== */
.strip { border-block: 1px solid var(--line); }
.strip-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.strip-list::-webkit-scrollbar { display: none; }
.strip-list li { scroll-snap-align: start; }
.strip-list li + li a { border-inline-start: 1px solid var(--line); }
.strip-list a {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 22px 20px 24px;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
  transition: color .3s ease, background-color .3s ease;
}
.strip-list li:first-child a { padding-inline-start: 0; }
.strip-list a .mono { color: var(--sadu); }
@media (hover: hover) and (pointer: fine) {
  .strip-list a:hover { color: var(--text); background: var(--paper-2); }
  .strip-list li:first-child a:hover { background: transparent; }
}
.strip-list a:active { color: var(--text); background: var(--paper-2); }
.strip-list li:first-child a:active { background: transparent; }
html[lang="ar"] .strip-list a { font-size: .9375rem; line-height: 1.6; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding-block: var(--section-y); position: relative; }
.sec-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .label { margin-bottom: 20px; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
  .sec-head .lead { justify-self: end; }
}

/* ==========================================================================
   Edge (positioning + stats)
   ========================================================================== */
.edge-grid { display: grid; gap: 56px; }
.edge .h2 { max-width: 16ch; }
html[lang="ar"] .edge .h2 { max-width: 18ch; }
.edge .body { margin-top: 28px; color: var(--text-2); max-width: 60ch; font-size: 1.125rem; }
html[lang="ar"] .edge .body { line-height: 2; }
.edge .label { margin-bottom: 20px; }

.stats { border-top: 1px solid var(--text); }
.stat {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  align-items: baseline;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.stat-num {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem);
  letter-spacing: -.035em;
  line-height: 1;
  text-align: start;
}
html[dir="rtl"] .stat-num { text-align: right; }
.stat-num sup {
  font-size: .5em;
  vertical-align: top;
  position: relative;
  top: .1em;
  color: var(--sadu);
  margin-inline-start: 2px;
}
.stat-label { color: var(--text-2); font-size: 1rem; line-height: 1.5; }

@media (min-width: 960px) {
  .edge-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(56px, 7vw, 120px); align-items: end; }
}

/* ==========================================================================
   Practices — A: Localize & Invest
   ========================================================================== */
.practices { background: var(--paper); border-top: 1px solid var(--line); }
.group { display: grid; gap: 40px; }
.group-aside { align-self: start; }
.group-key {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--text);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
}
.group-aside .h3 { margin-top: 20px; }
.group-aside p { margin-top: 12px; color: var(--text-2); max-width: 34ch; font-size: 1rem; }

.practice {
  display: grid;
  gap: 16px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.practice:last-child { border-bottom: 1px solid var(--line); }
.practice-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.practice-num { font-family: var(--f-mono); font-size: .8125rem; color: var(--sadu); letter-spacing: .06em; }
.glyph { width: 44px; height: 44px; color: var(--text); }
.glyph .acc { fill: var(--sadu); stroke: none; }
.practice p { color: var(--text-2); max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--paper-hi);
}

@media (min-width: 960px) {
  .group { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(48px, 6vw, 96px); }
  .group-aside { position: sticky; top: calc(var(--header-h) + 40px); }
  .practice {
    grid-template-columns: 64px minmax(0, 6fr) minmax(0, 7fr);
    gap: 32px;
    padding-block: 44px;
    align-items: start;
  }
  .practice-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .practice-top .glyph { order: 2; }
  .practice-body { grid-column: 3; }
}
.practice { transition: background-color .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .practice:hover .glyph { color: var(--sadu); }
  .glyph { transition: color .4s ease; }
}

/* ==========================================================================
   Digital — B: Digital & Secure (dark)
   ========================================================================== */
.digital { background: var(--ink); color: var(--on-ink); }
.digital .label { color: var(--on-ink-3); }
.digital .label::before { background: var(--sadu-glow); }
.digital .lead { color: var(--on-ink-2); }
.digital .h2 em { color: var(--sadu-on-dark); }
.digital .group-key { background: var(--on-ink); color: var(--ink); }

.bento { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile-it { grid-column: span 7; }
  .tile-cyber { grid-column: span 5; }
  .tile-soft { grid-column: span 5; }
  .tile-smart { grid-column: span 7; }
  /* 08 runs the full width: plan on one side, services on the other */
  .tile.tile-iot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(28px, 3vw, 48px);
  }
  .tile.tile-iot .tile-visual { height: auto; min-height: 380px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .tile.tile-iot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
}
.tile-visual {
  position: relative;
  height: 268px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  overflow: hidden;
}
.tile-meta { display: grid; gap: 10px; }
.tile-meta .practice-num { color: var(--sadu-on-dark); }
.tile-meta p { color: var(--on-ink-2); font-size: 1rem; max-width: 56ch; }
.tile .tags { margin-top: 8px; }
.tile .tags li { background: transparent; border-color: var(--ink-line); color: var(--on-ink-2); }

.viz-bar {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 36px;
  padding-inline: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--on-ink-3);
  direction: ltr;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--sadu-glow);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* 04 — IT architecture diagram */
.viz-it svg { position: absolute; inset: 36px 0 0 0; width: 100%; height: calc(100% - 36px); }
.viz-it .node rect { fill: var(--ink-2); stroke: var(--ink-line); }
.viz-it .node text {
  fill: var(--on-ink-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
html[lang="ar"] .viz-it .node text { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 12px; letter-spacing: 0; }
@media (max-width: 600px) {
  .viz-it .node text { font-size: 14px; letter-spacing: 0; }
  html[lang="ar"] .viz-it .node text { font-size: 16px; }
}
.viz-it .core rect { fill: var(--ink-3); stroke: var(--on-ink-3); }
.viz-it .core text { fill: var(--on-ink); }
.viz-it .core .core-sq { fill: var(--sadu-glow); stroke: none; animation: breathe 2.4s ease-in-out infinite; }
.viz-it .wire { fill: none; stroke: var(--ink-line); stroke-width: 1; }
.viz-it .wire-flow {
  fill: none;
  stroke: var(--on-ink-2);
  stroke-width: 1;
  stroke-dasharray: 2 10;
  animation: dash 1.4s linear infinite;
}
.viz-it .wire-flow.rev { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* 05 — Cybersecurity controls */
.ctrl-list {
  position: absolute;
  inset: 36px 0 0 0;
  padding: 16px 16px 0;
  display: grid;
  align-content: start;
  gap: 4px;
}
.ctrl {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--ink-line);
}
.ctrl:last-child { border-bottom: 0; }
.ctrl-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--on-ink-3);
  display: grid;
  place-items: center;
}
.ctrl-check::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--sadu-glow);
  transform: scale(0);
  animation: ctrl-check 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 1.1s);
}
.ctrl-name { display: grid; line-height: 1.35; min-width: 0; }
.ctrl-name b {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--on-ink);
  letter-spacing: .04em;
}
.ctrl-name span {
  font-size: .75rem;
  color: var(--on-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctrl-bar { height: 3px; background: var(--ink-3); overflow: hidden; }
.ctrl-bar i {
  display: block;
  height: 100%;
  background: var(--on-ink-2);
  transform: scaleX(0);
  transform-origin: left;
  animation: ctrl-bar 9s var(--ease) infinite;
  animation-delay: calc(var(--i) * 1.1s);
}
html[dir="rtl"] .ctrl-bar i { transform-origin: right; }
@keyframes ctrl-bar {
  0% { transform: scaleX(0); opacity: 1; }
  16% { transform: scaleX(1); opacity: 1; }
  84% { transform: scaleX(1); opacity: 1; }
  94%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes ctrl-check {
  0%, 14% { transform: scale(0); }
  20% { transform: scale(1); }
  86% { transform: scale(1); }
  94%, 100% { transform: scale(0); }
}

/* 06 — Software: typed code */
.viz-code .code {
  position: absolute;
  inset: 36px 0 0 0;
  margin: 0;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: .78rem;
  line-height: 1.75;
  color: var(--on-ink-2);
  direction: ltr;
  text-align: left;
  white-space: pre;
  overflow: hidden;
  transition: opacity .5s ease;
}
.viz-code .code.is-fading { opacity: 0; }
.code-line { display: block; min-height: 1.75em; }
.code-line .ln { display: inline-block; width: 2.2em; color: var(--ink-line); user-select: none; }
.code .k { color: var(--sadu-on-dark); }
.code .s { color: var(--on-ink); }
.code .f { color: #D9CDB6; }
.code .c { color: var(--on-ink-3); }
.caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-inline-start: 1px;
  vertical-align: -.18em;
  background: var(--sadu-glow);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chip {
  padding: 2px 8px;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  color: var(--on-ink-2);
}

/* 07 — Smart transformation: automated flow */
.viz-flow { display: flex; flex-direction: column; justify-content: center; }
.flow { position: relative; margin-top: 36px; padding-inline: 8px; overflow-x: clip; }
.flow-nodes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-nodes li { display: grid; justify-items: center; gap: 14px; text-align: center; }
.flow-node {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 1px solid var(--on-ink-3);
  transition: background-color .5s ease, border-color .5s ease;
}
.flow-node svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .4s ease, transform .5s var(--ease); }
.flow-nodes li.is-on .flow-node { background: var(--sadu-glow); border-color: var(--sadu-glow); }
.flow-nodes li.is-on .flow-node svg { opacity: 1; transform: none; }
.flow-label { font-size: .8125rem; color: var(--on-ink-2); line-height: 1.3; }
.flow-state { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); }
.flow-nodes li.is-on .flow-state { color: var(--sadu-on-dark); }
.flow-line, .flow-fill {
  position: absolute;
  inset-block-start: 17px;
  inset-inline: 12.5%;
  height: 1px;
  background: var(--ink-line);
}
.flow-fill {
  background: var(--sadu-glow);
  transform: scaleX(calc(var(--step, 0) / 3));
  transform-origin: left;
  transition: transform 1s var(--ease);
}
html[dir="rtl"] .flow-fill { transform-origin: right; }
.flow-runner {
  position: absolute;
  inset-block-start: 17px;
  inset-inline: 12.5%;
  height: 0;
  transform: translateX(calc(var(--step, 0) * 33.3333% * var(--dir)));
  transition: transform 1s var(--ease);
}
.flow-runner i {
  position: absolute;
  inset-inline-start: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: var(--on-ink);
}
.viz-flow.no-anim .flow-runner,
.viz-flow.no-anim .flow-fill,
.viz-flow.no-anim .flow-node { transition: none; }
.flow-status {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--on-ink-3);
}
.flow-status b { color: var(--on-ink); font-weight: 500; }

/* 08 — IoT & smart homes: devices joining one system, room by room */
.viz-iot svg { position: absolute; inset: 44px 12px 40px; width: calc(100% - 24px); height: calc(100% - 84px); }
.viz-iot text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; fill: var(--on-ink-3); }
html[lang="ar"] .viz-iot text { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 12px; letter-spacing: 0; }
.viz-iot .wall { fill: none; stroke: var(--on-ink-3); stroke-width: 1.5; stroke-linecap: square; }
.viz-iot .room text { fill: var(--on-ink-2); }
.viz-iot .links line { stroke: var(--ink-line); stroke-width: 1; stroke-dasharray: 2 6; transition: stroke .5s ease; }
.viz-iot .links line.is-on { stroke: var(--on-ink-3); }
.viz-iot .links line.is-new { stroke: var(--on-ink); animation: dash 1.2s linear infinite; }
.viz-iot .hub rect { fill: var(--ink-3); stroke: var(--on-ink-3); }
.viz-iot .hub .hub-sq { fill: var(--sadu-glow); stroke: none; animation: breathe 2.4s ease-in-out infinite; }
.viz-iot .hub text { fill: var(--on-ink); }
.viz-iot .dev rect { fill: var(--ink); stroke: var(--on-ink-3); transition: fill .5s ease, stroke .5s ease; }
.viz-iot .dev text { transition: fill .5s ease; }
.viz-iot .dev.is-on rect { fill: var(--on-ink-2); stroke: var(--on-ink-2); }
.viz-iot .dev.is-on text { fill: var(--on-ink-2); }
.viz-iot .dev.is-new rect { fill: var(--sadu-glow); stroke: var(--sadu-glow); }
.viz-iot .dev.is-new text { fill: var(--on-ink); }
.iot-status {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .75rem;
  color: var(--on-ink-2);
}
.iot-event { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html[lang="en"] .iot-event { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .04em; }
.iot-count { font-family: var(--f-mono); font-size: .6875rem; font-weight: 500; color: var(--on-ink); }
@media (max-width: 600px) {
  .viz-iot svg { inset: 40px 6px 36px; width: calc(100% - 12px); height: calc(100% - 76px); }
  .viz-iot .dev text, .viz-iot .hub text { display: none; }
  .viz-iot .room text { font-size: 17px; }
  html[lang="ar"] .viz-iot .room text { font-size: 19px; }
}

/* Stacked (below 960px): the plan grows with the width so labels stay legible */
@media (max-width: 959px) { .tile-iot .tile-visual { height: clamp(268px, 52vw, 420px); } }

.iot-lines { display: grid; gap: 20px; margin-top: 10px; }
@media (min-width: 520px) { .iot-lines { grid-template-columns: 1fr 1fr; gap: 24px; } }
.iot-h {
  margin-bottom: 10px;
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
html[lang="ar"] .iot-h { font-size: .875rem; letter-spacing: 0; }
.iot-lines ul { display: grid; gap: 6px; }
.iot-lines li {
  position: relative;
  padding-inline-start: 16px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--on-ink-2);
}
.iot-lines li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  background: var(--on-ink-3);
}

/* Pause decorative motion when off-screen */
.tile-visual:not(.is-live) *,
.tile-visual:not(.is-live) *::before,
.tile-visual:not(.is-live) *::after { animation-play-state: paused !important; }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners-grid { display: grid; gap: 48px; }
.partners-aside .lead { margin-top: 20px; font-size: 1.0625rem; }
.sectors { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: .8125rem;
  color: var(--text-2);
}
.sectors-label { margin-top: 40px; font-size: .8125rem; color: var(--text-3); }
html[lang="en"] .sectors-label { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .6875rem; }

.partner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}
.partner:last-child { border-bottom: 1px solid var(--line); }
.partner-tag {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--sadu);
}
.partner p {
  font-family: var(--f-display);
  font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: var(--track-h2);
  color: var(--text);
}
html[lang="ar"] .partner p { line-height: 1.7; font-weight: 600; font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); }
.partner p.partner-practices {
  margin-top: 10px;
  font-family: var(--f-text);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-3);
}
.partner-practices .mono { margin-inline-start: 6px; font-size: .8125rem; color: var(--text-2); direction: ltr; unicode-bidi: isolate; }

@media (min-width: 960px) {
  .partners-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); }
  .partners-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .partner { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 36px; }
  .partner-tag { padding-top: 6px; }
  html[dir="rtl"] .partner-tag { text-align: right; }
}

/* ==========================================================================
   Approach
   ========================================================================== */
.approach { background: var(--paper-2); }
.steps { position: relative; }
.steps-list { display: grid; gap: 0; }
.form-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.steps-line, .steps-fill {
  position: absolute;
  background: var(--line-strong);
  inset-block: 8px 0;
  inset-inline-start: 7px;
  width: 1px;
}
.steps-fill {
  background: var(--sadu);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease) .2s;
}
.steps.is-in .steps-fill { transform: scaleY(1); }
.step { position: relative; padding-inline-start: 44px; padding-block-end: 40px; }
.step:last-child { padding-block-end: 0; }
.step-node {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 2px;
  width: 15px;
  height: 14px;
  background: var(--line-strong);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: background-color .5s ease;
  transition-delay: calc(.3s + var(--i, 0) * .38s);
}
.steps.is-in .step-node { background: var(--sadu); }
.step .mono { color: var(--text-3); }
.step .h3 { margin-top: 10px; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 1rem; max-width: 34ch; }

@media (min-width: 900px) {
  .steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-line, .steps-fill { inset-block: 6px auto; inset-inline: 0; width: auto; height: 1px; }
  .steps-fill { transform: scaleX(0); transform-origin: left; }
  html[dir="rtl"] .steps-fill { transform-origin: right; }
  .steps.is-in .steps-fill { transform: scaleX(1); }
  .step { padding-inline-start: 0; padding-inline-end: 32px; padding-block: 40px 0; }
  .step-node { inset-block-start: 0; }
}

/* ==========================================================================
   Register / inquiry form
   ========================================================================== */
.register-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .register-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
}

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; align-content: start; }
.field[hidden] { display: none; }
.field > label, .field-legend {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-weight: 400; color: var(--text-3); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-hi);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .25s ease, box-shadow .25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231B1915' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
html[dir="rtl"] .field select { background-position: left 16px center; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); } }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(168, 50, 45, .16);
}
.field input[type="email"], .field input[type="tel"] { direction: ltr; }
html[dir="rtl"] .field input[type="email"], html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field-error { min-height: 0; font-size: .8125rem; color: var(--sadu); line-height: 1.4; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--sadu); }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-hi);
}
.segmented { position: relative; }
.segmented input {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.segmented label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 3px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
@media (hover: hover) and (pointer: fine) { .segmented label:hover { color: var(--text); } }
.segmented label:active { color: var(--text); }
.segmented input:checked + label { background: var(--text); color: var(--paper); }
.segmented input:focus-visible + label { outline: 2px solid var(--sadu); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-actions .btn { min-width: 180px; }
.form-note { font-size: .8125rem; color: var(--text-3); max-width: 42ch; }
.form-consent { font-size: .8125rem; line-height: 1.6; color: var(--text-3); }
.form-consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
/* Honeypot: hidden from people, often filled by bots */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn .spinner { display: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn-text { opacity: .55; }
.btn.is-busy .ico-arrow { display: none; }
.btn.is-busy .spinner {
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--paper-hi), transparent) no-repeat;
  background-size: 50% 100%;
  animation: sweep 1s ease-in-out infinite;
}
@keyframes sweep { from { background-position: -100% 0; } to { background-position: 200% 0; } }

.form-status { display: none; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper-hi); font-size: .9375rem; line-height: 1.6; }
.form-status[data-state]:not([data-state=""]) { display: block; }
.form-status > [data-msg] { display: none; }
.form-status[data-state="ok"] > [data-msg="ok"],
.form-status[data-state="mailto"] > [data-msg="mailto"],
.form-status[data-state="error"] > [data-msg="error"] { display: block; }
.form-status[data-state="error"] { border-color: var(--sadu); color: var(--sadu-press); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

.next {
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 6px;
}
.next .label { color: var(--on-ink-3); }
.next .label::before { background: var(--sadu-glow); }
.next ol { margin-top: 28px; display: grid; }
.next li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid var(--ink-line);
}
.next li .mono { color: var(--sadu-on-dark); padding-top: 3px; }
.next li b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; }
.next li p { margin-top: 4px; color: var(--on-ink-2); font-size: .9375rem; line-height: 1.6; }
.next-contact { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--ink-line); display: grid; gap: 6px; }
.next-contact a { font-family: var(--f-mono); font-size: .9375rem; color: var(--on-ink); direction: ltr; unicode-bidi: isolate; justify-self: start; }
@media (hover: hover) and (pointer: fine) { .next-contact a:hover { color: var(--sadu-on-dark); } }
.next-contact span { font-size: .875rem; color: var(--on-ink-3); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  background: var(--sadu);
  color: var(--paper-hi);
  padding-block: clamp(104px, 12vw, 176px) clamp(72px, 9vw, 120px);
}
.cta::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -1px;
  height: 31px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='30' viewBox='0 0 26 30'%3E%3Cpath d='M0 0H26L13 30Z' fill='%23F4F0E8'/%3E%3C/svg%3E");
  background-size: 26px 30px;
  background-repeat: repeat-x;
  background-position: center top;
}
.cta-grid { display: grid; gap: 40px; align-items: end; }
.cta .label { color: rgba(250, 247, 241, .78); margin-bottom: 20px; }
.cta .label::before { background: var(--paper-hi); }
.cta .h2 { color: var(--paper-hi); max-width: 18ch; }
.cta-side { display: grid; gap: 20px; justify-items: start; }
.cta-mail {
  font-family: var(--f-mono);
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  direction: ltr;
  unicode-bidi: isolate;
  border-bottom: 1px solid rgba(250, 247, 241, .5);
  padding-bottom: 4px;
  transition: border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) { .cta-mail:hover { border-color: var(--paper-hi); } }
.cta-place { font-size: .9375rem; color: rgba(250, 247, 241, .8); }
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cta-side { justify-self: end; justify-items: end; }
  .cta-side .btn { order: 3; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--on-ink-2); padding-block: 80px 32px; }
.footer-grid { display: grid; gap: 48px; }
.footer .brand-mark { color: var(--on-ink); }
.footer .brand-mark .mark-sq { fill: var(--sadu-glow); }
.footer .brand-name b { color: var(--on-ink); }
.footer .brand-name small { color: var(--on-ink-3); }
.footer-about p { margin-top: 20px; max-width: 36ch; font-size: .9375rem; line-height: 1.7; }
.footer-h {
  font-family: var(--f-label);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-ink-3);
  margin-bottom: 18px;
}
html[lang="ar"] .footer-h { font-size: .875rem; letter-spacing: 0; text-transform: none; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col span { font-size: .9375rem; transition: color .25s ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--on-ink); } }
.footer-col .mono-link { font-family: var(--f-mono); font-size: .8125rem; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: .8125rem;
  color: var(--on-ink-3);
}
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--on-ink); } }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   Document pages (privacy notice)
   ========================================================================== */
.doc { padding-block: calc(var(--header-h) + clamp(48px, 8vw, 112px)) var(--section-y); }
.doc-head { max-width: 780px; margin-block-end: clamp(48px, 7vw, 88px); }
.doc-head .label { margin-block-end: 20px; }
.doc-head .lead { margin-block-start: 24px; max-width: 62ch; }
.doc-meta { margin-block-start: 20px; font-size: .875rem; color: var(--text-3); }
.doc-grid { display: grid; gap: 48px; }
.doc-toc { padding-block: 20px; border-block: 1px solid var(--line); }
.doc-toc ol { display: grid; gap: 4px; }
.doc-toc a { display: flex; gap: 12px; padding-block: 4px; font-size: .875rem; line-height: 1.5; color: var(--text-2); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .doc-toc a:hover { color: var(--text); } }
.doc-toc .mono { font-family: var(--f-mono); font-size: .75rem; color: var(--text-3); padding-block-start: 2px; }
.doc-body { max-width: 68ch; }
.doc-body section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body section + section { margin-block-start: 44px; padding-block-start: 44px; border-top: 1px solid var(--line); }
.doc-body h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-block-end: 16px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--track-h2);
}
.doc-body h2 .mono { font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; color: var(--text-3); }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p { margin-block-start: 14px; }
.doc-body ul { padding-inline-start: 20px; list-style: square; }
.doc-body li + li { margin-block-start: 8px; }
.doc-body li::marker { color: var(--text-3); }
.doc-body ul ul { margin-block-start: 8px; }
.doc-body b { font-weight: 600; color: var(--text); }
.doc-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc-contact { display: grid; gap: 4px; margin-block-start: 16px; }
.doc-contact a { font-family: var(--f-mono); font-size: .9375rem; text-decoration: none; }
@media (min-width: 960px) {
  .doc-grid { grid-template-columns: 248px minmax(0, 1fr); gap: 88px; }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ctrl-bar i { animation: none; transform: scaleX(1); }
  .ctrl-check::after { animation: none; transform: scale(1); }
  .caret { animation: none; }
}
