/* fawzyismail.com · "operator's drawing set": paper + blueprint, ink type, one dark money-path section */
:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #111113;
  --ink-2: #3a3a3f;
  --muted: #66666c;
  --rule: rgba(17, 17, 19, 0.12);
  --rule-strong: rgba(17, 17, 19, 0.28);
  --blue: #2f5bff;
  --orange: #ff6a1f;
  --pink: #ff8fb1;
  --violet: #b9a3ff;
  --dark: #121214;
  --dark-2: #1b1b1f;
  --on-dark: #f1f0ec;
  --on-dark-muted: #a3a3aa;
  --grid-minor: rgba(47, 91, 255, 0.07);
  --grid-major: rgba(47, 91, 255, 0.13);
  --font: "Geist", "Inter Tight", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-hero: clamp(48px, 10.4vw, 168px);
  --t-h2: clamp(32px, 5.2vw, 76px);
  --t-scrub: clamp(26px, 4vw, 58px);
  --t-body: clamp(16px, 1.25vw, 19px);
  --t-mono: 12px;
  --track-tight: -0.045em;
}
[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "Geist", system-ui, sans-serif;
  --track-tight: 0;
  --t-hero: clamp(42px, 8.6vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper grain (Heron) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.35;
  mix-blend-mode: multiply;
  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%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.48 0 0 0 0 0.44 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.mono { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: 0.04em; text-transform: uppercase; }
[dir="rtl"] .mono { letter-spacing: 0; font-family: "Geist Mono", "IBM Plex Sans Arabic", monospace; font-size: 13px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 16px; height: 16px; flex: none; }
[dir="rtl"] .ico { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.02; letter-spacing: var(--track-tight); text-wrap: balance; }
p { text-wrap: pretty; }
.label { color: var(--muted); }
.sec-head { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; align-items: baseline; margin-bottom: clamp(32px, 5vw, 64px); }

/* blueprint background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.bg canvas { width: 100%; height: 100%; display: block; }
.coords { position: fixed; inset-inline-start: var(--gutter); bottom: 18px; z-index: 40; color: var(--ink-2); line-height: 1.3; pointer-events: none; direction: ltr; }
main, .nav, .foot { position: relative; z-index: 2; }

/* loader (Heron) */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter); background: var(--paper); transition: clip-path 0.8s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__steps li { opacity: 0.18; transition: opacity 0.2s; line-height: 1.9; }
.loader__steps li.on { opacity: 1; }
.loader__steps span { color: var(--blue); margin-inline-end: 10px; }
.loader__pct { font-size: clamp(64px, 14vw, 200px); letter-spacing: -0.04em; text-align: end; line-height: 1; text-transform: none; }
.loader__skip { position: absolute; top: var(--gutter); inset-inline-end: var(--gutter); background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo__mark { width: 30px; height: 30px; color: var(--ink); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a { position: relative; font-size: 15px; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__end { display: flex; align-items: center; gap: 14px; }
.lang { padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 13px; text-transform: none; }
.lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 14px; letter-spacing: 0; }
.lang:hover { background: var(--ink); color: var(--paper); }

/* pills (Hipuku) */
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500;
  white-space: nowrap; border: 1px solid transparent; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.pill:hover { transform: translateY(-2px); }
.pill--ink { background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; }
.pill--blue { background: var(--blue); color: #fff; }
.pill--orange { background: var(--orange); color: var(--ink); }
.pill--line { border-color: var(--rule-strong); }
.pill--line:hover { background: var(--ink); color: var(--paper); }
.pill--lg { padding: 16px 26px; font-size: 17px; }

/* hero */
.hero { min-height: calc(100svh - 60px); display: flex; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2vw, 24px); }
.hero__tag { grid-column: 1 / -1; color: var(--muted); }
.hero__title { grid-column: 1 / -1; font-size: var(--t-hero); font-weight: 500; line-height: 0.95; letter-spacing: var(--track-tight); }
[dir="rtl"] .hero__title { line-height: 1.15; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-ready .hero__title .line > span, .js.is-ready .hero__title .line > span { transform: none; }
.hero__title .line:nth-child(2) > span { transition-delay: 0.12s; color: var(--blue); }
.hero__side { grid-column: 1 / 5; color: var(--ink-2); align-self: start; padding-top: 6px; border-top: 1px solid var(--ink); }
.hero__body { grid-column: 6 / -1; display: grid; gap: 28px; }
.hero__lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.spec { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); margin-top: clamp(16px, 3vw, 40px); }
.spec div { padding: 14px 16px 0 0; display: grid; gap: 4px; }
[dir="rtl"] .spec div { padding: 14px 0 0 16px; }
.spec dt { color: var(--muted); }
.spec dt::after { content: " :"; }
.hero__hint { grid-column: 1 / -1; color: var(--blue); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: clamp(20px, 3vw, 40px) 16px; display: grid; gap: 8px; }
.stat + .stat { border-inline-start: 1px solid var(--rule); }
.stat__n { font-size: clamp(56px, 8vw, 120px); font-weight: 500; line-height: 0.9; letter-spacing: -0.05em; }
.stat__l { color: var(--muted); }

/* intro scrub (Joshgrafik) */
.intro { padding-block: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; }
.scrub { font-size: var(--t-scrub); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; }
[dir="rtl"] .scrub { letter-spacing: 0; line-height: 1.45; }
.scrub .w { color: color-mix(in srgb, var(--ink) 22%, transparent); transition: color 0.25s; }
.scrub .w.on { color: var(--ink); }

/* ask (Wassim) */
.ask { padding-bottom: clamp(80px, 10vw, 140px); }
.ask__panel { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; }
.ask__box { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.ask__bubble { min-height: 7.5em; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; }
.ask__bubble .caret { display: inline-block; width: 0.5em; height: 1em; margin-inline-start: 2px; background: var(--orange); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask__who { color: var(--on-dark-muted); display: flex; align-items: center; gap: 8px; }
.ask__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 14px/1 var(--font); color: var(--on-dark); background: var(--dark-2); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 11px 16px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }

/* services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(80px, 12vw, 160px); }
.services__head { display: grid; gap: 24px; align-content: start; }
.services__head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.services__head p { color: var(--ink-2); max-width: 46ch; }
.services__list { border-top: 1px solid var(--ink); align-self: start; }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); transition: padding 0.4s var(--ease); }
.svc__k { grid-row: span 2; padding-top: 6px; color: var(--blue); }
.svc__t { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.svc__s { color: var(--muted); font-size: 15px; }


/* ventures index */
.ventures { padding-bottom: clamp(80px, 12vw, 160px); }
.v-group + .v-group { margin-top: 48px; }
.v-group__name { color: var(--muted); margin-bottom: 12px; }
.v-list { border-top: 1px solid var(--ink); }
.v-row {
  position: relative; display: grid; grid-template-columns: 56px minmax(150px, 1.1fr) 2.4fr 1fr 120px; gap: 16px; align-items: baseline;
  padding: 22px 12px; border-bottom: 1px solid var(--rule-strong); isolation: isolate;
}
.v-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); }
.v-row:hover { color: var(--paper); }
.v-row:hover::before { transform: scaleY(1); }
.v-row:hover .v-row__desc, .v-row:hover .v-row__meta, .v-row:hover .v-row__n { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.v-row__n, .v-row__meta { color: var(--muted); }
.v-row__name { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.v-row__desc { color: var(--ink-2); font-size: 16px; }
.v-row__status { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.dot--on { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); }

/* pixel wipe (Joshgrafik) */
.pixels { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); height: clamp(120px, 18vw, 240px); }
.pixels i { background: var(--dark); opacity: 0; transition: opacity 0.12s linear; }
.pixels i.on { opacity: 1; }
.pixels i.half { opacity: 0.55; }

/* method (Hipuku dark grid + ribbon) */
.method {
  position: relative; z-index: 2; background-color: var(--dark); color: var(--on-dark); padding-block: clamp(40px, 6vw, 80px) clamp(60px, 8vw, 120px);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.method .label { color: var(--on-dark-muted); }
.method__title { font-size: clamp(48px, 9vw, 150px); }
.method__intro { max-width: 60ch; margin-inline-start: auto; color: var(--on-dark-muted); font-size: clamp(17px, 1.4vw, 21px); }
.ribbon { position: relative; height: clamp(220px, 30vw, 380px); margin-block: clamp(24px, 4vw, 48px); }
.ribbon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; }
.station { background: var(--dark); padding: 22px 20px; display: grid; gap: 6px; align-content: start; transition: background 0.3s; }
.station:hover { background: var(--dark-2); }
.station__n { color: var(--orange); }
.station__t { font-size: 19px; font-weight: 500; }
.station__s { color: var(--on-dark-muted); font-size: 15px; }
.station:last-child { grid-column: span 2; }

/* about */
.about { padding-block: clamp(80px, 12vw, 160px); }
.about__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
.about__body { color: var(--ink-2); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.timeline { border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule-strong); }
.timeline li > :first-child { color: var(--blue); }
.timeline li > :last-child { color: var(--muted); }

/* contact */
.contact { padding-block: clamp(60px, 10vw, 140px) clamp(80px, 10vw, 140px); display: grid; gap: 28px; }
.contact__title { font-size: clamp(44px, 8vw, 128px); max-width: 14ch; }
.contact__body { color: var(--ink-2); max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__mail { color: var(--muted); text-transform: none; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px 64px; border-top: 1px solid var(--rule); color: var(--muted); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .hero__side { grid-column: 1 / -1; }
  .hero__body { grid-column: 1 / -1; }
  .v-row { grid-template-columns: 44px 1fr auto; }
  .v-row__desc { grid-column: 2 / -1; }
  .v-row__meta { grid-column: 2; }
  .v-row__status { grid-column: 3; grid-row: 1; }
  .stations { grid-template-columns: repeat(2, 1fr); }
  .station:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .sec-head, .intro, .ask__panel { grid-template-columns: 1fr; }
  .services, .about__grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .stat { grid-template-columns: auto 1fr; align-items: end; gap: 16px; }
  .stat__n { font-size: 64px; }
  .stations { grid-template-columns: 1fr; }
  .station:last-child { grid-column: auto; }
  .timeline li { grid-template-columns: 56px 1fr; }
  .timeline li > :last-child { grid-column: 2; }
  .logo__name { display: none; }
  .hero__hint, .coords { display: none; }
  .pill--lg { padding: 14px 20px; font-size: 16px; }
}
@media (any-hover: none) { .hero__hint, .coords { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__title .line > span { opacity: 1; transform: none; }
  .scrub .w { color: var(--ink); }
}

/* QA fixes: touch targets, anchors under sticky nav, marker alignment, frame depth, orphans */
section[id], main[id] { scroll-margin-top: 76px; }
.logo { min-height: 44px; }
.logo__mark { width: 34px; height: 34px; }
.lang { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pill { min-height: 44px; }
.chip { min-height: 44px; }
.nav__links a { padding-block: 12px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.ask { padding-top: clamp(48px, 6vw, 80px); }
.v-row__status { justify-self: start; }
.v-row__desc, .about__body, .spec dd, .station__s, .svc__s, .hero__lead, .method__intro, .contact__body { text-wrap: pretty; }
.stations { background: none; border: 0; border-radius: 0; gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.station { background: transparent; border-bottom: 1px solid rgba(255,255,255,.12); border-inline-end: 1px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .station { border-inline-end: 0; } }

.logo { min-width: 44px; }

.portrait__cap { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.portrait__hint { color: var(--blue); }

.hero__side { grid-column: 1 / 4; }
.hero__body { grid-column: 4 / 9; }
.spec { grid-column: 1 / 9; grid-template-columns: repeat(2, 1fr); }
.about__side { display: grid; gap: 32px; align-content: start; }

/* clients marquee */
.clients { padding-block: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.clients__head { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; margin-bottom: 24px; }
.clients__note { color: var(--ink-2); }
.marquee { display: flex; width: max-content; border-block: 1px solid var(--rule); }
.marquee__track { display: flex; flex: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { font-family: "Geist", sans-serif; font-size: clamp(30px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.035em; padding: 18px clamp(20px, 3vw, 44px); white-space: nowrap; color: var(--ink); transition: color 0.3s; display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.marquee__track li::after { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--blue); transform: rotate(45deg); margin-inline-start: clamp(20px, 3vw, 44px); }
.marquee__track li:hover { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* four stats */
.stats { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .hero__side, .hero__body, .spec { grid-column: 1 / -1; }
    .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .clients__head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--rule); }
    .stat__n { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; flex-wrap: wrap; }
  .marquee__track { flex-wrap: wrap; animation: none; }
  .marquee__track[aria-hidden] { display: none; }
}
.stat__n { font-size: clamp(56px, 6.6vw, 110px); }
.marquee-wrap { overflow: hidden; }
.stat__n { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat__n { text-align: right; }


/* hero layout without a side portrait */
@media (min-width: 1025px) {
  .hero__side { grid-column: 1 / 5; }
  .hero__body { grid-column: 6 / -1; }
  .spec { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}

/* photo-in-letters: one photo shown through the headline and contact heading letters.
   main.js sizes every .ph to the same viewport "cover" box, so letters reveal exactly what was behind them. */
.js .ph { background-image: url("/img/type-photo.webp"); background-repeat: no-repeat; }
.js .hero__title .ph, .js .contact__title .ph { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 600; }
.js .ph--blue { background-image: linear-gradient(rgba(47, 91, 255, 0.78), rgba(47, 91, 255, 0.78)), url("/img/type-photo.webp"); }

/* contact backdrop: translucent drafting blue, full-bleed, grid shows through */
.contact::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -2; background: rgba(47, 91, 255, 0.09); border-top: 1px solid rgba(47, 91, 255, 0.25); }
/* footer: translucent ink bar, full-bleed */
.foot { color: var(--on-dark-muted); background: rgba(17, 17, 19, 0.96); box-shadow: 0 0 0 100vmax rgba(17, 17, 19, 0.96); clip-path: inset(0 -100vmax); backdrop-filter: blur(8px); border-top: 0; padding-block: 28px 64px; }
.foot a { color: var(--on-dark); }
.contact__title .ph { display: block; }


/* display type: Archivo Expanded ExtraBold (EN) / Cairo Black (AR) */
:root { --display: "Archivo", "Geist", system-ui, sans-serif; --t-hero: clamp(30px, 8.6vw, 140px); }
[dir="rtl"] { --display: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif; --t-hero: clamp(40px, 8.4vw, 132px); }
h1, h2, .hero__title, .stat__n, .marquee__track li, .v-row__name, .svc__t, .station__t, .logo__name {
  font-family: var(--display); font-stretch: 125%;
}
h1, h2, .hero__title, .stat__n, .marquee__track li { font-weight: 800; letter-spacing: -0.04em; }
.js .hero__title .ph, .js .contact__title .ph { font-weight: 800; }
.v-row__name, .svc__t, .station__t, .logo__name { font-weight: 700; letter-spacing: -0.02em; }
.hero__title { line-height: 0.98; }
.stat__n { font-size: clamp(48px, 5.4vw, 92px); }
[dir="rtl"] :is(h1, h2, .hero__title, .stat__n, .marquee__track li) { font-weight: 900; letter-spacing: 0; }
[dir="rtl"] .js .hero__title .ph, [dir="rtl"] .js .contact__title .ph, .js[dir="rtl"] .hero__title .ph, .js[dir="rtl"] .contact__title .ph { font-weight: 900; }
[dir="rtl"] :is(.v-row__name, .svc__t, .station__t, .logo__name) { letter-spacing: 0; }
[dir="rtl"] .hero__title { line-height: 1.2; }

/* keep the blue backdrop inside the contact section */
.contact { position: relative; isolation: isolate; }

/* brand strip: logos in ink, blue on hover */
.marquee__track li > a { display: inline-flex; align-items: center; color: inherit; }
.brand__svg { height: clamp(40px, 4.4vw, 60px); width: auto; fill: currentColor; display: block; }
.brand__svg.is-wide { height: clamp(22px, 2.4vw, 32px); }
.brand__img { height: clamp(48px, 5vw, 68px); width: auto; display: block; transition: filter 0.3s; }
.marquee__track li:hover .brand__img { filter: invert(27%) sepia(96%) saturate(3600%) hue-rotate(226deg) brightness(98%); }

/* brand hover: terminal-style note that follows the cursor */
.brand-tip { position: fixed; left: 0; top: 0; z-index: 75; pointer-events: none; background: var(--orange); color: var(--ink); padding: 8px 12px; font-size: 12px; text-transform: none; line-height: 1.5; white-space: nowrap; box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translate3d(var(--tx, 0), var(--ty, 0), 0); transition: opacity 0.15s; }
.brand-tip.on { opacity: 1; }
.brand-tip b { font-weight: 500; }
.brand-tip .muted { opacity: 0.6; }
.brand-tip i { display: inline-block; width: 0.6em; height: 1.05em; background: var(--ink); vertical-align: -0.2em; margin-inline-start: 3px; animation: blink 1s steps(1) infinite; }

/* WhatsApp: floating button + contact pill */
.ico--wa { fill: currentColor; }
[dir="rtl"] .ico--wa { transform: none; }
.pill--wa { background: #25d366; color: var(--ink); }
.wa-fab { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 65; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(17, 17, 19, 0.25); transition: transform 0.3s var(--ease); }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); }
.wa-fab .ico { width: 28px; height: 28px; }
.foot__social { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__social a { min-height: 44px; display: inline-flex; align-items: center; }
.foot { padding-inline-end: 96px; }
[dir="rtl"] .foot { padding-inline-end: var(--gutter); padding-inline-start: 96px; }

/* section labels: ink, a size up, orange square marker */
.label { color: var(--ink); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; align-self: start; }
.label::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--orange); }
.method .label, .contact.is-dark .label { color: var(--on-dark); }
[dir="rtl"] .label { font-size: 14px; }

/* "What I do" paragraph: bold display face, key phrases light up as they're revealed */
.scrub { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(24px, 3.3vw, 50px); line-height: 1.14; letter-spacing: -0.035em; }
[dir="rtl"] .scrub { font-weight: 700; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.5; letter-spacing: 0; }
.scrub .w.on.hl-o { color: var(--orange); }
.scrub .w.on.hl-b { color: var(--blue); }

/* services rows: blue wash sweeps in on hover, out on leave */
.svc { position: relative; isolation: isolate; padding-inline: 12px; transition: none; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(47, 91, 255, 0.08); border-inline-start: 3px solid var(--blue); transform: scaleX(0); transform-origin: left center; opacity: 0; transition: transform 0.55s var(--ease), opacity 0.4s ease; }
[dir="rtl"] .svc::before { transform-origin: right center; }
.svc:hover::before { transform: scaleX(1); opacity: 1; }
.svc__k { transition: color 0.3s; }
.svc:hover .svc__k { color: var(--orange); }
.svc__t { transition: color 0.3s; }
.svc:hover .svc__t { color: var(--blue); }

/* venture group names as sub-headers */
.v-group__name { margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; color: var(--ink); font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.v-group__name::before { content: ""; width: 12px; height: 12px; flex: none; align-self: center; background: var(--blue); }
.v-group__count { color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
[dir="rtl"] .v-group__name { letter-spacing: 0; font-weight: 900; }

/* footer: slim, more see-through */
.foot { align-items: center; padding-block: 10px; background: rgba(17, 17, 19, 0.72); box-shadow: 0 0 0 100vmax rgba(17, 17, 19, 0.72); }
.foot a, .foot__social a { min-height: 40px; }
.coords { transition: opacity 0.3s; }
.coords.is-hidden { opacity: 0; }

/* Arabic: Cairo Black descends below a tight line box, and background-clip:text only paints inside the box */
[dir="rtl"] h2 { line-height: 1.32; }
[dir="rtl"] .js .ph { padding-block: 0.06em 0.24em; }
[dir="rtl"] .hero__title .line { padding-bottom: 0; }

/* booking row: spec sheet + one action */
.book { margin-top: clamp(28px, 4vw, 56px); padding-top: clamp(22px, 3vw, 32px); border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(240px, 1.1fr) 1.6fr auto; gap: clamp(20px, 3vw, 48px); align-items: end; }
.book__head { display: grid; gap: 12px; }
.book__title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.035em; line-height: 1.02; }
[dir="rtl"] .book__title { letter-spacing: 0; line-height: 1.3; font-weight: 900; }
.book__body { color: var(--ink-2); max-width: 36ch; }
.book__spec { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule-strong); }
.book__spec div { padding: 12px 12px 0 0; display: grid; gap: 4px; }
[dir="rtl"] .book__spec div { padding: 12px 0 0 12px; }
.book__spec dt { color: var(--muted); }
.book__spec dt::after { content: " :"; }
.book__open { border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 500; box-shadow: 5px 5px 0 var(--ink); }
.book__open:hover { box-shadow: 7px 7px 0 var(--ink); }
@media (max-width: 1024px) { .book { grid-template-columns: 1fr 1fr; } .book__open { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } }

/* booking window: a drafting sheet over the page */
.book-win { width: min(1080px, calc(100vw - 32px)); height: min(760px, calc(100svh - 48px)); max-width: none; max-height: none; padding: 0; border: 2px solid var(--ink); background-color: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: visible;
  background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px), linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.book-win[open] { display: grid; grid-template-rows: auto 1fr; animation: winIn 0.45s var(--ease); }
.book-win::backdrop { background: rgba(17, 17, 19, 0.62); }
@keyframes winIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.book-win__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 0 18px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.book-win__bar span { display: inline-flex; align-items: center; gap: 10px; }
.book-win__bar i { width: 10px; height: 10px; background: var(--orange); }
.book-win__close { min-height: 48px; padding: 0 18px; border: 0; border-inline-start: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.book-win__close:hover { background: var(--orange); color: var(--ink); }
.book-win__body { position: relative; overflow: auto; padding: clamp(12px, 2vw, 24px); }
.book-win__cal { position: relative; z-index: 1; min-height: 100%; }
.book-win__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); }
.book-win.is-ready .book-win__loading { display: none; }
.book-win__tick { position: absolute; width: 18px; height: 18px; border-color: var(--blue); border-style: solid; border-width: 0; pointer-events: none; }
.book-win__tick.t1 { top: -12px; left: -12px; border-top-width: 2px; border-left-width: 2px; }
.book-win__tick.t2 { bottom: -12px; right: -12px; border-bottom-width: 2px; border-right-width: 2px; }
@media (max-width: 760px) { .book-win { width: 100vw; height: 100svh; border: 0; box-shadow: none; } .book-win__tick { display: none; } }
@media (prefers-reduced-motion: reduce) { .book-win[open] { animation: none; } }

/* booking window v2: a floating drafting sheet on every desktop/tablet width, full screen only on phones */
.book-win { width: min(880px, calc(100vw - 64px)); height: min(680px, calc(100svh - 80px)); }
@media (max-width: 760px) { .book-win { width: min(880px, calc(100vw - 32px)); height: min(680px, calc(100svh - 48px)); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); } .book-win__tick { display: block; } }
@media (max-width: 560px) { .book-win { width: 100vw; height: 100svh; border: 0; box-shadow: none; } .book-win__tick { display: none; } }
.book-win__bar { padding: 0 0 0 16px; min-height: 48px; }
.book-win__bar::after { content: ""; flex: 1; align-self: center; height: 0; border-top: 1px dashed rgba(47, 91, 255, 0.5); margin-inline: 4px 0; order: 1; }
.book-win__bar span { order: 0; }
.book-win__close { order: 2; width: 48px; min-height: 48px; padding: 0; justify-content: center; font-size: 18px; line-height: 1; }
.book-win__close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- tools ---------- */
.toolbox-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s; }
.toolbox-btn:hover { background: var(--ink); color: var(--paper); }
.ico--box { width: 20px; height: 20px; }
[dir="rtl"] .ico--box { transform: none; }
.toolbox-btn__n { position: absolute; top: -6px; inset-inline-end: -8px; background: var(--orange); color: var(--ink); font-size: 10px; line-height: 1; padding: 3px 4px; letter-spacing: 0; }
.nav__links a[aria-current="page"] { color: var(--blue); }

.tool__icon { width: 56px; height: 56px; flex: none; display: block; }
.tool__icon svg { width: 100%; height: 100%; display: block; }
.tool__icon.is-soon { opacity: 0.35; }
.tool { position: relative; isolation: isolate; display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-bottom: 1px solid var(--rule-strong); color: inherit; }
.tool::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(47, 91, 255, 0.08); border-inline-start: 3px solid var(--blue); transform: scaleX(0); transform-origin: left center; opacity: 0; transition: transform 0.55s var(--ease), opacity 0.4s; }
[dir="rtl"] .tool::before { transform-origin: right center; }
a.tool:hover::before { transform: scaleX(1); opacity: 1; }
.tool__main { display: grid; gap: 6px; flex: 1; min-width: 0; }
.tool__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool__name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
[dir="rtl"] .tool__name { letter-spacing: 0; }
.tool__status { display: inline-flex; align-items: center; gap: 8px; }
.tool__short { color: var(--ink-2); }
.tool__spec { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); }
.tool__spec b { font-weight: 500; color: var(--muted); }
.tool__open { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: var(--blue); font-weight: 500; min-width: 0; }
.tool__host { color: var(--muted); text-transform: none; margin-inline-start: 6px; overflow-wrap: anywhere; }
.tool--soon { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.tool--soon .tool__icon { opacity: 0.4; }
.tools-list { border-top: 2px solid var(--ink); }

.tools-win { width: min(720px, calc(100vw - 64px)); height: auto; max-height: min(640px, calc(100svh - 80px)); }
.tools-win__body { display: grid; gap: 16px; align-content: start; }
.tools-win__all { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); }
@media (max-width: 760px) { .tools-win { width: calc(100vw - 32px); } }
@media (max-width: 560px) { .tools-win { width: 100vw; max-height: 100svh; height: 100svh; } }

.tools-strip { padding-block: clamp(60px, 9vw, 120px) 0; }
.tools-strip__row { display: grid; grid-template-columns: 1.4fr auto auto; gap: clamp(20px, 3vw, 40px); align-items: center; border-top: 2px solid var(--ink); padding-top: clamp(20px, 3vw, 30px); }
.tools-strip__body { color: var(--ink-2); max-width: 48ch; font-size: clamp(17px, 1.4vw, 20px); }
.tools-strip__icons { display: flex; gap: 10px; }
.tools-strip__open { border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 500; box-shadow: 5px 5px 0 var(--orange); }
.tools-strip__open:hover { box-shadow: 7px 7px 0 var(--orange); }
@media (max-width: 760px) { .tools-strip__row { grid-template-columns: 1fr; } }

.tools-page { min-height: 70svh; padding-block: clamp(48px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.tools-page__title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.045em; }
[dir="rtl"] .tools-page__title { letter-spacing: 0; line-height: 1.25; font-weight: 900; }
.tools-page__lead { color: var(--ink-2); max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); }
.tools-list--page { margin-top: 16px; }
.tool--big { padding: clamp(20px, 3vw, 32px) 18px; }
.tool--big .tool__icon { width: 72px; height: 72px; }
.tool--big .tool__name { font-size: clamp(24px, 2.6vw, 36px); }
.tools-win .book-win__body { overflow: auto; }

/* toolbox window: definite height (auto height collapsed the top-layer dialog to 0 and left it see-through) */
.tools-win { height: min(600px, calc(100svh - 80px)); }
.tools-win[open] { grid-template-rows: auto 1fr; }
.tools-win .book-win__body { overflow: auto; align-content: start; }

/* toolbox tabs + project cards + pitch */
.book-win__bar .tools-tabs { display: flex; margin-inline-start: auto; align-self: stretch; }
.tools-win .book-win__bar::after { display: none; }
.tools-tab { min-height: 48px; padding: 0 16px; border: 0; border-inline-start: 2px solid var(--ink); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.tools-tab span { color: var(--blue); }
.tools-tab[aria-selected="true"] { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.tools-tab:hover { color: var(--ink); }
[dir="rtl"] .tools-tab { letter-spacing: 0; font-family: "Geist Mono", "IBM Plex Sans Arabic", monospace; font-size: 13px; }
.tool__icon--img { background: #fff; border: 1px solid var(--rule-strong); display: grid; place-items: center; overflow: hidden; }
.tool__icon--img img { width: 84%; height: 84%; object-fit: contain; }
.tool__kind { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 11px; white-space: nowrap; }
.tool__kind--own { background: var(--orange); color: var(--ink); }
.tool__kind--client { background: var(--blue); color: #fff; }
.tools-pitch { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 18px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--orange); }
.tools-pitch__q { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.03em; }
[dir="rtl"] .tools-pitch__q { letter-spacing: 0; }
.tools-pitch__btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.tools-page--projects { min-height: 0; padding-top: 0; }
@media (max-width: 560px) { .tools-tab { padding: 0 10px; font-size: 11px; } #toolsWinTitle { display: none; } }
.tool__icon--img.is-full img { width: 100%; height: 100%; object-fit: cover; }

/* narrow phones: let the stat grid shrink and keep the nav buttons on screen */
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat > * { min-width: 0; }
}
@media (max-width: 380px) {
  .stat__n { font-size: 44px; }
  .nav { gap: 10px; }
  .nav__end { gap: 8px; }
  .nav__end .pill--ink { padding: 8px 12px; font-size: 13px; }
  .lang { padding: 7px 10px; }
}

/* method heading as word blocks: huge word, small stamp, huge word on a block. Animates when .reveal gets .in */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.method .sec-head:has(.kin) { grid-template-columns: 1fr; gap: 18px; }
.method__title.kin { grid-column: 1 / -1; font-size: clamp(54px, 14.5vw, 232px); line-height: 0.86; display: grid; gap: 0.06em; opacity: 1; transform: none; }
.kin__row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 0.12em; }
.kin__row--end { justify-content: flex-end; }
.kin__w { display: inline-block; overflow: hidden; padding-bottom: 0.06em; }
.kin__i { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.kin__w--xl { color: var(--on-dark); }
.kin__w--tag { font-size: clamp(18px, 0.2em, 46px); line-height: 1; margin-top: 0.55em; padding: 0.32em 0.5em 0.36em; background: var(--orange); color: var(--ink); letter-spacing: -0.02em;
  transform: rotate(-4deg) scale(0.6); opacity: 0; transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.55s, opacity 0.2s 0.55s; box-shadow: 0.18em 0.18em 0 var(--blue); }
.kin__w--tag .kin__i { transform: none; }
.kin__w--block { position: relative; padding: 0.02em 0.14em 0.1em; isolation: isolate; }
.kin__w--block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease) 0.25s; }
[dir="rtl"] .kin__w--block::before { transform-origin: right; }
.kin__w--block .kin__i { color: var(--on-dark); transition-delay: 0.45s; }
.kin.in .kin__i { transform: none; }
.kin.in .kin__w--tag { transform: rotate(-4deg); opacity: 1; }
.kin.in .kin__w--block::before { transform: none; }
.kin.in .kin__row:first-child .kin__w--xl .kin__i { transition-delay: 0.05s; }
[dir="rtl"] .method__title.kin { font-size: clamp(48px, 12.5vw, 200px); line-height: 1.18; }
[dir="rtl"] .kin__w--tag { margin-top: 0.35em; transform: rotate(4deg) scale(0.6); }
[dir="rtl"] .kin.in .kin__w--tag { transform: rotate(4deg); }
@media (max-width: 760px) { .kin__w--tag { font-size: 18px; margin-top: 0.6em; } }
@media (prefers-reduced-motion: reduce) {
  .kin__i, .kin__w--tag, .kin__w--block::before { transition: none !important; transform: none !important; opacity: 1 !important; }
  .kin__w--tag { transform: rotate(-4deg) !important; }
}
