/* ASEEN — Elevated Living
   Tokens follow the 2026 brand guidelines. */
:root {
  --charcoal: #20201f;
  --jet: #131313;
  --olive: #2b3127;
  --sand: #e9d8b4;
  --gold: #d1ab58;
  --bronze: #6d5c42;
  --light-bronze: #8c7756;
  --stone: #e3dbd0;
  --ivory: #f1ede7;
  --sandstone: #c9bba5;
  --graphite: #4a4a46;

  --bg: var(--ivory);
  --ink: var(--charcoal);
  --muted: #5d5a54;
  --line: rgba(32, 32, 31, 0.14);
  --line-dark: rgba(233, 216, 180, 0.18);

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Charlevoix Pro", "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Alta", "Italiana", "Montserrat", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 84px;
}

/* Brand body typeface: Charlevoix Pro (Pangram Pangram, commercial web licence required).
   Once licensed, put the .woff2 files in assets/fonts/ and uncomment this block.
   Until then the site falls back to Outfit.
@font-face { font-family: "Charlevoix Pro"; src: url(../fonts/CharlevoixPro-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Charlevoix Pro"; src: url(../fonts/CharlevoixPro-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Charlevoix Pro"; src: url(../fonts/CharlevoixPro-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
*/

/* Brand Arabic typefaces (brand guidelines p.37): Loew Next Arabic for headings, Sarmady for text.
   Both are limited to Arabic glyphs so Latin text and numerals keep the English typefaces. */
@font-face { font-family: "Loew Next Arabic"; src: url(../fonts/LoewNextArabic-Bold.otf) format("opentype"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Sarmady"; size-adjust: 138%; src: url(../fonts/Sarmady-Light.otf) format("opentype"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Sarmady"; size-adjust: 138%; src: url(../fonts/Sarmady-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Sarmady"; size-adjust: 138%; src: url(../fonts/Sarmady-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Sarmady"; size-adjust: 138%; src: url(../fonts/Sarmady-SemiBold.otf) format("opentype"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Sarmady"; size-adjust: 138%; src: url(../fonts/Sarmady-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.dark { background: var(--charcoal); color: var(--stone); --ink: var(--stone); --muted: #b3aca0; --line: var(--line-dark); }
.olive { background: var(--olive); }
.stone { background: var(--stone); }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 200; background: var(--sand); color: var(--charcoal); padding: 10px 16px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--light-bronze); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.dark .eyebrow { color: var(--gold); }
.h-xl { font-size: clamp(40px, 6.6vw, 88px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.h-lg { font-size: clamp(30px, 4vw, 52px); }
.h-md { font-size: clamp(22px, 2.2vw, 28px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--sand); }
.btn-sand { background: var(--sand); color: var(--charcoal); }
.btn-sand:hover { background: var(--gold); }
.btn-dark { background: var(--charcoal); color: var(--sand); }
.btn-dark:hover { background: var(--olive); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--sand); border-color: var(--sand); color: var(--charcoal); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; padding-bottom: 6px; border-bottom: 1px solid var(--gold); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: var(--stone); transition: background 0.3s var(--ease), height 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.site-header.scrolled, .site-header.solid { background: rgba(32, 32, 31, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.scrolled { height: 68px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 48px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand img { height: 40px; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a:not(.btn) { position: relative; font-family: var(--font-head); font-size: 14px; font-weight: 500; letter-spacing: 0.05em; padding-block: 8px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; }
.lang { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: none; color: inherit; cursor: pointer; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.lang:hover { background: var(--sand); border-color: var(--sand); color: var(--charcoal); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--sand); transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--stone); background: var(--charcoal); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; animation: heroIn 1.8s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32, 32, 31, 0.84) 0%, rgba(32, 32, 31, 0.5) 45%, rgba(32, 32, 31, 0) 85%), linear-gradient(0deg, rgba(32, 32, 31, 0.6) 0%, rgba(32, 32, 31, 0) 34%); }
@keyframes heroIn { from { transform: scale(1.08); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.hero-pattern { position: absolute; top: var(--header-h); inset-inline-end: 0; width: clamp(120px, 17vw, 250px); aspect-ratio: 1; background: url(../img/pattern-lattice.png) center / cover; opacity: 0.9; }
.hero .wrap { position: relative; padding-block: calc(var(--header-h) + 48px) clamp(56px, 9vw, 112px); }
.hero h1 { color: #fff; max-width: 11ch; margin-block: 22px 26px; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero .lede { color: var(--stone); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(48px, 7vw, 88px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--sandstone); }
.hero-foot .display { font-size: 18px; color: var(--sand); }

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--stone); background: var(--charcoal); overflow: hidden; }
.page-hero .hero-media img { object-position: center; animation: none; }
.page-hero .hero-media::after { background: linear-gradient(0deg, rgba(32, 32, 31, 0.92) 0%, rgba(32, 32, 31, 0.55) 55%, rgba(32, 32, 31, 0.75) 100%); }
.page-hero .wrap { position: relative; padding-block: calc(var(--header-h) + clamp(64px, 9vw, 120px)) clamp(48px, 6vw, 80px); }
.page-hero h1 { color: #fff; margin-top: 20px; }
.page-hero .lede { color: var(--stone); margin-top: 20px; }
.crumbs { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.06em; color: var(--sandstone); margin-top: 34px; }
.crumbs a:hover { color: var(--sand); }
.crumbs span[aria-current] { color: var(--sand); }

/* Intro split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media .tag { position: absolute; inset-inline-start: -18px; bottom: 36px; background: var(--charcoal); color: var(--sand); padding: 20px 26px; border-radius: var(--radius); display: flex; align-items: center; gap: 16px; }
.split-media .tag img { width: 44px; aspect-ratio: auto; border-radius: 0; }
.split-media .tag span { font-size: 16px; }
.split-copy h2 { margin-block: 20px 24px; }
.split-copy .lede + .lede { margin-top: 18px; }
.split-copy .link-arrow { margin-top: 36px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding-block: 40px 8px; padding-inline: 28px; border-inline-end: 1px solid var(--line); }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat-num { font-family: var(--font-head); font-weight: 300; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.03em; color: var(--sand); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.42em; font-weight: 500; letter-spacing: 0.02em; margin-inline-start: 6px; color: var(--gold); }
.stat-label { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 20ch; }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.stats-head h2 { margin-top: 18px; max-width: 16ch; color: #fff; }

/* Section head */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head h2 { margin-top: 18px; max-width: 18ch; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.rail-nav button:hover { background: var(--charcoal); color: var(--sand); border-color: var(--charcoal); }
.rail-nav button:disabled { opacity: 0.3; pointer-events: none; }
.rail-nav svg { width: 18px; height: 18px; }

/* Project cards */
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 clamp(270px, 29vw, 400px); scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.card { display: block; position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sandstone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32, 32, 31, 0.72) 0%, rgba(32, 32, 31, 0) 46%); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 2px; background: var(--sand); color: var(--charcoal); font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }
.chip[data-status="completed"]::before { background: var(--olive); }
.chip[data-status="construction"]::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(209, 171, 88, 0.35); }
.card-media .chip { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1; }
.card-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.card-body h3 { font-size: 24px; }
.card-body p { font-size: 14px; color: var(--stone); margin-top: 6px; letter-spacing: 0.04em; }
.card-go { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--charcoal); display: grid; place-items: center; transform: translateY(8px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.card-go svg { width: 16px; height: 16px; }
.card.sold { cursor: default; }
.card.sold .card-media img { filter: grayscale(1) brightness(0.55); }
.card.sold:hover .card-media img { transform: none; }
.card.sold .card-media::after { background: rgba(32, 32, 31, 0.5); }
.card.sold .card-body { color: #cfc8bd; }
.sold-mark { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); padding: 10px 28px; border: 2px solid var(--sand); border-radius: 2px; color: var(--sand); font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; background: rgba(32, 32, 31, 0.35); }
.chip[data-status="sold"]::before { background: #8a8378; }
.card:hover .card-go, .card:focus-visible .card-go { transform: none; opacity: 1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; }
.field label, .field .label { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; font-weight: 400; transition: border-color 0.2s, background 0.2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-inline-end: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236d5c42' stroke-width='1.6'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 14px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--light-bronze); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.4); }
.dark .field input:focus, .dark .field select:focus, .dark .field textarea:focus { background: rgba(255, 255, 255, 0.04); }
.dark .field select option { color: var(--charcoal); }
.field .err { font-size: 13px; color: #a2401f; min-height: 0; }
.dark .field .err, .form-card .err { color: #e8a184; }
.form-card .field.invalid input { border-color: #e8a184; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a2401f; }
.filters .btn { flex: none; }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.empty { padding: 72px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* Pillars */
.motto { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.motto .display { font-size: clamp(38px, 6.4vw, 92px); line-height: 1; margin-top: 18px; color: var(--charcoal); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding-block: 36px 0; padding-inline: 32px; border-inline-end: 1px solid var(--line); }
.pillar:first-child { padding-inline-start: 0; }
.pillar:last-child { border-inline-end: 0; }
.pillar .n { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--light-bronze); }
.pillar h3 { font-size: 22px; margin-block: 16px 12px; }
.pillar p { color: var(--muted); font-size: 16px; }

/* Interiors */
.interiors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.interiors figure { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius); background: var(--jet); }
.interiors figure:nth-child(even) { margin-top: 48px; margin-bottom: -48px; }
.interiors img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.interiors figure:hover img { transform: scale(1.04); }
.dark:has(.interiors) { padding-bottom: calc(var(--section) + 48px); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--sand); color: var(--charcoal); }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 16px; color: #4b463c; max-width: 50ch; }
.cta-pattern { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 30%; background: url(../img/pattern-lattice.png) center / auto 100%; filter: brightness(0.45) sepia(0.4); opacity: 0.16; }

/* Project page */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 28px 24px; border-inline-end: 1px solid var(--line); }
.fact:first-child { padding-inline-start: 0; }
.fact:last-child { border-inline-end: 0; }
.fact dt { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 10px 0 0; font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.project-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.project-body h2 { margin-block: 18px 22px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 40px; }
.features li { display: flex; gap: 16px; align-items: flex-start; padding-block: 20px; border-top: 1px solid var(--line); }
.features svg { flex: none; width: 26px; height: 26px; color: var(--light-bronze); margin-top: 2px; }
.features strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.features span { font-size: 15px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.gallery button { border: 0; padding: 0; background: var(--sandstone); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery button:first-child { grid-row: span 2; }
.gallery button:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(19, 19, 19, 0.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: var(--radius); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(32, 32, 31, 0.6); color: var(--sand); cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* Form card */
.form-card { background: var(--charcoal); color: var(--stone); padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius); position: sticky; top: 96px; --ink: var(--stone); --muted: #b3aca0; --line: var(--line-dark); }
.form-card h3 { font-size: 26px; color: #fff; }
.form-card > p { color: var(--muted); font-size: 15px; margin-block: 10px 28px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); }
.form-done { display: none; text-align: start; padding-block: 12px; }
.form-done svg { width: 44px; height: 44px; color: var(--gold); margin-bottom: 18px; }
.form-done h3 { margin-bottom: 10px; }
.sent .form { display: none; }
.sent .form-done { display: block; }
.sent > p { display: none; }

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(36px, 5vw, 60px); }
.value { padding: 30px 26px 34px; border: 1px solid var(--line); border-radius: var(--radius); transition: background 0.3s, border-color 0.3s; }
.value:hover { background: rgba(233, 216, 180, 0.06); border-color: var(--gold); }
.value svg { width: 30px; height: 30px; color: var(--gold); }
.value h3 { font-size: 19px; margin-block: 22px 10px; color: #fff; }
.value p { font-size: 15px; color: var(--muted); }
.quote { position: relative; overflow: hidden; color: var(--stone); background: var(--olive); }
.quote .hero-media::after { background: linear-gradient(90deg, rgba(43, 49, 39, 0.96) 30%, rgba(43, 49, 39, 0.6) 100%); }
.quote .wrap { position: relative; }
.quote blockquote { margin: 22px 0 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -0.01em; max-width: 26ch; color: #fff; max-width: 30em; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--light-bronze); margin-top: 4px; }
.contact-list .label { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list p { font-size: 18px; font-weight: 400; }
.contact-list a:hover { color: var(--bronze); }
.contact-grid .form-card { position: static; }

/* Footer */
.site-footer { background: var(--jet); color: var(--sandstone); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 56px; }
.footer-top img { height: 60px; width: auto; }
.footer-top p { margin-top: 22px; max-width: 34ch; color: #9a9388; }
.site-footer h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.site-footer li + li { margin-top: 12px; }
.site-footer a:hover { color: var(--sand); }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.footer-contact a[href^="tel:"] { font-size: 18px; font-weight: 500; letter-spacing: 0.04em; color: var(--sand); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.social a:hover { background: var(--sand); color: var(--charcoal); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #8a8378; }

/* Floating WhatsApp */
.wa { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--charcoal); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); transition: transform 0.25s var(--ease), background 0.25s; }
.wa:hover { transform: translateY(-3px); background: var(--sand); }
.wa svg { width: 26px; height: 26px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */

/* ---------- Project detail sections ---------- */
.features li.plain { align-items: center; }
.features li.plain svg { margin-top: 0; }
.pd-high { padding-block: clamp(40px, 5vw, 64px); }
.pd-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pd-highlights strong { display: block; white-space: nowrap; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 46px); font-weight: 400; line-height: 1.05; color: var(--sand); }
.pd-highlights span { display: block; margin-top: 10px; font-size: 15px; color: #b3aca0; }
.pd-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: none; }
.pd-marks li { display: flex; align-items: baseline; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 17px; }
.pd-marks .min { flex: none; min-width: 74px; color: var(--bronze); font-size: 14px; }
.pd-marks .min b { font-family: var(--font-head); font-size: 26px; font-weight: 500; color: var(--charcoal); }
.btn svg { width: 18px; height: 18px; }
.pd-master { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.zoom { display: block; border-radius: var(--radius); overflow: hidden; background: #8c7b6f; cursor: zoom-in; }
.zoom img { display: block; width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.zoom:hover img { transform: scale(1.02); }
.pd-lines li { padding-block: 16px; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: 18px; font-weight: 500; }
.pd-lines li:last-child { border-bottom: 1px solid var(--line); }
.pd-model + .pd-model { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.pd-model-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.pd-model-head h3, .pd-group, .pd-amen h3 { font-size: clamp(22px, 2.4vw, 30px); }
.pd-area { color: var(--bronze); font-size: 15px; }
.pd-area b, .pd-floor h4 small b { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--charcoal); }
.pd-model.split-plan { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pd-model h4, .pd-floor h4 { margin: 20px 0 12px; font-size: 17px; }
.pd-floor h4 small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--bronze); }
.pd-model.split-plan h4:first-of-type { margin-top: 0; }
.pd-floors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.pd-floors.two { grid-template-columns: 1fr 1fr; max-width: 900px; }
.rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; background: rgba(255, 255, 255, 0.5); }
.rooms.col { display: block; }
.rooms.col li { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 12px 0; font-size: 15px; }
.pd-lede { max-width: 62ch; margin-bottom: 36px; }
.pd-amen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.pd-amen article { background: var(--ivory); border-radius: var(--radius); overflow: hidden; }
.pd-amen .media { aspect-ratio: 3 / 2; overflow: hidden; }
.pd-amen .media img { width: 100%; height: 100%; object-fit: cover; }
.pd-amen .body { padding: 24px 24px 28px; display: grid; gap: 12px; }
.pd-group { margin: 36px 0 16px; }
.pd-group:first-of-type { margin-top: 0; }
.pd-table { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.pd-table table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.pd-table th { position: sticky; top: 0; z-index: 1; background: var(--charcoal); color: var(--sand); font-family: var(--font-head); font-weight: 600; font-size: 13px; text-align: start; padding: 14px 18px; }
.pd-table td { padding: 13px 18px; border-top: 1px solid var(--line); }
.pd-table tr[data-st="sold"] td { color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 8px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.st[data-st="sold"]::before { background: #b0a79b; }
.st[data-st="reserved"]::before { background: var(--gold); }
.pd-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.section.dark .pd-lede { color: #b3aca0; }
.pd-warr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.pd-warr > div { padding-block: 26px; border-top: 1px solid var(--line-dark); }
.pd-warr strong { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; line-height: 1; color: var(--gold); }
.pd-warr span { margin-inline-start: 8px; color: #b3aca0; font-size: 15px; }
.pd-warr p { margin-top: 10px; color: var(--stone); font-size: 16px; }
.chip[data-status="selling"]::before { background: var(--olive); box-shadow: 0 0 0 3px rgba(43, 49, 39, 0.2); }
html[lang="ar"] .pd-highlights strong, html[lang="ar"] .pd-warr strong { font-family: var(--font-head); font-weight: 500; }
@media (max-width: 1000px) {
  .pd-master, .pd-model.split-plan { grid-template-columns: 1fr; }
  .pd-model.split-plan .zoom { max-width: 520px; }
  .pd-floors { grid-template-columns: 1fr 1fr; }
  .pd-warr { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .pd-highlights { grid-template-columns: 1fr 1fr; }
  .pd-marks, .pd-amen, .pd-floors, .pd-floors.two { grid-template-columns: 1fr; }
  .pd-warr { grid-template-columns: 1fr 1fr; }
  .pd-table table { font-size: 14px; }
  .pd-table th, .pd-table td { padding: 12px 14px; }
}

@media (max-width: 1000px) {
  .split, .project-body, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media img { aspect-ratio: 16 / 11; }
  .split-media .tag { inset-inline-start: 16px; bottom: 16px; }
  .stats, .facts { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding-block: 28px 24px; padding-inline: 0 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .fact, .fact:first-child { padding-block: 22px; padding-inline: 0 16px; border-inline-end: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-card { position: static; }
  .cta .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand img, .site-header.scrolled .brand img { height: 40px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--charcoal); flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 96px var(--gutter) 48px; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; padding-block: 10px; }
  .nav .btn { margin-top: 12px; min-height: 52px; }
  .lang { margin-top: 24px; min-height: 48px; padding: 0 20px; font-size: 15px; }
  .hero-pattern { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .stat, .stat:first-child { padding-inline-end: 0; }
  .stat-num { font-size: 40px; }
  .stat-num small { display: block; margin: 8px 0 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
  .hero-media::after { background: linear-gradient(0deg, rgba(32, 32, 31, 0.94) 0%, rgba(32, 32, 31, 0.6) 55%, rgba(32, 32, 31, 0.5) 100%); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { padding: 28px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .grid, .values, .features, .form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery button { aspect-ratio: 1; }
  .gallery button:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 11; }
  .gallery button:nth-child(4) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .interiors { grid-template-columns: 1fr 1fr; gap: 12px; }
  .interiors figure:nth-child(even) { margin-top: 28px; margin-bottom: -28px; }
  .rail .card { flex-basis: 78vw; }
  .card-go { transform: none; opacity: 1; }
  .filters .btn { width: 100%; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Language handling ---------- */
.i18n-pending body { visibility: hidden; }
input[type="tel"], input[type="email"] { direction: ltr; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }

/* Right-to-left */
[dir="rtl"] .hero > .hero-media { transform: scaleX(-1); }
[dir="rtl"] .quote .hero-media::after { background: linear-gradient(270deg, rgba(43, 49, 39, 0.96) 30%, rgba(43, 49, 39, 0.6) 100%); }
[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .field select { background-position: left 16px center; }
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg, [dir="rtl"] .card-go svg, [dir="rtl"] .rail-nav svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg, [dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* Arabic typography: no tracking, more leading, brand Arabic faces */
html[lang="ar"] { --font-head: "Loew Next Arabic", "Sarmady", "Montserrat", sans-serif; --font-body: "Sarmady", "Outfit", "Helvetica Neue", Arial, sans-serif; --font-display: "Loew Next Arabic", "Sarmady", sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { font-weight: 400; line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.35; }
html[lang="ar"] .h-xl { line-height: 1.25; font-size: clamp(38px, 6vw, 80px); }
html[lang="ar"] .hero h1 { max-width: 9em; }
html[lang="ar"] .lede { line-height: 1.85; }
html[lang="ar"] .eyebrow, html[lang="ar"] .btn, html[lang="ar"] .link-arrow, html[lang="ar"] .nav a, html[lang="ar"] .chip, html[lang="ar"] .field label, html[lang="ar"] .field .label, html[lang="ar"] .contact-list .label, html[lang="ar"] .fact dt, html[lang="ar"] .fact dd, html[lang="ar"] .site-footer h4, html[lang="ar"] .pillar .n, html[lang="ar"] .quote blockquote, html[lang="ar"] .stat-num small { font-family: var(--font-body); }
html[lang="ar"] .eyebrow { font-size: 15px; font-weight: 600; }
html[lang="ar"] .btn, html[lang="ar"] .link-arrow { font-size: 16px; }
html[lang="ar"] .nav a:not(.btn) { font-size: 16px; }
html[lang="ar"] .chip { font-size: 13px; height: 32px; }
html[lang="ar"] .field label, html[lang="ar"] .field .label, html[lang="ar"] .contact-list .label, html[lang="ar"] .fact dt, html[lang="ar"] .site-footer h4 { font-size: 14px; }
html[lang="ar"] .fact dd { font-weight: 600; }
html[lang="ar"] .quote blockquote { font-weight: 500; line-height: 1.8; }
html[lang="ar"] .quote cite { font-size: 15px; }
html[lang="ar"] .stat-num small { font-size: 0.3em; font-weight: 600; }
html[lang="ar"] .display { text-transform: none; }
html[lang="ar"] .motto .display { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.3; }
html[lang="ar"] .card-body p, html[lang="ar"] .stat-label, html[lang="ar"] .features span, html[lang="ar"] .value p, html[lang="ar"] .pillar p { font-size: 16px; line-height: 1.75; }
html[lang="ar"] .lang { font-family: var(--font-head); letter-spacing: 0.08em !important; }
html[lang="en"] .lang { font-family: "Sarmady", sans-serif; font-size: 15px; letter-spacing: 0; }
@media (max-width: 760px) {
  html[lang="ar"] .nav a:not(.btn) { font-size: 30px; font-weight: 600; }
  html[lang="ar"] .stat-num small { font-size: 14px; }
}

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 44px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); line-height: 1.9; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal a, .check a, .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: inherit; }
.legal .updated { font-size: 14px; }
html[lang="en"] [data-lang-only="ar"], html:not([lang="en"]) [data-lang-only="en"] { display: none; }
