/* ==========================================================================
   STK Portfolio — stylesheet
   ========================================================================== */

:root {
  --bg:        #FBFAF8;
  --surface:   #FFFFFF;
  --ink:       #17161A;
  --body:      #4A4753;
  --muted:     #6E6B75;
  --faint:     #9A96A2;
  --line:      #E5E2DC;
  --line-2:    #E8E4DE;
  --line-in:   #DFDBD3;
  --line-btn:  #D8D4CC;
  --brand:     #6E3EF2;
  --brand-dk:  #4A21C9;
  --brand-tint:#F1EDFE;
  --dark-mute: #A8A4B0;
  --dark-line: #3A3842;
  --shell:     1320px;
  --gutter:    40px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --sans:      'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:      'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[dir="rtl"] {
  --sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dk); }
img { max-width: 100%; }
::selection { background: #DDD3FB; color: var(--ink); }

input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Arabic numerals and Latin brand names inside Arabic text stay LTR */
html[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 12px 20px; font-size: 14px;
}
.skip:focus { inset-inline-start: 0; color: var(--bg); }

/* ------------------------------------------------------------------ header */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,248,.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
  height: 74px; display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 25px; width: auto; display: block;
  animation: stk-bar .8s var(--ease) both;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: translateX(3px) scale(1.04); }
html[dir="rtl"] .brand:hover .brand-mark { transform: translateX(-3px) scale(1.04); }
.brand-word { height: 15px; width: auto; display: block; animation: stk-rise .8s var(--ease) .12s both; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); }

.spacer { flex: 1; }

.lang { display: flex; align-items: center; gap: 3px; border: 1px solid #E0DCD4; padding: 3px; background: var(--surface); flex: none; }
.lang button { border: 0; cursor: pointer; background: transparent; color: var(--muted); transition: background .2s ease, color .2s ease; }
.lang .l-en { padding: 5px 11px; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; font-family: var(--mono); }
.lang .l-ar { padding: 5px 12px; font-size: 13px; font-weight: 600; font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.btn-dark {
  background: var(--ink); color: var(--bg); padding: 12px 20px;
  font-size: 14px; font-weight: 500; flex: none; border: 0; cursor: pointer;
  transition: background .3s ease;
}
.btn-dark:hover { background: var(--brand); color: var(--bg); }

.burger {
  display: none; flex: none; width: 42px; height: 42px; border: 1px solid #E0DCD4;
  background: var(--surface); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s ease; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after  { top:  5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
  padding: 8px var(--gutter) 24px;
}
.drawer.open { display: block; }
.drawer a {
  display: block; padding: 15px 0; font-size: 17px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.drawer a[aria-current="page"] { color: var(--brand); }
.drawer .btn-dark { display: block; text-align: center; margin-top: 22px; }

/* ---------------------------------------------------------------- sections */

.sec { border-top: 1px solid var(--line); }
.sec-white { background: var(--surface); }
.sec-dark { background: var(--ink); color: var(--bg); }

.eyebrow {
  display: flex; align-items: center; gap: 12px; font-family: var(--mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 32px;
}
html[dir="rtl"] .eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.eyebrow .rule { display: block; width: 26px; height: 1px; background: var(--brand); flex: none; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 26px;
}
html[dir="rtl"] .kicker { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 13px; }

.num { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .1em; flex: none; }
html[dir="rtl"] .num { font-family: var(--sans); letter-spacing: 0; }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
html[dir="rtl"] .sec-head h2 { letter-spacing: 0; line-height: 1.25; }
.sec-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); max-width: 70ch; }
html[dir="rtl"] .sec-lead { line-height: 1.85; }

h1 { text-wrap: pretty; }
h2, h3 { text-wrap: pretty; }

/* -------------------------------------------------------------------- hero */

.hero { max-width: var(--shell); margin: 0 auto; padding: 100px var(--gutter) 84px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 64px; align-items: center; }

.hero h1 {
  margin: 0; font-size: clamp(38px, 5.4vw, 78px); line-height: 1.03;
  letter-spacing: -.035em; font-weight: 600; max-width: 21ch;
  animation: stk-rise .9s var(--ease) .1s both;
}
html[dir="rtl"] .hero h1 { font-size: clamp(34px, 4.8vw, 70px); line-height: 1.18; letter-spacing: 0; max-width: 24ch; }

.hero .lead {
  margin: 32px 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.62;
  color: var(--body); max-width: 64ch;
  animation: stk-rise .9s var(--ease) .22s both;
}
html[dir="rtl"] .hero .lead { line-height: 1.85; max-width: 62ch; }
.hero .eyebrow { animation: stk-rise .8s var(--ease) both; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; animation: stk-rise .9s var(--ease) .34s both; }

.btn-primary {
  background: var(--brand); color: #FFF; padding: 15px 26px; font-size: 15px; font-weight: 500;
  transition: background .3s ease, transform .3s var(--ease);
}
.btn-primary:hover { background: var(--brand-dk); color: #FFF; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-btn); color: var(--ink); padding: 15px 26px;
  font-size: 15px; font-weight: 500; background: var(--surface);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* hero decorative bars */
.bars { display: flex; flex-direction: column; gap: 13px; padding-inline-start: 40px; }
.bar { transform: skewX(-22deg); height: 28px; }
.bar > i { display: block; height: 100%; }
html[dir="rtl"] .bar { transform: skewX(22deg); }

/* ------------------------------------------------------------------- stats */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 76px;
}
.stats > div { background: var(--bg); padding: 26px 24px; }
.stats .v { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .l { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ----------------------------------------------------------------- clients */

.clients-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.clients-head h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.clients-head p { margin: 0; font-size: 14px; color: var(--muted); max-width: 58ch; line-height: 1.6; }

.marquees {
  /* The 12px of the gap now lives inside each row as padding-block, so the
     chips' hover lift has somewhere to go. Visual spacing is unchanged. */
  display: flex; flex-direction: column; gap: 2px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
/* overflow:hidden is what makes the marquee scroll, but it also clips the
   chips' translateY hover. padding-block gives that lift room to happen
   inside the clipping box. */
.mq { overflow: hidden; padding-block: 6px; }
.mq-track { display: flex; gap: 12px; width: max-content; }
.mq-a .mq-track { animation: stk-marquee 58s linear infinite; }
.mq-b .mq-track { animation: stk-marquee-rev 64s linear infinite; }
.marquees:hover .mq-track { animation-play-state: paused; }

.chip {
  display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-2);
  padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--bg); letter-spacing: .01em; white-space: nowrap;
  transition: border-color .35s ease, background .35s ease, transform .35s var(--ease);
}
.chip:hover { border-color: var(--brand); background: var(--surface); transform: translateY(-2px); }
.chip i { display: block; width: 7px; height: 7px; flex: none; transform: skewX(-22deg); }
.chip-a i { background: linear-gradient(135deg, #B054BC, #46329D); }
.chip-b i { background: linear-gradient(135deg, #5131B6, #C062C4); }

/* --------------------------------------------------------------- flagships */

.flag-head { max-width: var(--shell); margin: 0 auto; padding: 88px var(--gutter) 40px; }
.flag {
  max-width: var(--shell); margin: 0 auto; padding: 44px var(--gutter) 52px;
  border-top: 1px solid var(--line);
}
.flag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 52px; align-items: start; }
.flag-meta {
  display: flex; align-items: center; gap: 14px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
html[dir="rtl"] .flag-meta { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.flag-meta .n { color: var(--brand); }
.flag h3 { margin: 18px 0 0; font-size: clamp(28px, 2.9vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
html[dir="rtl"] .flag h3 { letter-spacing: 0; line-height: 1.3; }
.flag .tagline { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink); font-weight: 500; max-width: 40ch; }
.flag .body { margin: 20px 0 0; font-size: 16px; line-height: 1.75; color: var(--body); max-width: 56ch; }
html[dir="rtl"] .flag .body { line-height: 1.9; }
.contrib { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.contrib .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .contrib .k { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.contrib .v { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { background: var(--brand-tint); color: var(--brand-dk); padding: 6px 11px; font-size: 12.5px; font-weight: 500; }
.tag-line { border: 1px solid var(--line-2); color: var(--muted); padding: 5px 9px; font-size: 11.5px; }

/* image slots: real screenshot if present, hatched placeholder if not */
.shot {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, #F4F2EE 0 11px, #EDEAE4 11px 22px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.shot-lg { aspect-ratio: 16 / 11; }
.shot-sm { aspect-ratio: 4 / 3; padding: 14px; }
.shot span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); line-height: 1.7;
}
html[dir="rtl"] .shot span { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.shot-sm span { font-size: 10.5px; letter-spacing: .09em; }
html[dir="rtl"] .shot-sm span { font-size: 12px; letter-spacing: 0; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* ------------------------------------------------------------- engagements */

.grid-cells {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cells-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.cells-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cells-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cells-5 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.eng { background: var(--surface); padding: 36px 34px 38px; }
.eng .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
html[dir="rtl"] .eng .k { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.eng h3 { margin: 16px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.eng .org { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.eng p { margin: 20px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--body); }
.eng ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.eng li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.eng li i { flex: none; width: 5px; height: 5px; background: var(--brand); margin-top: 8px; }
.eng-foot { margin: 24px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--faint); }
html[dir="rtl"] .eng-foot { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }

/* --------------------------------------------------------------------- CTA */

.cta {
  max-width: var(--shell); margin: 0 auto; padding: 92px var(--gutter) 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: end;
}
.cta h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; max-width: 24ch; }
html[dir="rtl"] .cta h2 { letter-spacing: 0; line-height: 1.3; }
.cta p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: var(--dark-mute); max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-on-dark { background: var(--brand); color: #FFF; padding: 16px 28px; font-size: 15px; font-weight: 500; transition: background .3s ease, color .3s ease; }
.btn-on-dark:hover { background: var(--bg); color: var(--ink); }
.btn-on-dark-ghost { border: 1px solid var(--dark-line); color: var(--bg); padding: 16px 28px; font-size: 15px; font-weight: 500; transition: border-color .3s ease; }
.btn-on-dark-ghost:hover { border-color: var(--bg); color: var(--bg); }

/* -------------------------------------------------------------- page heads */

.page-head { max-width: var(--shell); margin: 0 auto; padding: 88px var(--gutter) 56px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; letter-spacing: -.035em; line-height: 1.07; max-width: 22ch; }
html[dir="rtl"] .page-head h1 { letter-spacing: 0; line-height: 1.25; max-width: 24ch; }
.page-head p { margin: 26px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--body); max-width: 72ch; }
html[dir="rtl"] .page-head p { line-height: 1.9; }

/* -------------------------------------------------------------- work groups */

.group-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: baseline; margin-bottom: 40px; }
.group-title { display: flex; align-items: baseline; gap: 16px; }
.group-title h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.18; }
html[dir="rtl"] .group-title h2 { letter-spacing: 0; line-height: 1.3; }
.group-head p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
html[dir="rtl"] .group-head p { line-height: 1.85; }

.card { background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; transition: background .3s ease; }
.card:hover { background: #FCFBFE; }
.card .cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
html[dir="rtl"] .card .cat { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.card h3 { margin: 14px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; }
html[dir="rtl"] .card h3 { letter-spacing: 0; line-height: 1.35; }
.card .tagline { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.card .body { margin: 14px 0 0; font-size: 14.5px; line-height: 1.72; color: var(--body); }
html[dir="rtl"] .card .body { line-height: 1.9; }
.card .grow { flex: 1; min-height: 20px; }
.card .tags { gap: 7px; margin-top: 20px; }

/* --------------------------------------------------------------- services */

.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc-title { display: flex; gap: 18px; align-items: baseline; }
.svc-title h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
html[dir="rtl"] .svc-title h2 { letter-spacing: 0; line-height: 1.35; }
.svc p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body); grid-column: span 2; }
html[dir="rtl"] .svc p { line-height: 1.9; }

.phase { background: var(--surface); padding: 30px 26px 34px; }
.phase .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--brand); }
html[dir="rtl"] .phase .n { font-family: var(--sans); letter-spacing: 0; font-size: 12.5px; }
.phase h3 { margin: 14px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.phase p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--body); }
html[dir="rtl"] .phase p { line-height: 1.9; }

.block-title { margin: 0 0 36px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; }
html[dir="rtl"] .block-title { letter-spacing: 0; line-height: 1.35; }

/* ------------------------------------------------------------------- about */

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.about h1 { margin: 0; font-size: clamp(32px, 3.8vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
html[dir="rtl"] .about h1 { letter-spacing: 0; line-height: 1.28; }
.about p { margin: 28px 0 0; font-size: 17px; line-height: 1.75; color: var(--body); }
html[dir="rtl"] .about p { line-height: 1.95; }
.about p + p { margin-top: 18px; }
.owner { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.owner .name { font-size: 17px; font-weight: 600; }
.owner .role { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.portrait { aspect-ratio: 4 / 5; }

.pill { border: 1px solid var(--line); background: var(--surface); padding: 11px 17px; font-size: 14.5px; color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px; align-items: start; }
.contact h1 { margin: 0; font-size: clamp(32px, 3.8vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
html[dir="rtl"] .contact h1 { letter-spacing: 0; line-height: 1.28; }
.contact .intro { margin: 26px 0 0; font-size: 17px; line-height: 1.75; color: var(--body); max-width: 52ch; }
html[dir="rtl"] .contact .intro { line-height: 1.95; }
.rows { margin-top: 40px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rows > div { background: var(--bg); padding: 20px 24px; }
.rows .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .rows .k { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.rows .v { margin-top: 6px; font-size: 16px; color: var(--ink); }

.form-card { border: 1px solid var(--line); background: var(--surface); padding: 36px 34px 40px; }
.form-card h2 { margin: 0 0 26px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--body); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-in); background: var(--bg); padding: 12px 14px; font-size: 15px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { font-size: 12.5px; color: #C0392B; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0392B; }
.form-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--faint); }
.btn-submit {
  background: var(--ink); color: var(--bg); border: 0; padding: 15px 22px;
  font-size: 15px; font-weight: 500; cursor: pointer; justify-self: start;
  transition: background .3s ease;
}
.btn-submit:hover { background: var(--brand); }
.sent { padding: 40px 0; text-align: center; }
.sent .badge { width: 40px; height: 40px; background: var(--brand); margin: 0 auto; transform: skewX(-22deg); }
.sent h2 { margin: 24px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.sent p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.sent button { margin-top: 24px; }

/* ------------------------------------------------------------------ footer */

.ftr { border-top: 1px solid var(--line); background: var(--bg); }
.ftr-in {
  max-width: var(--shell); margin: 0 auto; padding: 56px var(--gutter) 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; align-items: start;
}
.ftr-brand { display: flex; align-items: center; gap: 15px; }
.ftr-brand img.m { height: 36px; width: auto; display: block; }
.ftr-brand img.w { height: 22px; width: auto; display: block; }
.ftr p { margin: 20px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 34ch; }
.ftr-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--body); }
.ftr-col a { color: var(--body); }
.ftr-col a:hover { color: var(--brand); }
.ftr .copy { color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
html[dir="rtl"] .ftr .copy { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }

/* -------------------------------------------------------------- animations */

@keyframes stk-marquee     { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes stk-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes stk-rise        { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stk-bar         { 0% { opacity: 0; transform: translateX(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes stk-in          { 0% { opacity: 0; transform: translateX(-46px); } 100% { opacity: 1; transform: none; } }
@keyframes stk-drift       { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(36px); } }

/* mirrored so the hero bars fly in from the correct edge in Arabic */
@keyframes stk-in-rtl      { 0% { opacity: 0; transform: translateX(46px); } 100% { opacity: 1; transform: none; } }
@keyframes stk-drift-rtl   { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-36px); } }
html[dir="rtl"] .bar > i   { animation-name: stk-in-rtl, stk-drift-rtl !important; }
html[dir="rtl"] .brand-mark { animation-name: stk-bar-rtl; }
@keyframes stk-bar-rtl     { 0% { opacity: 0; transform: translateX(14px); } 100% { opacity: 1; transform: none; } }

[data-reveal] { will-change: opacity, transform; }
.reveal-hidden { opacity: 0; transform: translateY(18px); }
.reveal-shown  { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .bars { padding-inline-start: 0; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav, .hdr .btn-dark { display: none; }
  .burger { display: flex; }
  .hdr-in { gap: 16px; height: 66px; }
  .hero { padding: 64px var(--gutter) 56px; }
  .hero-grid { gap: 44px; }
  .stats { margin-top: 48px; }
  .flag-head { padding: 60px var(--gutter) 32px; }
  .flag { padding: 36px var(--gutter) 44px; }
  .flag-grid { gap: 36px; }
  .cta { padding: 64px var(--gutter) 68px; gap: 32px; }
  .page-head { padding: 60px var(--gutter) 40px; }
  .contact-grid, .about-grid { gap: 44px; }
  .form-card { padding: 28px 24px 32px; }
  .eng { padding: 28px 26px 30px; }
  .ftr-in { padding: 44px var(--gutter) 52px; gap: 32px; }
}

@media (max-width: 620px) {
  .hero h1 { max-width: none; }
  .bars { display: none; }
  .clients-head { gap: 12px; }
  .shot-pair { grid-template-columns: 1fr; }
  .svc { gap: 16px; padding: 32px 0; }
  .svc p { grid-column: auto; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions a { text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-hidden { opacity: 1; transform: none; }
}

@media print {
  .hdr, .drawer, .marquees, .hero-actions, .cta-actions { display: none !important; }
  body { background: #fff; }
  .reveal-hidden { opacity: 1; transform: none; }
}

/* ==========================================================================
   Real imagery + live enquiry form
   Additions to the original prototype stylesheet. Everything above stays as
   designed; these rules cover the pieces the static prototype only mocked.
   ========================================================================== */

/* ------------------------------------------------------- client logo chips */

/* Logo-only chips: the mark is the whole content, so the chip is a tile of
   fixed height whose width follows the lockup's own proportions. */
.chip { min-height: 74px; padding: 14px 22px; justify-content: center; }

.chip-logo {
  display: block; height: 38px; width: auto; max-width: 172px;
  flex: none; object-fit: contain;
  /* Government marks arrive in a dozen different colours. A touch of
     desaturation at rest lets the strip read as one row, and full colour on
     hover rewards the look. */
  filter: saturate(.85);
  transition: filter .35s ease;
}
.chip:hover .chip-logo { filter: saturate(1); }

/* Only reached if a client has no generated mark at all. */
.chip-text { font-size: 15px; font-weight: 600; letter-spacing: .02em; }

/* --------------------------------------------------------- work-card shots */

.card-shot {
  position: relative; margin: -30px -28px 26px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.card-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  transform: scale(1.01);
  transition: transform .6s var(--ease);
}
.card:hover .card-shot img { transform: scale(1.045); }

/* ------------------------------------------------------------- enquiry form */

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.btn-submit[disabled] { opacity: .55; cursor: progress; }
.btn-submit[disabled]:hover { background: var(--ink); }

.form-error {
  margin: 0; padding: 12px 14px; font-size: 13.5px; line-height: 1.6;
  color: #8A1C2B; background: #FDF2F3; border: 1px solid #F0D2D6;
}

/* Real screenshots replace the hatched placeholder entirely, so drop the
   hatch behind them — a half-visible pattern showing through an image edge
   reads as an artefact. */
.shot:has(img) { background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .chip-logo, .card-shot img { transition: none; }
  .card:hover .card-shot img { transform: none; }
}
