/* Rule of Thirds — Stone & Bronze. Layout hangs on the thirds: 1/3 text column, 2/3 image column,
   one vertical + one horizontal guide line per hero, one bronze point where they cross. */
:root {
  --plaster: #F2F1EF; --limestone: #E4E1DC; --travertine: #CBC4BA; --smoke: #8E8982;
  --ash: #67635D; --graphite: #2D2C2A; --ink: #1A1918; --bronze: #765B3F; --brass: #BFA07A;
  --paper: #FFFFFF;

  --bg: var(--plaster); --panel: var(--limestone); --fg: var(--ink); --muted: var(--ash);
  --line: var(--travertine); --line-strong: var(--smoke); --accent: var(--bronze); --on-accent: var(--plaster);
  --band: var(--limestone); --band-fg: var(--ink); --band-muted: var(--ash);
  --band-accent: var(--bronze); --band-line: var(--travertine);
  --logo-b: block; --logo-w: none;

  --sans: "SansSerif FLF", "Jost", "Century Gothic", "Futura", sans-serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --arabic: "Tajawal", "Geeza Pro", "Segoe UI", sans-serif;
  --c1: 33.333%;
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.75; }
html[lang="en"] [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; font-weight: 500; }
.headline {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; text-wrap: balance;
}
html[lang="ar"] .headline { letter-spacing: 0; text-transform: none; line-height: 1.45; font-weight: 400; }
.lead { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }

/* ---------- header ---------- */
.skip { position: absolute; left: 16px; top: -120px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { flex: none; width: 140px; }
.brand img { width: 140px; height: auto; }
.logo-b { display: var(--logo-b); }
.logo-w { display: var(--logo-w); }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding-block: 8px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { border-bottom-color: var(--fg); }
html[lang="ar"] .nav a { letter-spacing: 0; font-size: 15px; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  font: inherit; font-size: 13px; line-height: 1; color: var(--fg); background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 9px 12px; min-width: 56px;
}
.lang [lang="ar"] { font-family: var(--arabic); font-size: 15px; }
.lang:hover { border-color: var(--fg); }
.head-call {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 10px 14px; border-radius: 2px; background: var(--fg); color: var(--bg); white-space: nowrap;
}
.head-call:hover { background: var(--accent); color: var(--on-accent); }
html[lang="ar"] .head-call { letter-spacing: 0; font-size: 14px; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  padding: 14px 22px; border-radius: 2px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); color: var(--fg); background: transparent; }
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; }

/* ---------- hero ---------- */
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: var(--c1) 1fr; position: relative; }
.hero-txt {
  display: grid; align-content: space-between; gap: 32px; min-width: 0;
  padding-block: clamp(40px, 6vw, 80px); padding-inline-end: clamp(20px, 3vw, 44px);
  border-inline-end: 1px solid var(--fg);
}
.hero-txt h1 {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; text-wrap: balance; margin-top: 14px;
}
html[lang="ar"] .hero-txt h1 { letter-spacing: 0; text-transform: none; line-height: 1.3; font-weight: 400; }
.hero-txt .lead { font-size: 17px; }
.hero-quick { display: grid; gap: 4px; font-size: 14px; }
.hero-quick a { text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.hero-quick a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-img { position: relative; min-width: 0; padding-block: clamp(24px, 3vw, 40px); padding-inline-start: clamp(20px, 3vw, 44px); }
.hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); }
.hero-img figcaption { margin-top: 10px; }
.hero-line {
  position: absolute; left: -100vw; right: -100vw; top: 100%; height: 1px; background: var(--fg); pointer-events: none; z-index: 1;
}
.hero-pt {
  position: absolute; top: 100%; inset-inline-start: var(--c1); width: 13px; height: 13px; border-radius: 999px;
  background: var(--accent); transform: translate(-50%, -50%); z-index: 2;
}
html[dir="rtl"] .hero-pt { transform: translate(50%, -50%); }
.cap { font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }

/* page hero (inner pages) */
.page-hero { border-bottom: 1px solid var(--line); overflow-x: clip; }
.page-hero .ph-grid { display: grid; grid-template-columns: var(--c1) 1fr; }
.page-hero .ph-l { border-inline-end: 1px solid var(--fg); padding-block: clamp(40px, 6vw, 88px) 28px; padding-inline-end: 20px; position: relative; }
.page-hero .ph-l::after {
  content: ""; position: absolute; inset-inline-end: -7px; bottom: -7px; width: 13px; height: 13px; border-radius: 999px; background: var(--accent); z-index: 2;
}
.page-hero .ph-r { padding-block: clamp(40px, 6vw, 88px) 28px; padding-inline-start: clamp(20px, 4vw, 56px); display: grid; gap: 16px; min-width: 0; }
.page-hero h1 {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; text-wrap: balance;
}
html[lang="ar"] .page-hero h1 { letter-spacing: 0; text-transform: none; line-height: 1.3; font-weight: 400; }
.page-hero .ph-base { position: relative; height: 1px; }
.page-hero .ph-base::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; height: 1px; background: var(--fg); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.jump a { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.jump a:hover { border-bottom-color: var(--accent); }

/* ---------- sections ---------- */
.block { padding-block: clamp(56px, 8vw, 112px); }
.block + .block { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: var(--c1) 1fr; margin-bottom: clamp(32px, 4vw, 56px); align-items: end; gap: 16px 0; }
.sec-head > div { display: grid; gap: 14px; min-width: 0; }
.sec-head .more { justify-self: start; }
.split { display: grid; grid-template-columns: var(--c1) 1fr; gap: 0; }
.split > * { min-width: 0; }
.split > :first-child { padding-inline-end: 24px; }

/* work cards (home) */
.work { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.work .card:first-child { grid-row: span 2; }
.card { display: grid; gap: 12px; text-decoration: none; align-content: start; min-width: 0; }
.card .ph { overflow: hidden; background: var(--panel); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.work .card:first-child img { aspect-ratio: 4 / 3; }
.card:hover img { transform: scale(1.025); }
.card h3 { font-size: 20px; font-weight: 400; line-height: 1.35; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .arrow { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* services list */
.svc-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.svc-quick a { padding: 22px 22px 24px 0; text-decoration: none; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .svc-quick a { padding: 22px 0 24px 22px; }
.svc-quick a + a { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.svc-quick h3 { font-size: 19px; font-weight: 400; line-height: 1.35; }
.svc-quick p { font-size: 14px; color: var(--muted); }
.svc-quick a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.svc { border-top: 1px solid var(--line-strong); }
.svc-row { display: grid; grid-template-columns: var(--c1) 1fr; padding-block: 32px; border-bottom: 1px solid var(--line); }
.svc-row > div:first-child { display: grid; gap: 8px; align-content: start; padding-inline-end: 24px; }
.svc-row h2 { font-size: 24px; font-weight: 400; line-height: 1.3; }
.svc-row .body { display: grid; gap: 14px; min-width: 0; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.incl li { font-size: 15px; padding-inline-start: 18px; position: relative; }
.incl li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.72em; width: 8px; height: 1px; background: var(--fg); }
.best { font-size: 14px; color: var(--muted); }

/* projects */
.proj { padding-block: clamp(56px, 8vw, 104px); }
.proj + .proj { border-top: 1px solid var(--line); }
.proj-head { display: grid; grid-template-columns: var(--c1) 1fr; gap: 16px 0; margin-bottom: 28px; }
.proj-head > div { display: grid; gap: 12px; min-width: 0; }
.proj-head h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
html[lang="ar"] .proj-head h2 { letter-spacing: 0; text-transform: none; font-weight: 400; }
.tags { font-size: 13px; color: var(--muted); }
.gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gal figure { margin: 0; min-width: 0; }
.gal .w6 { grid-column: span 6; }
.gal .w4 { grid-column: span 4; }
.gal .w3 { grid-column: span 3; }
.gal .w2 { grid-column: span 2; }
.gal button { all: unset; display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: var(--panel); }
.gal button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gal img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.gal .tall img { aspect-ratio: 8 / 9; }
.gal button:hover img { transform: scale(1.02); }
.gal figcaption { margin-top: 8px; }
.gal .stack { display: grid; gap: 12px; grid-template-rows: 1fr 1fr; }
.opt-label { display: flex; gap: 10px; align-items: baseline; margin: 28px 0 12px; }
.opt-label .n { font-family: var(--serif); font-size: 28px; line-height: 1; }
.proj-contact {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 18px 22px; background: var(--panel);
}
.proj-contact .q { font-size: 15px; margin-inline-end: auto; }
.proj-contact a { font-size: 15px; text-decoration: none; direction: ltr; unicode-bidi: isolate; border-bottom: 1px solid var(--line-strong); }
.proj-contact a:hover { border-bottom-color: var(--accent); }

/* about */
.ratio { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.numeral { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: 1; white-space: nowrap; direction: ltr; }
.numeral b { font-weight: 400; color: var(--accent); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.three > div { padding: 24px 24px 4px 0; display: grid; gap: 8px; align-content: start; }
html[dir="rtl"] .three > div { padding: 24px 0 4px 24px; }
.three > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.three h3 { font-size: 20px; font-weight: 400; line-height: 1.35; }
.three p { font-size: 15px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
html[dir="rtl"] .steps li { padding: 22px 0 26px 22px; }
.steps li:not(:nth-child(3n+1)) { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.steps .n { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps .t { font-size: 18px; line-height: 1.4; }
.steps .d { font-size: 14px; color: var(--muted); }
.solve { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.solve > div { display: grid; grid-template-columns: var(--c1) 1fr; padding-block: 24px; border-bottom: 1px solid var(--line); }
.solve h3 { font-size: 19px; font-weight: 400; line-height: 1.4; padding-inline-end: 24px; }
.solve p { color: var(--muted); max-width: 62ch; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; text-wrap: balance; }

/* contact page */
.c-big { display: grid; gap: 28px; }
.c-item { display: grid; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.c-item .v { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; direction: ltr; unicode-bidi: isolate; text-decoration: none; }
html[dir="rtl"] .c-item .v { text-align: right; }
.c-item .v:hover { color: var(--accent); }
.c-item .acts { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.c-item .acts a, .c-item .acts button { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 16px; background: var(--panel); padding: clamp(20px, 3vw, 36px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); width: 100%;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 12px 14px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: 13px; color: var(--muted); }

/* contact band (all pages) */
.band { background: var(--band); color: var(--band-fg); overflow-x: clip; }
.band .eyebrow { color: var(--band-muted); }
.band-grid { display: grid; grid-template-columns: var(--c1) 1fr; padding-block: clamp(56px, 8vw, 104px) 0; }
.band-l { border-inline-end: 1px solid var(--band-fg); padding-inline-end: 24px; padding-bottom: 32px; display: flex; align-items: flex-end; }
.band-l img { width: min(180px, 100%); height: auto; }
.band-r { padding-inline-start: clamp(20px, 4vw, 56px); padding-bottom: 32px; display: grid; gap: 14px; min-width: 0; }
.band .quote { color: var(--band-fg); }
.band .muted-band { color: var(--band-muted); max-width: 58ch; }
html[lang="ar"] .band .ar-h { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.45; }
.band-base { grid-column: 1 / -1; position: relative; height: 1px; }
.band-base::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; height: 1px; background: var(--band-fg); }
.band-base::after { content: ""; position: absolute; top: 0; inset-inline-start: var(--c1); width: 13px; height: 13px; border-radius: 999px; background: var(--band-accent); transform: translate(-50%, -50%); }
html[dir="rtl"] .band-base::after { transform: translate(50%, -50%); }
.band-r2 { grid-column: 2; padding-inline-start: clamp(20px, 4vw, 56px); padding-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.band-l2 { border-inline-end: 1px solid var(--band-fg); }
.band-r2 > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.band .v { font-size: 18px; line-height: 1.45; text-decoration: none; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
html[dir="rtl"] .band .v { text-align: right; }
.band .v:hover { color: var(--band-accent); }
.band .v.addr { direction: inherit; font-size: 15px; }
.band .sub { font-size: 13px; color: var(--band-muted); }
.band .sub a { color: var(--band-accent); }
.band a:focus-visible, .band button:focus-visible { outline-color: var(--band-accent); }
.foot { margin-top: clamp(48px, 7vw, 88px); padding-block: 20px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: var(--band-muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--band-fg); }

/* mobile quick-contact bar */
.qbar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(242, 241, 239, 0.98); display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: flex-end; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 12px max(16px, env(safe-area-inset-left, 0px)); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-size: 13px; color: var(--ash); }
.lb button { font: inherit; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--smoke); border-radius: 2px; padding: 10px 14px; cursor: pointer; }
.lb button:hover { border-color: var(--bronze); }
.lb button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.lb .nav-b { display: flex; gap: 10px; }

/* ---------- narrow ---------- */
@media (max-width: 960px) {
  .nav { gap: 18px; }
  .head-call { display: none; }
  .svc-quick { grid-template-columns: 1fr 1fr; }
  .svc-quick a:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .band-r2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --c1: 1fr; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .head-row { flex-wrap: wrap; row-gap: 4px; padding-block: 10px 0; }
  .brand, .brand img { width: 112px; }
  .head-tools { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 0; justify-content: space-between; border-top: 1px solid var(--line); }
  .nav a { font-size: 11px; letter-spacing: 0.1em; padding-block: 11px; }
  html[lang="ar"] .nav a { font-size: 14px; }
  .hero-grid, .page-hero .ph-grid, .sec-head, .split, .svc-row, .proj-head, .solve > div, .band-grid { grid-template-columns: 1fr; }
  .hero-txt { border-inline-end: 0; padding-inline-end: 0; padding-block: 32px 24px; }
  .hero-img { padding-inline-start: 0; padding-block: 0 32px; }
  .hero-line, .hero-pt { display: none; }
  .page-hero .ph-l { border-inline-end: 0; padding-block: 32px 0; }
  .page-hero .ph-l::after { display: none; }
  .page-hero .ph-r { padding-inline-start: 0; padding-block: 10px 28px; }
  .split > :first-child { padding-inline-end: 0; margin-bottom: 14px; }
  .work { grid-template-columns: 1fr; }
  .work .card:first-child { grid-row: auto; }
  .work .card:first-child img { aspect-ratio: 16 / 10; }
  .svc-quick, .three, .steps, .band-r2 { grid-template-columns: 1fr; }
  .svc-quick a, .svc-quick a + a, html[dir="rtl"] .svc-quick a { border-inline-start: 0; padding: 18px 0; }
  .three > div, .three > div + div, html[dir="rtl"] .three > div { border-inline-start: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .steps li, .steps li:not(:nth-child(3n+1)), html[dir="rtl"] .steps li { border-inline-start: 0; padding: 18px 0; }
  .incl { grid-template-columns: 1fr; }
  .svc-row > div:first-child { padding-inline-end: 0; margin-bottom: 8px; }
  .solve h3 { padding-inline-end: 0; margin-bottom: 6px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal .w6, .gal .w4 { grid-column: span 2; }
  .gal .w3, .gal .w2 { grid-column: span 1; }
  .gal .stack { grid-column: span 2; grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ratio { grid-template-columns: 1fr; gap: 10px; }
  .form .row { grid-template-columns: 1fr; }
  .band-l { border-inline-end: 0; padding-bottom: 20px; }
  .band-r { padding-inline-start: 0; }
  .band-base::after { display: none; }
  .band-l2 { display: none; }
  .band-r2 { grid-column: 1; padding-inline-start: 0; }
  .proj-contact .q { width: 100%; }
  .qbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
    background: var(--band); border-top: 1px solid var(--band-line);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .qbar a { color: var(--band-fg); text-decoration: none; text-align: center; padding: 16px 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
  html[lang="ar"] .qbar a { letter-spacing: 0; font-size: 15px; }
  .qbar a + a { border-inline-start: 1px solid var(--band-line); }
  .qbar a:first-child { color: var(--band-accent); }
}
@media (max-width: 760px) {
  .gal .tall { grid-column: span 2; }
  .gal .tall img { aspect-ratio: 4 / 5; }
}

/* ---------- Flow revision (30 Oct): no boxed dividers; the thirds stay as alignment only ---------- */
.site-head { border-bottom-color: transparent; transition: border-color .25s ease; }
.site-head.scrolled { border-bottom-color: var(--line); }
.hero-txt { border-inline-end: 0; }
.hero-line, .hero-pt { display: none; }
.page-hero { border-bottom: 0; }
.page-hero .ph-l, .page-hero .ph-l::after { border-inline-end: 0; }
.page-hero .ph-l::after, .page-hero .ph-base { display: none; }
.page-hero .ph-r { padding-bottom: 0; }
.block + .block, .proj + .proj { border-top: 0; }
.block { padding-block: clamp(48px, 7vw, 96px); }
.page-hero + .block, .page-hero + .proj { padding-top: clamp(40px, 5vw, 64px); }

/* the thirds mark: a short line ending in the bronze point, once per page */
.hero-txt .eyebrow::before, .page-hero .eyebrow::before {
  content: ""; display: block; width: 34px; height: 9px; margin-bottom: 14px;
  background:
    linear-gradient(var(--fg), var(--fg)) left center / 100% 1px no-repeat,
    radial-gradient(circle at center, var(--accent) 0 4px, transparent 4.5px) right center / 9px 9px no-repeat;
}
html[dir="rtl"] .hero-txt .eyebrow::before, html[dir="rtl"] .page-hero .eyebrow::before {
  background:
    linear-gradient(var(--fg), var(--fg)) right center / 100% 1px no-repeat,
    radial-gradient(circle at center, var(--accent) 0 4px, transparent 4.5px) left center / 9px 9px no-repeat;
}

/* lists: hairline on top only, no vertical cell dividers */
.svc-quick { gap: 0 28px; border-top: 0; }
.svc-quick a, html[dir="rtl"] .svc-quick a, .svc-quick a + a {
  border-inline-start: 0; border-bottom: 0; border-top: 1px solid var(--line-strong);
  padding: 20px 0 8px; grid-template-rows: auto 1fr auto;
}
.three { gap: 0 32px; border-top: 0; }
.three > div, html[dir="rtl"] .three > div, .three > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding: 22px 0 4px; }
.steps { gap: 0 28px; border-top: 0; }
.steps li, html[dir="rtl"] .steps li, .steps li:not(:nth-child(3n+1)) { border-inline-start: 0; border-bottom: 0; border-top: 1px solid var(--line); padding: 20px 0 24px; }

/* service outcome image: small */
.outcome { margin: 6px 0 0; display: grid; gap: 8px; max-width: 300px; }
.outcome img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); }
.svc-quick .outcome { max-width: none; margin-top: 10px; }
.svc-quick .outcome .cap { display: none; }

/* contact band: no guide lines, two contact columns */
.band-l, .band-l2 { border-inline-end: 0; }
.band-base { display: none; }
.band-r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; padding-top: 8px; }
.band-r { padding-bottom: 24px; }

@media (max-width: 760px) {
  .svc-quick, .three, .steps { gap: 0; }
  .svc-quick a { padding: 18px 0 14px; }
  .outcome { max-width: 260px; }
  .svc-quick .outcome { max-width: 260px; }
  .band-r2 { grid-template-columns: 1fr; }
  .nav { border-top: 0; }
}

/* ---------- Header band (30 Oct): header + opening section on Limestone, page body on Plaster ---------- */
:root { --head-bg: var(--limestone); }
body::before { background: var(--head-bg); }
.site-head { background: var(--head-bg); }
.site-head.scrolled { border-bottom-color: var(--travertine); }
.hero, .page-hero { background: var(--head-bg); }
.hero-txt { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 64px); }
.hero-img { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 64px); }
.page-hero .ph-r { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero + .block, .page-hero + .proj { padding-top: clamp(48px, 6vw, 80px); }
.hero-img img { background: var(--plaster); }
@media (max-width: 760px) {
  .hero-img { padding-block: 0 32px; }
  .page-hero .ph-r { padding-bottom: 32px; }
}

/* ---------- Alignment + project spacing (30 Oct) ---------- */
/* opening text and images start on the same 1/3 line as the content below (EN and AR) */
.page-hero .ph-r, .hero-img { padding-inline-start: 0; }
.hero-txt { padding-inline-end: clamp(24px, 3vw, 48px); }
/* projects follow each other closely, separated by one hairline */
.proj { padding-block: clamp(24px, 3vw, 36px); }
.page-hero + .proj { padding-top: clamp(40px, 5vw, 56px); }
.proj + .proj .proj-head { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); }
.proj-head { margin-bottom: 20px; }
.proj-contact { margin-top: 20px; }
.opt-label { margin: 20px 0 10px; }
@media (max-width: 760px) {
  .gal .w2:first-child:nth-last-child(3) { grid-column: span 2; }
}

/* contact page actions: one per line, same type and alignment */
.c-item .acts { display: grid; justify-items: start; gap: 6px; }
.c-item .acts a, .c-item .acts button { font-size: 14px; line-height: 1.5; text-align: start; }
.c-big { align-content: start; gap: 22px; }
.c-item { align-content: start; gap: 8px; }
.c-item .acts { gap: 4px; margin-top: 4px; }
/* honeypot field: hidden without pushing the page sideways (fixes Arabic overflow) */
.form .hp { position: absolute; left: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
