/* Nectar General Construction
   Stone, charcoal and the sand of the logo's nested gables (#cbb38d,
   sampled). Bronze #8a6534 is the darker sand for text on stone (AA).

   Type: Fraunces (display) + Manrope (text); Arabic: Noto Kufi Arabic
   (display) + IBM Plex Sans Arabic (text).

   The gable (a house outline with a pitched roof) is the one motif: photo
   frames, line-work behind images, the CTA band, the intro.

   RTL: logical properties only -- check.mjs fails the build on any physical
   left/right -- so the Arabic pages mirror with no overrides. */

:root {
  --stone: #f3eee6;
  --stone-2: #e9e1d4;
  --card: #faf7f2;
  --ink: #1d1a16;
  --ink-2: #4b443b;
  --muted: #7a7062;
  --line: #ddd3c3;
  --sand: #cbb38d;
  --sand-2: #e4d5bc;
  --bronze: #8a6534;
  --night: #191612;
  --night-2: #24201b;

  --serif: 'Fraunces', 'Noto Kufi Arabic', Georgia, serif;
  --sans: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --wrap: 1260px;
  --gutter: clamp(16px, 3.5vw, 36px);
  --section: clamp(48px, 6vw, 92px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(29, 26, 22, .05), 0 18px 40px -18px rgba(29, 26, 22, .28);
  --gable: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%);
}

html[lang='ar'] {
  --serif: 'Noto Kufi Arabic', 'Fraunces', serif;
  --sans: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang='ar'] body { font-size: 17px; line-height: 1.85; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 .9em; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--stone); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] .i-arrow { transform: scaleX(-1); }

/* ------------------------------------------------------------ type */

.display {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: 'opsz' 144;
}
.display .line { display: block; }
.display .accent { font-style: italic; color: var(--bronze); font-weight: 300; }
html[lang='ar'] .display { font-weight: 700; line-height: 1.4; letter-spacing: 0; font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
html[lang='ar'] .display .accent { font-style: normal; font-weight: 500; }

.display-sm {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: 'opsz' 144;
}
html[lang='ar'] .display-sm { font-weight: 700; line-height: 1.45; letter-spacing: 0; font-size: clamp(1.8rem, 3.4vw, 2.9rem); }

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: .45em;
  font-variation-settings: 'opsz' 96;
}
.h3 { font-family: var(--serif); font-weight: 450; font-size: 1.45rem; line-height: 1.2; margin-bottom: .6em; }
html[lang='ar'] .h2, html[lang='ar'] .h3 { font-weight: 700; letter-spacing: 0; line-height: 1.5; }
html[lang='ar'] .h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
html[lang='ar'] .h3 { font-size: 1.25rem; }

.lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 1em;
}
html[lang='ar'] .eyebrow { letter-spacing: 0; font-size: .9rem; font-weight: 600; }
/* a tiny gable: the roof line of the logo */
.tick { width: 1.4em; height: .7em; flex: none; background: currentColor; clip-path: polygon(0 100%, 50% 0, 100% 100%, 86% 100%, 50% 28%, 14% 100%); }

/* ------------------------------------------------------------ brand */

.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.mark { width: 40px; height: 40px; flex: none; }
.mark .g, .intro-mark .g, .nf-mark .g { fill: none; stroke-width: 5.2; stroke-linejoin: round; }
.mark .g0, .intro-mark .g0, .nf-mark .g0 { stroke: #cbb38d; }
.mark .g1, .intro-mark .g1, .nf-mark .g1 { stroke: #d3be9c; }
.mark .g2, .intro-mark .g2, .nf-mark .g2 { stroke: #d9c7a8; }
.mark .g3, .intro-mark .g3, .nf-mark .g3 { stroke: #dfcfb3; }
.mark .core, .intro-mark .core, .nf-mark .core { fill: #e4d5bc; }
.wm-text { display: grid; line-height: 1; }
.wm-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; font-variation-settings: 'opsz' 36; }
.wm-sub { font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
html[lang='ar'] .wm-name { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 700; font-size: 1.2rem; }
html[lang='ar'] .wm-sub { letter-spacing: 0; font-size: .74rem; font-weight: 600; margin-top: 2px; }
.wm-light { color: var(--stone); }
.wm-light .wm-sub { color: #a99e8e; }

/* ------------------------------------------------------------ buttons */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.5em;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--stone);
  font: 700 .86rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
html[lang='ar'] .btn { font-weight: 600; font-size: .95rem; letter-spacing: 0; }
/* the fill slides in from the reading start, like a wall going up */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze); transform: scaleX(0); transform-origin: var(--o, left center); transition: transform .5s var(--ease);
}
[dir='rtl'] .btn::before { --o: right center; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--bronze); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--stone); }
.btn-light { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.btn-light::before { background: var(--sand); }
.btn-light:hover { border-color: var(--sand); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--stone); border-color: rgba(243, 238, 230, .4); }
.btn-ghost-light::before { background: var(--stone); }
.btn-ghost-light:hover { color: var(--ink); border-color: var(--stone); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .8rem; }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
[dir='rtl'] .btn:hover .i-arrow { transform: scaleX(-1) translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .92rem; text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px;
  transition: background-size .4s var(--ease), color .25s;
}
[dir='rtl'] .link-arrow { background-position: 100% 100%; }
.link-arrow:hover { color: var(--bronze); background-size: 30% 1.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .55em; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 2px; background: var(--card);
  font: 600 .85rem/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--stone); }
.chip-n { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] .chip-n { color: var(--sand); }

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

/* Frosted background on ::before, NOT on the header: backdrop-filter on
   the header would trap the fixed mobile nav inside its 72px box. */
.site-header { position: sticky; top: 0; z-index: 50; transition: transform .45s var(--ease); }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 238, 230, .88);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.scrolled .site-header::before { border-bottom-color: var(--line); }
.header-hidden .site-header { transform: translateY(-100%); }
.nav-open .site-header { transform: none; }

.header-in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { flex: none; display: block; text-decoration: none; }

.nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9rem; position: relative; padding-block: 6px; }
.nav ul a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--bronze); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .3s var(--ease);
}
[dir='rtl'] .nav ul a::after { --origin: right; }
.nav ul a:hover::after, .nav ul a[aria-current='page']::after { transform: scaleX(1); }
.lang { color: var(--bronze); }

.menu-btn { display: none; }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto;
    min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 2px;
    background: transparent; color: var(--ink); font: 700 .85rem var(--sans); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s; }
  .bars::before, .bars::after { content: ''; position: absolute; inset-inline-start: 0; }
  .bars::before { top: -5px; } .bars::after { top: 5px; }
  .menu-btn[aria-expanded='true'] .bars { background: transparent; }
  .menu-btn[aria-expanded='true'] .bars::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] .bars::after { transform: translateY(-5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); padding: 20px var(--gutter) 36px;
    visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
    transition: opacity .3s var(--ease), clip-path .55s var(--ease), visibility 0s .55s;
    overflow-y: auto;
  }
  .nav-open .nav { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; font-family: var(--serif); font-weight: 350; font-size: 2.1rem; padding-block: 12px; border-bottom: 1px solid var(--line); }
  html[lang='ar'] .nav ul a { font-weight: 600; font-size: 1.6rem; }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current='page'] { color: var(--bronze); }
  .lang { margin-top: 22px; font-size: 1.05rem; }
  .nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------ frames */

/* the logo's house outline as a photo frame */
.gable-frame { clip-path: var(--gable); }
.img-reveal { overflow: hidden; background: var(--stone-2); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* thin outline gables drawn behind a photo, offset like a construction line */
.hero-gables, .cta-gables {
  position: absolute; pointer-events: none; overflow: visible;
  fill: none; stroke: var(--sand); stroke-width: 1.2;
}

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

.hero { position: relative; padding-block: clamp(18px, 3.5vw, 48px) clamp(36px, 5vw, 72px); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-copy .lede { margin-block: 1.2em 1.8em; }

.hero-media { position: relative; isolation: isolate; width: min(100%, 500px); justify-self: end; }
.hero-media .hero-gables, .page-hero-photo .hero-gables { top: -6%; inset-inline-start: 8%; width: 100%; height: 100%; z-index: -1; }
.hero-frame { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; margin-inline-start: auto; background: var(--stone-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  display: flex; align-items: center; gap: .7em; margin: 14px 0 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
html[lang='ar'] .hero-caption { letter-spacing: 0; font-size: .9rem; }
.hero-caption .tick { color: var(--bronze); }
.hero-caption-text { transition: opacity .4s; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-media { width: min(86%, 420px); justify-self: center; margin-top: 8px; }
  .hero-frame { max-height: none; }
}

/* ------------------------------------------------------------ ribbon */

.ribbon { border-block: 1px solid var(--line); overflow: hidden; background: var(--card); }
.ribbon-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding-block: 14px; font-family: var(--serif); font-size: 1.4rem; font-weight: 340; font-style: italic; color: var(--ink-2);
  animation: ribbon 70s linear infinite;
}
html[lang='ar'] .ribbon-track { font-style: normal; font-size: 1.15rem; font-weight: 500; }
.ribbon-mark { width: 22px; height: 22px; flex: none; }
.ribbon-mark .g { fill: none; stroke-width: 6; stroke: var(--sand); }
.ribbon-mark .core { fill: var(--sand-2); }
@keyframes ribbon { to { transform: translateX(-33.333%); } }
[dir='rtl'] .ribbon-track { animation-name: ribbon-rtl; }
@keyframes ribbon-rtl { to { transform: translateX(33.333%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

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

.section { padding-block: var(--section); }
.section-tight { padding-top: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .h2 { margin-bottom: 0; }
.section-head > .muted { margin: 0; max-width: 30em; }

/* intro + collage */
.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.intro-copy p { color: var(--ink-2); }
.intro-copy .link-arrow { margin-top: .6em; }
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: end; }
.collage .c1 { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.collage .c2 { grid-column: 8 / 13; aspect-ratio: 1; }
.collage .c3 { grid-column: 8 / 13; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* services list (home) */
.services-sec { position: relative; }
.svc-row:first-child { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a {
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding-block: 26px; text-decoration: none; position: relative;
}
.svc-n { font: 600 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--bronze); font-variant-numeric: tabular-nums; }
.svc-title { font-family: var(--serif); font-weight: 360; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; transition: transform .5s var(--ease), color .3s; }
html[lang='ar'] .svc-title { font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.5; }
.svc-sum { color: var(--muted); font-size: .95rem; }
.svc-thumb { display: none; }
.svc-row .i-arrow { width: 26px; height: 26px; transition: transform .4s var(--ease); }
.svc-row a:hover .svc-title { color: var(--bronze); transform: translateX(10px); }
[dir='rtl'] .svc-row a:hover .svc-title { transform: translateX(-10px); }
.svc-row a:hover .i-arrow { transform: translateX(6px); }
[dir='rtl'] .svc-row a:hover .i-arrow { transform: scaleX(-1) translateX(6px); }
/* cursor-following photo (fine pointers; positioned by motion.js) */
.svc-float { display: none; }
@media (max-width: 760px) {
  .svc-row a { grid-template-columns: 1fr auto; padding-block: 18px; }
  .svc-n, .svc-sum { grid-column: 1 / 2; }
  .svc-title { grid-column: 1 / 2; }
  .svc-thumb { display: block; grid-column: 2; grid-row: 1 / 4; width: 84px; aspect-ratio: 4 / 5; overflow: hidden; clip-path: var(--gable); }
  .svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-row .i-arrow { display: none; }
}

/* project cards */
.pcard { display: block; text-decoration: none; position: relative; }
.pcard-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
/* gable line drawn over the photo on hover */
.pcard-media::after {
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  border: 1.5px solid rgba(250, 247, 242, .85); border-top: 0;
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.pcard:hover .pcard-media::after { clip-path: inset(0 0 0 0); }
.pcard-flag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: var(--sand); font: 700 .7rem/1 var(--sans); letter-spacing: .12em; padding: 7px 9px; }
.pcard-body { display: grid; gap: 4px; padding-top: 14px; }
.pcard-meta { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
html[lang='ar'] .pcard-meta { letter-spacing: 0; font-size: .85rem; font-weight: 600; }
.pcard-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
html[lang='ar'] .pcard-title { font-weight: 600; font-size: 1.2rem; line-height: 1.5; }

/* work strip (home): native scroll container; the motion layer pins it on
   wide screens and drives the track sideways with the page scroll */
.strip {
  --strip-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--strip-pad); scroll-padding-inline: var(--strip-pad);
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.strip-track { display: flex; gap: 18px; width: max-content; }
.strip-item { flex: 0 0 clamp(250px, 27vw, 380px); scroll-snap-align: start; }

/* project grid */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.pgrid-index { grid-auto-flow: dense; }
.pgrid-index .pcard-wide { grid-column: span 2; }
.pgrid-index .pcard-wide .pcard-media { aspect-ratio: auto; height: calc(100% - 70px); min-height: 300px; }
.pcard.is-hidden { display: none; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; }
  .pgrid-index .pcard-wide { grid-column: auto; }
  .pgrid-index .pcard-wide .pcard-media { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* facts */
.facts-sec { padding-block: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.fact { display: grid; gap: 6px; padding: clamp(22px, 3vw, 38px) clamp(12px, 2vw, 28px); border-inline-start: 1px solid var(--line); }
.fact:first-child { border-inline-start: 0; }
.fact-n { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; color: var(--bronze); font-variant-numeric: lining-nums tabular-nums; font-variation-settings: 'opsz' 144; }
.fact-l { color: var(--ink-2); font-weight: 600; }
.facts-col { grid-template-columns: 1fr; border-block: 0; }
.facts-col .fact { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .fact:first-child { border-top: 0; }
}

/* process */
.process-wrap { position: relative; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-line { position: absolute; top: 9px; inset-inline: 0; height: 1px; background: var(--line); }
.process-line span { position: absolute; inset: 0; background: var(--bronze); transform-origin: var(--o, left center); }
[dir='rtl'] .process-line span { --o: right center; }
.step { position: relative; padding-top: 38px; }
.step::before { content: ''; position: absolute; top: 3px; inset-inline-start: 0; width: 13px; height: 13px; background: var(--stone); border: 1.5px solid var(--bronze); transform: rotate(45deg); }
.step-n { display: block; font: 600 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--bronze); margin-bottom: 10px; }
.step h3 { font-family: var(--serif); font-weight: 420; font-size: 1.45rem; line-height: 1.15; margin-bottom: .45em; }
html[lang='ar'] .step h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.5; }
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-line { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band-in {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--stone);
  padding: clamp(44px, 6vw, 84px) clamp(24px, 5vw, 64px); text-align: center;
}
.cta-band-in .display-sm { max-width: 14em; margin-inline: auto; }
.cta-band-in p { color: #cfc5b6; max-width: 32em; margin: 1em auto 1.8em; }
.cta-band-in .cta-row { justify-content: center; }
.cta-gables { top: 14%; bottom: 0; inset-inline-end: 5%; width: clamp(140px, 22%, 280px); height: 86%; z-index: -1; stroke: rgba(203, 179, 141, .3); }
@media (max-width: 700px) { .cta-gables { opacity: .5; } }

/* ------------------------------------------------------------ inner pages */

.page-hero { padding-block: clamp(28px, 4.5vw, 66px) clamp(28px, 4vw, 56px); }
.page-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.page-hero-plain .page-hero-in { grid-template-columns: 1fr; }
.page-hero-plain .page-hero-copy { max-width: 820px; }
.page-hero-copy .lede { margin-top: 1em; }
.page-hero-copy .btn { margin-top: 10px; }
.page-hero-photo { position: relative; isolation: isolate; width: min(100%, 460px); justify-self: end; }
.page-hero-photo .img-reveal { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .page-hero-in { grid-template-columns: 1fr; }
  .page-hero-photo { width: min(80%, 380px); justify-self: center; }
}

.story-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-copy p { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.45; font-weight: 350; }
html[lang='ar'] .story-copy p { font-weight: 400; line-height: 1.95; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }

.values-sec { background: var(--night); color: var(--stone); }
.values { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); }
.values li { padding: 24px 28px; border-inline-start: 1px solid rgba(243, 238, 230, .14); }
.values li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.values h3 { font-family: var(--serif); font-size: 2.2rem; font-weight: 340; margin-bottom: .25em; }
html[lang='ar'] .values h3 { font-weight: 700; font-size: 1.7rem; }
.values p { color: #cfc5b6; margin: 0; }
.value-n { display: block; color: var(--sand); font-weight: 700; font-size: .8rem; letter-spacing: .1em; margin-bottom: 12px; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .values li { border-inline-start: 0; border-top: 1px solid rgba(243, 238, 230, .14); padding-inline: 0; }
  .values li:first-child { border-top: 0; }
}

.sectors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.sectors-grid p { color: var(--ink-2); }
@media (max-width: 760px) { .sectors-grid { grid-template-columns: 1fr; } }

.about-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 12px; margin-top: 18px; }
.about-strip .s1 { grid-row: span 2; }
.about-strip .s5 { grid-column: span 2; }
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .about-strip .s1 { grid-column: span 2; } }

/* services */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: box-shadow .4s var(--ease), border-color .4s; transform-style: preserve-3d; }
.svc-card:hover { box-shadow: var(--shadow); border-color: #cdbfa8; }
.svc-card-media { overflow: hidden; min-height: 260px; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card:hover .svc-card-media img { transform: scale(1.05); }
.svc-card-body { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.5vw, 30px); }
.svc-card-title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
html[lang='ar'] .svc-card-title { font-weight: 700; font-size: 1.3rem; line-height: 1.5; }
.svc-card-sum { color: var(--ink-2); }
.svc-card .link-arrow { justify-self: start; margin-top: 6px; }
@media (max-width: 1000px) { .svc-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .svc-card { grid-template-columns: 1fr; } .svc-card-media { min-height: 0; aspect-ratio: 16 / 10; } }

.detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.detail-grid .prose { order: 2; }
.detail-grid .faq, .detail-grid .pmeta { order: 1; }
.page-services .detail-grid { grid-template-columns: 1.2fr .8fr; }
.page-services .detail-grid .prose { order: 1; }
.page-services .detail-grid .faq { order: 2; }
.prose p { font-size: 1.08rem; color: var(--ink-2); }
.prose .chips { margin-top: 22px; }
@media (max-width: 860px) { .detail-grid, .page-services .detail-grid { grid-template-columns: 1fr; } .detail-grid .prose { order: 1; } .detail-grid .faq, .detail-grid .pmeta { order: 2; } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .35s var(--ease); color: var(--bronze); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

.svc-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.svc-gallery figure { height: clamp(220px, 30vw, 400px); }
@media (max-width: 700px) { .svc-gallery { grid-template-columns: 1fr 1fr; } .svc-gallery figure:first-child { grid-column: span 2; } }

.other-svc { display: flex; flex-wrap: wrap; gap: 14px 30px; }

/* project detail */
.project-hero { padding-block: clamp(22px, 3.5vw, 48px) 0; }
.back-link { display: flex; width: fit-content; align-items: center; gap: .5em; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--muted); margin-bottom: 26px; }
.back-link .i-arrow { transform: scaleX(-1); }
[dir='rtl'] .back-link .i-arrow { transform: none; }
.back-link:hover { color: var(--ink); }
.project-hero .lede { margin-top: .7em; }
.project-cover { margin-top: clamp(24px, 3.5vw, 44px); }
.cover-frame { aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
@media (max-width: 700px) { .cover-frame { aspect-ratio: 4 / 3; } }

.pmeta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pmeta div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.pmeta dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
html[lang='ar'] .pmeta dt { letter-spacing: 0; font-size: .88rem; }
.pmeta dd { margin: 0; font-weight: 600; }

/* gallery: CSS columns keep every photo in its own shape */
.gallery { columns: 3 280px; column-gap: 14px; }
.gitem { display: block; position: relative; margin-bottom: 14px; break-inside: avoid; overflow: hidden; background: var(--stone-2); }
.gitem img { width: 100%; transition: transform 1s var(--ease); }
.gitem:hover img { transform: scale(1.04); }
.gitem-zoom { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(29, 26, 22, .7); color: var(--stone); opacity: 0; transition: opacity .3s; }
.gitem:hover .gitem-zoom, .gitem:focus-visible .gitem-zoom { opacity: 1; }

/* lightbox (built by site.js) */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(18, 16, 13, .96); color: var(--stone); }
.lightbox::backdrop { background: transparent; }
.lb-in { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: .85rem; color: #bfb5a6; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 80px); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.lb-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(243, 238, 230, .3); background: transparent; color: var(--stone); cursor: pointer; }
.lb-btn:hover { background: var(--stone); color: var(--ink); }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding: 14px; }
.lb-prev .i-arrow { transform: scaleX(-1); }
[dir='rtl'] .lb-prev .i-arrow { transform: none; }
[dir='rtl'] .lb-next .i-arrow { transform: scaleX(-1); }

.next-sec { padding-bottom: 0; }
.next-project { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 60px); text-decoration: none; border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 40px); }
.next-copy { display: grid; gap: 8px; justify-items: start; }
.next-title { font-family: var(--serif); font-weight: 340; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; transition: color .3s; }
html[lang='ar'] .next-title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.5; }
.next-project:hover .next-title { color: var(--bronze); }
.next-media { overflow: hidden; aspect-ratio: 16 / 10; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.next-project:hover .next-media img { transform: scale(1.05); }
@media (max-width: 700px) { .next-project { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: start; }
.contact-cards { display: grid; gap: 10px; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 18px 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .25s, transform .35s var(--ease);
}
.contact-card:hover { border-color: var(--bronze); transform: translateY(-2px); }
.contact-card > .i { grid-row: 1 / 4; width: 24px; height: 24px; color: var(--bronze); }
.cc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
html[lang='ar'] .cc-label { letter-spacing: 0; font-size: .88rem; }
.cc-value { font-family: var(--serif); font-size: 1.25rem; font-weight: 420; overflow-wrap: anywhere; line-height: 1.35; }
html[lang='ar'] .cc-value { font-weight: 600; font-size: 1.05rem; }
[dir='rtl'] .cc-value[dir='ltr'] { text-align: end; }
.cc-more { display: inline-flex; gap: .4em; align-items: center; font-size: .82rem; font-weight: 700; color: var(--bronze); margin-top: 4px; }

.contact-form { padding: clamp(20px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); width: 100%;
  background: var(--stone); border: 1.5px solid var(--line); border-radius: 2px; padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(138, 101, 52, .12); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-error { color: #9b2c1c; font-weight: 700; margin: 0; }
.contact-form .small { margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-photo .wide-frame { aspect-ratio: 21 / 8; }
@media (max-width: 700px) { .contact-photo .wide-frame { aspect-ratio: 4 / 3; } }

.not-found { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.not-found .wrap { display: grid; justify-items: center; gap: 16px; }
.nf-mark { width: 96px; height: 96px; }

/* WhatsApp button, bottom corner on the reading-end side */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 45;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #1f8f4e; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease);
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08); }
.page-contact .wa-float { display: none; }

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

.site-footer { background: var(--night); color: #cfc5b6; padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 30px; padding-bottom: 24px; }
.footer-brand p { max-width: 24em; color: #a99e8e; margin-top: 16px; }
.site-footer h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--sand); margin-bottom: 14px; }
html[lang='ar'] .site-footer h2 { letter-spacing: 0; font-size: .92rem; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
/* Oversized wordmark bleeding off the bottom edge. Latin in both languages:
   it is the brand mark, like the logo. */
.footer-word { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(6rem, 24vw, 22rem); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(203, 179, 141, .22); user-select: none; white-space: nowrap; overflow: hidden; padding-top: .05em; margin-bottom: -.06em; letter-spacing: -.02em; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid rgba(243, 238, 230, .1); font-size: .82rem; color: #8b8172; position: relative; background: var(--night); }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / 3; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

.progress, .cursor, .intro { display: none; }

/* filtered grid: every card the same size */
.pgrid-index.is-filtered .pcard-wide { grid-column: auto; }
.pgrid-index.is-filtered .pcard-wide .pcard-media { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
.lb-open { overflow: hidden; }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 8px; } .gitem { margin-bottom: 8px; } }
