/* ==========================================================================
   La Perle de Hay Chmaou — landing page
   Palette : nacre (pearl), encre (ink), mer (sea), soleil (brand orange)
   ========================================================================== */

:root {
  --pearl: #F7F3ED;
  --pearl-2: #EFE8DE;
  --pearl-3: #E5DACB;
  --white: #FFFFFF;
  --ink: #0E1A1D;
  --ink-2: #15252A;
  --ink-soft: #3A4A4E;
  --muted: #5F6D6E;
  --line: rgba(14, 26, 29, .12);
  --line-light: rgba(255, 255, 255, .16);
  --sea: #0C3940;
  --sea-2: #0A2D33;
  --sun: #EE7B30;
  --sun-hover: #F58D47;
  --sun-deep: #B9531A;
  --sun-soft: #F5B585;
  --gold: #D8B488;
  --on-sun: #1A0E05;

  --font-display: "Cormorant Garamond", "Noto Kufi Arabic", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Kufi Arabic", "Manrope", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 78px;
  --shadow: 0 40px 80px -40px rgba(14, 26, 29, .45);
  --shadow-soft: 0 18px 40px -24px rgba(14, 26, 29, .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Cormorant Garamond", serif;
  --font-body: "Noto Kufi Arabic", "Manrope", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .35vw + 14.6px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--sun); color: var(--on-sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; inset-inline-start: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.flip { transform: scaleX(-1); }
[dir="rtl"] svg.flip { transform: none; }
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg, [dir="rtl"] [data-tl-next] svg, [dir="rtl"] .lightbox__next svg, [dir="rtl"] .action-bar__main svg { transform: scaleX(-1); }
[dir="rtl"] [data-tl-prev] svg, [dir="rtl"] .lightbox__prev svg { transform: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.dark { background: var(--ink); color: var(--pearl); }
.sea { background: var(--sea-2); color: var(--pearl); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 700 .74rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--sun-deep); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--sun-soft); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .86rem; }

.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.012em;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--sun); }
.dark .h2 em, .sea .h2 em { color: var(--sun-soft); }
.h2--xl { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; }
html[lang="ar"] em { font-style: normal; }
.alt-lang[lang="fr"] { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; letter-spacing: .01em; }
html[lang="ar"] .h2 { font-weight: 600; line-height: 1.3; letter-spacing: 0; font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
html[lang="ar"] .h2--xl { font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
html[lang="ar"] .h3 { font-weight: 600; line-height: 1.4; }
.lead { font-size: clamp(1.02rem, .45vw + .9rem, 1.2rem); line-height: 1.7; color: var(--ink-soft); max-width: 46ch; }
.lead--light { color: rgba(247, 243, 237, .74); }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.section-head--split .lead { justify-self: end; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .h2 { max-width: 18ch; }
.section-head--center .lead { margin-top: 22px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: transparent; --fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: .95em 1.55em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.1;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sun { --bg: var(--sun); --fg: var(--on-sun); box-shadow: 0 14px 30px -14px rgba(238, 123, 48, .75); }
.btn--sun:hover { --bg: var(--sun-hover); transform: translateY(-2px); }
.btn--ink { --bg: var(--ink); --fg: var(--pearl); }
.btn--ink:hover { --bg: var(--sea); transform: translateY(-2px); }
.btn--glass { --fg: #fff; border: 1px solid rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); }
.btn--line { --fg: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: .7em 1.2em; font-size: .88rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--glass { color: #fff; background: rgba(14, 26, 29, .32); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn--glass:hover { background: rgba(14, 26, 29, .55); }
.icon-btn--line { border: 1px solid var(--line-light); color: var(--pearl); }
.icon-btn--line:hover { border-color: var(--pearl); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .92rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s, gap .3s var(--ease); }
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: var(--sun); gap: .9em; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff; transition: background .45s var(--ease), color .45s var(--ease), transform .55s var(--ease), box-shadow .45s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-header.is-solid { background: rgba(247, 243, 237, .86); color: var(--ink); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 38px; height: 38px; color: var(--sun); transition: color .45s; }
.site-header:not(.is-solid) .brand__mark { color: #fff; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; }
.brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; opacity: .78; margin-top: 4px; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a { position: relative; font-size: .9rem; font-weight: 600; padding: 8px 0; opacity: .9; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; opacity: .85;
  font: 700 .95rem/1 var(--font-ar); display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s;
}
.lang-toggle:hover { opacity: 1; background: currentColor; }
.lang-toggle:hover span { color: var(--ink); }
.site-header.is-solid .lang-toggle:hover span { color: var(--pearl); }
html[lang="ar"] .lang-toggle { font-family: var(--font-body); font-size: .8rem; letter-spacing: .06em; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); content: ""; }
.burger__lines::before { transform: translate(-50%, -6px); }
.burger__lines::after { transform: translate(-50%, 4.4px); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--pearl);
  display: flex; flex-direction: column; padding-bottom: max(24px, env(safe-area-inset-bottom));
  animation: menuIn .5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mobile-menu .brand__mark { color: var(--sun); }
.mobile-menu__top .icon-btn { border: 1px solid var(--line-light); }
.mobile-menu__nav { display: grid; gap: 6px; margin-top: 4vh; }
.mobile-menu__nav a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.25; border-bottom: 1px solid var(--line-light); padding-bottom: 8px; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 14px; }
.mobile-menu__tel { text-align: center; font-weight: 700; letter-spacing: .06em; opacity: .8; direction: ltr; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: #0A1416; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; background: #0A1416 url("../img/poster-hero-desktop.webp") center / cover no-repeat; }
@media (max-width: 767px) and (orientation: portrait) { .hero__media { background-image: url("../img/poster-hero-mobile.webp"); } }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 3.2s var(--ease-out) .1s forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 14, 16, .66) 0%, rgba(6, 14, 16, 0) 24%),
    linear-gradient(0deg, rgba(6, 14, 16, .94) 0%, rgba(6, 14, 16, .55) 32%, rgba(6, 14, 16, 0) 64%),
    linear-gradient(90deg, rgba(6, 14, 16, .7) 0%, rgba(6, 14, 16, .38) 38%, rgba(6, 14, 16, 0) 66%);
}
[dir="rtl"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(6, 14, 16, .66) 0%, rgba(6, 14, 16, 0) 24%),
    linear-gradient(0deg, rgba(6, 14, 16, .94) 0%, rgba(6, 14, 16, .55) 32%, rgba(6, 14, 16, 0) 64%),
    linear-gradient(-90deg, rgba(6, 14, 16, .7) 0%, rgba(6, 14, 16, .38) 38%, rgba(6, 14, 16, 0) 66%);
}
.hero__content { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

.hero__content { position: absolute; inset-inline: 0; bottom: calc(var(--facts-h, 96px) + clamp(28px, 6vh, 64px)); margin-inline: auto; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 22px; font-size: .86rem; font-weight: 600; }
.pulse-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(8, 18, 20, .5); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE3A1; box-shadow: 0 0 0 0 rgba(91, 227, 161, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91, 227, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 161, 0); } }
.hero__place { letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; opacity: .85; }
html[lang="ar"] .hero__place { letter-spacing: 0; font-size: .9rem; }
.hero__kicker { width: fit-content; font-family: var(--font-ar); font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 600; color: #F1D2AE; margin-bottom: 6px; }
html[lang="ar"] .hero__kicker { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 2vw, 1.8rem); }
.hero__title { font-family: var(--font-display); font-weight: 500; line-height: .88; letter-spacing: -.02em; font-size: clamp(3.9rem, 10.5vw, 10.5rem); }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.4s var(--ease-out) forwards; }
.hero__line--2 > span { animation-delay: .14s; }
.hero__line--2 { font-style: italic; font-size: .44em; letter-spacing: -.01em; color: var(--sun-soft); margin-top: .04em; padding-inline-start: .08em; }
html[lang="ar"] .hero__title { line-height: 1.25; letter-spacing: 0; font-weight: 700; font-size: clamp(3.2rem, 8.6vw, 8.4rem); }
html[lang="ar"] .hero__line--2 { font-style: normal; font-size: .5em; }
@keyframes lineUp { to { transform: none; } }
.hero__lead { max-width: 46ch; margin-top: 26px; font-size: clamp(1rem, .5vw + .88rem, 1.18rem); color: rgba(255, 255, 255, .86); opacity: 0; animation: fadeUp 1.2s var(--ease-out) .45s forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; opacity: 0; animation: fadeUp 1.2s var(--ease-out) .6s forwards; }
.hero__meta, .hero__kicker { opacity: 0; animation: fadeUp 1.1s var(--ease-out) .05s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__facts {
  position: absolute; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 18, 20, .34);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; animation: fadeIn 1.2s var(--ease-out) .8s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__fact { padding: 20px clamp(16px, 2.6vw, 40px); border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.hero__fact:first-child { border-inline-start: 0; padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hero__fact dt { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .62; }
.hero__fact dd { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.7rem); line-height: 1.2; margin-top: 4px; }
html[lang="ar"] .hero__fact dt { letter-spacing: 0; font-size: .82rem; }
html[lang="ar"] .hero__fact dd { font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.hero__pause { position: absolute; inset-inline-end: var(--gutter); bottom: calc(var(--facts-h, 96px) + 24px); }
.hero__pause .ic-play { display: none; }
.hero__pause.is-paused .ic-play { display: block; }
.hero__pause.is-paused .ic-pause { display: none; }
.hero__scroll { position: absolute; right: calc(var(--gutter) + 6px); left: auto; top: 46%; display: grid; justify-items: center; gap: 14px; font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .8; }
.hero__scroll i { width: 1px; height: 64px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); animation: scrollCue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html[lang="ar"] .hero__scroll { letter-spacing: 0; font-size: .8rem; }
[dir="rtl"] .hero__scroll { left: calc(var(--gutter) + 6px); right: auto; }
.footer__ar, .signature [lang="ar"] { width: fit-content; }

/* ---------------------------------------------------------------- manifesto */
.manifesto { padding-bottom: 0; }
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.95rem, 4.1vw, 4.05rem); line-height: 1.16; letter-spacing: -.01em; max-width: 24ch; text-wrap: pretty; }
html[lang="ar"] .statement { font-weight: 500; line-height: 1.55; font-size: clamp(1.6rem, 3.1vw, 3rem); max-width: 26ch; }
.pill { display: inline-block; vertical-align: -.1em; width: 0; height: .86em; border-radius: 999px; overflow: hidden; margin-inline: .06em; transition: width 1.2s var(--ease-out) .35s; box-shadow: var(--shadow-soft); }
.statement.is-in .pill { width: 2.1em; }
.pill img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(40px, 5vw, 72px); max-width: 1080px; margin-inline-start: auto; }
.manifesto__body { font-size: clamp(1.02rem, .4vw + .92rem, 1.18rem); color: var(--ink-soft); max-width: 54ch; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature svg { width: 46px; height: 46px; color: var(--sun); }
.signature span { display: grid; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.signature strong { color: var(--ink); font-weight: 700; }
.signature [lang="ar"] { font-family: var(--font-ar); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-inline-end: 1px solid var(--line); padding-inline-start: 24px; }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat__num { display: flex; align-items: baseline; gap: 6px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; color: var(--ink); }
.stat__num small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--sun-deep); letter-spacing: .02em; }
.stat__label { display: block; margin-top: 10px; font-size: .92rem; color: var(--muted); max-width: 22ch; }

.band { position: relative; margin-top: clamp(80px, 10vw, 140px); height: clamp(420px, 82vh, 860px); overflow: hidden; color: #fff; }
.band__img { position: absolute; inset: 0; }
.band__img img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 14, 16, .7), rgba(6, 14, 16, 0) 45%); }
.band figcaption { position: absolute; inset-inline: 0; bottom: 32px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.7rem); font-style: italic; }
html[lang="ar"] .band figcaption { font-style: normal; }
.band__index { font-family: var(--font-body); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .22em; opacity: .7; direction: ltr; }

/* ---------------------------------------------------------------- promise */
.promise { background: radial-gradient(90% 60% at 100% 0%, rgba(12, 57, 64, .9) 0%, rgba(14, 26, 29, 0) 60%), var(--ink); overflow: hidden; }
.compare { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: #13262b; box-shadow: var(--shadow); }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag { position: absolute; top: 18px; z-index: 2; padding: 9px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; background: rgba(14, 26, 29, .55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .2); }
.compare__tag--plan { left: 18px; }
.compare__tag--real { right: 18px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3; box-shadow: 0 0 24px rgba(0, 0, 0, .35); }
.compare__handle:focus-visible { outline: none; }
.compare__handle:focus-visible .compare__knob { outline: 3px solid var(--sun); outline-offset: 3px; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pearl); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.compare:active .compare__knob { transform: translate(-50%, -50%) scale(.92); }
.compare__knob svg { width: 16px; height: 16px; }
.compare__knob svg:first-child { transform: scaleX(-1); }

.timeline-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: clamp(80px, 9vw, 130px); margin-bottom: 36px; }
.timeline-nav { display: flex; gap: 10px; }
.timeline {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-bottom: 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.timeline::-webkit-scrollbar { display: none; }
.timeline.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.timeline.is-dragging * { pointer-events: none; }
.tl-card { flex: 0 0 clamp(270px, 28vw, 380px); scroll-snap-align: start; position: relative; padding-top: 4px; }
.tl-card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-2); }
.tl-card__media img, .tl-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tl-card:hover .tl-card__media img { transform: scale(1.05); }
.tl-card__year { display: block; margin-top: 22px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.2rem, 4.6vw, 4.4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--sun-soft); }
.tl-card--now .tl-card__year { color: var(--sun-soft); -webkit-text-stroke: 0; }
.tl-card h4 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.15; margin-top: 10px; }
html[lang="ar"] .tl-card h4 { font-weight: 600; font-size: 1.25rem; line-height: 1.5; }
.tl-card p { margin-top: 8px; font-size: .95rem; color: rgba(247, 243, 237, .68); max-width: 34ch; }
.timeline-progress { height: 1px; background: var(--line-light); margin-top: 36px; position: relative; overflow: hidden; }
.timeline-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--sun-soft); transform-origin: left; transform: scaleX(var(--p, .18)); transition: transform .3s; }
[dir="rtl"] .timeline-progress span { transform-origin: right; }

/* ---------------------------------------------------------------- interiors */
.interiors { background: var(--pearl); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); }
.story__steps { padding-block: 6vh 12vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .7s var(--ease); }
.step.is-active { opacity: 1; }
.step__img { display: none; }
.step__num { font: 700 .78rem/1 var(--font-body); letter-spacing: .2em; color: var(--sun-deep); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; margin-top: 14px; }
html[lang="ar"] .step h3 { font-weight: 600; line-height: 1.45; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.step p { margin-top: 16px; color: var(--ink-soft); max-width: 38ch; font-size: 1.05rem; }
.story__frame { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--pearl-3); box-shadow: var(--shadow); }
.story__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.8s var(--ease-out); }
.story__frame img.is-active { opacity: 1; transform: scale(1); }
.story__counter { position: absolute; inset-inline-start: 24px; bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: rgba(247, 243, 237, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 700; font-size: .85rem; letter-spacing: .08em; direction: ltr; }
.story__counter i { width: 28px; height: 1px; background: var(--ink); opacity: .4; }

.film { position: relative; margin-top: clamp(64px, 8vw, 120px); aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film figcaption { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px 32px; color: #fff; background: linear-gradient(0deg, rgba(6, 14, 16, .7), rgba(6, 14, 16, 0)); font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-style: italic; }
html[lang="ar"] .film figcaption { font-style: normal; }
.film__credit { font-family: var(--font-body); font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .08em; opacity: .8; align-self: end; }

/* ---------------------------------------------------------------- apartments */
.apartments { background: var(--pearl-2); }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.type { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.type:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.type__media { aspect-ratio: 4 / 3; overflow: hidden; }
.type__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.type:hover .type__media img { transform: scale(1.06); }
.type__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.4vw, 36px); }
.type__tag { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sun-deep); }
html[lang="ar"] .type__tag { letter-spacing: 0; font-size: .82rem; }
.type__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.2vw, 2.1rem); line-height: 1.1; margin-top: 10px; }
html[lang="ar"] .type__title { font-weight: 600; line-height: 1.5; font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
.type__size { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.2rem, 4.4vw, 4.4rem); line-height: 1; }
.type__size small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); }
.type__size span { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--sun-deep); }
.checks { display: grid; gap: 10px; margin-block: 24px 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.checks svg { width: 18px; height: 18px; flex: none; color: var(--sun); margin-top: 3px; }
.type .link-arrow { margin-top: auto; align-self: flex-start; }
.type--featured { background: var(--ink); color: var(--pearl); }
.type--featured .type__tag { color: var(--sun-soft); }
.type--featured .type__size small, .type--featured .checks li { color: rgba(247, 243, 237, .72); }
.type--featured .type__size span { color: var(--sun-soft); }
.type--featured .link-arrow { color: var(--pearl); border-color: var(--line-light); }

.price { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(24px, 4vw, 64px); padding: clamp(28px, 3vw, 44px) clamp(24px, 3.4vw, 52px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.price__label { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .price__label { letter-spacing: 0; font-size: .9rem; }
.price__value { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; margin-top: 6px; white-space: nowrap; }
.price__value span { font-family: var(--font-body); font-size: .32em; font-weight: 700; color: var(--sun-deep); letter-spacing: .02em; }
.price__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.price__tags span { padding: 7px 12px; border-radius: 999px; background: var(--pearl-2); font-size: .82rem; font-weight: 700; }
.price__note { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* ---------------------------------------------------------------- residence */
.residence { padding-top: 0; }
.residence__hero { position: relative; height: clamp(460px, 86vh, 840px); overflow: hidden; display: flex; align-items: flex-end; }
.residence__hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.residence__shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--sea-2) 0%, rgba(10, 45, 51, .55) 30%, rgba(10, 45, 51, .05) 70%), linear-gradient(180deg, rgba(10, 45, 51, .5), rgba(10, 45, 51, 0) 30%); }
.residence__title { position: relative; padding-bottom: clamp(40px, 6vw, 80px); }
.residence__title .h2 { max-width: 16ch; }
.amenities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 5vw, 72px); }
.amenity { background: var(--sea-2); padding: clamp(24px, 2.4vw, 36px); transition: background .5s var(--ease); }
.amenity:hover { background: #0E3A41; }
.amenity svg { width: 40px; height: 40px; fill: none; stroke: var(--sun-soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.amenity:hover svg { transform: translateY(-4px); }
.amenity h3 { font-size: 1.04rem; font-weight: 700; line-height: 1.3; margin-top: 22px; }
.amenity p { font-size: .9rem; color: rgba(247, 243, 237, .64); margin-top: 6px; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(180px, 20vw, 290px)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(24px, 3vw, 40px); }
.bento__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--sea); }
.bento__item--a { grid-column: span 2; grid-row: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.bento__item:hover img { transform: scale(1.05); }
.bento__item figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 45, 51, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; }

/* ---------------------------------------------------------------- shops */
.shops { background: var(--pearl); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.split__media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.split__media video { width: 100%; height: 100%; object-fit: cover; }
.split__badge { position: absolute; top: 20px; inset-inline-start: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; background: rgba(247, 243, 237, .92); font-size: .8rem; font-weight: 700; }
.split__badge svg { width: 26px; height: 26px; color: var(--sun); }
.split__text .lead { margin-top: 24px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 36px; border-top: 1px solid var(--line); }
.specs div { padding: 18px 16px 0 0; }
.specs div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.specs dt { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .specs dt { letter-spacing: 0; font-size: .82rem; }
.specs dd { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; margin-top: 6px; }
.specs dd small { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--sun-deep); }

/* ---------------------------------------------------------------- location */
.location { background: var(--pearl-2); }
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.distances { border-top: 1px solid var(--line); }
.distances li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); font-weight: 600; }
.distances li::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: var(--w); background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) calc(var(--d, 0ms) + .25s); }
[dir="rtl"] .distances li::after { transform-origin: right; }
.distances li.is-in::after { transform: scaleX(1); }
.distances strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.2rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.distances strong small { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--sun-deep); }
.address { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-weight: 600; }
.address svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 2px; }
.map-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.map { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--pearl-3); box-shadow: var(--shadow); z-index: 0; }
.map__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map.is-ready .map__fallback { display: none; }
.map .leaflet-container { font-family: var(--font-body); background: #E9E4DA; }
.map .leaflet-tile-pane { filter: grayscale(.82) sepia(.22) saturate(1.1) brightness(1.03) contrast(.94); }
.map .leaflet-control-attribution { font-size: 10px; background: rgba(247, 243, 237, .8); }
.map .leaflet-control-zoom a { color: var(--ink); }
.pin { position: relative; width: 64px; height: 64px; }
.pin__ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(238, 123, 48, .28); animation: ring 2.4s var(--ease-out) infinite; }
.pin__core { position: absolute; inset: 10px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(14, 26, 29, .45); border: 2px solid var(--pearl); }
.pin__core svg { width: 24px; height: 24px; color: var(--sun); }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.pin-label { font: 700 13px/1.2 var(--font-body); background: var(--ink); color: var(--pearl); padding: 8px 12px; border-radius: 10px; border: 0; box-shadow: var(--shadow-soft); }
.pin-label::before { display: none; }
.strip-title { margin-top: clamp(72px, 8vw, 120px); margin-bottom: 28px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.strip__item { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; color: #fff; background: var(--ink); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.strip__item:hover img { transform: scale(1.06); }
.strip__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 14, 16, .7), rgba(6, 14, 16, 0) 50%); }
.strip__item figcaption { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
html[lang="ar"] .strip__item figcaption { font-weight: 600; font-size: 1.15rem; line-height: 1.5; }
.strip__item small { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .1em; opacity: .85; white-space: nowrap; }

/* ---------------------------------------------------------------- community */
.community { background: var(--pearl); }
.community__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.community__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); }
.community__media video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.quote { position: absolute; inset-inline-end: clamp(-48px, -3vw, -16px); bottom: clamp(-40px, -3vw, -20px); width: min(330px, 80%); padding: 26px 28px; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); }
.quote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; font-style: italic; }
html[lang="ar"] .quote p { font-style: normal; font-size: 1.1rem; line-height: 1.7; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); }
html[lang="ar"] .quote cite { letter-spacing: 0; font-size: .85rem; }
.community__text .lead { margin-top: 24px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; margin-top: 44px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features__ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pearl-2); }
.features__ic svg { width: 28px; height: 28px; fill: none; stroke: var(--sun-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.features p { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
.filter { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: .86rem; font-weight: 600; color: rgba(247, 243, 237, .8); transition: background .3s, color .3s, border-color .3s; }
.filter:hover { border-color: var(--pearl); color: var(--pearl); }
.filter.is-active { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px); }
.g { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-2); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.g--big { grid-column: span 2; grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g.is-hidden { display: none; }
.g button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.g:hover img { transform: scale(1.06); }
.g figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(0deg, rgba(6, 14, 16, .78), rgba(6, 14, 16, 0)); font-size: .86rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.g:hover figcaption, .g:focus-within figcaption { opacity: 1; transform: none; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 12, 14, .94); color: #fff; }
.lightbox::backdrop { background: rgba(6, 12, 14, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .35s var(--ease) both; }
.lightbox__fig { display: grid; justify-items: center; gap: 14px; padding: 72px 84px; max-width: 100%; }
.lightbox__fig img { max-width: min(1500px, 100%); max-height: calc(100vh - 170px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__fig figcaption { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; opacity: .9; text-align: center; }
html[lang="ar"] .lightbox__fig figcaption { font-style: normal; }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-start: 18px; }
.lightbox__next { inset-inline-end: 18px; }

/* ---------------------------------------------------------------- instagram */
.social { padding-top: 0; }
.reels { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-bottom: 6px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 clamp(200px, 19vw, 260px); scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink-2); color: #fff; isolation: isolate; transition: transform .6s var(--ease); }
.reel:hover { transform: translateY(-6px); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 14, 16, .86) 0%, rgba(6, 14, 16, 0) 52%), linear-gradient(180deg, rgba(6, 14, 16, .35), rgba(6, 14, 16, 0) 20%); }
.reel__top { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel__top svg { width: 18px; height: 18px; }
.reel__body { position: absolute; inset-inline: 16px; bottom: 16px; display: grid; gap: 10px; }
.reel__body strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
html[lang="ar"] .reel__body strong { font-weight: 600; font-size: 1.02rem; line-height: 1.55; }
.reel__likes { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; }
.reel__likes svg { width: 16px; height: 16px; color: #FF5A6E; }
.social__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------------------------------------------------------------- abroad / fairs */
.abroad { background: var(--pearl); }
.abroad__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.abroad .lead { margin-top: 24px; }
.fairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.fairs li { display: grid; gap: 12px; }
.fairs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); transition: transform .6s var(--ease); }
.fairs li:nth-child(2) img { transform: translateY(28px); }
.fairs li:hover img { transform: translateY(-6px); }
.fairs li:nth-child(2):hover img { transform: translateY(22px); }
.fairs li > span { display: grid; font-size: .86rem; color: var(--muted); }
.fairs li:nth-child(2) > span { margin-top: 28px; }
.fairs strong { color: var(--ink); font-size: .92rem; }

/* ---------------------------------------------------------------- faq */
.faq { background: var(--pearl-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.25; }
html[lang="ar"] .faq summary { font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--sun-deep); transition: transform .5s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 26px; color: var(--ink-soft); max-width: 60ch; animation: fadeUp .5s var(--ease-out); }

/* ---------------------------------------------------------------- contact */
.contact { color: var(--pearl); background: var(--ink); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 20, .94) 0%, rgba(8, 18, 20, .8) 46%, rgba(8, 18, 20, .45) 100%); }
[dir="rtl"] .contact__bg::after { background: linear-gradient(-90deg, rgba(8, 18, 20, .94) 0%, rgba(8, 18, 20, .8) 46%, rgba(8, 18, 20, .45) 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__intro .lead { margin-top: 24px; }
.contact__info { display: grid; gap: 22px; margin-top: 44px; }
.contact__info li { display: flex; gap: 16px; align-items: flex-start; }
.contact__info svg { width: 22px; height: 22px; flex: none; color: var(--sun-soft); margin-top: 3px; }
.contact__info div { display: grid; gap: 2px; }
.contact__info div > span:first-child { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
html[lang="ar"] .contact__info div > span:first-child { letter-spacing: 0; font-size: .82rem; }
.contact__info a { font-weight: 600; transition: color .3s; justify-self: start; }
.contact__info a:hover { color: var(--sun-soft); }

.form { background: var(--pearl); color: var(--ink); border-radius: var(--radius); padding: clamp(26px, 3vw, 44px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.form__title { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1.1; margin-bottom: 22px; }
html[lang="ar"] .form__title { font-weight: 600; font-size: 1.5rem; line-height: 1.5; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field__label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  font: 500 1rem/1.4 var(--font-body); color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(238, 123, 48, .16); }
.field.has-error input { border-color: #C2412D; }
.field__error { display: none; font-size: .8rem; color: #B03523; font-weight: 600; }
.field.has-error .field__error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.form .btn { margin-top: 8px; }
.form__note { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- footer */
.footer { background: #091315; color: rgba(247, 243, 237, .78); padding-top: clamp(64px, 8vw, 110px); padding-bottom: 28px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer__brand svg { width: 56px; height: 56px; color: var(--sun); }
.footer__name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.2rem; color: var(--pearl); margin-top: 18px; line-height: 1.1; }
.footer__name em { color: var(--sun-soft); }
.footer__ar { font-family: var(--font-ar); margin-top: 6px; color: var(--gold); text-align: start; }
.footer__tag { margin-top: 16px; max-width: 34ch; font-size: .92rem; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h3 { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pearl); margin-bottom: 8px; }
html[lang="ar"] .footer__col h3 { letter-spacing: 0; font-size: .85rem; }
.footer__col a { font-size: .94rem; transition: color .3s; justify-self: start; }
.footer__col a:hover { color: var(--sun-soft); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 24px; font-size: .8rem; opacity: .7; }

/* ---------------------------------------------------------------- mobile action bar */
.action-bar { display: none; }

/* ---------------------------------------------------------------- reveal animations */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1.2s var(--ease-out) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(14% 0 0 0 round var(--radius)); transition: clip-path 1.5s var(--ease-out) var(--d, 0ms); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .band[data-reveal="clip"] { clip-path: inset(10% 6% 0 6% round 28px); }
.js .band[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }
.js .residence__hero[data-reveal="clip"], .js .residence__hero[data-reveal="clip"].is-in { clip-path: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .1em; margin: 0 -.05em -.1em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 45ms + 60ms); }
[data-split].is-in .w > span { transform: none; }
html[lang="ar"] .w { overflow: visible; }
html[lang="ar"] .w > span { transform: translateY(35%); opacity: 0; transition: transform 1s var(--ease-out) calc(var(--i, 0) * 45ms + 60ms), opacity 1s var(--ease-out) calc(var(--i, 0) * 45ms + 60ms); }
html[lang="ar"] [data-split].is-in .w > span { transform: none; opacity: 1; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav ul { gap: 18px; }
  .nav a { font-size: .84rem; }
  .header-cta { display: none; }
  .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  :root { --header-h: 70px; }
  .nav, .header-cta { display: none; }
  .burger { display: inline-block; }
  .header-actions { margin-inline-start: auto; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-head--split .lead, .filters { justify-self: start; }
  .types { grid-template-columns: 1fr 1fr; }
  .types .type:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .types .type:last-child .type__media { aspect-ratio: auto; height: 100%; }
  .price { grid-template-columns: 1fr; }
  .split, .location__grid, .community__grid, .abroad__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__grid > div:first-child, .map-wrap { position: static; }
  .community__media { max-width: 520px; }
  .quote { inset-inline-end: 16px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(3) { padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 899px) {
  .story { grid-template-columns: 1fr; }
  .story__frame { display: none; }
  .story__steps { padding: 0; display: grid; gap: 56px; }
  .step { min-height: 0; opacity: 1; }
  .step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 22px; box-shadow: var(--shadow-soft); }
  .film { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__fact { padding: 14px 16px; }
  .hero__fact:first-child { padding-inline-start: var(--gutter); }
  .hero__fact:nth-child(3) { padding-inline-start: var(--gutter); border-inline-start: 0; }
  .hero__fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .hero__scroll { display: none; }
  .hero__pause { top: calc(var(--header-h) + 12px); bottom: auto; width: 42px; height: 42px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .manifesto__grid { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .types .type:last-child { grid-column: auto; display: flex; }
  .types .type:last-child .type__media { aspect-ratio: 4 / 3; height: auto; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity { padding: 22px 18px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 160px; }
  .bento__item--a { grid-column: span 2; grid-row: span 2; }
  .specs { grid-template-columns: 1fr 1fr 1fr; }
  .specs div { padding-inline-end: 8px; }
  .specs div + div { padding-inline-start: 10px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .g--big { grid-column: span 2; }
  .g figcaption { opacity: 1; transform: none; font-size: .78rem; padding: 24px 12px 10px; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 72%; scroll-snap-align: start; }
  .fairs li:nth-child(2) img { transform: none; }
  .fairs li:nth-child(2) > span { margin-top: 0; }
  .lightbox__fig { padding: 64px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .compare { aspect-ratio: 4 / 3; }
  .compare__tag { font-size: .7rem; padding: 7px 10px; top: 12px; }
  .compare__tag--plan { left: 12px; }
  .compare__tag--real { right: 12px; }
  .compare__knob { width: 52px; height: 52px; }

  .action-bar {
    position: fixed; z-index: 60; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px; border-radius: 20px;
    background: rgba(14, 26, 29, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .6s var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 15px; color: var(--pearl); font-size: .88rem; font-weight: 700; }
  .action-bar svg { width: 20px; height: 20px; }
  .action-bar__main { background: var(--sun); color: var(--on-sun) !important; }
}
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .hero__title { font-size: clamp(3.3rem, 17vw, 4.6rem); }
  .hero__lead { font-size: .98rem; }
  .btn { padding-inline: 1.2em; }
  .stat { padding-inline-start: 0 !important; padding-inline-end: 12px; }
  .stat__num { font-size: 3rem; }
}
@media (max-height: 700px) and (min-width: 768px) {
  .hero__title { font-size: clamp(3.4rem, 8vw, 7rem); }
  .hero__lead { margin-top: 16px; }
  .hero__ctas { margin-top: 22px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .hero__video { transform: none; }
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .w > span { transform: none; }
  .statement .pill { width: 2.1em; }
  .grain { display: none; }
}

/* ---------------------------------------------------------------- hero v2 : titre sur une ligne, contenu centré */
.hero__content { text-align: center; }
.hero__meta, .hero__ctas { justify-content: center; }
.hero__kicker, .hero__lead { margin-inline: auto; }
.hero__title { white-space: nowrap; font-size: clamp(2rem, 8.2vw, 8rem); line-height: 1; letter-spacing: -.015em; }
html[lang="ar"] .hero__title { font-size: clamp(2.2rem, 8.6vw, 7.6rem); line-height: 1.35; }
.hero__shade, [dir="rtl"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(6, 14, 16, .62) 0%, rgba(6, 14, 16, 0) 24%),
    linear-gradient(0deg, rgba(6, 14, 16, .92) 0%, rgba(6, 14, 16, .5) 34%, rgba(6, 14, 16, .12) 66%),
    radial-gradient(70% 55% at 50% 62%, rgba(6, 14, 16, .55) 0%, rgba(6, 14, 16, 0) 100%);
}
@media (max-width: 420px) { .hero__title { font-size: 8.4vw; } }
.manifesto .statement { max-width: 30ch; }
.manifesto__grid { display: block; margin-inline-start: 0; max-width: 60ch; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12) contrast(.98); }
.manifesto .eyebrow { display: flex; justify-content: center; }
.manifesto .statement { margin-inline: auto; text-align: center; max-width: 28ch; }
.manifesto__grid { margin-inline: auto; text-align: center; }
.manifesto__body { margin-inline: auto; }
.manifesto .stats { margin-bottom: 0; }
.manifesto { padding-bottom: var(--section); }
.residence__title { text-align: center; }
.residence__title .eyebrow { display: flex; justify-content: center; }
.residence__title .h2 { margin-inline: auto; max-width: 18ch; }
/* logo : « de Hay Chmaou » dans la même police que « La Perle » */
.brand__sub { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; text-transform: none; opacity: .9; margin-top: 1px; }
/* section « Le projet » : texte à gauche, photo à droite */
.manifesto__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
.manifesto .manifesto__text .eyebrow { display: inline-flex; justify-content: flex-start; }
.manifesto .manifesto__text .statement { margin-inline: 0; text-align: start; max-width: 22ch; font-size: clamp(1.9rem, 3.2vw, 3.3rem); }
.manifesto .manifesto__text .manifesto__grid { margin: clamp(28px, 3vw, 44px) 0 0; text-align: start; max-width: 52ch; }
.manifesto .manifesto__text .manifesto__body { margin-inline: 0; }
.manifesto__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--pearl-3); }
.manifesto__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (max-width: 1000px) {
  .manifesto__split { grid-template-columns: minmax(0, 1fr); }
  .manifesto__media { aspect-ratio: 4 / 3; }
  .manifesto .manifesto__text .statement { max-width: 26ch; }
}
