/* Orla Properties — built from the Figma design system (Foundations page). */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Lustria"; src: url("../fonts/lustria-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --font-display: "Lustria", Georgia, "Times New Roman", serif;
  --font-text: "Montserrat", "Alexandria", system-ui, sans-serif;

  /* Dark surface (default) */
  --surface-primary: #121e14;
  --surface-primary-subtle: #0b150e;
  --surface-secondary: #17281c;
  --surface-inverted: #f4f6f2;
  --surface-selected: #dde3da;
  --overlay-xlg: rgba(18, 30, 20, 0.8);
  --text-primary: #f4f6f2;
  --text-secondary: #cfd7cc;
  --text-tertiary: #b3bfb1;
  --text-disabled: #416853;
  --text-inverted: #0b150e;
  --text-accent: #dda584;
  --text-hero-from: #ffffff;
  --text-hero-to: #dda584;
  --icon-accent: #d29a78;
  --action-primary: #d29a78;
  --action-primary-hover: #e0ae90;
  --border-primary: #274532;
  --border-secondary: #527864;
  --border-action-primary: #d29a78;
  --border-action-secondary: #7a9b89;
  --border-accent: #c48a69;
  --portrait-fill: #1d3325;

  --r-2: 2px; --r-4: 4px; --r-12: 12px; --r-16: 16px; --r-24: 24px;
  --gutter: clamp(20px, 5.56vw, 80px);
  --section-y: clamp(64px, 6.67vw, 96px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light surface sections */
.light {
  --surface-primary: #f4f6f2;
  --surface-secondary: #ffffff;
  --text-primary: #121e14;
  --text-secondary: #475449;
  --text-tertiary: #5c6b5d;
  --text-accent: #8a5639;
  --icon-accent: #a96f4e;
  --border-primary: #cfd7cc;
  --border-secondary: #9aab9c;
  --action-primary: #1d3325;
  --action-primary-hover: #274532;
  --portrait-fill: #dde3da;
}

html[lang="ar"] {
  --font-display: "Alexandria", "Lustria", serif;
  --font-text: "Alexandria", "Montserrat", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-primary); color: var(--text-primary); font-family: var(--font-text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--action-primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--action-primary); color: var(--text-inverted); padding: 8px 12px; border-radius: 0 var(--r-12) 0 var(--r-12); }
.skip:focus { top: 16px; }

.section { position: relative; background: var(--surface-primary); color: var(--text-primary); padding: var(--section-y) var(--gutter); overflow: hidden; }
.inner { max-width: calc(var(--max) - 160px); margin: 0 auto; position: relative; }

/* Type scale (Figma text styles) */
.h-display { font-family: var(--font-display); font-size: clamp(40px, 6.67vw, 96px); line-height: 1; }
.h1 { font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 60px); line-height: 1; }
.h2 { font-family: var(--font-display); font-size: clamp(34px, 3.34vw, 48px); line-height: 1; }
.h3 { font-family: var(--font-display); font-size: clamp(28px, 2.5vw, 36px); line-height: 40px; }
.h4 { font-family: var(--font-display); font-size: clamp(24px, 2.1vw, 30px); line-height: 36px; }
.h5 { font-family: var(--font-display); font-size: 24px; line-height: 32px; }
.h6 { font-family: var(--font-display); font-size: 20px; line-height: 28px; }
.body-l { font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.body { font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.body-s { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.caption { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.accent { color: var(--text-accent); }
.lines > span { display: block; }
.gradient-text { background: linear-gradient(90deg, var(--text-hero-from), var(--text-hero-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .gradient-text { background: linear-gradient(270deg, var(--text-hero-from), var(--text-hero-to)); -webkit-background-clip: text; background-clip: text; }
html[lang="ar"] .h-display, html[lang="ar"] .h1, html[lang="ar"] .h2 { line-height: 1.25; }

/* ---------- Buttons: the "O cut" ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap; border: 1px solid transparent; border-radius: 0 var(--r-16) 0 var(--r-16); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
html[dir="rtl"] .btn { border-radius: var(--r-16) 0 var(--r-16) 0; }
.btn-primary { background: var(--action-primary); color: var(--text-inverted); }
.light .btn-primary { color: var(--surface-inverted, #f4f6f2); color: #f4f6f2; }
.btn-primary:hover { background: var(--action-primary-hover); }
.btn-secondary { background: transparent; border-color: var(--border-action-secondary); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--action-primary); }
.btn-sm { font-size: 14px; line-height: 20px; border-radius: 0 var(--r-12) 0 var(--r-12); }
html[dir="rtl"] .btn-sm { border-radius: var(--r-12) 0 var(--r-12) 0; }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-accent); border-radius: var(--r-2); }
.arrow-link img { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.arrow-link:hover img { transform: translateX(4px); }
html[dir="rtl"] .arrow-link img { transform: scaleX(-1); }
html[dir="rtl"] .arrow-link:hover img { transform: scaleX(-1) translateX(4px); }
.light .arrow-link img { filter: brightness(.62) saturate(1.2); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--border-secondary); border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--border-action-primary); }
.chip .check { display: none; width: 16px; height: 16px; }
.chip[aria-pressed="true"], .chip.is-active, .chip:has(input:checked) { background: var(--surface-inverted); border-color: var(--border-action-primary); color: var(--text-inverted); }
.chip[aria-pressed="true"] .check, .chip.is-active .check, .chip:has(input:checked) .check { display: block; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* Plumb line pieces */
.plumb { position: absolute; width: 2px; background: var(--icon-accent); pointer-events: none; }
.diamond { width: 14px; height: 24px; flex: none; }
.diamond-sm { width: 7px; height: 12px; flex: none; }

/* ---------- Navigation ---------- */
.site-nav { position: absolute; z-index: 50; top: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 40px; padding: 12px 12px 12px 24px; background: var(--overlay-xlg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #274532; border-radius: 0 var(--r-24) 0 var(--r-24); white-space: nowrap; }
html[dir="rtl"] .site-nav { padding: 12px 24px 12px 12px; border-radius: var(--r-24) 0 var(--r-24) 0; }
.site-nav .logo { display: flex; align-items: center; gap: 16px; flex: none; }
.site-nav .logo img { flex: none; max-width: none; }
.site-nav .logo .mark { width: 20px; height: 36px; }
.site-nav .logo .word { width: 92px; height: 17.2px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; line-height: 20px; font-weight: 500; color: #f4f6f2; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: #d29a78; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-lang { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 24px; font-weight: 500; color: #cfd7cc; font-family: "Alexandria", "Montserrat", sans-serif; }
html[lang="ar"] .nav-lang { font-family: "Montserrat", sans-serif; }
.nav-lang img { width: 20px; height: 20px; }
.site-nav .btn { background: #d29a78; color: #0b150e; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #f4f6f2; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 960px; padding: 96px var(--gutter) 40px; background: var(--surface-primary-subtle); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .mark { position: absolute; left: 61.25%; top: 108px; width: 24.5%; max-width: 353px; height: auto; aspect-ratio: 353 / 650; }
.hero .mark-reflect { position: absolute; left: 61.25%; top: 764px; width: 24.5%; max-width: 353px; height: auto; aspect-ratio: 353 / 218; }
.hero .plumb { left: calc(61.25% + min(24.5%, 353px) * 0.4887); top: 0; height: 200px; }
.hero-copy { position: relative; z-index: 2; width: min(680px, 100%); padding-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .body-l { max-width: 560px; }
.hero-copy .actions { padding-top: 8px; }
.proof { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; font-weight: 500; color: #f4f6f2; flex-wrap: wrap; }
html[dir="rtl"] .hero .mark, html[dir="rtl"] .hero .mark-reflect { left: auto; right: 61.25%; }
html[dir="rtl"] .hero .plumb { left: auto; right: calc(61.25% + min(24.5%, 353px) * 0.4887); }
html[dir="rtl"] .hero .scene { transform: scaleX(-1); }

/* ---------- Tagline ---------- */
.tagline { min-height: 800px; display: flex; align-items: center; justify-content: center; text-align: center; }
.tagline .plumb.top { left: 50%; top: 0; height: 160px; transform: translateX(-1px); }
.tagline .plumb.bottom { left: 50%; bottom: 0; height: 192px; transform: translateX(-1px); }
.tagline .diamond { position: absolute; left: 50%; top: 156px; transform: translateX(-7px); }
.tagline .h-display { max-width: 1280px; color: var(--text-disabled); }
.reveal-word { transition: color .3s var(--ease); }
.reveal-word.is-lit { color: var(--text-primary); }

/* ---------- Home cards ---------- */
.card { display: flex; flex-direction: column; gap: 24px; color: inherit; }
.card .media { position: relative; width: 100%; }
.card .media.r-grid { aspect-ratio: 616 / 448; }
.card .media img { position: absolute; inset: 0; }
.card .media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.card:hover .media img { scale: 1.04; }
.card .media.cut img { object-fit: cover; -webkit-mask: url("../img/o-cut-mask.svg") center / 100% 100% no-repeat; mask: url("../img/o-cut-mask.svg") center / 100% 100% no-repeat; }
html[dir="rtl"] .card .media.cut img { transform: scaleX(-1); }
.card .details { display: flex; flex-direction: column; gap: 16px; }
.card .name { display: flex; flex-direction: column; gap: 4px; }
.card .place { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); }
.spec { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.spec img { width: 20px; height: 20px; }
.light .spec img { filter: invert(1) brightness(.35); }
.price-row { display: flex; align-items: center; gap: 24px; }
.price-row .price { flex: 1; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--text-accent); }

/* Homes on the line */
.on-line { padding-top: 0; }
.on-line .stage { position: relative; display: flex; justify-content: space-between; gap: 80px; }
.on-line .col { width: calc(50% - 80px); max-width: 560px; display: flex; flex-direction: column; gap: 96px; padding-top: 96px; }
.on-line .col .card .media.r-tall { aspect-ratio: 560 / 680; }
.on-line .col .card .media.r-short { aspect-ratio: 560 / 448; }
.on-line .heading { display: flex; flex-direction: column; gap: 24px; }
.on-line .heading .body-l { max-width: 480px; }
.on-line .heading .chips { padding-top: 8px; }
.on-line .see-all { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.on-line .spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--icon-accent); transform: translateX(-1px); }
.on-line .tick { position: absolute; height: 1px; width: 80px; background: var(--border-accent); }
.on-line .tick .diamond { position: absolute; top: -12px; }
.on-line .line-end { position: absolute; left: 50%; bottom: -18px; width: 21px; height: 36px; transform: translateX(-10.5px); }
[data-filter-hidden] { display: none !important; }

/* ---------- Distance from the sea ---------- */
.sea { padding-top: 0; }
.sea .chart { display: flex; align-items: flex-start; }
.sea .drop { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; }
.sea .drop .weight { display: flex; flex-direction: column; align-items: center; }
.sea .drop .thread { width: 1px; background: var(--icon-accent); transition: width .2s; }
.sea .drop .diamond { transition: transform .3s var(--ease); }
.sea .drop[aria-pressed="true"] .thread { width: 2px; }
.sea .drop[aria-pressed="true"] .diamond { transform: scale(1.5); transform-origin: top center; margin-bottom: 12px; }
.sea .drop:hover .diamond { transform: translateY(3px); }
.sea .drop .lbl { font-size: 14px; line-height: 20px; }
.sea .drop .lbl b { display: block; font-weight: 500; color: var(--text-primary); }
.sea .drop .lbl span { display: block; color: var(--text-accent); }
.sea .copy { position: absolute; left: 0; top: 400px; width: min(560px, 45%); display: flex; flex-direction: column; gap: 24px; }
.sea .copy .body-l { max-width: 480px; }
.sea .copy .body-s { color: var(--text-tertiary); }
.sea .selected { position: absolute; left: 620px; top: 430px; display: flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; background: var(--surface-secondary); border: 1px solid var(--border-primary); border-radius: var(--r-16); }
html[dir="rtl"] .sea .copy { left: auto; right: 0; }
html[dir="rtl"] .sea .selected { left: auto; right: 620px; padding: 16px 16px 16px 24px; }
.sea .selected [data-sel-img] { width: 72px; height: 88px; object-fit: cover; border-radius: 0 18px 0 18px; flex: none; }
.sea .selected .t { display: flex; flex-direction: column; gap: 4px; }

/* ---------- True cost ---------- */
.cost .inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.cost .model { width: 600px; max-width: 46%; aspect-ratio: 600 / 720; flex: none; }
.cost .model img { width: 100%; height: 100%; object-fit: contain; }
.ledger { width: 584px; max-width: 100%; display: flex; flex-direction: column; gap: 40px; }
.ledger .heading { display: flex; flex-direction: column; gap: 24px; }
.ledger .heading .body-l { max-width: 480px; }
.slider { display: flex; flex-direction: column; gap: 16px; }
.slider .amount { font-family: var(--font-display); font-size: 36px; line-height: 40px; color: var(--text-accent); }
.range { position: relative; height: 36px; }
.range input { position: absolute; inset: 0; width: 100%; height: 36px; margin: 0; opacity: 0; cursor: grab; z-index: 2; }
.range .track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-secondary); }
.range .fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--icon-accent); }
.range .thumb { position: absolute; top: 0; width: 21px; height: 36px; margin-left: -10.5px; transition: transform .2s var(--ease); }
.range input:focus-visible ~ .thumb { outline: 2px solid var(--action-primary); outline-offset: 4px; }
html[dir="rtl"] .range { transform: scaleX(-1); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border-primary); }
.row .lbl { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.row .lbl b { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-primary); }
.row .lbl span { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.row .val { font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.total { display: flex; align-items: center; gap: 24px; padding-top: 24px; }
.total b { flex: 1; font-size: 18px; line-height: 28px; font-weight: 500; }
.total span { font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--text-accent); white-space: nowrap; }

/* ---------- Services ---------- */
.services .inner { display: flex; flex-direction: column; gap: 64px; }
.services .top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.services .top .heading { width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.services .top .heading .body-l { max-width: 460px; }
.services .top .img { width: 680px; max-width: 50%; aspect-ratio: 680 / 400; flex: none; }
.services .top .img img { width: 100%; height: 100%; object-fit: contain; }
html[dir="rtl"] .services .top .img img { transform: scaleX(-1); }
.svc-list { border-top: 1px solid var(--border-primary); }
.svc { display: flex; align-items: center; gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--border-primary); }
.svc .h4 { width: 400px; flex: none; }
.svc .body { flex: 1; }
.svc .count { width: 200px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.svc .count b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 36px; color: var(--text-accent); }
.svc .count span { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }

/* ---------- How we work ---------- */
.how { padding: 0; }
.how .picture { position: relative; height: 800px; padding: 96px var(--gutter); overflow: hidden; }
.how .picture img { position: absolute; left: 0; top: -40px; width: 100%; height: 960px; object-fit: cover; }
html[dir="rtl"] .how .picture img { transform: scaleX(-1); }
.how .picture .heading { position: relative; width: min(560px, 100%); display: flex; flex-direction: column; gap: 24px; }
.how .picture .heading .body-l { max-width: 460px; }
.how .steps { position: relative; padding: 0 var(--gutter) 96px; }
.how .steps::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--icon-accent); }
.how .steps ol { list-style: none; margin: 0 auto; padding: 0; max-width: calc(var(--max) - 160px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.how .step { display: flex; flex-direction: column; gap: 24px; }
.how .step .weight { display: flex; flex-direction: column; align-items: center; width: 14px; }
.how .step .weight i { display: block; width: 2px; height: 40px; background: var(--icon-accent); }
.how .step .txt { display: flex; flex-direction: column; gap: 8px; }

/* ---------- People ---------- */
.people .inner { display: flex; flex-direction: column; gap: 64px; }
.people .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.people .top .body-l { width: 480px; max-width: 100%; }
.advisors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.advisor { display: flex; flex-direction: column; gap: 16px; }
.advisor .portrait { position: relative; aspect-ratio: 232 / 296; display: grid; place-items: center; background: var(--portrait-fill); -webkit-mask: url("../img/portrait-placeholder.svg") center / 100% 100% no-repeat; mask: url("../img/portrait-placeholder.svg") center / 100% 100% no-repeat; }
.advisor .portrait span { font-family: var(--font-display); font-size: 48px; line-height: 48px; color: var(--text-accent); }
html[lang="ar"] .advisor .portrait span { font-family: "Lustria", serif; }
.advisor .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.advisor .t { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Small worlds ---------- */
.worlds { padding: 0 0 96px; }
.worlds .models { display: flex; justify-content: center; align-items: flex-start; gap: 40px; width: max(1440px, 100%); position: relative; left: 50%; transform: translateX(-50%); }
.worlds .model { display: flex; flex-direction: column; align-items: center; flex: none; }
.worlds .model i { display: block; width: 2px; background: var(--icon-accent); }
.worlds .model img { width: 288px; height: 368px; object-fit: contain; animation: sway 7s ease-in-out infinite; transform-origin: top center; }
.worlds .model.big img { width: 368px; height: 460px; }
.worlds .model:nth-child(2) img { animation-delay: -2s; }
.worlds .model:nth-child(3) img { animation-delay: -4s; }
.worlds .model:nth-child(4) img { animation-delay: -1s; }
@keyframes sway { 0%, 100% { transform: rotate(-0.6deg); } 50% { transform: rotate(0.6deg); } }
.worlds .text { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 80px var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.worlds .aside { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* ---------- FAQ ---------- */
.faq .inner { display: flex; justify-content: space-between; gap: 64px; align-items: flex-start; }
.faq .heading { width: 400px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.faq .heading .body-l { max-width: 380px; }
.faq .rows-faq { width: 760px; max-width: 100%; }
.faq details { border-bottom: 1px solid var(--border-primary); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .h6 { flex: 1; }
.faq summary .icon { width: 24px; height: 24px; flex: none; position: relative; }
.faq summary .icon::before, .faq summary .icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 11.5px; height: 1px; background: var(--icon-accent); transition: transform .25s var(--ease); }
.faq summary .icon::after { transform: rotate(90deg); }
.faq details[open] summary .icon::after { transform: rotate(0deg); }
.faq details[open] summary .icon::before, .faq details[open] summary .icon::after { background: var(--text-tertiary); }
.faq .answer { padding: 0 64px 32px 0; }
html[dir="rtl"] .faq .answer { padding: 0 0 32px 64px; }

/* ---------- Contact ---------- */
.contact { min-height: 1040px; display: flex; align-items: center; }
.contact .inner { width: 100%; }
.contact .plumb { left: calc(50% + 340px); top: 0; height: 140px; }
.contact .mark { position: absolute; left: calc(50% + 130px); top: 80px; width: 434px; height: 830px; object-fit: contain; pointer-events: none; }
html[dir="rtl"] .contact .plumb { left: auto; right: calc(50% + 340px); }
html[dir="rtl"] .contact .mark { left: auto; right: calc(50% + 130px); }
.enquiry { position: relative; z-index: 2; width: 584px; max-width: 100%; display: flex; flex-direction: column; gap: 40px; }
.enquiry .heading { display: flex; flex-direction: column; gap: 24px; }
.enquiry .heading .body-l { max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-primary); }
.field input, .field textarea, .field select { width: 100%; padding: 11px 16px; background: var(--surface-secondary); border: 1px solid var(--border-secondary); border-radius: var(--r-4); font-size: 16px; line-height: 24px; color: var(--text-primary); }
.field textarea { resize: vertical; min-height: 48px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-action-primary); }
.field .helper { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.form .submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form .submit p { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.form .submit p a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border: 1px solid var(--border-action-primary); border-radius: 0 var(--r-12) 0 var(--r-12); font-size: 14px; line-height: 20px; color: var(--text-primary); }
.contact-lines { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.contact-lines a:hover { color: var(--text-accent); }

/* ---------- Footer ---------- */
.footer { background: var(--surface-primary-subtle); padding: 96px var(--gutter) 40px; color: var(--text-primary); }
.footer .inner { display: flex; flex-direction: column; gap: 80px; }
.footer .cols { display: flex; gap: 64px; }
.footer .about { width: 400px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.footer .about .logo { width: 122px; height: 140px; }
.footer .links { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px; font-size: 14px; line-height: 20px; }
.footer .links h3 { font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-accent); margin-bottom: 12px; }
.footer .links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--text-secondary); }
.footer .links a:hover { color: var(--text-primary); }
.footer .social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .social a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border-primary); border-radius: 9999px; font-size: 14px; line-height: 20px; color: var(--text-secondary); transition: border-color .2s, color .2s; }
.footer .social a:hover { border-color: var(--border-action-primary); color: var(--text-primary); }
.footer .social svg { width: 16px; height: 16px; fill: currentColor; }
.footer .wordmark { width: 100%; height: auto; aspect-ratio: 1280 / 239; }
.footer .divider { height: 1px; background: var(--border-primary); }
.footer .legal { display: flex; gap: 24px; font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.footer .legal p:first-child { flex: 1; }

/* WhatsApp floating button */
.wa-float { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: 56px; height: 56px; display: grid; place-items: center; background: #d29a78; color: #0b150e; border-radius: 0 20px 0 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s var(--ease), background-color .2s; }
.wa-float:hover { transform: translateY(-2px); background: #e0ae90; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
html[dir="rtl"] .wa-float { right: auto; left: 24px; border-radius: 20px 0 20px 0; }

/* ---------- Homes page ---------- */
.page-header { position: relative; background: var(--surface-primary-subtle); padding: 96px var(--gutter) 64px; }
.page-header .inner { display: flex; flex-direction: column; gap: 48px; }
.page-header .title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 64px; }
.page-header .title-row .body-l { width: 460px; max-width: 100%; }
.filter-bar { display: flex; align-items: center; gap: 24px; padding: 16px 16px 16px 24px; background: #17281c; border-radius: 0 var(--r-24) 0 var(--r-24); }
html[dir="rtl"] .filter-bar { padding: 16px 24px 16px 16px; border-radius: var(--r-24) 0 var(--r-24) 0; }
.filter { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 4px; }
.filter label { font-size: 12px; line-height: 16px; color: #b3bfb1; }
.filter select { appearance: none; -webkit-appearance: none; width: 100%; background: transparent url("../img/icon-caret-down.svg") right center / 20px no-repeat; border: 0; padding: 0 28px 0 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #f4f6f2; cursor: pointer; }
html[dir="rtl"] .filter select { background-position: left center; padding: 0 0 0 28px; }
.filter select option { background: #17281c; color: #f4f6f2; }
.filter-bar .sep { width: 1px; height: 40px; background: #527864; flex: none; }
.chip-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.featured .inner { display: flex; align-items: center; gap: 64px; }
.featured { padding-bottom: 0; }
.featured .media { width: 760px; max-width: 55%; aspect-ratio: 760 / 680; flex: none; }
.featured .media img { width: 100%; height: 100%; object-fit: contain; }
.featured .details { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.featured .details .name { display: flex; flex-direction: column; gap: 16px; }
.featured .details .specs { flex-direction: column; align-items: flex-start; gap: 16px; }
.featured .details .big-price { font-family: var(--font-display); font-size: 36px; line-height: 40px; color: var(--text-accent); }
.results .inner { display: flex; flex-direction: column; gap: 96px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 96px clamp(24px, 3.4vw, 48px); }
.grid .card .media { aspect-ratio: 616 / 448; }
.show-more { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.show-more i { display: block; width: 2px; height: 80px; background: var(--icon-accent); margin-bottom: -24px; }
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 96px 0; }
.state .body-l { max-width: 520px; }
.state i { display: block; width: 2px; height: 120px; background: var(--icon-accent); margin-bottom: -24px; }
.saved .inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.saved .t { width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.saved .t .body-l { max-width: 480px; }
.saved form { width: 520px; max-width: 100%; display: flex; align-items: flex-end; gap: 16px; }
.saved form .field { flex: 1; }

/* ---------- Detail page ---------- */
.d-hero { position: relative; min-height: 1040px; background: var(--surface-primary-subtle); padding: 96px var(--gutter) 64px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.d-hero .scene { position: absolute; left: 0; top: 0; width: 100%; height: 849px; object-fit: cover; }
.d-hero .scene-shaped { position: absolute; right: var(--gutter); top: 120px; width: min(760px, 58%); height: 680px; object-fit: contain; }
html[dir="rtl"] .d-hero .scene-shaped { right: auto; left: var(--gutter); }
.d-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 420px; background: linear-gradient(180deg, rgba(11,21,14,0) 0%, rgba(11,21,14,.85) 45%, #0b150e 70%); pointer-events: none; }
.d-hero .plumb { left: 52%; top: 0; height: 330px; }
.d-hero .plumb-d { position: absolute; left: calc(52% - 9.5px); top: 326px; width: 21px; height: 36px; }
.breadcrumb { position: absolute; z-index: 3; left: var(--gutter); top: 120px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); }
html[dir="rtl"] .breadcrumb { left: auto; right: var(--gutter); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb [aria-current] { color: var(--text-primary); }
.d-hero .title-row { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: calc(var(--max) - 160px); width: 100%; margin: 0 auto; }
.d-hero .title { width: 620px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.d-hero .title .body-l { max-width: 480px; }
.d-hero .specs { gap: 8px 32px; }
.d-hero .price-box { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: end; }
.d-hero .price-box .figs { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.d-hero .price-box .big { font-family: var(--font-display); font-size: 36px; line-height: 40px; color: var(--text-accent); white-space: nowrap; }
.story .inner { display: flex; justify-content: space-between; gap: 80px; align-items: flex-start; }
.story .text { width: 560px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.story .text .advisor-line { display: flex; align-items: center; gap: 16px; padding-top: 16px; }
.story .text .advisor-line .avatar { width: 56px; height: 72px; display: grid; place-items: center; background: var(--portrait-fill); -webkit-mask: url("../img/portrait-placeholder.svg") center / 100% 100% no-repeat; mask: url("../img/portrait-placeholder.svg") center / 100% 100% no-repeat; font-family: "Lustria", serif; font-size: 20px; color: var(--text-accent); }
.story .ledger { width: 584px; gap: 24px; }
.building .inner { display: flex; flex-direction: column; gap: 48px; }
.building .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.amenity-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 48px; border-top: 1px solid var(--border-primary); }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--border-primary); font-size: 16px; line-height: 24px; }
.amenity-list li .diamond-sm { opacity: .9; }
.nearby .inner { display: flex; flex-direction: column; gap: 64px; }
.nearby .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.nearby .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.nearby .grid-3 .card .media { aspect-ratio: 616 / 448; }

/* Plain text pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 36px; margin-top: 24px; }
.prose p, .prose li { color: var(--text-secondary); }

/* ---------- Motion ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }
/* ---------- Motion graphics ----------
   Hidden "before" states apply only under html.m-ready, which site.js adds
   when motion is allowed, so the page reads fine without JS and for anyone
   who has asked their system for reduced motion. */

/* Hero: plays once on load, CSS only */
@keyframes m-kenburns { from { scale: 1.12; opacity: 0; } 30% { opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes m-draw-y { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes m-bob-drop { from { translate: 0 -64px; opacity: 0; } 60% { opacity: 1; } 78% { translate: 0 6px; } to { translate: 0 0; opacity: 1; } }
@keyframes m-sway { 0%, 100% { rotate: -1.1deg; } 50% { rotate: 1.1deg; } }
@keyframes m-rise { from { opacity: 0; translate: 0 28px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-shimmer { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes m-nav-in { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: 0 0; } }

.hero .scene { animation: m-kenburns 2.6s var(--ease) both; }
.hero .plumb { transform-origin: top center; animation: m-draw-y 1s .35s var(--ease) both; }
.hero .mark { transform-origin: 50% 0; animation: m-bob-drop 1.5s 1s var(--ease) both, m-sway 8s 2.5s ease-in-out infinite; }
.hero .mark-reflect { animation: m-fade 1.4s 1.9s ease both, m-shimmer 6s 3.3s ease-in-out infinite; }
.hero-copy > * { animation: m-rise 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .25s; }
.hero-copy > :nth-child(2) { animation-delay: .5s; }
.hero-copy > :nth-child(3) { animation-delay: .7s; }
.hero .proof { animation: m-fade 1s 1.3s ease both; }
.site-nav { animation: m-nav-in .9s .1s var(--ease) both; }

/* Inner page headers get the same entrance */
.page-header .title-row > *, .d-hero .title-row > *, .breadcrumb { animation: m-rise 1s var(--ease) both; }
.page-header .title-row > :nth-child(2), .d-hero .title-row > :nth-child(2) { animation-delay: .25s; }
.d-hero .scene { animation: m-kenburns 2.6s var(--ease) both; }
.d-hero .scene-shaped { animation: m-rise 1.4s .3s var(--ease) both; }
.d-hero .plumb { transform-origin: top center; animation: m-draw-y 1s .3s var(--ease) both; }
.d-hero .plumb-d { animation: m-bob-drop 1.2s .9s var(--ease) both; }

/* Contact mark hangs and sways like the hero mark */
.contact .mark { transform-origin: 50% 0; animation: m-sway 9s ease-in-out infinite; }

/* Generic reveal: fade, rise and un-blur; --d staggers siblings */
.m-ready .fade-up { opacity: 0; transform: translateY(32px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.m-ready .fade-up.is-in { opacity: 1; transform: none; filter: none; }

/* Headings: each line slides up out of a mask */
.m-ready .m-lines > span { clip-path: inset(0 0 100% 0); translate: 0 60%; transition: clip-path 1s var(--ease), translate 1s var(--ease); }
.m-ready .m-lines > span:nth-child(2) { transition-delay: .12s; }
.m-ready .m-lines.is-in > span { clip-path: inset(-25% -5% -30% -5%); translate: 0 0; }

/* Plumb lines draw downwards as they come into view */
.m-ready .section .plumb, .m-ready .contact .plumb { scale: 1 0; transform-origin: top center; transition: scale 1.2s var(--ease); }
.m-ready .section .plumb.is-in, .m-ready .contact .plumb.is-in { scale: 1 1; }
.m-ready .tagline .diamond { opacity: 0; translate: 0 -24px; transition: opacity .6s 1s, translate .9s 1s var(--ease); }
.m-ready .tagline .diamond.is-in { opacity: 1; translate: 0 0; }

/* Home cards: photo unveils upwards and settles from a slight zoom */
.m-ready .card .media { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }
.m-ready .card.is-in .media { clip-path: inset(0 -100px 0 -100px); }
.m-ready .card .media img { scale: 1.14; transition: scale 1.4s var(--ease); }
.m-ready .card.is-in .media img { scale: 1; }
.m-ready .card.is-in:hover .media img { scale: 1.04; transition-duration: .7s; }

/* The plumb line through the homes grows with scroll; ticks reach out to it */
.m-ready .on-line .spine { scale: 1 var(--spine, 0); transform-origin: top center; }
.m-ready .on-line .line-end { opacity: 0; translate: 0 -12px; transition: opacity .5s, translate .6s var(--ease); }
.m-ready .on-line .line-end.is-in { opacity: 1; translate: 0 0; }
.m-ready .on-line .tick-wrap .media::after { scale: 0 1; transition: scale .8s .6s var(--ease); }
.m-ready .on-line .tick-wrap .media::before { opacity: 0; transition: opacity .4s 1.3s; }
.m-ready .on-line .tick-wrap .card.is-in .media::after { scale: 1 1; }
.m-ready .on-line .tick-wrap .card.is-in .media::before { opacity: 1; }
.on-line .col.left .tick-wrap .media::after { transform-origin: left center; }
.on-line .col.right .tick-wrap .media::after { transform-origin: right center; }
html[dir="rtl"] .on-line .col.left .tick-wrap .media::after { transform-origin: right center; }
html[dir="rtl"] .on-line .col.right .tick-wrap .media::after { transform-origin: left center; }

/* Filter chips: cards that come back pop in */
@keyframes m-pop { from { opacity: 0; translate: 0 16px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.tick-wrap.m-shown { animation: m-pop .6s var(--ease) both; }

/* Distance from the sea: weights drop one after another, the chosen one sways */
.m-ready .sea .drop .weight { clip-path: inset(0 -20px 100% -20px); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.m-ready .sea .chart.is-in .drop .weight { clip-path: inset(0 -20px -20px -20px); }
.sea .drop[aria-pressed="true"] .weight { transform-origin: 50% 0; animation: m-sway 4s ease-in-out infinite; }
@keyframes m-swap { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.sea .selected.m-swap > * { animation: m-swap .5s var(--ease) both; }
.sea .selected.m-swap > .t { animation-delay: .08s; }

/* True cost: the model floats; the total glows when it changes */
@keyframes m-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.cost .model img { animation: m-float 7s ease-in-out infinite; }
@keyframes m-tick { from { color: var(--text-primary); } to { color: inherit; } }
.m-bump { animation: m-tick .6s ease; }

/* How we work: the rule draws across, each weight drops in turn */
.m-ready .how .steps::before { scale: 0 1; transform-origin: left center; transition: scale 1.6s var(--ease); }
html[dir="rtl"].m-ready .how .steps::before { transform-origin: right center; }
.m-ready .how .steps.is-in::before { scale: 1 1; }
.m-ready .how .step .weight i { scale: 1 0; transform-origin: top center; transition: scale .8s var(--ease); transition-delay: calc(var(--d, 0s) + .2s); }
.m-ready .how .step.is-in .weight i { scale: 1 1; }

/* Gentle parallax on big photographs (set by site.js) */
.hero .scene, .how .picture img { translate: 0 var(--py, 0px); }

/* Buttons: a soft light sweep; arrows nudge forward */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); translate: -120% 0; transition: translate .8s var(--ease); }
.btn-primary:hover::after { translate: 120% 0; }
.arrow-link img, .card .arrow-link img { transition: translate .3s var(--ease); }
.arrow-link:hover img, .card:hover .arrow-link img { translate: 4px 0; }
html[dir="rtl"] .arrow-link:hover img, html[dir="rtl"] .card:hover .arrow-link img { translate: -4px 0; }

/* WhatsApp button: a slow ring so it is noticed without nagging */
@keyframes m-ring { 0% { opacity: .55; scale: 1; } 70%, 100% { opacity: 0; scale: 1.6; } }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #d29a78; animation: m-ring 3.2s 3s ease-out infinite; pointer-events: none; }
.wa-float:hover::before { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; filter: none; }
  .reveal-word { color: var(--text-primary); }
  .hero .scene, .how .picture img { translate: none; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .site-nav { gap: 24px; }
  .nav-links { gap: 20px; }
  .advisors { gap: 24px; }
  .sea .selected { left: auto; right: 0; }
  html[dir="rtl"] .sea .selected { right: auto; left: 0; }
}

@media (max-width: 1100px) {
  .site-nav { left: var(--gutter); right: var(--gutter); transform: none; justify-content: space-between; padding: 10px 10px 10px 18px; }
  html[dir="rtl"] .site-nav { padding: 10px 18px 10px 10px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open { flex-wrap: wrap; border-radius: 0 var(--r-24) 0 var(--r-24); }
  .site-nav.is-open .nav-links { display: flex; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .site-nav.is-open .nav-links a { padding: 12px 0; border-top: 1px solid #274532; }
  .site-nav.is-open .nav-links a::after { display: none; }
  .site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-actions { gap: 12px; }

  .on-line .stage { gap: 48px; }
  .on-line .col { width: calc(50% - 48px); gap: 64px; }
  .cost .inner, .services .top, .faq .inner, .story .inner, .featured .inner { flex-direction: column; align-items: stretch; }
  .cost .model { max-width: 520px; width: 100%; margin: 0 auto; }
  .services .top .img { max-width: 100%; width: 100%; }
  .faq .heading { width: auto; }
  .faq .rows-faq { width: 100%; }
  .svc { flex-wrap: wrap; gap: 12px 32px; }
  .svc .h4 { width: 100%; }
  .svc .count { width: auto; align-items: flex-start; }
  .how .steps ol { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .advisors { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .footer .cols { flex-direction: column; gap: 48px; }
  .footer .about { width: auto; }
  .footer .links { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .featured .media { max-width: 100%; width: 100%; }
  .story .ledger { width: 100%; }
  .amenity-list { grid-template-columns: repeat(2, 1fr); }
  .nearby .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact .mark { opacity: .35; }
}

@media (max-width: 760px) {
  .site-nav { top: 16px; }
  .nav-lang span { display: none; }
  .site-nav .btn-sm { display: none; }
  .site-nav.is-open .btn-sm { display: inline-flex; }

  .hero { min-height: 844px; padding-top: 140px; }
  .hero .scene { object-position: 70% center; }
  .hero .mark { left: auto; right: -4%; top: auto; bottom: 96px; width: 40%; opacity: .95; }
  .hero .mark-reflect { display: none; }
  .hero .plumb { left: auto; right: calc(-4% + 40% * 0.5113); height: calc(100% - 96px - 40% * 1.84 + 20px); }
  html[dir="rtl"] .hero .mark { right: auto; left: -4%; }
  html[dir="rtl"] .hero .plumb { right: auto; left: calc(-4% + 40% * 0.5113); }
  .hero-copy { max-width: 100%; }
  .svc .body { flex-basis: 100%; order: 3; }
  .field textarea { min-height: 72px; }
  .hero-copy { padding-top: 0; }
  .proof { gap: 8px 16px; font-size: 13px; }

  .tagline { min-height: 520px; }
  .tagline .plumb.top { height: 96px; }
  .tagline .diamond { top: 92px; }
  .tagline .plumb.bottom { height: 96px; }

  .on-line .stage { flex-direction: column; gap: 64px; padding-left: 28px; }
  html[dir="rtl"] .on-line .stage { padding-left: 0; padding-right: 28px; }
  .on-line .col { width: 100%; max-width: none; padding-top: 0; gap: 64px; }
  .on-line .col.right { order: -1; padding-top: 64px; }
  .on-line .col.right .heading { order: -1; }
  .on-line .spine { left: 0; transform: none; }
  html[dir="rtl"] .on-line .spine { left: auto; right: 0; }
  .on-line .tick { display: none; }
  .on-line .line-end { left: -9.5px; transform: none; }
  html[dir="rtl"] .on-line .line-end { left: auto; right: -9.5px; }
  .on-line .mobile-merge { display: contents; }

  .sea .chart { overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .sea .drop { flex: 0 0 96px; }
  .sea .copy { position: static; width: 100%; margin-top: 32px; }
  .sea .selected { position: static; margin-top: 32px; }

  .services .inner, .people .inner { gap: 40px; }
  .how .picture { height: 640px; padding-top: 80px; }
  .how .picture img { height: 700px; top: 0; object-position: 60% center; }
  .how .steps ol { grid-template-columns: 1fr; row-gap: 32px; }
  .how .step { flex-direction: row; gap: 20px; }

  .people .top { flex-direction: column; align-items: flex-start; }
  .advisors { grid-template-columns: repeat(2, 1fr); }

  .worlds .models { gap: 16px; justify-content: flex-start; width: auto; left: 0; transform: none; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
  .worlds .model img { width: 180px; height: 230px; }
  .worlds .model.big img { width: 220px; height: 276px; }
  .worlds .text { flex-direction: column; align-items: flex-start; padding-top: 48px; }

  .faq .answer { padding-right: 0; }
  .contact { min-height: 0; }
  .contact .mark, .contact .plumb { display: none; }
  .form .two { grid-template-columns: 1fr; }

  .footer .links { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer .legal { flex-direction: column; gap: 8px; }

  .page-header .title-row { flex-direction: column; align-items: flex-start; padding-top: 48px; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; border-radius: 0 var(--r-24) 0 var(--r-24); }
  .filter-bar .sep { width: 100%; height: 1px; }
  .grid { grid-template-columns: 1fr; gap: 64px; }
  .saved .inner, .saved form { flex-direction: column; align-items: stretch; }

  .d-hero { min-height: 0; padding-top: 0; }
  .d-hero .scene { position: relative; height: 420px; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); }
  .d-hero .scene-shaped { position: relative; right: auto; top: auto; width: 100%; height: 360px; margin-top: 120px; }
  .d-hero::after { display: none; }
  .d-hero .plumb, .d-hero .plumb-d { display: none; }
  .breadcrumb { top: 96px; }
  .d-hero .title-row { flex-direction: column; align-items: flex-start; gap: 32px; margin-top: 24px; }
  .d-hero .price-box, .d-hero .price-box .figs { align-items: flex-start; text-align: start; }
  .amenity-list, .nearby .grid-3 { grid-template-columns: 1fr; }
  .building .top, .nearby .top { flex-direction: column; align-items: flex-start; }

  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  html[dir="rtl"] .wa-float { left: 16px; }
}

/* Ticks from the home cards to the plumb line */
.on-line .tick-wrap .media::after { content: ""; position: absolute; top: 50%; width: 80px; height: 1px; background: var(--border-accent); }
.on-line .tick-wrap .media::before { content: ""; position: absolute; top: calc(50% - 12px); width: 14px; height: 24px; background: url("../img/diamond-line.svg") center / contain no-repeat; z-index: 1; }
.on-line .col.left .tick-wrap .media::after { left: 100%; }
.on-line .col.left .tick-wrap .media::before { left: calc(100% + 73px); }
.on-line .col.right .tick-wrap .media::after { right: 100%; }
.on-line .col.right .tick-wrap .media::before { right: calc(100% + 73px); }
html[dir="rtl"] .on-line .col.left .tick-wrap .media::after { left: auto; right: 100%; }
html[dir="rtl"] .on-line .col.left .tick-wrap .media::before { left: auto; right: calc(100% + 73px); }
html[dir="rtl"] .on-line .col.right .tick-wrap .media::after { right: auto; left: 100%; }
html[dir="rtl"] .on-line .col.right .tick-wrap .media::before { right: auto; left: calc(100% + 73px); }
@media (max-width: 1100px) {
  .on-line .tick-wrap .media::after { width: 48px; }
  .on-line .col.left .tick-wrap .media::before { left: calc(100% + 41px); }
  .on-line .col.right .tick-wrap .media::before { right: calc(100% + 41px); }
}
@media (max-width: 760px) {
  .on-line .tick-wrap .media::after, .on-line .tick-wrap .media::before { display: none; }
}

/* ---------- Cookie choices ---------- */
.consent { position: fixed; z-index: 70; left: 24px; bottom: 24px; width: min(440px, calc(100% - 112px)); display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; background: var(--overlay-xlg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #274532; border-radius: 0 var(--r-24) 0 var(--r-24); color: var(--text-primary); animation: m-rise .6s var(--ease) both; }
.consent[hidden] { display: none; }
.consent a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; justify-content: flex-end; }
html[dir="rtl"] .consent { left: auto; right: 24px; }
@media (max-width: 760px) { .consent { left: 12px; right: 12px; bottom: 80px; width: auto; } html[dir="rtl"] .consent { right: 12px; } .consent-actions .btn { flex: 1; } }
