/* ==========================================================
   Dr. Farah Merhi — Sample 3 · Maison (luxury)
   Palette: night / emerald / gold / ivory
   ========================================================== */

:root {
  --night: #050807;
  --night-2: #09110e;
  --emerald: #0e2720;
  --emerald-2: #15382d;
  --gold: #d6b476;
  --gold-2: #f0dcae;
  --gold-deep: #a9864a;
  --ivory: #f3ecdf;
  --ivory-2: #e9dfcc;
  --muted: #98a39d;
  --line: rgba(214, 180, 118, 0.2);
  --line-soft: rgba(243, 236, 223, 0.1);

  --f-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-body: "Jost", system-ui, sans-serif;

  --gutter: clamp(18px, 4.4vw, 72px);
  --max: 1400px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --nav-h: 88px;
}

html[lang="ar"] {
  --f-display: "Reem Kufi", system-ui, sans-serif;
  --f-body: "Almarai", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--gold); }
html[lang="ar"] em { font-style: normal; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

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

/* ---------- Canvas & overlays ---------- */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.no-webgl #webgl { display: none; }
.no-webgl .story-sticky { background: radial-gradient(50% 50% at 70% 45%, rgba(214, 180, 118, 0.25), transparent 70%), var(--emerald); }
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Cursor: gold diamond ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor i {
  display: block;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.5s var(--ease), background 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover i { transform: rotate(45deg) scale(2.6); background: rgba(214, 180, 118, 0.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--night);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  clip-path: inset(0 0 0 0);
}
.loader-gem { width: 110px; height: auto; }
.loader-gem path { stroke: var(--gold); stroke-width: 0.8; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.loader-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.loader-name { font-family: "Bodoni Moda", serif; font-size: 22px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory); }
.loader-pct { font-size: 11px; letter-spacing: 0.3em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.loader-pct b { font-weight: 400; }

/* ---------- Type ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.overline .num { font-family: "Bodoni Moda", serif; font-size: 14px; letter-spacing: 0; font-style: italic; }
.overline.center { display: flex; justify-content: center; }
html[lang="ar"] .overline { letter-spacing: 0; font-size: 14px; text-transform: none; }

.mega {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.6vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
html[lang="ar"] .mega, html[lang="ar"] .big, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.2; }
html[lang="ar"] .mega { font-size: clamp(2.8rem, 7.4vw, 8rem); }

.mask { overflow: hidden; padding-bottom: 0.1em; }
.mask > span { display: inline-block; }
.lead { margin-top: 28px; font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.6; color: rgba(243, 236, 223, 0.82); max-width: 34rem; }
.body { margin-top: 20px; color: var(--muted); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 34px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  will-change: transform;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; text-transform: none; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold::before { background: var(--gold-2); }
.btn-line { border: 1px solid var(--line); color: var(--ivory); }
.btn-line::before { background: var(--gold); }
.btn-line:hover { color: var(--night); }
.btn-wide { width: 100%; padding: 22px 34px; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: transform 0.7s var(--ease), background 0.6s;
}
.nav.is-solid { background: linear-gradient(180deg, rgba(5, 8, 7, 0.85), rgba(5, 8, 7, 0)); }
.nav.is-hidden { transform: translateY(-100%); }

.burger { display: inline-flex; align-items: center; gap: 14px; justify-self: start; height: 44px; position: relative; padding-inline-start: 34px; }
.burger span { position: absolute; inset-inline-start: 0; width: 24px; height: 1px; background: var(--ivory); transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:nth-child(2) { top: 25px; width: 16px; }
.burger b { font-weight: 400; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
html[lang="ar"] .burger b { letter-spacing: 0; font-size: 14px; }
.menu-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; width: 24px; transform: rotate(-45deg); }

.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-mono { font-family: "Bodoni Moda", serif; font-size: 28px; line-height: 1; letter-spacing: 0.04em; color: var(--gold-2); }
.brand-mono i, .footer-mono i, .portrait-art i { font-style: italic; color: var(--gold); margin-left: -0.02em; }
.brand-word { font-size: 9px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--muted); padding-inline-start: 0.5em; }
html[lang="ar"] .brand-word { letter-spacing: 0; font-size: 12px; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; gap: 10px; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.lang-ar { font-family: "Almarai", sans-serif; letter-spacing: 0; font-size: 14px; }
html[lang="en"] .lang-en, html[lang="ar"] .lang-ar { color: var(--gold-2); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-2);
}
html[lang="ar"] .nav-cta { letter-spacing: 0; font-size: 14px; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--emerald);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  transition: color 0.4s, transform 0.6s var(--ease);
}
.menu-links a i { font-family: "Bodoni Moda", serif; font-size: 14px; color: var(--gold); width: 28px; }
.menu-links a:hover { color: var(--gold-2); transform: translateX(12px); }
html[dir="rtl"] .menu-links a:hover { transform: translateX(-12px); }
.menu-side { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 14px; }
.menu-side p { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; color: var(--ivory); margin-bottom: 18px; }
.menu-side a { color: var(--gold-2); width: fit-content; border-bottom: 1px solid var(--line); }

/* ---------- Story ---------- */
.story { position: relative; height: 600vh; z-index: 2; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.chapter { position: absolute; opacity: 0; visibility: hidden; max-width: min(760px, calc(100% - var(--gutter) * 2)); }
.chapter.is-first { opacity: 1; visibility: visible; }
.chapter, .ch-0 { inset-inline-start: var(--gutter); bottom: clamp(90px, 14vh, 150px); }
.ch-right { inset-inline-start: auto; inset-inline-end: var(--gutter); text-align: end; }
.ch-right .overline { justify-content: flex-end; }
.ch-right .chapter-text { margin-inline-start: auto; }
.ch-center { inset-inline-start: 0; inset-inline-end: 0; margin: 0 auto; top: calc(var(--nav-h) + 4vh); bottom: auto; text-align: center; }
.ch-center .overline { justify-content: center; display: flex; }
.ch-center .chapter-text { margin-inline: auto; }
.ch-end { inset-inline-start: 0; inset-inline-end: 0; margin: 0 auto; text-align: center; max-width: 1100px; }
.ch-end .overline { justify-content: center; display: flex; }
.chapter-text { margin-top: 26px; max-width: 30rem; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(243, 236, 223, 0.78); }
.chapter-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.story-side {
  position: absolute;
  top: 50%;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
html[lang="ar"] .story-side { letter-spacing: 0; font-size: 12px; }
.story-side-l { left: 22px; transform: translate(-50%, -50%) rotate(-90deg); }
.story-side-r { right: 22px; transform: translate(50%, -50%) rotate(90deg); }
.story-count b { color: var(--gold-2); font-weight: 400; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-soft); }
.story-progress span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .story-progress span { transform-origin: right; }
.scroll-cue {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: clamp(90px, 14vh, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .scroll-cue { letter-spacing: 0; font-size: 12px; }
.scroll-cue i { width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Content sections ---------- */
main > *:not(.story) { position: relative; z-index: 2; }
.sec-head { margin-bottom: clamp(56px, 7vw, 110px); }
.sec-head.center { text-align: center; }

/* Ribbon */
.ribbon { background: var(--night); padding: clamp(50px, 7vw, 100px) 0; overflow: hidden; border-top: 1px solid var(--line-soft); }
.ribbon-row { overflow: hidden; direction: ltr; }
.ribbon-track { display: flex; width: max-content; will-change: transform; }
.ribbon-track span {
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 9vw, 9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0 0.3em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 180, 118, 0.55);
}
.ribbon-track span.solid { color: var(--gold); -webkit-text-stroke: 0; font-style: italic; }
html[lang="ar"] .ribbon-track span.solid { font-style: normal; }
.ribbon-track span.sep { -webkit-text-stroke: 0; color: var(--gold-deep); font-size: clamp(1.4rem, 3vw, 3rem); align-self: center; }

/* Services index */
.services { background: var(--night); padding: clamp(100px, 12vw, 190px) 0; }
.index { list-style: none; border-top: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.index-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
html[dir="rtl"] .index-row::after { transform-origin: right; }
.index-row:hover::after { transform: scaleX(1); }
.index-num { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 1.1rem; color: var(--gold); }
.index-main h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  transition: transform 0.8s var(--ease), color 0.4s;
}
html[lang="ar"] .index-main h3 { letter-spacing: 0; line-height: 1.3; }
.index-row:hover h3 { transform: translateX(20px); color: var(--gold-2); }
html[dir="rtl"] .index-row:hover h3 { transform: translateX(-20px); }
.index-main p {
  max-width: 34rem;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s var(--ease), opacity 0.5s, margin 0.8s var(--ease);
}
.index-row:hover .index-main p { max-height: 120px; opacity: 1; margin-top: 12px; }
.index-tag { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .index-tag { letter-spacing: 0; font-size: 13px; }

.preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  width: 280px;
  height: 360px;
  margin: -180px 0 0 70px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.preview.is-on { opacity: 1; transform: scale(1); }
.preview-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--gold);
  background: var(--emerald);
  will-change: transform;
}
.pv { position: absolute; inset: 10px; opacity: 0; transition: opacity 0.4s; overflow: hidden; }
.pv.is-on { opacity: 1; }
.pv-0 { background: linear-gradient(180deg, #1d4337, var(--emerald)); display: flex; align-items: flex-end; justify-content: center; gap: 8%; padding: 0 14%; }
.pv-0 i { flex: 1; background: linear-gradient(90deg, var(--gold-2), var(--gold-deep)); }
.pv-0 i:nth-child(1) { height: 46%; } .pv-0 i:nth-child(2) { height: 86%; } .pv-0 i:nth-child(3) { height: 64%; } .pv-0 i:nth-child(4) { height: 32%; }
.pv-1 { background: radial-gradient(circle at 50% 50%, #1d4337, var(--emerald) 70%); }
.pv-1 i { position: absolute; top: 50%; width: 52%; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; transform: translateY(-50%); }
.pv-1 i:first-child { left: 12%; } .pv-1 i:last-child { right: 12%; background: rgba(214, 180, 118, 0.12); }
.pv-2 { background: linear-gradient(180deg, var(--emerald), #0a1d18); }
.pv-2 svg { position: absolute; inset: 14% 10%; width: 80%; height: 72%; }
.pv-2 path { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pv-3 { background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px) 0 0 / 28px 28px, var(--emerald); -webkit-mask: radial-gradient(circle, #000 38%, transparent 72%); mask: radial-gradient(circle, #000 38%, transparent 72%); }
.pv-4 { background: var(--emerald); }
.pv-4 i { position: absolute; inset: 16% 20% 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); }

/* Numbers */
.numbers {
  padding: clamp(100px, 12vw, 190px) 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(214, 180, 118, 0.08), transparent 70%),
    linear-gradient(180deg, var(--emerald) 0%, var(--night-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-number { text-align: center; }
.hn-figure {
  display: block;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(12rem, 32vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--gold-2) 10%, var(--gold) 50%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  direction: ltr;
}
.hn-figure sup { font-size: 0.28em; vertical-align: top; position: relative; top: 0.3em; letter-spacing: 0; }
.hn-label { display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-2); }
html[lang="ar"] .hn-label { letter-spacing: 0; font-size: 16px; }

.ruler { max-width: 900px; margin: clamp(60px, 8vw, 110px) auto 0; }
.ruler-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: rgba(243, 236, 223, 0.75); }
.ruler-line { position: relative; height: 1px; background: var(--line-soft); }
.ruler-line i { position: absolute; top: -1px; inset-inline-start: 0; height: 3px; width: 0; background: rgba(243, 236, 223, 0.5); }
.ruler-line i::after { content: ""; position: absolute; inset-inline-end: -4px; top: -3px; width: 9px; height: 9px; background: inherit; transform: rotate(45deg); }
.ruler-row b { font-family: "Bodoni Moda", serif; font-weight: 400; font-size: 1.5rem; text-align: end; color: var(--ivory); }
.ruler-row.is-gold, .ruler-row.is-gold b { color: var(--gold-2); }
.ruler-row.is-gold i { background: var(--gold); }
.ruler-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.trio-item { padding: 40px 30px 0; text-align: center; }
.trio-item + .trio-item { border-inline-start: 1px solid var(--line); }
.trio-fig { font-family: "Bodoni Moda", serif; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: 1; color: var(--ivory); direction: ltr; display: inline-block; }
.trio-fig sup { font-size: 0.34em; color: var(--gold); vertical-align: top; position: relative; top: 0.3em; margin-left: 4px; }
html[lang="ar"] .trio-fig sup { font-family: "Almarai", sans-serif; }
.trio-item p { margin: 14px auto 0; max-width: 17rem; color: var(--muted); font-size: 0.95rem; }
.fine { margin-top: 50px; text-align: center; font-size: 12px; color: var(--muted); }

/* Collection */
.collection { background: var(--night); padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 9vw, 130px); }
.collection-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(48px, 6vw, 80px); }
.gallery-nav { display: flex; gap: 10px; }
.gnav { width: 54px; height: 54px; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.gnav:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
html[dir="rtl"] .gnav svg { transform: scaleX(-1); }
.gallery {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Align the first card with the centred page container */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 0 var(--edge) 10px;
  scroll-padding: 0 var(--edge);
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .lot { pointer-events: none; }
.lot { flex: 0 0 clamp(280px, 30vw, 440px); scroll-snap-align: start; user-select: none; }
.lot-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  padding: 14px;
  overflow: hidden;
  background: var(--emerald);
}
.lot-frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(214, 180, 118, 0.35); pointer-events: none; z-index: 2; }
.lot-a { background: linear-gradient(180deg, #17392f, var(--emerald) 60%, #0a1c17); display: flex; align-items: flex-end; justify-content: center; gap: 7%; padding: 0 20% 14px; }
.lot-a i { flex: 1; background: linear-gradient(90deg, var(--gold-2), var(--gold-deep)); }
.lot-a i:nth-child(1) { height: 52%; } .lot-a i:nth-child(2) { height: 78%; } .lot-a i:nth-child(3) { height: 60%; }
.lot-seal {
  position: absolute;
  top: 34px; right: 34px;
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: "Bodoni Moda", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-2);
  transform: rotate(-12deg);
  background: rgba(5, 8, 7, 0.4);
}
html[lang="ar"] .lot-seal { font-family: "Reem Kufi", sans-serif; font-style: normal; }
.lot-b { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #1f4a3c, var(--emerald) 65%); }
.lot-b svg { width: 46%; stroke: var(--gold); stroke-width: 0.8; }
.lot-c { background: linear-gradient(180deg, var(--emerald), #0a1c17); }
.lot-c i { position: absolute; left: 50%; bottom: 14px; width: 54%; height: 72%; transform: translateX(-50%); border-radius: 999px 999px 0 0; border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(214, 180, 118, 0.25), transparent); }
.lot-d { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #1b4336, var(--emerald) 70%); }
.lot-d span { font-family: "Bodoni Moda", serif; font-size: clamp(3.4rem, 6vw, 5.4rem); color: var(--gold-2); font-style: italic; }
.lot-no { margin-top: 22px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .lot-no { letter-spacing: 0; font-size: 13px; }
.lot h3 { margin-top: 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.1; }
.lot-desc { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.gallery-bar { margin-top: 40px; height: 1px; background: var(--line-soft); position: relative; }
.gallery-bar span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 25%; background: var(--gold); transition: transform 0.2s linear; }

/* Areas — pinned scroller */
.areas { position: relative; height: 520vh; background: var(--night-2); border-top: 1px solid var(--line-soft); }
.areas-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.areas-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.areas-window {
  position: relative;
  height: min(62vh, 560px);
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.areas-names { list-style: none; position: absolute; left: 0; right: 0; top: 50%; will-change: transform; }
.areas-names li {
  height: clamp(4.4rem, 8.4vw, 8rem);
  display: flex;
  align-items: center;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 236, 223, 0.25);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s;
}
html[lang="ar"] .areas-names li { letter-spacing: 0; }
.areas-names li.is-on { color: var(--gold-2); -webkit-text-stroke-color: transparent; font-style: italic; }
html[lang="ar"] .areas-names li.is-on { font-style: normal; }
.areas-names li .area-desc { display: none; }
.areas-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(21, 56, 45, 0.6), rgba(9, 17, 14, 0.6));
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.ac-emirate { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .ac-emirate, html[lang="ar"] .ac-tag { letter-spacing: 0; font-size: 14px; }
.areas-card h3 { margin-top: 18px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; }
.areas-card p { margin-top: 16px; color: rgba(243, 236, 223, 0.75); }
.ac-tag { margin-top: auto; padding-top: 30px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.ac-count { position: absolute; top: clamp(28px, 3.4vw, 48px); inset-inline-end: clamp(28px, 3.4vw, 48px); font-family: "Bodoni Moda", serif; font-size: 14px; color: var(--muted); }
.ac-count b { color: var(--gold-2); font-weight: 400; }

/* Investor circle */
.circle { background: var(--night); padding: clamp(100px, 12vw, 190px) 0; border-top: 1px solid var(--line-soft); }
.circle-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.invite {
  position: relative;
  aspect-ratio: 5 / 7;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(26px, 4vw, 48px);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(240, 220, 174, 0.18), transparent 60%),
    linear-gradient(160deg, #173d31, #0b2019 70%);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(240, 220, 174, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.invite-border { position: absolute; inset: 14px; border: 1px solid rgba(214, 180, 118, 0.5); pointer-events: none; }
.invite-border::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(214, 180, 118, 0.22); }
.invite-small { font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); transform: translateZ(20px); }
html[lang="ar"] .invite-small { letter-spacing: 0; font-size: 14px; }
.invite-title {
  margin-top: 28px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.04;
  color: var(--gold-2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(255, 240, 200, 0.15);
  transform: translateZ(50px);
}
.invite-title em { color: var(--gold); }
.invite-rule { display: flex; align-items: center; gap: 14px; width: 60%; margin: 28px auto; color: var(--gold); font-size: 10px; transform: translateZ(30px); }
.invite-rule::before, .invite-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.invite-text { font-size: 13px; line-height: 1.9; color: rgba(243, 236, 223, 0.75); max-width: 18rem; transform: translateZ(30px); }
.invite-sign { margin-top: 34px; font-family: "Bodoni Moda", serif; font-style: italic; font-size: 1.6rem; color: var(--gold); transform: translateZ(40px); }
.perks { list-style: none; margin: 34px 0 40px; border-top: 1px solid var(--line); }
.perks li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); position: relative; }
html[dir="rtl"] .perks li { padding: 16px 30px 16px 0; }
.perks li::before { content: "◆"; position: absolute; inset-inline-start: 0; top: 17px; font-size: 9px; color: var(--gold); }

/* About */
.about { background: var(--emerald); padding: clamp(100px, 12vw, 190px) 0; }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.portrait { position: relative; }
.portrait-art {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--gold);
  padding: 12px;
  background-clip: content-box;
  background-image: radial-gradient(70% 50% at 50% 35%, rgba(240, 220, 174, 0.28), transparent 70%), linear-gradient(180deg, #1c4639, #0a1c17);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.portrait-art span { font-family: "Bodoni Moda", serif; font-size: clamp(5rem, 11vw, 9rem); color: rgba(240, 220, 174, 0.5); letter-spacing: 0.02em; }
.portrait figcaption { margin-top: 18px; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .portrait figcaption { letter-spacing: 0; font-size: 13px; }
.signature { margin-top: 40px; font-family: "Bodoni Moda", serif; font-style: italic; font-size: 2.4rem; color: var(--gold); }

/* Contact */
.contact { background: var(--night); padding: clamp(100px, 12vw, 190px) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-addr { margin-top: 40px; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.concierge { display: flex; flex-direction: column; gap: 32px; padding-top: 10px; }
.line-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.line-field { display: flex; flex-direction: column; gap: 8px; }
.line-field > span { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .line-field > span { letter-spacing: 0; font-size: 14px; }
.line-field input, .line-field select, .line-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 14px;
  font-size: 1.15rem;
  font-family: var(--f-display);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.4s;
}
.line-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
html[dir="rtl"] .line-field select { background-position: 5px 55%, 10px 55%; }
.line-field select option { background: var(--night-2); color: var(--ivory); font-family: var(--f-body); }
.line-field textarea { resize: vertical; min-height: 64px; }
.line-field input:focus, .line-field select:focus, .line-field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-error { min-height: 1.2em; font-size: 13px; color: #e8a08a; }

/* Footer */
.footer { background: var(--night); padding: clamp(80px, 10vw, 140px) 0 34px; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.footer-mono {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  direction: ltr;
}
.footer-mono i { color: transparent; }
.footer-tag { margin-top: 24px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--gold-2); }
html[lang="ar"] .footer-tag { font-style: normal; }
.footer-bar { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.footer-bar a:hover { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .menu-inner { grid-template-columns: 1fr; align-items: start; align-content: center; }
  .trio { grid-template-columns: 1fr; }
  .trio-item + .trio-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .trio-item { padding: 34px 0; }
}

@media (max-width: 899px) {
  .circle-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .portrait { max-width: 400px; margin: 0 auto; width: 100%; }
  .index-row { grid-template-columns: 50px 1fr; }
  .index-tag { display: none; }
  .index-main p { max-height: none; opacity: 1; margin-top: 10px; }
  .preview { display: none; }

  /* Areas become a plain list on small screens */
  .areas { height: auto; padding: clamp(90px, 14vw, 140px) 0; }
  .areas-pin { position: static; height: auto; display: block; }
  .areas-inner { grid-template-columns: 1fr; }
  .areas-window { height: auto; overflow: visible; -webkit-mask: none; mask: none; }
  .areas-names { position: static; transform: none !important; }
  .areas-names li {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ivory);
    -webkit-text-stroke: 0;
    white-space: normal;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.05;
  }
  .areas-names li.is-on { font-style: normal; color: var(--ivory); }
  .areas-names li .area-desc { display: block; margin-top: 10px; font-family: var(--f-body); font-size: 0.95rem; letter-spacing: 0; line-height: 1.6; color: var(--muted); }
  .areas-card { display: none; }

  .story-side { display: none; }
  .ch-center { top: calc(var(--nav-h) + 10px); }
}

@media (max-width: 640px) {
  :root { --nav-h: 74px; }
  .nav-cta { display: none; }
  .burger b { display: none; }
  .brand-mono { font-size: 24px; }
  .brand-word { display: none; }
  .chapter, .ch-0 { bottom: 70px; }
  .ch-right { text-align: start; inset-inline-start: var(--gutter); inset-inline-end: auto; }
  .ch-right .overline { justify-content: flex-start; }
  .ch-right .chapter-text { margin-inline-start: 0; }
  .ch-end .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .ruler-row { grid-template-columns: 1fr 54px; gap: 10px 16px; }
  .ruler-line { grid-column: 1 / -1; grid-row: 2; }
  .collection-head { flex-direction: column; align-items: flex-start; }
  .gallery-nav { display: none; }
  .lot { flex-basis: 78vw; }
  .line-pair { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation: none !important; }
}
html[dir="rtl"] .preview { margin: -180px 0 0 -350px; }
