/* ==========================================================================
   Casa di Eleganza Boutique — "La Soglia" (The Threshold) design system
   Static site · HTML5 / CSS3 / vanilla JS · bilingual EN (LTR) / AR (RTL)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand colours — verified from the client's VECTOR.pdf */
  --burgundy: #74212f;
  --burgundy-bg: #721e2e;      /* official RED BACK background */
  --burgundy-deep: #4c1420;
  --rose: #b33854;             /* inner arch on dark artwork — dark contexts only */
  --champagne: #efc89a;
  --gold: #d8b487;
  --bronze: #9f7a4e;
  --bronze-text: #81613b;      /* AA-legible bronze for small text on ivory */

  /* Supporting palette — travertine & ink */
  --ivory: #f5f0e8;
  --stone: #ece3d6;
  --sand: #d9cbb6;
  --ink: #161313;
  --ink-2: #3f3633;
  --ink-3: #6a5e58;
  --line: rgba(22, 19, 19, .14);
  --line-light: rgba(245, 240, 232, .22);

  /* Type */
  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --f-ar-display: 'Amiri', 'Bodoni Moda', serif;
  --f-ar-body: 'IBM Plex Sans Arabic', 'Jost', 'Segoe UI', Tahoma, sans-serif;

  --fs-label: .72rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  --fs-display: clamp(2.7rem, 1.4rem + 5.6vw, 7.4rem);

  /* Space & layout */
  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1440px;
  --sec: clamp(96px, 7rem + 6vw, 220px);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

:root[lang="ar"] {
  --f-display: var(--f-ar-display);
  --f-body: var(--f-ar-body);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:root[lang="ar"] body { line-height: 1.95; font-weight: 300; }
html.i18n-pending body { opacity: 0; }
body { transition: opacity .35s ease; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
:root[lang="ar"] em { font-style: normal; color: var(--burgundy); }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

::selection { background: var(--burgundy); color: var(--ivory); }

:focus-visible { outline: 1.5px solid var(--burgundy); outline-offset: 4px; border-radius: 2px; }
.special :focus-visible, .site-footer :focus-visible, .showroom :focus-visible, .map :focus-visible { outline-color: var(--champagne); }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 18px; font-size: .85rem; letter-spacing: .08em;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }

/* Brand name always set as Latin, isolated, never broken */
.brandname { unicode-bidi: isolate; direction: ltr; white-space: nowrap; font-family: var(--f-display); font-style: normal; color: inherit; }
:root[lang="ar"] .brandname { font-family: 'Bodoni Moda', serif; font-size: .92em; }

/* ---------- 3. Typography primitives ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -.012em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display em { font-weight: 400; }
:root[lang="ar"] .display { line-height: 1.3; letter-spacing: 0; font-size: calc(var(--fs-display) * .86); }

.label, .eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-body); font-weight: 400;
  font-size: var(--fs-label); letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-2);
}
.label__n { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--bronze-text); }
.label__n::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .55; vertical-align: middle; margin-inline-start: 14px; }
.label--light { color: rgba(245, 240, 232, .82); }
.label--light .label__n { color: var(--champagne); }
:root[lang="ar"] .label, :root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; font-weight: 400; }

.arrow { width: 22px; height: 22px; flex: none; transition: transform .5s var(--ease); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- 4. Buttons ---------- */
.btn {
  --bc: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-body); font-weight: 400; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid var(--bc); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
:root[lang="ar"] .btn { letter-spacing: 0; font-size: .95rem; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--burgundy));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--ink { background: var(--ink); color: var(--ivory); --fill: var(--burgundy); --bc: var(--ink); }
.btn--ink:hover { border-color: var(--burgundy); }
.btn--line { color: var(--ink); --fill: var(--ink); }
.btn--line:hover { color: var(--ivory); }
.btn--line:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn--line:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--champagne { background: var(--champagne); color: var(--ink); --bc: var(--champagne); --fill: var(--ivory); }
.btn--line-light { color: var(--ivory); --bc: rgba(245, 240, 232, .55); --fill: var(--ivory); }
.btn--line-light:hover { color: var(--ink); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: transform .6s var(--ease), background-color .5s ease, box-shadow .5s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 240, 232, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .5s ease;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav { display: flex; align-items: center; gap: 36px; }
.nav--end { justify-content: flex-end; }
.nav__list { display: flex; gap: 34px; }
.nav__list a, .lang-toggle {
  position: relative; font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; padding-block: 8px;
}
:root[lang="ar"] .nav__list a { letter-spacing: 0; font-size: .92rem; }
.nav__list a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .5s var(--ease);
}
[dir="rtl"] .nav__list a::after { --origin: right; }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.brand { display: block; color: var(--burgundy); }
.wordmark { width: clamp(150px, 15vw, 232px); height: auto; overflow: visible; }
.wordmark .wm-sub { fill: var(--bronze); }   /* official shadow tone — legible at nav size */

.lang-toggle { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0; text-transform: none; font-size: .95rem; }
.lang-toggle::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.lang-toggle__ar { font-family: var(--f-ar-body); font-weight: 400; }
.lang-toggle__en { font-family: var(--f-body); letter-spacing: .2em; font-size: .72rem; text-transform: uppercase; font-weight: 400; }
:root[lang="en"] .lang-toggle__en, :root[lang="ar"] .lang-toggle__ar { display: none; }
.lang-toggle:hover { color: var(--burgundy); }

.menu-toggle { display: none; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; min-height: 44px; }
:root[lang="ar"] .menu-toggle { letter-spacing: 0; font-size: .92rem; }
.menu-toggle__bars { position: relative; width: 26px; height: 9px; }
.menu-toggle__bars span { position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8px; inset-inline-end: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4px; inset-inline-end: 0; transform: rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory);
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { animation: menuIn .6s var(--ease) both; }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; gap: 40px; }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; font-family: var(--f-display); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
.menu__n { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: .95rem; color: var(--bronze-text); min-width: 26px; }
.menu.is-open .menu__list li { animation: rise .8s var(--ease) both; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: .95rem; }
.menu__wa { display: inline-flex; align-items: center; gap: 10px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; opacity: .85; transition: background-color .4s, color .4s, opacity .4s; }
.social a:hover { opacity: 1; background: var(--ink); color: var(--ivory); border-color: var(--ink); }
body.menu-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ivory);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 72% 50%; }
/* Arabic: mirror the artwork so the arch sits opposite the right-aligned text */
[dir="rtl"] .hero__media picture { display: block; transform: scaleX(-1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 240, 232, .5) 0%, rgba(245, 240, 232, .2) 30%, rgba(245, 240, 232, 0) 52%),
    linear-gradient(0deg, rgba(245, 240, 232, .4) 0%, rgba(245, 240, 232, 0) 30%);
}
[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(270deg, rgba(245, 240, 232, .5) 0%, rgba(245, 240, 232, .2) 30%, rgba(245, 240, 232, 0) 52%),
    linear-gradient(0deg, rgba(245, 240, 232, .4) 0%, rgba(245, 240, 232, 0) 30%);
}
.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gutter) clamp(56px, 10vh, 120px);
}
.hero__content > * { max-width: 34rem; }
.hero__eyebrow { margin-bottom: 26px; color: var(--ink-2); }
.hero__eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .55; }
.hero__title {
  font-family: var(--f-display); font-weight: 400; max-width: 12ch !important;
  font-size: clamp(3rem, 1.6rem + 5.2vw, 7.2rem); line-height: .96; letter-spacing: -.015em; margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; }
:root[lang="ar"] .hero__title { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); line-height: 1.32; letter-spacing: 0; max-width: 14ch !important; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 30rem; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; max-width: none !important; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 34px; inset-inline-end: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
:root[lang="ar"] .hero__scroll { letter-spacing: 0; font-size: .85rem; }
.hero__scroll i { width: 1px; height: 64px; background: linear-gradient(var(--ink-2), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--burgundy); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.hero__intro { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; pointer-events: none; }
.hero__intro img { width: clamp(220px, 30vw, 380px); }

/* Hero intro — the threshold opens (JS only, skipped for reduced motion) */
html.js.intro-run .hero__intro { display: grid; }
html.js.intro-run .hero__intro img { opacity: 0; transform: translateY(14px); animation: introLogo 1.9s var(--ease) .1s both; }
@keyframes introLogo {
  0% { opacity: 0; transform: translateY(14px); }
  30%, 58% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-12px) scale(.985); }
}
/* The threshold: an arch rises from the floor line, then opens onto the scene */
html.js.intro-run .hero__media { clip-path: inset(72% 45% 28% 45% round 50vw 50vw 0 0); animation: introOpen 2.3s var(--ease-io) 1.55s both; }
html.js.intro-run .hero__media img { animation: introZoom 3s var(--ease) 1.55s both; }
@keyframes introOpen {
  0% { clip-path: inset(72% 45% 28% 45% round 50vw 50vw 0 0); }
  38% { clip-path: inset(24% 42% 28% 42% round 50vw 50vw 0 0); }
  100% { clip-path: inset(0% 0% 0% 0% round 0vw 0vw 0 0); }
}
@keyframes introZoom { from { transform: scale(1.16); } to { transform: scale(1); } }
html.js.intro-run .hero__content .line > *,
html.js.intro-run .hero__eyebrow,
html.js.intro-run .hero__lead,
html.js.intro-run .hero__actions,
html.js.intro-run .hero__scroll { animation: lineUp 1.3s var(--ease) both; animation-delay: calc(var(--d, 0s) + 3s); }
html.js.intro-run .hero__content .line > * { animation-name: lineMask; }
html.js.intro-run .hero__eyebrow { --d: 0s; }
html.js.intro-run .hero__content .line:nth-child(1) > * { --d: .1s; }
html.js.intro-run .hero__content .line:nth-child(2) > * { --d: .2s; }
html.js.intro-run .hero__lead { --d: .35s; }
html.js.intro-run .hero__actions { --d: .45s; }
html.js.intro-run .hero__scroll { --d: .8s; }
html.js.intro-run .site-header { animation: fadeIn 1.2s ease 3s both; }
@keyframes lineUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineMask { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 7. La Casa ---------- */
.house__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0;
}
.house__label { grid-column: 1 / span 4; grid-row: 1; align-self: start; margin-top: 1.2rem; }
.house__title { grid-column: 4 / -1; grid-row: 1; max-width: 11ch; }
.house__title em { color: var(--burgundy); }
.house__counter { grid-column: 2 / span 6; grid-row: 2; margin-top: clamp(40px, 6vw, 96px); }
.counter-ar { font-family: var(--f-ar-display); font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.4; color: var(--bronze); display: block; }
.counter-en { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: clamp(2rem, 1.1rem + 3vw, 4rem); line-height: 1.1; color: var(--bronze); display: none; }
:root[lang="ar"] .counter-ar { display: none; }
:root[lang="ar"] .counter-en { display: block; }
.house__text { grid-column: 8 / -1; grid-row: 2 / span 2; margin-top: clamp(48px, 7vw, 120px); max-width: 30rem; display: grid; gap: 1.2em; color: var(--ink-2); }
.house__text p:first-child { font-size: var(--fs-lead); color: var(--ink); }
.pillars {
  grid-column: 1 / -1; grid-row: 4; margin-top: clamp(72px, 9vw, 150px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line);
}
.pillars li { padding: 34px 32px 0 0; }
[dir="rtl"] .pillars li { padding: 34px 0 0 32px; }
.pillars li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 32px; }
.pillars__n { display: block; font-family: 'Bodoni Moda', serif; font-style: italic; color: var(--bronze-text); font-size: 1.1rem; margin-bottom: 18px; }
.pillars h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; margin-bottom: 10px; }
.pillars p { color: var(--ink-3); max-width: 24rem; }
.house__closing {
  grid-column: 3 / -3; grid-row: 5; margin-top: clamp(80px, 10vw, 160px); text-align: center;
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.1vw, 2rem); line-height: 1.4; color: var(--ink-2);
}
:root[lang="ar"] .house__closing { font-style: normal; }
.house__closing::before { content: ""; display: block; width: 1px; height: 64px; background: var(--bronze); margin: 0 auto 28px; opacity: .6; }

/* ---------- 8. Showroom ---------- */
.showroom { position: relative; background: var(--ivory); }
.showroom__stage { display: none; }
.showroom__fallback { padding-block: var(--sec); }
.showroom__fb-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); max-width: 52rem; }
.showroom__fb-head p:last-child { color: var(--ink-2); font-size: var(--fs-lead); }
.showroom__fb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); }
.fb-room:nth-child(even) { margin-top: clamp(0px, 8vw, 140px); }
.fb-room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fb-room figcaption { display: grid; gap: 6px; padding-top: 18px; color: var(--ink-3); }
.fb-room figcaption span:first-child { font-size: var(--fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-text); }
:root[lang="ar"] .fb-room figcaption span:first-child { letter-spacing: 0; font-size: .9rem; }
.fb-room figcaption strong { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); color: var(--ink); line-height: 1.2; }
.showroom__fb-note { margin-top: 48px; font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; }

/* Cinematic mode (enabled by JS) */
.showroom--cinematic { background: var(--ink); }
.showroom--cinematic .showroom__fallback { display: none; }
.showroom--cinematic .showroom__stage {
  display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ivory);
}
.showroom__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.showroom__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(22, 19, 19, .72) 0%, rgba(22, 19, 19, .18) 38%, rgba(22, 19, 19, 0) 60%),
    rgba(22, 19, 19, var(--veil, .4));
}
.showroom__intro {
  position: absolute; inset-inline: 0; bottom: clamp(64px, 14vh, 150px);
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 22px; opacity: var(--intro-o, 1); transform: translateY(calc((1 - var(--intro-o, 1)) * -24px));
}
.showroom__title { max-width: 10ch; color: var(--ivory); }
.showroom__title em { color: var(--champagne); }
.showroom__sub { font-size: var(--fs-lead); color: rgba(245, 240, 232, .85); max-width: 26rem; }

.showroom__captions { position: absolute; inset: 0; pointer-events: none; }
.room-cap {
  position: absolute; bottom: clamp(56px, 11vh, 120px); inset-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(30rem, calc(100% - 2 * var(--gutter)));
  opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 18px));
  visibility: hidden;
}
.room-cap.is-on { visibility: visible; pointer-events: auto; }
.room-cap__k { font-size: var(--fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); margin-bottom: 14px; }
.room-cap__k::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; background: currentColor; opacity: .6; margin-inline-start: 14px; }
.room-cap__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5rem); line-height: 1; margin-bottom: 18px; }
.room-cap__d { color: rgba(245, 240, 232, .86); margin-bottom: 22px; max-width: 26rem; }
.room-cap__cta { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; padding-block: 10px; border-bottom: 1px solid rgba(239, 200, 154, .6); color: var(--champagne); }
.room-cap__cta:hover .arrow { transform: translateX(5px); }
[dir="rtl"] .room-cap__cta:hover .arrow { transform: scaleX(-1) translateX(5px); }
:root[lang="ar"] .room-cap__k, :root[lang="ar"] .room-cap__cta { letter-spacing: 0; font-size: .95rem; }
:root[lang="ar"] .room-cap__t { line-height: 1.3; font-size: clamp(2.2rem, 1.3rem + 3vw, 4.2rem); }

.showroom__end {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px;
  padding: var(--header-h) var(--gutter) 40px;
  opacity: var(--end-o, 0); visibility: hidden;
}
.showroom__end.is-on { visibility: visible; }
.showroom__end-mark { width: 92px; opacity: .95; margin-bottom: 8px; }
.showroom__end-title { color: var(--ivory); max-width: 12ch; }
.showroom__end-title em { color: var(--champagne); }
.showroom__end-text { max-width: 32rem; color: rgba(245, 240, 232, .82); }
.showroom__end-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

.showroom__rail {
  position: absolute; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 18px; opacity: var(--rail-o, 0); transition: opacity .4s;
}
.showroom__rail button {
  display: flex; align-items: center; gap: 14px; justify-content: flex-end; min-height: 32px;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 240, 232, .55); transition: color .4s;
}
:root[lang="ar"] .showroom__rail button { letter-spacing: 0; font-size: .85rem; }
.showroom__rail button span { order: -1; }
.showroom__rail i { width: 12px; height: 16px; border: 1px solid currentColor; border-radius: 999px 999px 0 0; transition: background-color .4s, height .4s var(--ease); }
.showroom__rail button.is-active { color: var(--champagne); }
.showroom__rail button.is-active i { background: var(--champagne); height: 22px; }
.showroom__rail button:hover { color: var(--ivory); }

.showroom__skip {
  position: absolute; top: calc(var(--header-h) + 8px); inset-inline-end: var(--gutter);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 240, 232, .7);
  padding: 10px 0; border-bottom: 1px solid rgba(245, 240, 232, .3); opacity: var(--rail-o, 0);
}
:root[lang="ar"] .showroom__skip { letter-spacing: 0; font-size: .85rem; }
.showroom__skip:hover, .showroom__skip:focus-visible { color: var(--ivory); opacity: 1; }
.showroom__note {
  position: absolute; bottom: 18px; inset-inline-end: var(--gutter);
  font-size: .68rem; letter-spacing: .06em; color: rgba(245, 240, 232, .55);
}

/* ---------- 9. Collections ---------- */
.collections__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(72px, 9vw, 150px); }
.collections__head .label { grid-column: 1 / -1; margin-bottom: 28px; }
.collections__title { grid-column: 1 / span 8; }
.collections__title em { color: var(--burgundy); }
.collections__intro { grid-column: 9 / -1; align-self: end; color: var(--ink-2); max-width: 24rem; }

.collection {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
}
.collection + .collection { margin-top: clamp(96px, 12vw, 200px); }
.collection__media { grid-column: 1 / span 6; }
.collection__body { grid-column: 8 / -1; }
.collection--men .collection__media { grid-column: 7 / -1; grid-row: 1; }
.collection--men .collection__body { grid-column: 1 / span 5; grid-row: 1; }

.arch { position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--stone); isolation: isolate; }
.arch img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22, 19, 19, .06); pointer-events: none; }

.collection__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em 24px; margin-bottom: clamp(28px, 3vw, 44px);
  font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 1.8rem + 4.2vw, 6.4rem); line-height: 1;
}
:root[lang="ar"] .collection__title { line-height: 1.3; }
.collection__it, :root[lang="ar"] .collection__it { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: .32em; color: var(--bronze-text); letter-spacing: .02em; }

.cats { border-top: 1px solid var(--line); }
.cats li { border-bottom: 1px solid var(--line); }
.cat {
  display: grid; grid-template-columns: 44px 1fr auto 22px; align-items: center; gap: 12px;
  min-height: 64px; padding-block: 12px; transition: color .4s var(--ease);
}
.cat__n { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: .9rem; color: var(--bronze-text); }
.cat__name { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); line-height: 1.2; transition: transform .6s var(--ease); }
.cat__ask { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
:root[lang="ar"] .cat__ask { letter-spacing: 0; font-size: .82rem; transform: translateX(6px); }
.cat .arrow { color: var(--burgundy); opacity: .35; transition: opacity .4s, transform .5s var(--ease); }
.cat:hover, .cat:focus-visible { color: var(--burgundy); }
.cat:hover .cat__name, .cat:focus-visible .cat__name { transform: translateX(10px); }
[dir="rtl"] .cat:hover .cat__name, [dir="rtl"] .cat:focus-visible .cat__name { transform: translateX(-10px); }
.cat:hover .cat__ask, .cat:focus-visible .cat__ask { opacity: 1; transform: none; }
.cat:hover .arrow, .cat:focus-visible .arrow { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .cat:hover .arrow, [dir="rtl"] .cat:focus-visible .arrow { transform: scaleX(-1) translateX(4px); }
.collections__ig { margin-top: 44px; }

/* ---------- 10. Special orders ---------- */
.special { background: var(--burgundy-bg); color: var(--ivory); overflow: hidden; }
.special::before {
  content: ""; position: absolute; inset-inline-end: -12vw; top: -20vw; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 200, 154, .12), rgba(239, 200, 154, 0)); pointer-events: none;
}
.special__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; position: relative; }
.special__body { grid-column: 1 / span 6; }
.special__media { grid-column: 8 / -1; background: var(--burgundy-deep); }
.special__media::after { box-shadow: inset 0 0 0 1px rgba(239, 200, 154, .18); }
.special .label { margin-bottom: 28px; }
.special__title { color: var(--ivory); margin-bottom: 30px; max-width: 10ch; }
.special__title em { color: var(--champagne); }
:root[lang="ar"] .special__title em { color: var(--champagne); }
.special__lead { font-size: var(--fs-lead); color: rgba(245, 240, 232, .86); max-width: 30rem; margin-bottom: clamp(36px, 4vw, 56px); }
.steps { border-top: 1px solid var(--line-light); margin-bottom: 44px; max-width: 34rem; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.steps__n { font-family: 'Bodoni Moda', serif; font-style: italic; color: var(--champagne); font-size: 1.15rem; line-height: 1.6; }
.steps h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.3; margin-bottom: 4px; }
.steps p { color: rgba(245, 240, 232, .74); font-size: .96rem; }
.special__actions { display: grid; gap: 18px; justify-items: start; }
.special__note { font-size: .82rem; color: rgba(245, 240, 232, .62); max-width: 28rem; }

/* ---------- 11. Visit ---------- */
.visit { background: var(--stone); }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(72px, 8vw, 120px); align-items: center; }
.visit__media { grid-column: 1 / span 5; }
.visit__body { grid-column: 7 / -1; }
.visit .label { margin-bottom: 28px; }
.visit__title { margin-bottom: clamp(36px, 4vw, 56px); max-width: 9ch; }
.visit__title em { color: var(--burgundy); }
.details { border-top: 1px solid var(--line); margin-bottom: 40px; }
.details__row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: var(--fs-label); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); padding-top: .35em; font-weight: 400; }
:root[lang="ar"] .details dt { letter-spacing: 0; font-size: .9rem; padding-top: .1em; }
.details dd { font-size: 1.05rem; color: var(--ink); }
.details dd a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
[dir="rtl"] .details dd a { background-position: 100% 100%; }
.details dd a:hover { background-size: 100% 1px; color: var(--burgundy); }
.addr-en { display: block; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; }
.addr-ar { display: block; font-family: var(--f-ar-display); font-size: 1.35rem; line-height: 1.6; color: var(--ink-2); }
.details .addr-ar { text-align: left; }
[dir="rtl"] .details .addr-ar { text-align: right; }
[dir="rtl"] .details .addr-en { text-align: right; }
:root[lang="ar"] .details .addr-ar { order: -1; }
:root[lang="ar"] .details dd:has(.addr-ar) { display: flex; flex-direction: column; }
.details__social { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.details__social a { display: inline-flex; align-items: center; gap: 10px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.map { grid-column: 1 / -1; position: relative; min-height: clamp(320px, 38vw, 520px); background: var(--ink); color: var(--ivory); overflow: hidden; }
.map__facade { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.map__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(239, 200, 154, .16); }
.map__info { position: relative; display: grid; justify-items: center; gap: 18px; }
.map__pin { width: 38px; height: 38px; color: var(--champagne); }
.map__place .addr-en { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); font-family: 'Bodoni Moda', serif; }
.map__place .addr-ar { color: rgba(245, 240, 232, .8); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.map__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.map__note { font-size: .78rem; color: rgba(245, 240, 232, .55); max-width: 30rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.18) contrast(1.02); }
.map.is-loaded .map__facade { display: none; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245, 240, 232, .78); padding: clamp(80px, 9vw, 140px) 0 calc(36px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-light); }
.site-footer__logo img { width: clamp(200px, 22vw, 300px); }
.site-footer__motto { display: grid; gap: 4px; text-align: end; }
.site-footer__motto [lang="en"] { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--ivory); }
.site-footer__motto [lang="ar"] { font-family: var(--f-ar-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--gold); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.site-footer__h { font-family: var(--f-body); font-weight: 400; font-size: var(--fs-label); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
:root[lang="ar"] .site-footer__h { letter-spacing: 0; font-size: .9rem; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .social { margin-bottom: 22px; }
.site-footer .social a:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.lang-toggle--footer { color: rgba(245, 240, 232, .78); }
.lang-toggle--footer:hover { color: var(--champagne); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: .8rem; color: rgba(245, 240, 232, .5); }
.site-footer__art { max-width: 38rem; }

/* ---------- 13. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 80; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 20px;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--champagne); box-shadow: 0 10px 30px rgba(22, 19, 19, .25);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--burgundy); color: var(--ivory); }

/* ---------- 14. Scroll reveals (JS + motion allowed only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--rd, 0s); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  html.js [data-reveal="arch"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
  html.js [data-reveal="arch"] img { transform: scale(1.14); transition: transform 2.2s var(--ease); }
  html.js [data-reveal="arch"].is-in { clip-path: inset(0 0 0 0); }
  html.js [data-reveal="arch"].is-in img { transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { display: none; }
  .menu-toggle { display: inline-flex; }
  .collection__body { grid-column: 7 / -1; }
  .collection--men .collection__body { grid-column: 1 / span 6; }
}

@media (max-width: 860px) {
  .house__label { grid-column: 1 / -1; grid-row: 1; margin: 0 0 28px; }
  .house__title { grid-column: 1 / -1; grid-row: 2; }
  .house__counter { grid-column: 1 / -1; grid-row: 3; margin-top: 36px; }
  .house__text { grid-column: 1 / -1; grid-row: 4; margin-top: 40px; }
  .pillars { grid-row: 5; grid-template-columns: 1fr; margin-top: 64px; }
  .pillars li, [dir="rtl"] .pillars li { padding: 26px 0; }
  .pillars li + li { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .house__closing { grid-column: 1 / -1; grid-row: 6; margin-top: 56px; }

  .collections__title, .collections__intro { grid-column: 1 / -1; }
  .collections__intro { margin-top: 24px; }
  .collection, .collection--men { grid-template-columns: 1fr; row-gap: 40px; }
  .collection__media, .collection--men .collection__media { grid-column: 1; grid-row: 1; width: min(100%, 520px); }
  .collection--men .collection__media { justify-self: end; }
  .collection__body, .collection--men .collection__body { grid-column: 1; grid-row: 2; }

  .special__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .special__body, .special__media { grid-column: 1; }
  .special__media { grid-row: 1; width: min(78%, 420px); justify-self: end; }

  .visit__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .visit__media, .visit__body, .map { grid-column: 1; }
  .visit__media { width: min(78%, 420px); }

  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__motto { text-align: start; }

  .showroom__fb-grid { grid-template-columns: 1fr; }
  .fb-room:nth-child(even) { margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav { gap: 16px; }
  .nav--end .lang-toggle::before { display: none; }

  .hero__actions .btn { flex: 1 1 100%; }
  .details__row { grid-template-columns: 1fr; gap: 6px; }
  .visit__actions .btn, .special__actions .btn { width: 100%; }
  .special__actions { justify-items: stretch; }

  .room-cap { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .room-cap__d { font-size: .95rem; }
  .showroom__intro { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .showroom__rail {
    top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: none;
    inset-inline: var(--gutter); grid-template-columns: repeat(4, 1fr); gap: 8px;
  }
  .showroom__rail button { justify-content: center; flex-direction: column; gap: 0; min-height: 28px; }
  .showroom__rail button span { display: none; }
  .showroom__rail i { width: 100%; height: 2px; border: 0; border-radius: 0; background: rgba(245, 240, 232, .3); }
  .showroom__rail button.is-active i { height: 2px; background: var(--champagne); }
  .showroom__note { bottom: auto; top: calc(var(--header-h) + 14px); inset-inline-end: auto; inset-inline-start: var(--gutter); max-width: 44%; line-height: 1.5; }
  .showroom__skip { top: calc(var(--header-h) + 8px); }

  .site-footer__cols { grid-template-columns: 1fr; gap: 36px; }
  .wa-float { width: 50px; height: 50px; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; }
}

/* Portrait screens (phones, portrait tablets): tall artwork framed above, editorial text below */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero__media { position: relative; height: 68svh; min-height: 420px; }
  .hero__media img { object-position: 50% 58%; }
  [dir="rtl"] .hero__media picture { transform: none; }
  .hero__media::after, [dir="rtl"] .hero__media::after { background: linear-gradient(0deg, var(--ivory) 0%, rgba(245, 240, 232, 0) 32%); }
  .hero__content { padding: 0 var(--gutter) 64px; margin-top: -40px; }
  .hero__content > * { max-width: 40rem; }
  .hero__title { font-size: clamp(2.7rem, 12vw, 5rem); }
  :root[lang="ar"] .hero__title { font-size: clamp(2.4rem, 10.5vw, 4.4rem); }
  .hero__lead { margin-bottom: 30px; }
  .hero__scroll { display: none; }
  html.js.intro-run .hero__media { animation-name: introOpenM; }
  @keyframes introOpenM {
    0% { clip-path: inset(74% 40% 26% 40% round 50vw 50vw 0 0); }
    38% { clip-path: inset(22% 34% 26% 34% round 50vw 50vw 0 0); }
    100% { clip-path: inset(0% 0% 0% 0% round 0vw 0vw 0 0); }
  }
}

@media (max-width: 380px) {
  .wordmark { width: 138px; }
  .menu-toggle__label { display: none; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .wa-float, .hero__scroll, .showroom__stage, .map { display: none !important; }
  .showroom__fallback { display: block !important; }
  body { background: #fff; }
}
