:root {

  --ink:        #0A1726;
  --ink-2:      #102338;
  --navy:       #12283F;
  --gold:       #D9B54A;
  --gold-deep:  #8A6D12;
  --pearl:      #EEF2F5;
  --white:      #FFFFFF;

  --fg:      #E8EEF4;
  --fg-strong: #FFFFFF;
  --muted:   #93A6BA;
  --accent:  var(--gold);
  --rule:    rgba(232, 238, 244, .13);
  --surface: rgba(16, 35, 56, .72);
  --danger:  #E0787C;

  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-logo:    'Archivo', 'Arial Narrow', Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 5.4vw, 5.2rem);
  --fs-page: clamp(2.6rem, 6.4vw, 5.75rem);
  --fs-h2:   clamp(2rem, 4.2vw, 3.6rem);
  --fs-h3:   clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.075rem, 1.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-sm:   .9375rem;
  --fs-xs:   .75rem;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --header-h: 84px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 260ms;
}

.light {
  --fg:      #33475C;
  --fg-strong: var(--ink);
  --muted:   #5A6E83;
  --accent:  var(--gold-deep);
  --rule:    rgba(10, 23, 38, .12);
  --surface: var(--white);
  --danger:  #A3282D;
  background: var(--pearl);
  color: var(--fg);
  position: relative;
  z-index: 2;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--gold-deep); }

.mono { font-family: var(--f-body); font-size: .85em; font-weight: 600; letter-spacing: .01em; }

.skip-link {
  position: fixed; left: 50%; top: 0; z-index: 300;
  transform: translate(-50%, -120%);
  background: var(--gold); color: var(--ink); padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

main { position: relative; z-index: 2; }

#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
body::before {

  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgba(32, 71, 111, .35), transparent 70%),
    linear-gradient(90deg, rgba(10, 23, 38, .55) 0%, rgba(10, 23, 38, 0) 55%);
}
.no-webgl #gl { display: none; }

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.curtain {
  position: fixed; inset: 0; z-index: 250;
  display: none; place-items: center;
  background: var(--ink);
  color: var(--gold);
}
.js .curtain { display: grid; animation: curtain-failsafe .5s 3.5s forwards; }
.curtain__mark { width: 56px; height: 56px; }
@keyframes curtain-failsafe { to { opacity: 0; visibility: hidden; } }

.display, .h2, h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--fg-strong);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.04;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display em, .h2 em, .founder__quote em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}
.h2 { font-size: var(--fs-h2); line-height: 1.02; }

.kicker {
  display: block;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; }
.prose { color: var(--fg); max-width: 62ch; }
.prose-stack { display: grid; gap: 1.25rem; align-content: start; }

.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

.btn {
  --btn-bg: transparent; --btn-fg: var(--fg-strong); --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  font-family: var(--f-body); font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  line-height: 1.1; white-space: nowrap; cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.btn--gold  { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: #E6C66A; box-shadow: 0 14px 40px -14px rgba(217, 181, 74, .6); }
.btn--ghost { --btn-bd: rgba(232, 238, 244, .28); }
.btn--ghost:hover { --btn-bd: var(--fg-strong); --btn-bg: rgba(255, 255, 255, .06); }
.btn--navy  { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { --btn-bg: var(--ink); }
.btn--sm { padding: .72rem 1.25rem; font-size: .875rem; }
.btn--lg { padding: 1.2rem 2.2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; color: var(--fg-strong);
  border-bottom: 1px solid var(--rule); padding-bottom: .2rem;
  transition: border-color var(--dur), gap var(--dur);
}
.link-arrow::after { content: '→'; color: var(--accent); transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform .45s var(--ease-out), background var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(10, 23, 38, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .85rem; color: var(--fg-strong); }
.brand__mark { width: 36px; height: 36px; color: var(--gold); flex-shrink: 0; }
.brand__rule { width: 1px; align-self: stretch; margin-block: .2rem; background: rgba(217, 181, 74, .55); }
.brand__text { line-height: 1.1; padding-top: .1rem; }
.brand__name { display: block; font-family: var(--f-logo); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand__sub { display: block; margin-top: .3rem; font-family: var(--f-body); font-weight: 300; font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: #C9D5E1; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: inline-block;
  padding: .55rem .95rem; font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  transition: color var(--dur);
}
.nav__link::after {
  content: ''; position: absolute; inset-inline: .95rem; bottom: .25rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--fg-strong); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: 100%; inset-inline-start: -.5rem; min-width: 19rem;
  display: grid; padding: .6rem;
  background: rgba(16, 35, 56, .96); border: 1px solid var(--rule); border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block;
  padding: .65rem .8rem; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--fg);
}
.nav__menu a:hover { background: rgba(255, 255, 255, .06); color: var(--fg-strong); }

.header__actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch {
  padding: .5rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--fg);
  transition: color var(--dur), background var(--dur);
}
.lang-switch:hover { color: var(--fg-strong); background: rgba(255, 255, 255, .07); }
.lang-switch:lang(ar) { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang-switch:lang(en) { font-family: 'Source Sans 3', sans-serif; }
.menu__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: 50%; cursor: pointer;
  position: relative; z-index: 120;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg-strong);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__inner { display: grid; gap: .15rem; padding-block: 2rem 3rem; }
.menu__link {
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 600;
  letter-spacing: -.01em; line-height: 1.15; color: var(--fg-strong);
}
.menu__link:hover { color: var(--gold); }
.menu__services { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem 2rem; }
.menu__services a { padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--muted); }
.menu .btn { justify-self: start; }
.menu .lang-switch { font-size: 1.05rem; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.hero {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 1.5rem);
}
.hero__inner { align-self: center; padding-block: 2rem; }
.hero__title { font-size: var(--fs-hero); max-width: 17ch; margin-bottom: 1.75rem; line-height: 1.02; }
.hero__lead { font-size: var(--fs-lead); color: var(--fg); max-width: 46ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-bottom: 2rem; border-top: 1px solid var(--rule); padding-top: 1.25rem;
}
.hero__codes { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; font-size: var(--fs-sm); color: var(--muted); }
.hero__codes a { transition: color var(--dur); }
.hero__codes a:hover { color: var(--fg-strong); }

.statement { padding-block: clamp(7rem, 16vw, 13rem); }
.statement__text {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.6rem);
  line-height: 1.2; letter-spacing: -.01em;
  color: var(--fg-strong);
  max-width: 24ch;
  text-wrap: pretty;
}
.statement__text .word { opacity: .16; }

.practices { padding-top: var(--section); }
.practices__grid {
  display: grid;
  grid-template-columns: 14rem minmax(0, 34rem) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.practices__index {
  position: sticky; top: 38vh; align-self: start;
  display: grid; gap: .25rem; counter-reset: none;
}
.practices__index a {
  display: grid; gap: .1rem;
  padding-block: .55rem; padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--rule);
  font-size: var(--fs-sm); color: var(--muted);
  transition: color var(--dur), border-color var(--dur);
}
.practices__index a.is-active { color: var(--fg-strong); border-inline-start-color: var(--gold); }

.practice {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 4rem;
}
.practice__title { font-size: clamp(2.1rem, 3.6vw, 3.25rem); margin-bottom: 1.25rem; }
.practice__summary { color: var(--fg); margin-bottom: 1.75rem; }
.practice .link-arrow { margin-top: 2rem; align-self: flex-start; }

.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-inline-start: 1.6rem; color: var(--muted); font-size: var(--fs-sm); }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .62em;
  width: .7rem; height: 1px; background: var(--accent);
}

.method { position: relative; }
.method__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem; overflow: hidden; }
.method__head { margin-bottom: 3rem; }
.method__head .lead { margin-top: 1rem; }
.method__track {
  display: flex; gap: 1.25rem;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  will-change: transform;
}
.phase {
  flex: 0 0 clamp(17rem, 28vw, 24rem);
  min-height: 21rem;
  display: flex; flex-direction: column;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.phase__num { color: var(--gold); margin-bottom: auto; }
.phase__title { font-size: var(--fs-h3); margin: 3rem 0 .8rem; }
.phase__body { color: var(--muted); font-size: var(--fs-sm); }

.sectors { padding-block: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--rule); overflow: hidden; position: relative; z-index: 2; background: rgba(10, 23, 38, .6); }
.marquee__row { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__row span {
  display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 500;
  font-style: italic; font-weight: 400;
  color: rgba(232, 238, 244, .55);
  white-space: nowrap;
}
.marquee__row span::after { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); }
.sectors:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.founder-band { padding-block: var(--section); }
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.frame { overflow: hidden; border-radius: var(--r-lg); background: var(--navy); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.founder__media .frame { aspect-ratio: 4 / 5; }
.founder__media img { object-position: 70% center; }
.founder__quote {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.22; letter-spacing: -.01em;
  color: var(--fg-strong); margin-bottom: 2rem;
}
.founder__content .h2 { margin-bottom: 1.5rem; }
.signature { margin-top: 2rem; padding-inline-start: 1.1rem; border-inline-start: 2px solid var(--accent); display: grid; }
.signature strong { color: var(--fg-strong); font-family: var(--f-display); font-size: 1.1rem; }
.signature span { color: var(--muted); font-size: var(--fs-sm); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { height: 100%; }
.card__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur), transform .5s var(--ease-out);
}
.card__link:hover { border-color: rgba(217, 181, 74, .55); transform: translateY(-4px); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem 1.6rem 1.8rem; display: grid; gap: .6rem; }
.card__meta { color: var(--accent); }
.card__title { font-size: 1.4rem; line-height: 1.12; }
.card__excerpt { color: var(--muted); font-size: var(--fs-sm); }

.page-hero { min-height: 78svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.page-hero__title { font-size: var(--fs-page); max-width: 13ch; margin-bottom: 1.75rem; }
.page-hero__lead { font-size: var(--fs-lead); color: var(--fg); max-width: 52ch; }
.page-hero .hero__actions { margin-top: 2.25rem; }

.crumbs { display: flex; gap: .6rem; margin-bottom: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a:hover { color: var(--fg-strong); }

.photo-band { padding-inline: var(--gutter); position: relative; z-index: 2; }
.frame--wide { max-width: calc(var(--wrap) + 12rem); margin-inline: auto; aspect-ratio: 21 / 9; }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.principle { padding: clamp(1.75rem, 3.5vw, 2.75rem); background: var(--ink); }
.principle h3 { font-size: var(--fs-h3); margin-bottom: .8rem; }
.principle p { color: var(--muted); }

.licence-list { display: grid; border-top: 1px solid var(--rule); max-width: 52rem; }
.licence-list a {
  display: grid; gap: .2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
  transition: padding var(--dur) var(--ease-out);
}
.licence-list a:hover { padding-inline-start: .75rem; }
.licence-list strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; color: var(--fg-strong); }
.licence-list__line { color: var(--muted); font-size: var(--fs-sm); }

.stack-cards { display: grid; gap: 0; padding-bottom: 4vh; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem + var(--i) * 1.1rem);
  margin-bottom: 6vh;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(70vh, 38rem);
  background: var(--ink-2);
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .75);
  position: relative;
  transform-origin: 50% 0;
  will-change: transform;
  transition: border-color var(--dur);
}
.stack-card__inner:hover { border-color: rgba(217, 181, 74, .5); }
.stack-card__shade { position: absolute; inset: 0; z-index: 2; background: var(--ink); opacity: 0; pointer-events: none; }
.stack-card:nth-child(even) .stack-card__media { order: 2; }
.stack-card__media { position: relative; overflow: hidden; background: var(--navy); }
.stack-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.stack-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 23, 38, 0) 50%, rgba(10, 23, 38, .45)); }
.stack-card__inner:hover .stack-card__media img { transform: scale(1.05); }
.stack-card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4.5vw, 3.75rem); }
.stack-card__title { font-size: clamp(2rem, 3.6vw, 3.1rem); margin-bottom: 1.25rem; }
.stack-card__summary { color: var(--fg); margin-bottom: 1.75rem; max-width: 46ch; }
.stack-card .link-arrow { margin-top: 2rem; align-self: flex-start; }
.stack-card__inner:hover .link-arrow { border-color: var(--accent); }
.stack-card__inner:hover .link-arrow::after { transform: translateX(4px); }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); backdrop-filter: blur(8px); }
.models { width: 100%; min-width: 40rem; border-collapse: collapse; }
.models th, .models td { text-align: start; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: var(--fs-sm); }
.models thead th { font-size: .875rem; font-weight: 600; color: var(--gold); }
.models tbody th { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--fg-strong); white-space: nowrap; }
.models td { color: var(--muted); }
.models tbody tr:last-child > * { border-bottom: 0; }

.questions { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.questions li {
  padding-block: 1.35rem; padding-inline-start: 2.4rem; position: relative;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 400;
  color: var(--fg-strong); line-height: 1.3;
}
.questions li::before { content: '?'; position: absolute; inset-inline-start: 0; top: 1.3rem; font-family: var(--f-display); font-weight: 600; color: var(--accent); }

.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 46rem; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.deliverables li { padding: 1.4rem 1.6rem; background: rgba(10, 23, 38, .86); color: var(--fg); }
.scope-note { display: flex; gap: 1rem; align-items: baseline; margin-top: 2rem; max-width: 46rem; color: var(--muted); font-size: var(--fs-sm); }
.scope-note .mono { color: var(--gold); flex-shrink: 0; }

.phase-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.phase-list li { padding: 1.6rem 1.4rem; background: rgba(10, 23, 38, .86); display: grid; gap: .6rem; align-content: start; }
.phase-list .mono { color: var(--gold); }
.phase-list strong { font-family: var(--f-display); font-size: 1.15rem; color: var(--fg-strong); }
.phase-list p { color: var(--muted); font-size: .875rem; line-height: 1.55; }

.other-practices { display: flex; flex-wrap: wrap; gap: .6rem; }
.other-practices a {
  display: inline-flex; gap: .7rem; align-items: baseline;
  padding: .75rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--fg);
  transition: border-color var(--dur), color var(--dur);
}
.other-practices a:hover { border-color: var(--gold); color: var(--fg-strong); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .55rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--muted); transition: all var(--dur); }
.chip:hover { color: var(--fg-strong); border-color: var(--fg); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.empty { color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.pager { display: flex; gap: .4rem; margin-top: 3rem; }
.pager a { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--muted); }
.pager a.is-active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.article { padding-block: clamp(3.5rem, 8vw, 6rem); margin-top: clamp(-6rem, -8vw, -3rem); padding-top: clamp(7rem, 12vw, 10rem); }
.article__wrap { display: grid; grid-template-columns: minmax(0, 44rem) 15rem; gap: clamp(2rem, 6vw, 6rem); justify-content: space-between; }
.article__aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; display: grid; gap: .35rem; font-size: var(--fs-sm); }
.article__aside .mono { color: var(--accent); margin-top: 1rem; }
.article__aside strong { color: var(--fg-strong); }
.article__aside .btn { margin-top: 1.5rem; justify-self: start; }
.link-arrow--dark { color: var(--fg-strong); }

.rich { font-size: 1.125rem; line-height: 1.75; color: var(--fg); }
.rich > * + * { margin-top: 1.3rem; }
.rich h2, .rich h3, .rich h4 { margin-top: 2.6rem; line-height: 1.15; }
.rich h2 { font-size: 2rem; }
.rich h3 { font-size: 1.5rem; }
.rich h4 { font-size: 1.2rem; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich strong { color: var(--fg-strong); }
.rich ul, .rich ol { padding-inline-start: 1.4rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: .45rem; }
.rich li::marker { color: var(--accent); }
.rich blockquote { border-inline-start: 3px solid var(--accent); padding-block: .3rem; padding-inline-start: 1.4rem; font-family: var(--f-display); font-size: 1.4rem; line-height: 1.35; color: var(--fg-strong); }
.rich img { border-radius: var(--r-md); }
.rich pre { background: var(--ink); color: var(--pearl); padding: 1.2rem; border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; }
.rich code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.rich hr { border: 0; border-top: 1px solid var(--rule); }

.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__details dl { display: grid; gap: 1.6rem; }
.contact__details dt { color: var(--gold); margin-bottom: .2rem; }
.contact__details dd { color: var(--fg-strong); font-size: 1.1rem; }
.contact__details a:hover { color: var(--gold); }
.contact__promise { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); }
.contact__panel { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-lg); }
.form__heading { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }

.form { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--fg-strong); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--white); border: 1px solid rgba(10, 23, 38, .18); border-radius: var(--r-sm);
  color: var(--ink); font-size: 1rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none; padding-inline-end: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235A6E83' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 40, 63, .14); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); color: var(--danger); min-height: 1em; }
.consent { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--navy); }
.consent label { flex: 1; font-size: var(--fs-sm); color: var(--fg); }
.consent .field__error { width: 100%; }
.form__note { font-size: var(--fs-xs); color: var(--muted); }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-alert { display: none; margin-top: 1.25rem; padding: .9rem 1.2rem; border-radius: var(--r-sm); background: #FBEAEA; border: 1px solid rgba(163, 40, 45, .25); color: #A3282D; font-size: var(--fs-sm); }
.form-alert.is-visible { display: block; }
.form-success { display: none; margin-top: 1.75rem; padding: 2rem; border-radius: var(--r-md); background: var(--white); border-inline-start: 3px solid var(--gold-deep); }
.form-success.is-visible { display: block; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .5rem; }

.footer { position: relative; z-index: 2; background: linear-gradient(rgba(10, 23, 38, 0), var(--ink) 18rem); padding-block: var(--section) 2rem; }
.footer__cta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: clamp(3rem, 7vw, 5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.footer__ask {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.08; letter-spacing: -.012em;
  color: var(--fg-strong); max-width: 22ch;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer__tagline { color: var(--muted); font-size: var(--fs-sm); max-width: 34ch; margin-top: 1.25rem; }
.footer__h { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--fg-strong); margin-bottom: 1rem; }
.footer li + li { margin-top: .55rem; }
.footer li a, .footer address a { color: var(--muted); font-size: var(--fs-sm); transition: color var(--dur); }
.footer li a:hover, .footer address a:hover { color: var(--fg-strong); }
.footer address { font-style: normal; display: grid; gap: .55rem; color: var(--muted); font-size: var(--fs-sm); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-xs); }

.wa {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 80;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); border-radius: 50%;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  transition: transform var(--dur) var(--ease-out);
}
.wa:hover { transform: translateY(-3px) scale(1.04); }
.wa svg { width: 26px; height: 26px; }

.anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.anim [data-split] { visibility: hidden; }
.anim [data-split].is-split { visibility: visible; }

@media (max-width: 1080px) {
  .practices__grid { grid-template-columns: 12rem minmax(0, 1fr) 30%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .phase-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }

  body::before { background: linear-gradient(180deg, rgba(10, 23, 38, .2), rgba(10, 23, 38, .75)); }

  .split, .founder, .contact, .article__wrap { grid-template-columns: 1fr; }
  .founder__media { max-width: 26rem; }
  .article__aside { position: static; }

  .practices__grid { grid-template-columns: 1fr; }
  .practices__index { display: none; }
  .practice { min-height: 80vh; }

  .method__pin { min-height: 0; }
  .method__track { flex-direction: column; padding-inline: var(--gutter); }
  .phase { flex: none; min-height: 0; }
  .phase__title { margin-top: 1.5rem; }

  .hero__foot { flex-direction: column; align-items: flex-start; }
  .principles, .deliverables { grid-template-columns: 1fr; }
  .stack-card { position: relative; top: 0; margin-bottom: 1.25rem; }
  .stack-card__inner { grid-template-columns: 1fr; min-height: 0; }
  .stack-card:nth-child(even) .stack-card__media { order: 0; }
  .stack-card__media { aspect-ratio: 16 / 9; }
  .frame--wide { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .cards, .footer__grid, .phase-list, .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .wa { width: 50px; height: 50px; inset-inline-end: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__row { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__row span[aria-hidden] { display: none; }
  .anim [data-reveal] { opacity: 1; transform: none; }
  .frame img { transform: none; }
}

@media print {
  #gl, .grain, .curtain, .header, .menu, .wa, .footer__cta, form { display: none !important; }
  body, .light { background: #fff; color: #000; }
}

:root[lang="ar"] {
  --f-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --f-body:    'IBM Plex Sans Arabic', 'Noto Kufi Arabic', system-ui, sans-serif;
  --f-logo:    'Noto Kufi Arabic', sans-serif;
  --fs-hero: clamp(2.1rem, 4.3vw, 4rem);
  --fs-page: clamp(2.1rem, 4.8vw, 4.2rem);
  --fs-h2:   clamp(1.65rem, 3.2vw, 2.7rem);
}

:root[lang="ar"] body * { letter-spacing: 0 !important; }
:root[lang="ar"] body { line-height: 1.85; }

:root[lang="ar"] :is(h1, h2, h3, .display, .h2) { font-weight: 600; line-height: 1.45; }
:root[lang="ar"] :is(.hero__title, .page-hero__title) { line-height: 1.4; font-weight: 700; }
:root[lang="ar"] :is(.statement__text, .founder__quote, .footer__ask, .menu__link) { line-height: 1.6; }
:root[lang="ar"] :is(.stack-card__title, .practice__title, .card__title, .phase__title) { line-height: 1.5; }
:root[lang="ar"] .questions li { line-height: 1.7; }
:root[lang="ar"] .hero__title { max-width: 20ch; }
:root[lang="ar"] .statement__text { max-width: 30ch; font-weight: 500; }
:root[lang="ar"] .marquee__row span { font-style: normal; font-weight: 500; }
:root[lang="ar"] .brand__name { font-size: 1.15rem; font-weight: 700; }
:root[lang="ar"] .brand__sub { font-size: .72rem; font-weight: 400; margin-top: .15rem; }
:root[lang="ar"] .rich { font-size: 1.1rem; line-height: 1.95; }
:root[lang="ar"] .rich blockquote { font-size: 1.3rem; line-height: 1.7; }

:root[lang="ar"] .split-line { padding-block: .22em; margin-block: -.22em; }

[dir="rtl"] body::before {
  background:
    radial-gradient(60rem 40rem at 15% 10%, rgba(32, 71, 111, .35), transparent 70%),
    linear-gradient(270deg, rgba(10, 23, 38, .55) 0%, rgba(10, 23, 38, 0) 55%);
}
[dir="rtl"] .nav__link::after { transform-origin: right; }
[dir="rtl"] .link-arrow::after { content: '←'; }
[dir="rtl"] .link-arrow:hover::after,
[dir="rtl"] .stack-card__inner:hover .link-arrow::after { transform: translateX(-4px); }
[dir="rtl"] .field select { background-position: left 1rem center; }
[dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .marquee__row span { direction: rtl; }
[dir="rtl"] .questions li::before { transform: scaleX(-1); }

@media (max-width: 900px) {
  [dir="rtl"] body::before { background: linear-gradient(180deg, rgba(10, 23, 38, .2), rgba(10, 23, 38, .75)); }
}
