/* InfoLink Technologies — site styles. Tokens from the brand kit (colors/infolink-tokens.json).
   Layout: quiet surface, navy bands top and bottom of the story, node-and-link as the one graphic device. */
:root {
  --il-surface: #F6F8FB;
  --il-surface-raised: #FFFFFF;
  --il-line: #D9E1EC;
  --il-border: #7C8DA5;
  --il-ink: #0A1F3D;
  --il-ink-muted: #4B5B73;
  --il-navy: #0A1F3D;
  --il-brand: #1A56DB;
  --il-brand-hover: #1546B5;
  --il-brand-soft: #E8EFFD;
  --il-on-brand: #FFFFFF;
  --il-on-navy: #FFFFFF;
  --il-on-navy-muted: #B4C2D6;
  --il-navy-line: #23395C;
  --il-cyan: #0EB4C8;
  --il-cyan-ink: #0B7285;
  --il-dot: #C3D2EE;
  --il-success: #16794C;
  --il-success-soft: #E3F4EB;
  --il-danger: #C2362B;
  --il-danger-soft: #FCE9E7;
  --il-shadow-sm: 0 1px 2px #0A1F3D0F, 0 1px 3px #0A1F3D14;
  --il-shadow-lg: 0 4px 8px #0A1F3D12, 0 16px 32px -4px #0A1F3D24;
  --il-focus: 0 0 0 2px #F6F8FB, 0 0 0 4px #1A56DB;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --wrap: 1160px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --il-surface: #0B1626; --il-surface-raised: #122036; --il-line: #24364F; --il-border: #5A6D88;
    --il-ink: #E8EEF7; --il-ink-muted: #9BAAC0; --il-navy: #07101D; --il-brand: #7AA2FF; --il-brand-hover: #9AB8FF;
    --il-brand-soft: #16294A; --il-on-brand: #0B1626; --il-on-navy-muted: #9BAAC0; --il-navy-line: #1D2F49;
    --il-cyan: #2CC9DC; --il-cyan-ink: #5FD6E5; --il-dot: #24364F;
    --il-success: #4CC38A; --il-success-soft: #123526; --il-danger: #F4867B; --il-danger-soft: #3D1A17;
    --il-shadow-sm: 0 1px 3px #000000A6; --il-shadow-lg: 0 16px 32px -4px #000000CC;
    --il-focus: 0 0 0 2px #0B1626, 0 0 0 4px #7AA2FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --il-surface: #0B1626; --il-surface-raised: #122036; --il-line: #24364F; --il-border: #5A6D88;
  --il-ink: #E8EEF7; --il-ink-muted: #9BAAC0; --il-navy: #07101D; --il-brand: #7AA2FF; --il-brand-hover: #9AB8FF;
  --il-brand-soft: #16294A; --il-on-brand: #0B1626; --il-on-navy-muted: #9BAAC0; --il-navy-line: #1D2F49;
  --il-cyan: #2CC9DC; --il-cyan-ink: #5FD6E5; --il-dot: #24364F;
  --il-success: #4CC38A; --il-success-soft: #123526; --il-danger: #F4867B; --il-danger-soft: #3D1A17;
  --il-shadow-sm: 0 1px 3px #000000A6; --il-shadow-lg: 0 16px 32px -4px #000000CC;
  --il-focus: 0 0 0 2px #0B1626, 0 0 0 4px #7AA2FF;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--il-surface); color: var(--il-ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--il-surface-raised); }
:lang(ar) body, body:lang(ar) { font-family: var(--font-arabic); line-height: 28px; font-feature-settings: normal; }
img, svg { max-width: 100%; }
a { color: var(--il-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--il-brand-hover); }
:focus-visible { outline: none; box-shadow: var(--il-focus); border-radius: var(--r-sm); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; color: var(--il-ink); }
p { text-wrap: pretty; }
.skip { position: absolute; inset-inline-start: 16px; top: -48px; z-index: 100; background: var(--il-brand); color: var(--il-on-brand); padding: 8px 16px; border-radius: var(--r-md); }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); color: var(--il-on-brand); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-size: clamp(36px, 5.2vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; font-optical-sizing: auto; }
.h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; color: var(--il-ink-muted); max-width: 60ch; }
.muted { color: var(--il-ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.overline { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--il-cyan-ink); display: inline-flex; align-items: center; gap: 10px; }
.overline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--il-cyan); flex: none; }
.mono { font-family: var(--font-mono); font-size: 13px; }
:lang(ar) .display, :lang(ar) .h1, :lang(ar) .h2, :lang(ar) .h3 { font-family: var(--font-arabic); letter-spacing: 0; }
:lang(ar) .display { line-height: 1.45; font-size: clamp(34px, 4.8vw, 52px); }
:lang(ar) .h1 { line-height: 1.5; }
:lang(ar) .h2 { line-height: 1.6; }
:lang(ar) .h3 { line-height: 30px; }
:lang(ar) .lead { line-height: 32px; }
:lang(ar) .overline { letter-spacing: 0; text-transform: none; font-size: 14px; line-height: 20px; font-weight: 600; }
:lang(ar) .small { line-height: 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-md); font: inherit; font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--il-brand); color: var(--il-on-brand); }
.btn-primary:hover { background: var(--il-brand-hover); color: var(--il-on-brand); }
.btn-secondary { background: var(--il-surface-raised); color: var(--il-ink); border-color: var(--il-border); }
.btn-secondary:hover { color: var(--il-ink); border-color: var(--il-brand); }
.btn-on-navy { background: transparent; color: var(--il-on-navy); border-color: #5A6D88; }
.btn-on-navy:hover { color: var(--il-on-navy); border-color: var(--il-on-navy); }
.arrow { width: 16px; height: 16px; flex: none; transition: transform .15s; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover > .arrow { transform: translateX(3px); }
[dir="rtl"] a:hover > .arrow { transform: scaleX(-1) translateX(3px); }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--il-surface-raised) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--il-line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; flex: none; line-height: 0; border-radius: var(--r-sm); }
.brand svg { height: 40px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--il-ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--il-brand); }
.nav a[aria-current="page"] { color: var(--il-brand); box-shadow: inset 0 -2px 0 var(--il-brand); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--il-ink); padding: 8px 10px; border-radius: var(--r-sm); }
.lang-switch:lang(ar) { font-family: var(--font-arabic); }
.lang-switch:lang(en) { font-family: var(--font-sans); }
.menu-btn { display: none; background: none; border: 1px solid var(--il-line); border-radius: var(--r-md); width: 44px; height: 44px; color: var(--il-ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 899px) {
  .site-header .wrap { gap: 12px; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--il-surface-raised); border-bottom: 1px solid var(--il-line); padding: 8px var(--gutter-r) 16px var(--gutter-l); box-shadow: var(--il-shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--il-line); font-size: 16px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; color: var(--il-on-brand); border: 0; }
  .header-actions { margin-inline-start: auto; }
}
@media (min-width: 900px) { .nav .btn { display: none; } }

/* ---------- sections ---------- */
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.section-head .lead { font-size: 17px; }
@media (max-width: 719px) { .section { padding-block: 56px; } .section-head { margin-bottom: 28px; } }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--il-surface-raised); border-bottom: 1px solid var(--il-line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 80px 88px; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy .lead { font-size: 19px; line-height: 30px; }
:lang(ar) .hero-copy .lead { line-height: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.topology, .project-visual svg, .band-pattern { direction: ltr; }
.topology { width: 100%; height: auto; display: block; }
.topology .grid-dot { fill: var(--il-dot); }
.topology .link { stroke: var(--il-brand); stroke-width: 2; fill: none; stroke-linecap: round; }
.topology .link-soft { stroke: var(--il-brand); stroke-width: 1.5; fill: none; stroke-dasharray: 3 5; opacity: .55; }
.topology .node { fill: var(--il-cyan); }
.topology .node-ring { fill: var(--il-surface-raised); stroke: var(--il-cyan); stroke-width: 2; }
.topology .tile { fill: var(--il-surface-raised); stroke: var(--il-line); }
.topology .tile-label { fill: var(--il-ink); font: 600 13px var(--font-sans); }
.topology .tile-sub { fill: var(--il-ink-muted); font: 12px var(--font-mono); }
.topology .icon { stroke: var(--il-brand); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.topology .pulse { fill: var(--il-cyan); }
@media (max-width: 899px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px; gap: 32px; }
}

/* page hero (inner pages) */
.page-hero { background: var(--il-surface-raised); border-bottom: 1px solid var(--il-line); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: 56px; display: grid; gap: 14px; position: relative; }
.page-hero .lead { max-width: 62ch; }
.page-hero::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 45%); background-image: radial-gradient(var(--il-dot) 1.6px, transparent 1.8px); background-size: 24px 24px; mask-image: linear-gradient(to left, #000 20%, transparent); -webkit-mask-image: linear-gradient(to left, #000 20%, transparent); pointer-events: none; }
[dir="rtl"] .page-hero::after { mask-image: linear-gradient(to right, #000 20%, transparent); -webkit-mask-image: linear-gradient(to right, #000 20%, transparent); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--il-ink-muted); flex-wrap: wrap; }
.crumbs a { color: var(--il-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--il-brand); }

/* page hero with diagram */
.page-hero-copy { display: grid; gap: 14px; justify-items: start; }
.page-hero.has-diagram .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px; }
.page-hero.has-diagram::after { display: none; }
.diagram { width: 100%; height: auto; display: block; max-width: 480px; justify-self: end; }
.diagram .tile-sub { font-size: 11px; }
.topology .icon-bg { fill: var(--il-brand-soft); }
.topology .icon .dot { fill: var(--il-cyan); stroke: none; }
@media (max-width: 899px) {
  .page-hero.has-diagram .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
  .diagram { justify-self: start; max-width: 440px; }
}
.why-diagram { width: 100%; max-width: 336px; height: auto; margin-top: 24px; display: block; }
@media (max-width: 899px) { .why-diagram { display: none; } }

/* brand divider between sections */
.section-divider { padding-bottom: 72px; }
.section-divider + .section { padding-top: 0; }
@media (max-width: 719px) { .section-divider { padding-bottom: 56px; } }

/* linked service cards: a link and node in each gap */
.cards-3.linked .service-card { overflow: visible; }
@media (min-width: 900px) {
  .cards-3.linked .service-card:not(:last-child)::after { content: ""; position: absolute; top: 51px; inset-inline-end: -25px; width: 24px; height: 2px; background: var(--il-brand); z-index: 1; }
  .cards-3.linked .service-card:not(:last-child)::before { content: ""; position: absolute; top: 47px; inset-inline-end: -17px; width: 10px; height: 10px; border-radius: 50%; background: var(--il-cyan); z-index: 2; }
}
@media (max-width: 899px) {
  .cards-3.linked .service-card:not(:last-child)::after { content: ""; position: absolute; bottom: -25px; inset-inline-start: 51px; width: 2px; height: 24px; background: var(--il-brand); }
  .cards-3.linked .service-card:not(:last-child)::before { content: ""; position: absolute; bottom: -17px; inset-inline-start: 47px; width: 10px; height: 10px; border-radius: 50%; background: var(--il-cyan); z-index: 2; }
}

/* service cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 899px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } }
.service-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 28px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); box-shadow: var(--il-shadow-sm); text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s; }
.service-card:hover { box-shadow: var(--il-shadow-lg); border-color: var(--il-brand); color: inherit; transform: translateY(-2px); }
.service-card p { color: var(--il-ink-muted); }
.service-card .textlink { color: var(--il-brand); margin-top: 8px; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--il-brand-soft); display: grid; place-items: center; margin-bottom: 8px; }
.icon-tile svg { width: 26px; height: 26px; stroke: var(--il-brand); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile .dot { fill: var(--il-cyan); stroke: none; }

/* why grid */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--il-line); }
.why-item { padding: 24px 0; border-bottom: 1px solid var(--il-line); display: grid; gap: 6px; padding-inline-end: 24px; }
.why-item:nth-child(2n) { padding-inline: 24px 0; border-inline-start: 1px solid var(--il-line); }
.why-item p { color: var(--il-ink-muted); }
@media (max-width: 899px) {
  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 599px) {
  .why-list { grid-template-columns: minmax(0, 1fr); }
  .why-item, .why-item:nth-child(2n) { padding-inline: 0; border-inline-start: 0; }
}

/* project cards */
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 799px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.project-card { display: grid; grid-template-rows: auto 1fr; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--il-shadow-sm); transition: box-shadow .2s, border-color .2s; }
.project-card:hover { box-shadow: var(--il-shadow-lg); border-color: var(--il-brand); color: inherit; }
.project-visual { aspect-ratio: 16 / 7; max-width: 100%; background: var(--il-navy); position: relative; overflow: hidden; }
.project-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-body { padding: 24px 28px 28px; display: grid; gap: 10px; align-content: start; }
.project-body p { color: var(--il-ink-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--il-brand-soft); color: var(--il-brand); }
:lang(ar) .tag { font-size: 13px; line-height: 20px; }

@media (min-width: 800px) {
  .related .project-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .related .project-visual { aspect-ratio: auto; min-height: 240px; }
  .related .project-body { align-content: center; padding: 32px; }
}
/* process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 15px; inset-inline: 16px; height: 2px; background: var(--il-brand); opacity: .9; }
.process li { position: relative; display: grid; gap: 8px; padding-top: 52px; counter-increment: step; }
.process li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--il-surface); border: 2px solid var(--il-cyan); color: var(--il-cyan-ink); display: grid; place-items: center; font: 600 14px/1 var(--font-sans); }
.process li:last-child::before { background: var(--il-cyan); color: #0A1F3D; }
.process p { color: var(--il-ink-muted); }
@media (max-width: 799px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .process::before { top: 16px; bottom: 16px; inset-inline-start: 15px; inset-inline-end: auto; width: 2px; height: auto; }
  .process li { padding-top: 2px; padding-inline-start: 52px; }
}

/* stack strip */
.stack-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--il-line); border-radius: var(--r-lg); background: var(--il-surface-raised); overflow: hidden; }
.stack-group { padding: 28px; display: grid; gap: 16px; align-content: start; }
.stack-group + .stack-group { border-inline-start: 1px solid var(--il-line); }
.stack-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--il-ink-muted); }
:lang(ar) .stack-label { letter-spacing: 0; text-transform: none; font-size: 14px; line-height: 20px; }
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.stack li { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--il-ink); padding-block: 12px; border-top: 1px solid var(--il-line); direction: ltr; text-align: start; unicode-bidi: isolate; }
.stack li:first-child { border-top: 0; padding-top: 0; }
[dir="rtl"] .stack li { text-align: right; }
@media (max-width: 799px) {
  .stack-groups { grid-template-columns: minmax(0, 1fr); }
  .stack-group + .stack-group { border-inline-start: 0; border-top: 1px solid var(--il-line); }
}

/* navy band */
.band { background: var(--il-navy); color: var(--il-on-navy); position: relative; overflow: hidden; }
.band .wrap { position: relative; padding-block: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { color: var(--il-on-navy); }
.band p { color: var(--il-on-navy-muted); max-width: 52ch; margin-top: 8px; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn-primary { background: #FFFFFF; color: #0A1F3D; }
.band .btn-primary:hover { background: #E8EFFD; color: #0A1F3D; }
.band-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.band-pattern .grid-dot { fill: var(--il-navy-line); }
.band-pattern .link { stroke: #1A56DB; stroke-width: 1.5; fill: none; opacity: .7; }
.band-pattern .node { fill: #0EB4C8; }

/* service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 899px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.offerings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
@media (max-width: 599px) { .offerings { grid-template-columns: minmax(0, 1fr); } }
.offerings li { background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 6px; align-content: start; }
.offerings li p { color: var(--il-ink-muted); font-size: 15px; }
.aside { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; padding: 28px; background: var(--il-brand-soft); border-radius: var(--r-lg); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.checklist li::before { content: ""; width: 9px; height: 9px; margin: 8px 5px 0; border-radius: 50%; background: var(--il-cyan); }
:lang(ar) .checklist li::before { margin-top: 10px; }

/* project detail */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--il-line); scroll-margin-top: 80px; }
.project:first-of-type { border-top: 0; }
.project-meta { display: grid; gap: 16px; align-content: start; }
.project-content { display: grid; gap: 24px; }
.project-content h3 { margin-bottom: 6px; }
.project-content ul { padding-inline-start: 20px; display: grid; gap: 8px; color: var(--il-ink); }
.project-content ul li::marker { color: var(--il-cyan); }
.stack-inline { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; }
.stack-inline li { font-family: var(--font-mono); font-size: 13px; padding: 4px 10px; border: 1px solid var(--il-line); border-radius: var(--r-sm); background: var(--il-surface-raised); direction: ltr; }
.status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-md); }
.status .pip { width: 10px; height: 10px; border-radius: 50%; background: var(--il-success); margin-top: 7px; box-shadow: 0 0 0 4px var(--il-success-soft); }
.project-meta .project-visual { border-radius: var(--r-lg); aspect-ratio: 4 / 3; }
@media (max-width: 899px) { .project { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; } }

/* about */
.prose { display: grid; gap: 18px; max-width: 64ch; font-size: 17px; line-height: 28px; }
:lang(ar) .prose { line-height: 32px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-mark { justify-self: center; width: min(280px, 100%); }
@media (max-width: 899px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-mark { width: 160px; justify-self: start; } }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 699px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { padding: 24px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); display: grid; gap: 8px; align-content: start; }
.value p { color: var(--il-ink-muted); }

/* leadership */
.leaders { display: grid; gap: 24px; }
.leader { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 40px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); box-shadow: var(--il-shadow-sm); }
.leader-id { display: grid; gap: 16px; align-content: start; }
.leader-photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-lg); background: #0A1F3D; overflow: hidden; }
.leader-photo img { position: absolute; inset: 0; }
.leader-photo svg, .leader-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.leader-msg { display: grid; gap: 16px; align-content: center; padding-block: 24px; font-size: 20px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; max-width: 56ch; }
.leader-msg .divider { margin-bottom: 12px; }
:lang(ar) .leader-msg { line-height: 38px; letter-spacing: 0; }
.leader-msg .divider { margin-bottom: 8px; }
.signoff { display: grid; gap: 2px; margin-top: 8px; font-size: 15px; line-height: 22px; }
@media (max-width: 799px) {
  .leader { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .leader-msg { padding-block: 8px 0; font-size: 18px; line-height: 28px; }
  .leader-id { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
}

/* contact */
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 899px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 32px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); box-shadow: var(--il-shadow-sm); }
@media (max-width: 599px) { .form { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 14px; }
.field .req { color: var(--il-ink-muted); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea { font: inherit; color: var(--il-ink); background: var(--il-surface-raised); border: 1px solid var(--il-border); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--il-brand); box-shadow: var(--il-focus); }
.field input[type="email"], .field input[type="tel"] { direction: ltr; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
.field .hint { font-size: 13px; color: var(--il-ink-muted); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; padding: 10px 14px; border-radius: var(--r-sm); grid-column: 1 / -1; }
.form-status.ok { background: var(--il-success-soft); color: var(--il-success); }
.form-status.err { background: var(--il-danger-soft); color: var(--il-danger); }
.details { display: grid; gap: 0; padding: 8px 28px; background: var(--il-surface-raised); border: 1px solid var(--il-line); border-radius: var(--r-lg); }
.details h2 { padding-block: 20px 8px; }
.detail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 16px; border-top: 1px solid var(--il-line); align-items: center; }
.detail-row:first-of-type { border-top: 0; }
.detail-row dt { grid-column: 1 / -1; font-size: 13px; color: var(--il-ink-muted); }
.detail-row dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.detail-row .ltr { direction: ltr; unicode-bidi: isolate; }
.copy-btn { font: inherit; font-size: 13px; font-weight: 500; color: var(--il-brand); background: none; border: 1px solid var(--il-line); border-radius: var(--r-sm); padding: 4px 10px; cursor: pointer; min-height: 32px; }
.copy-btn:hover { border-color: var(--il-brand); }
.wa { margin-top: 8px; margin-bottom: 20px; }
.wa svg { width: 18px; height: 18px; }

/* footer */
.site-footer { background: var(--il-navy); color: var(--il-on-navy-muted); font-size: 14px; line-height: 22px; }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand svg { height: 40px; width: auto; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--il-on-navy); font-weight: 600; margin-bottom: 14px; }
:lang(ar) .site-footer h2 { letter-spacing: 0; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--il-on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--il-on-navy); }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--il-navy-line); font-size: 13px; }
.divider { display: flex; align-items: center; height: 8px; }
.divider i { width: 8px; height: 8px; border-radius: 50%; background: var(--il-cyan); flex: none; }
.divider b { width: 64px; height: 2px; background: var(--il-brand); flex: none; }
.divider span { flex: 1; height: 1px; background: var(--il-line); }

/* load-in: visible at rest, gentle rise when motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .topology .flow { animation: flow 2.8s linear infinite; }
  .topology .pulse { animation: pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
