/* FRAME Construction — site styles. Palette and type follow the 2026 corporate profile. */
:root {
  --cream: #f7f4ef;
  --sand: #efe9e1;
  --sand-2: #e6ded3;
  --ink: #2e2d2f;
  --ink-2: #4a4846;
  --muted: #6f6a64;
  --line: rgba(46, 45, 47, 0.12);
  --burgundy: #9b2b37;
  --burgundy-dark: #7e202b;
  --night: #1d1b1a;
  --night-2: #2a2725;
  --white: #fff;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --f-head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] {
  --f-head: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 500; letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.eyebrow { font: 500 .78rem/1.2 var(--f-head); letter-spacing: .32em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 1.1em; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.eyebrow-light, .section-dark .eyebrow { color: #e3a3ab; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }
.lead-lg { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.5; color: var(--ink); font-family: var(--f-head); font-weight: 300; }
html[lang="ar"] .lead-lg { font-weight: 400; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent; font: 500 .95rem/1 var(--f-head); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #1f7a4d; color: #fff; }
.btn-whatsapp:hover { background: #17603c; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--burgundy); font: 500 .95rem var(--f-head); text-decoration: none; letter-spacing: .03em; }
.link-arrow:hover { gap: 12px; }
.link-arrow, .btn { transition-property: gap, background, color, border-color, transform; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 239, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { width: 168px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.main-nav a:not(.btn) { text-decoration: none; font: 400 .95rem var(--f-head); letter-spacing: .03em; color: var(--ink-2); position: relative; padding: 6px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--burgundy); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 12px 18px; }
.lang-switch { font-family: "IBM Plex Sans Arabic", var(--f-head) !important; }
.lang-switch-mobile { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; margin-inline-start: 4px; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { width: 138px; }
  .menu-toggle { display: block; }
  .lang-switch-mobile { display: inline-block; margin-inline-start: auto; text-decoration: none; font-size: .95rem; padding: 8px; }
  /* absolute (not fixed): the header's backdrop-filter makes it the containing block */
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--gutter) 40px; background: var(--cream); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a:not(.btn) { font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .lang-switch { display: none; }
  .nav-cta { margin-top: 24px; justify-content: center; padding: 16px; }
  body.menu-open { overflow: hidden; }
}

/* Hero (home) */
.hero { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); min-height: calc(100svh - var(--header-h)); max-height: 900px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter); padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1.02; margin-bottom: .45em; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero h1 span { display: block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--d) * .14s + .1s); }
.hero h1 .accent { color: var(--burgundy); }
.hero .lead { animation: rise .9s var(--ease) .5s both; }
.hero .btn-row { animation: rise .9s var(--ease) .62s both; }
.hero-media { position: relative; overflow: hidden; background: var(--night); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: zoomout 2.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoomout { from { transform: scale(1.08); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .hero-text { padding: 36px var(--gutter) 48px; }
}

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--cream); }
.stats-sand { background: var(--sand); border: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-n { font: 300 clamp(2rem, 3.6vw, 2.9rem)/1 var(--f-head); color: var(--burgundy); text-align: start; }
html[lang="ar"] .stat-n { font-family: "Jost", sans-serif; }
.stat-d { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--night); color: #d9d3cb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.section-head h2 { margin: 0; max-width: 20em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.mini-h { font: 500 .78rem var(--f-head); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 36px 0 16px; }
html[lang="ar"] .mini-h { letter-spacing: 0; font-size: .95rem; }

.diff-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.diff-list li { display: flex; gap: 14px; align-items: flex-start; }
.diff-list .icon { color: var(--burgundy); margin-top: 2px; }
.diff-list-lg li { font-size: 1.1rem; padding-block: 18px; border-bottom: 1px solid var(--line); }
.credentials { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--muted); font-size: .92rem; }
.credentials .icon { color: var(--burgundy); }

.office-collage { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.office-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.oc-main { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.oc-a, .oc-b { aspect-ratio: 16 / 10; }
.office-collage figcaption { position: absolute; inset-inline-start: 0; top: calc(100% * 0 + 16px); background: rgba(247,244,239,.94); padding: 8px 14px; font: 500 .7rem var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
html[lang="ar"] .office-collage figcaption { letter-spacing: 0; font-size: .85rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { background: var(--sand); padding: 30px 26px 32px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.section-sand .service { background: var(--cream); }
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(46, 45, 47, .08); }
.service-icon { width: 34px; height: 34px; color: var(--burgundy); margin-bottom: 22px; }
.service h3 { margin-bottom: .45em; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 1050px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } .service { padding: 24px 22px; } }

/* Process */
.process { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.process li { padding: 28px 28px 8px 0; border-top: 1px solid var(--ink); position: relative; }
html[dir="rtl"] .process li { padding: 28px 0 8px 28px; }
.process-n { display: block; font: 300 2.2rem/1 "Jost", sans-serif; color: var(--burgundy); margin-bottom: 18px; }
.process p { color: var(--muted); }
.process-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-media figure { margin: 0; }
.process-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.process-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; gap: 0 24px; } .process-media { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Project cards */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.featured-grid .card-wide { grid-column: span 2; grid-row: span 2; }
.featured-grid .card-wide .project-card-media { aspect-ratio: auto; height: 100%; min-height: 420px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.project-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.project-card-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--sand-2); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-body { padding-top: 16px; }
.project-card h3 { margin: 10px 0 4px; font-size: 1.25rem; }
.project-card-loc { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: .92rem; }
.project-card-loc .icon { color: var(--burgundy); width: 15px; height: 15px; }
.featured-grid .card-wide { display: grid; }
.featured-grid .card-wide > * { grid-area: 1 / 1; }
.featured-grid .card-wide .project-card-body { align-self: end; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; border-radius: 0 0 var(--radius) var(--radius); z-index: 1; }
.featured-grid .card-wide h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.featured-grid .card-wide .project-card-loc { color: rgba(255,255,255,.85); }
.featured-grid .card-wide .project-card-loc .icon { color: #fff; }
.tag { display: inline-block; font: 500 .68rem/1 var(--f-head); letter-spacing: .26em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--burgundy); color: var(--burgundy); border-radius: 2px; }
html[lang="ar"] .tag { letter-spacing: 0; font-size: .8rem; }
.tag-execution { background: var(--burgundy); color: #fff; }
.card-wide .tag-execution, .tag-light.tag-execution { border-color: var(--burgundy); }
.tag-light.tag-design { color: #fff; border-color: #fff; }
@media (max-width: 1000px) {
  .projects-grid, .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .card-wide { grid-column: 1 / -1; grid-row: auto; }
  .featured-grid .card-wide .project-card-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .projects-grid, .featured-grid { grid-template-columns: 1fr; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .9rem/1 var(--f-head); letter-spacing: .03em; padding: 11px 18px; border-radius: 40px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .25s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sm { padding: 9px 14px; font-size: .85rem; }
.chip-count { font-size: .75rem; opacity: .65; }
.project-card.is-hidden { display: none; }
.projects-empty { grid-column: 1 / -1; padding: 48px 0; color: var(--muted); text-align: center; }

/* Why */
.split-why { grid-template-columns: 5fr 7fr; align-items: stretch; }
.why-media { border-radius: var(--radius); overflow: hidden; min-height: 360px; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); }
.reasons h3 { margin: 0 0 4px; }
.reasons p { margin: 0; color: #b6aea5; }
.reason-n { font: 300 1.5rem/1.2 "Jost", sans-serif; color: #e3a3ab; min-width: 2.2ch; }
.trusted { margin-top: 28px; padding: 18px 22px; border-inline-start: 2px solid var(--burgundy); background: var(--night-2); color: #eee6dd; }
.trusted-dark { background: var(--sand); color: var(--ink); }
.reason-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.reason-card { background: var(--sand); padding: 26px 22px; border-radius: var(--radius); }
.reason-card .reason-n { color: var(--burgundy); display: block; margin-bottom: 14px; }
.reason-card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1100px) { .reason-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .split-why { grid-template-columns: 1fr; } .why-media { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .reason-cards { grid-template-columns: 1fr; } }

.cred-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.cred-card { display: flex; gap: 12px; align-items: center; background: var(--sand); padding: 18px; border-radius: var(--radius); font-weight: 700; font-size: .95rem; }
.cred-card .icon { color: var(--burgundy); }
@media (max-width: 520px) { .cred-cards { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-block: clamp(80px, 12vw, 150px); isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,27,26,.95), rgba(29,27,26,.55)); }
html[dir="rtl"] .cta-bg::after { background: linear-gradient(-90deg, rgba(29,27,26,.95), rgba(29,27,26,.55)); }
.cta-inner h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 14em; }
.cta-inner p { color: #d6cfc6; max-width: 36em; font-size: 1.1rem; }

/* Page hero */
.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero.has-image { color: #fff; padding-block: clamp(110px, 16vw, 200px) clamp(48px, 7vw, 80px); isolation: isolate; overflow: hidden; background: var(--night); }
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image .lead { color: #e8e1d8; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,18,17,.85), rgba(20,18,17,.25)); }

/* Project page */
.project-hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--night); }
.project-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: zoomout 2s var(--ease) both; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,13,12,.85) 0%, rgba(15,13,12,.15) 55%, rgba(15,13,12,.35) 100%); }
.project-hero-inner { padding-block: 120px 56px; }
.project-hero h1 { color: #fff; margin: 18px 0 8px; max-width: 18em; }
.project-hero-loc { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); margin: 0; font-size: 1.05rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); text-decoration: none; font: .9rem var(--f-head); margin-bottom: 26px; position: absolute; top: 28px; }
.back-link:hover { color: #fff; }
.project-intro { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.note { font-size: .92rem; color: var(--muted); padding-inline-start: 14px; border-inline-start: 2px solid var(--burgundy); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; text-align: end; font-weight: 700; font-size: .95rem; }
@media (max-width: 860px) { .project-intro { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; grid-auto-flow: dense; }
.g-item { margin: 0; }
.g-item.g-pano { grid-column: 1 / -1; }
.g-item.g-tall { grid-row: span 2; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--sand-2); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.g-open img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.g-item:not(.g-pano):not(.g-tall) .g-open img { aspect-ratio: 3 / 2; object-fit: cover; }
.g-item.g-tall .g-open, .g-item.g-tall .g-open img { height: 100%; object-fit: cover; }
.g-open:hover img { transform: scale(1.03); }
.g-item figcaption { font: 500 .72rem var(--f-head); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
html[lang="ar"] .g-item figcaption { letter-spacing: 0; font-size: .88rem; }
.page-project .gallery-section { padding-top: 0; }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .g-item.g-tall { grid-row: auto; } }

.project-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 32px 72px; }
.pager-link { display: flex; align-items: center; gap: 14px; padding: 22px; background: var(--sand); border-radius: var(--radius); text-decoration: none; transition: background .25s; }
.pager-link:hover { background: var(--sand-2); }
.pager-link span { display: flex; flex-direction: column; gap: 2px; font: 1.1rem var(--f-head); }
.pager-link small { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy); }
html[lang="ar"] .pager-link small { letter-spacing: 0; font-size: .85rem; }
.pager-link em { font-style: normal; color: var(--muted); font-size: .88rem; font-family: var(--f-body); }
.pager-next { justify-content: flex-end; text-align: end; }
@media (max-width: 600px) { .project-pager { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 11, 10, .96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: fade .25s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100svh; padding: 56px 0 24px; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 130px); object-fit: contain; }
.lb-figure figcaption { color: #d8d0c6; font: .9rem var(--f-head); letter-spacing: .08em; }
.lb-count { opacity: .6; margin-inline-start: 10px; }
.lb-close, .lb-nav { background: transparent; border: 0; color: #fff; cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; justify-self: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.1); }
.lb-close { position: absolute; top: 12px; inset-inline-end: 12px; }
.lb-nav .icon { width: 32px; height: 32px; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 16px; }
  .lb-prev { inset-inline-start: 16px; }
  .lb-next { inset-inline-end: 16px; }
  .lb-figure { padding: 64px 8px 90px; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card { background: var(--sand); padding: 26px 26px 22px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.contact-card .eyebrow { margin: 0; }
.contact-card h2 { font-size: 1.45rem; margin: 0 0 4px; }
.contact-card a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); width: fit-content; }
.contact-card a:hover { color: var(--burgundy); }
.contact-card .icon { color: var(--burgundy); }
.contact-address { display: flex; gap: 10px; margin: 0; }
.contact-ar { color: var(--muted); margin: 6px 0 0; font-family: "IBM Plex Sans Arabic", sans-serif; }
.enquiry { background: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: 0 30px 60px rgba(46,45,47,.06); border: 1px solid var(--line); }
.enquiry h2 { font-size: 1.8rem; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font: 500 .85rem var(--f-head); color: var(--ink-2); letter-spacing: .02em; padding: 0; margin-bottom: 8px; }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--burgundy); }
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { position: relative; }
.type-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.type-chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 40px; font-size: .9rem; cursor: pointer; transition: all .2s; }
.type-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-chip input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.form-error { color: var(--burgundy); font-weight: 700; margin: 0; }
.form-note { color: var(--muted); font-size: .85rem; margin: 16px 0 0; }
.enquiry .btn-row { margin-top: 8px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .enquiry .btn { width: 100%; justify-content: center; } }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.6) contrast(1.05); }

/* 404 */
.notfound { min-height: 60vh; }

/* Footer */
.site-footer { background: var(--night); color: #b9b1a8; padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 180px; margin-bottom: 20px; }
.footer-ar { font-family: "IBM Plex Sans Arabic", sans-serif; color: #e8e1d8; }
.footer-h { font: 500 .75rem var(--f-head); letter-spacing: .28em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
html[lang="ar"] .footer-h { letter-spacing: 0; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-bottom a { text-decoration: none; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.footer-cred { font-size: .85rem; color: #8f877e; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8f877e; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .cta-band, .map-section, .lightbox { display: none !important; }
}
