/* ==========================================================================
   MODESTIA — Haute Modest Couture
   Palette: ivory, sand, oud-espresso and champagne gold.
   Type: Cormorant Garamond + Jost (EN) · Amiri + IBM Plex Sans Arabic (AR)
   ========================================================================== */

@property --c1 { syntax: '<color>'; inherits: true; initial-value: #E6D8C5; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #BBA488; }

:root {
  --ivory: #F7F2EA;
  --pearl: #FBF8F3;
  --sand: #EFE6D8;
  --linen: #E4D7C4;
  --taupe: #A8957F;
  --mocha: #6E5A4A;
  --espresso: #2A201A;
  --ink: #1B1511;
  --gold: #B8955A;
  --gold-2: #D3B784;
  --gold-3: #8E6F3E;
  --error: #A4503F;

  --text: var(--espresso);
  --muted: #7A6A5C;
  --line: rgba(42, 32, 26, .14);

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --pad: clamp(20px, 5vw, 80px);
  --header-h: 84px;

  /* Draped-silk relief: stretched noise lit from the top-left */
  --silk-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0065 0.0012' numOctaves='2' seed='8'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3CfeDiffuseLighting surfaceScale='14' diffuseConstant='1.05' lighting-color='%23ffffff'%3E%3CfeDistantLight azimuth='215' elevation='45'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[lang="ar"] {
  --f-display: 'Amiri', 'Times New Roman', serif;
  --f-body: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable;
  font-variant-numeric: lining-nums;
  scrollbar-width: thin; scrollbar-color: #C9B79F var(--ivory);
}
/* Chrome shifts fixed layers sideways when an RTL page with a reserved gutter locks scrolling */
html[dir="rtl"] { scrollbar-gutter: auto; }
html.is-locked { overflow: hidden; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.95; }
/* Arabic letters must stay connected — never letter-space them */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] em { font-style: normal; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--pearl); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Film grain over everything for a printed, tactile feel */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 150;
  pointer-events: none;
  background-image: var(--grain);
  opacity: .07;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.skip-link {
  position: fixed; top: -100px; inset-inline-start: 16px; z-index: 300;
  background: var(--espresso); color: var(--ivory); padding: 10px 18px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 1120px; }
.section { position: relative; padding-block: clamp(96px, 13vw, 190px); }

.section--dark,
.overlay.is-dark,
.footer {
  --text: var(--sand);
  --muted: rgba(239, 230, 216, .62);
  --line: rgba(239, 230, 216, .14);
  color: var(--text);
}
.section--dark { background: var(--espresso); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-size: 11.5px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-3);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { display: flex; justify-content: center; }
.section--dark .eyebrow, .overlay.is-dark .eyebrow { color: var(--gold-2); }
html[lang="ar"] .eyebrow { font-size: 14px; }

.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold-3); }
.section--dark .h2 em { color: var(--gold-2); }
html[lang="ar"] .h2 { font-weight: 400; font-size: clamp(36px, 4.6vw, 70px); line-height: 1.4; }

.lead { max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 30px;
  border: 1px solid currentColor;
  font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--espresso);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.btn:hover { color: var(--ivory); }
.btn:hover::before { transform: scaleY(1); }
.btn--solid { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn--solid::before { background: var(--gold-3); }
.btn--solid:hover { border-color: var(--gold-3); }
.btn--small { padding: 14px 22px; gap: 14px; }
.section--dark .btn::before, .overlay.is-dark .btn::before { background: var(--sand); }
.section--dark .btn:hover, .overlay.is-dark .btn:hover { color: var(--espresso); }
html[lang="ar"] .btn { font-size: 14px; }

.btn__arrow {
  position: relative; flex: none;
  width: 28px; height: 1px; background: currentColor;
  transition: width .4s var(--ease);
}
.btn__arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
a:hover .btn__arrow, button:hover .btn__arrow { width: 40px; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }

.link {
  position: relative; display: inline-block; padding-bottom: 4px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
}
.link::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(.35); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
[dir="rtl"] .link::after { transform-origin: right; }
.link:hover::after { transform: scaleX(1); }
html[lang="ar"] .link { font-size: 14px; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color .4s, background .4s;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.icon-btn:hover { border-color: var(--gold-2); background: rgba(211, 183, 132, .1); }
[dir="rtl"] .icon-btn svg { transform: scaleX(-1); }

.x { position: relative; width: 14px; height: 14px; display: inline-block; }
.x::before, .x::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 100%; height: 1px; background: currentColor; transform: rotate(45deg);
}
.x::after { transform: rotate(-45deg); }

/* ---------- Arches & silk ---------- */
.arch-wrap { position: relative; }
.arch-wrap::before {
  content: ''; position: absolute; inset: -12px -12px 0; z-index: 2;
  border: 1px solid rgba(184, 149, 90, .5); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch {
  position: relative; width: 100%; height: 100%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}
.arch-ghost {
  border: 1px solid rgba(184, 149, 90, .45); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.silk {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(170deg, var(--c1) 0%, var(--c2) 100%);
}
.silk::before {
  content: ''; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: var(--silk-tex) center / cover;
  mix-blend-mode: soft-light;
  animation: silk-drift 24s ease-in-out infinite alternate;
}
.silk::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 28% 0%, rgba(255, 255, 255, .32), transparent 60%),
    linear-gradient(to top, rgba(0, 0, 0, .16), transparent 45%);
}
.silk > * { z-index: 1; }
@keyframes silk-drift {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  100% { transform: translate3d(-4%, 2%, 0) scale(1.12); }
}

.figure {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 90%;
  transform-origin: 50% 100%;
  transition: transform 1.4s var(--ease-out);
}

/* ---------- Photography ----------
   Layers inside an arch: silk (0) → illustration (1) → photo (2) → scrim (3) → overlay text (4) */
.photo {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 2.2s var(--ease-out);
}
.photo.is-ready { opacity: 1; transform: none; }
.photo.is-broken { display: none; }
.photo-stack { position: absolute; inset: 0; z-index: 2; }
.photo-stack .photo:not(.is-active) { opacity: 0; }
.photo-stack .photo { transition: opacity 1s var(--ease), transform 2.2s var(--ease-out); }
.scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 14, 10, .64) 0%, rgba(20, 14, 10, .14) 42%, transparent 66%);
}
.scrim--full { background: linear-gradient(to top, rgba(20, 14, 10, .82) 0%, rgba(20, 14, 10, .42) 100%); }
/* Once a photo is in, the silk texture underneath has nothing to do */
.silk:has(.photo.is-ready)::before { animation: none; opacity: 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

main, .footer, .header .logo { transition: opacity .45s var(--ease); }
.is-switching main, .is-switching .footer, .is-switching .header .logo { opacity: 0; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ivory);
  clip-path: inset(0);
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s;
}
.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__arch { width: 70px; height: 94px; }
.preloader__arch path {
  fill: none; stroke: var(--gold); stroke-width: 1.2;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.8s var(--ease-io) forwards;
}
.preloader__word {
  font-family: var(--f-display); font-size: clamp(28px, 4vw, 42px); font-weight: 400;
  letter-spacing: .42em; margin-inline-start: .42em; text-transform: uppercase;
  opacity: 0; animation: fade-up 1.2s var(--ease-out) .5s forwards;
}
.preloader__tag {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fade-up 1.2s var(--ease-out) .8s forwards;
}
html[lang="ar"] .preloader__word { font-weight: 700; margin: 0; }
html[lang="ar"] .preloader__tag { font-size: 14px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   CURSOR (fine pointers only)
   ========================================================================== */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 160; pointer-events: none; opacity: 0; transition: opacity .4s; }
.has-cursor .cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor__dot::before {
  content: ''; position: absolute; left: -3px; top: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.cursor__ring::before {
  content: ''; position: absolute; left: -18px; top: -18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(184, 149, 90, .7);
  transition: transform .5s var(--ease-out), background .4s, border-color .4s;
}
.cursor.is-hover .cursor__ring::before { transform: scale(1.5); }
.cursor.has-label .cursor__ring::before { transform: scale(2.6); background: rgba(142, 111, 62, .9); border-color: transparent; }
.cursor__label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--pearl); opacity: 0; transition: opacity .3s;
}
.cursor.has-label .cursor__label { opacity: 1; }
html[lang="ar"] .cursor__label { font-size: 12px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--pad);
  transition: transform .6s var(--ease-out), background .5s, height .5s, box-shadow .5s;
}
.header.is-scrolled {
  height: 70px;
  background: rgba(247, 242, 234, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { background: transparent; box-shadow: none; transform: none; }

.header__menu {
  justify-self: start;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
}
html[lang="ar"] .header__menu { font-size: 14px; }
.burger { position: relative; display: block; width: 28px; height: 10px; }
.burger i {
  position: absolute; left: 0; height: 1px; background: currentColor;
  transition: width .4s var(--ease), transform .5s var(--ease-out), top .5s var(--ease-out), bottom .5s var(--ease-out);
}
[dir="rtl"] .burger i { left: auto; right: 0; }
.burger i:first-child { top: 0; width: 100%; }
.burger i:last-child { bottom: 0; width: 62%; }
.header__menu:hover .burger i:last-child { width: 100%; }
.menu-open .burger i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { bottom: 4.5px; width: 100%; transform: rotate(-45deg); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo__mark { width: 15px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.logo__word {
  font-family: var(--f-display); font-size: 21px; font-weight: 400; line-height: 1;
  letter-spacing: .42em; margin-inline-start: .42em; text-transform: uppercase;
}
html[lang="ar"] .logo__word { font-size: 25px; font-weight: 700; margin: 0; }
.header.is-scrolled .logo__mark { display: none; }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 28px; }
.lang-toggle {
  font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 15px;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .3s;
}
html[lang="ar"] .lang-toggle { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: .14em; }
.lang-toggle:hover { border-color: var(--gold); }
.header__cta {
  padding: 12px 20px; border: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s;
}
.header__cta:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
html[lang="ar"] .header__cta { font-size: 14px; }

/* ==========================================================================
   MENU
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 45;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s 1s;
}
.menu.is-open { visibility: visible; pointer-events: auto; transition: none; }
.menu__bg {
  position: absolute; inset: 0; background: var(--sand);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-io);
}
.menu.is-open .menu__bg { clip-path: inset(0); }
.menu__inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 6vw;
  padding: calc(var(--header-h) + 20px) var(--pad) 50px;
  overflow-y: auto;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; gap: 26px;
  font-family: var(--f-display); font-size: clamp(36px, 5vw, 76px); font-weight: 300; line-height: 1.14;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.menu.is-open .menu__link {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out) calc(.35s + var(--i) * .06s), transform 1s var(--ease-out) calc(.35s + var(--i) * .06s), color .3s;
}
.menu__link:hover { color: var(--gold-3); font-style: italic; }
html[lang="ar"] .menu__link { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.5; }
html[lang="ar"] .menu__link:hover { font-style: normal; }
.menu__num { font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; color: var(--gold-3); min-width: 24px; }
.menu__aside {
  display: flex; flex-direction: column; align-items: flex-start; gap: 36px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease-out);
}
.menu.is-open .menu__aside { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .6s, transform 1.2s var(--ease-out) .6s; }
.menu__arch { width: min(280px, 70%); aspect-ratio: 3 / 4.2; }
.menu__meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.menu__meta a:hover { color: var(--text); }
.menu__date { color: var(--gold-3); margin-bottom: 8px; }
[dir="rtl"] .menu__phone { text-align: right; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100svh, 720px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 4vw;
  padding: calc(var(--header-h) + 30px) var(--pad) 90px;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 70% 45%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 40% at 90% 95%, rgba(201, 169, 154, .25), transparent 70%),
    radial-gradient(45% 45% at 5% 15%, rgba(184, 149, 90, .12), transparent 70%);
}
.hero__word {
  position: absolute; left: 50%; bottom: -.16em; transform: translateX(-50%);
  font-family: var(--f-display); font-size: clamp(90px, 21vw, 360px); font-weight: 300; line-height: 1;
  white-space: nowrap; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(184, 149, 90, .32);
  pointer-events: none; user-select: none;
}
html[lang="ar"] .hero__word { bottom: -.05em; }

.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(54px, 7.2vw, 124px); line-height: .98; letter-spacing: -.015em;
  margin-bottom: 34px;
}
html[lang="ar"] .hero__title { font-weight: 400; font-size: clamp(50px, 6.2vw, 104px); line-height: 1.32; }
.hero__sub { max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); margin-bottom: 44px; }
.hero__actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

/* Campaign banners — shown whole at their native 400:711 ratio, never cropped
   (they carry their own typography). Capped at 711px tall = 400px wide, the file size. */
.hero__stage { position: relative; z-index: 1; height: min(78vh, 760px); min-height: 480px; }
.hero__ghost { position: absolute; top: 0; inset-inline-start: 0; width: 30%; height: 46%; }
.hero__frame {
  position: absolute; top: 0; inset-inline-start: 14%; z-index: 2;
  height: min(100%, 711px); aspect-ratio: 400 / 711; margin: 0;
}
.hero__frame::before {
  content: ''; position: absolute; inset: -12px; pointer-events: none;
  border: 1px solid rgba(184, 149, 90, .5);
}
.hero__slides {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--linen);
  box-shadow: 0 50px 90px -50px rgba(42, 32, 26, .55);
}
.hero__slides .photo.is-active.is-ready { animation: kenburns 8s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1); } }

.hero__next {
  position: absolute; bottom: 0; inset-inline-end: 0; z-index: 3;
  height: 46%; aspect-ratio: 400 / 711; overflow: hidden;
  box-shadow: 0 0 0 10px var(--ivory);
  transition: filter .5s var(--ease);
  filter: saturate(.75) brightness(1.04);
}
.hero__next:hover { filter: none; }

.hero__bars { position: absolute; inset-inline: 0; top: calc(100% + 14px); display: flex; gap: 8px; }
.hero__bar { position: relative; flex: 1; height: 16px; }
.hero__bar::before, .hero__bar i {
  content: ''; position: absolute; inset-inline: 0; top: 50%; height: 2px;
}
.hero__bar::before { background: var(--line); }
.hero__bar i { background: var(--gold); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__bar i { transform-origin: right; }
.hero__bar:hover::before { background: rgba(184, 149, 90, .45); }

.hero__caption {
  position: absolute; inset-inline: 0; top: calc(100% + 40px);
  display: flex; justify-content: space-between; gap: 16px; white-space: nowrap;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero__count { color: var(--gold-3); font-variant-numeric: tabular-nums; }
html[lang="ar"] .hero__caption { font-size: 13px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: scroll-line 2.4s var(--ease-io) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(.7deg); } }

/* Intro choreography (after preloader) */
.js .intro { opacity: 0; transform: translateY(34px); }
.is-loaded .intro {
  opacity: 1; transform: none;
  transition: opacity 1.3s var(--ease-out) calc(var(--d, 0s) + .5s), transform 1.5s var(--ease-out) calc(var(--d, 0s) + .5s);
}
.js .hero__slides, .js .hero__next { clip-path: inset(100% 0 0 0); }
.is-loaded .hero__slides, .is-loaded .hero__next { clip-path: inset(0 0 0 0); transition: clip-path 1.8s var(--ease-io) .55s, filter .5s var(--ease); }
.is-loaded .hero__next { transition-delay: .85s, 0s; }
.js .hero__frame::before, .js .hero__ghost, .js .hero__bars, .js .hero__caption, .js .hero__word { opacity: 0; }
.is-loaded .hero__frame::before, .is-loaded .hero__ghost, .is-loaded .hero__bars, .is-loaded .hero__caption, .is-loaded .hero__word { opacity: 1; transition: opacity 2s var(--ease) 1.4s; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 24px; border-block: 1px solid var(--line); background: var(--ivory); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__item {
  display: flex; align-items: center; gap: 56px; padding-inline: 28px; white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 36px); font-style: italic; font-weight: 300;
}
html[lang="ar"] .marquee__item { font-style: normal; }
.marquee__item::after { content: '✦'; font-style: normal; font-size: .45em; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { background: var(--sand); text-align: center; }
.manifesto__text {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 58px); line-height: 1.28;
}
html[lang="ar"] .manifesto__text { font-weight: 400; font-size: clamp(26px, 3vw, 48px); line-height: 1.8; }
.manifesto__text .w { opacity: .14; transition: opacity .6s var(--ease); }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text .w.is-em { font-style: italic; color: var(--gold-3); }
html[lang="ar"] .manifesto__text .w.is-em { font-style: normal; }
.manifesto__sign { margin-top: 70px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.manifesto__mark { width: 18px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.2; margin-bottom: 10px; }
.manifesto__name { font-family: var(--f-display); font-size: 30px; font-style: italic; }
html[lang="ar"] .manifesto__name { font-style: normal; }
.manifesto__role { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .manifesto__role { font-size: 14px; }

/* ==========================================================================
   CHAPTERS — horizontal story (pinned on desktop)
   ========================================================================== */
.chapters { position: relative; background: var(--ivory); }
.chapters__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* sideways swipes are handled in script.js */
}
.chapters__track {
  height: 100%; width: max-content;
  display: flex; align-items: center; gap: clamp(48px, 5.5vw, 100px);
  padding: 60px var(--pad) 40px;
  will-change: transform;
}
.chapters__intro { flex: none; width: min(520px, 82vw); }
.only-mobile { display: none; }
.chapters__intro .h2 { margin-bottom: 28px; }
.chapters__hint {
  display: flex; align-items: center; gap: 16px; margin-top: 44px;
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3);
}
html[lang="ar"] .chapters__hint { font-size: 14px; }
.chapters__hint i { position: relative; width: 60px; height: 1px; background: var(--line); overflow: hidden; }
.chapters__hint i::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: hint 2.2s var(--ease-io) infinite;
}
[dir="rtl"] .chapters__hint i::after { animation-name: hint-rtl; }
@keyframes hint { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes hint-rtl { 0% { transform: translateX(100%); } 70%, 100% { transform: translateX(-100%); } }

.chapter { position: relative; flex: none; width: clamp(280px, 27vw, 430px); display: flex; flex-direction: column; }
.chapter__visual { height: min(54vh, 560px); margin-bottom: 30px; }
.chapter:nth-of-type(odd) .chapter__visual { height: min(46vh, 470px); }
.chapter__numeral {
  position: absolute; top: -.35em; inset-inline-end: -.15em; z-index: 3;
  font-family: var(--f-display); font-size: clamp(80px, 8vw, 130px); font-weight: 300; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  pointer-events: none;
}
.chapter__meta {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .chapter__meta { font-size: 13px; }
.chapter__name { font-family: var(--f-display); font-size: clamp(44px, 3.8vw, 64px); font-weight: 300; line-height: 1; }
html[lang="ar"] .chapter__name { font-weight: 400; line-height: 1.4; }
.chapter__meaning { font-family: var(--f-display); font-size: 21px; font-style: italic; color: var(--mocha); margin: 6px 0 22px; }
html[lang="ar"] .chapter__meaning { font-style: normal; font-size: 19px; }
.chapter__open {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  transition: border-color .4s, color .4s;
}
html[lang="ar"] .chapter__open { font-size: 14px; }
.chapter__open::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.chapter:hover .chapter__open { border-color: var(--gold); color: var(--gold-3); }
.chapter:hover .figure, .chapter:hover .photo.is-ready { transform: scale(1.04); }

.chapters__outro { flex: none; width: min(440px, 82vw); padding-inline-end: 4vw; }
.chapters__outro-kicker { font-family: var(--f-display); font-size: 24px; font-style: italic; color: var(--gold-3); }
html[lang="ar"] .chapters__outro-kicker { font-style: normal; }
.chapters__outro h3 {
  font-family: var(--f-display); font-size: clamp(38px, 3.6vw, 58px); font-weight: 300; line-height: 1.05;
  margin: 8px 0 24px;
}
html[lang="ar"] .chapters__outro h3 { line-height: 1.45; font-weight: 400; }
.chapters__outro .lead { margin-bottom: 40px; }

.chapters__progress { position: absolute; bottom: 34px; inset-inline: var(--pad); height: 1px; background: var(--line); }
.chapters__progress span {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}
[dir="rtl"] .chapters__progress span { transform-origin: right; }

/* ==========================================================================
   ATELIER
   ========================================================================== */
.atelier { background: var(--pearl); }
.atelier__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.atelier__visual { position: relative; aspect-ratio: 4 / 5; }
.atelier__panel {
  position: absolute; inset: 0;
  border-radius: 999px 999px 0 0;
  transition: --c1 1s var(--ease), --c2 1s var(--ease);
}
.atelier__visual::before {
  content: ''; position: absolute; inset: -14px -14px 0; border: 1px solid rgba(184, 149, 90, .5); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.atelier__stitch { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; }
.atelier__stitch path {
  fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-dasharray: 5 9; opacity: .8;
  animation: stitch 14s linear infinite;
}
@keyframes stitch { to { stroke-dashoffset: -280; } }
.atelier__panel-text {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px;
  display: flex; flex-direction: column; gap: 8px; z-index: 4;
  color: var(--pearl); text-shadow: 0 1px 18px rgba(0, 0, 0, .25);
  transition: opacity .45s var(--ease);
}
.atelier__panel-name { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 70px); font-weight: 300; line-height: 1; }
html[lang="ar"] .atelier__panel-name { line-height: 1.4; font-weight: 400; }
.atelier__panel.is-changing .atelier__panel-text { opacity: 0; }
.atelier__content .h2 { margin-bottom: 26px; }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 16px; margin: 46px 0 40px; }
.swatch { display: flex; align-items: center; gap: 14px; text-align: start; font-size: 14px; color: var(--muted); transition: color .3s; }
.swatch__chip {
  position: relative; flex: none; overflow: hidden;
  width: 52px; height: 52px; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.swatch:hover .swatch__chip { transform: scale(1.08); }
.swatch.is-active { color: var(--text); }
.swatch.is-active .swatch__chip { box-shadow: 0 0 0 4px var(--pearl), 0 0 0 5px var(--gold); }

.fabric-detail { border-top: 1px solid var(--line); padding-top: 30px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.fabric-detail.is-changing { opacity: 0; transform: translateY(8px); }
.fabric-detail__desc { font-family: var(--f-display); font-size: clamp(21px, 1.8vw, 26px); font-style: italic; line-height: 1.4; margin-bottom: 26px; }
html[lang="ar"] .fabric-detail__desc { font-style: normal; line-height: 1.8; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.specs dt { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 6px; }
html[lang="ar"] .specs dt { font-size: 13px; }
.specs dd { font-size: 14.5px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(90px, 11vw, 160px); }
.stat { padding: 40px 30px 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat__num {
  display: block; margin-bottom: 14px;
  font-family: var(--f-display); font-size: clamp(56px, 6vw, 96px); font-weight: 300; line-height: 1;
  font-variant-numeric: lining-nums;
}
.stat p { max-width: 24ch; font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   VOICES
   ========================================================================== */
.voices { background: var(--ink); overflow: hidden; text-align: center; }
.voices__silk { position: absolute; inset: 0; --c1: #2E241D; --c2: #110D0A; opacity: .95; }
.voices__silk .photo.is-ready { opacity: .32; }
.voices__inner { position: relative; z-index: 1; }
.voices__mark {
  display: block; height: 70px; margin-top: 10px;
  font-family: var(--f-display); font-size: 180px; line-height: 1; color: var(--gold); opacity: .45;
}
html[lang="ar"] .voices__mark { display: none; }
.voices__stage { display: grid; min-height: 300px; align-items: center; }
.voice {
  grid-area: 1 / 1; opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
}
.voice.is-active { opacity: 1; transform: none; pointer-events: auto; }
.voice blockquote { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 52px); font-style: italic; font-weight: 300; line-height: 1.3; }
html[lang="ar"] .voice blockquote { font-style: normal; font-weight: 400; line-height: 1.8; font-size: clamp(25px, 2.8vw, 42px); }
.voice figcaption { margin-top: 38px; display: flex; flex-direction: column; gap: 6px; }
.voice cite { font-style: normal; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
.voice figcaption span { font-size: 13px; color: var(--muted); }
html[lang="ar"] .voice cite { font-size: 15px; }
.voices__controls { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 56px; }
.voices__dots { display: flex; gap: 10px; }
.voices__dots button { width: 28px; height: 20px; position: relative; }
.voices__dots button::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: var(--line); transition: background .4s, height .4s;
}
.voices__dots button.is-active::before { background: var(--gold-2); height: 2px; }

/* ==========================================================================
   PRIVATE VIEWING (BOOKING)
   ========================================================================== */
.book { background: var(--ivory); }
.book__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.book__intro .h2 { margin-bottom: 26px; }
.book__promises { display: grid; gap: 14px; margin: 38px 0 60px; }
.book__promises li { display: flex; align-items: center; gap: 16px; font-size: 15.5px; }
.book__promises li::before {
  content: ''; flex: none; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}
.book__arch { width: min(260px, 64%); aspect-ratio: 3 / 4.2; margin-inline-start: 12px; }

.book__formwrap { position: relative; background: var(--pearl); border: 1px solid var(--line); padding: clamp(28px, 4vw, 64px); }
.form { display: grid; gap: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .chips legend { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .field label, html[lang="ar"] .chips legend { font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(42, 32, 26, .24); border-radius: 0;
  font-size: 16px; outline: none; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input::placeholder { color: rgba(122, 106, 92, .5); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E6F3E'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: right 2px center;
}
[dir="rtl"] .field select { background-position: left 2px center; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field__error { font-size: 12.5px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 14px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.chip span:hover { border-color: var(--gold); }
.chip input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.form__note::before { content: '✦'; color: var(--gold); font-size: 10px; }

.form-success { text-align: center; padding: 30px 0; display: flex; flex-direction: column; align-items: center; animation: fade-up 1s var(--ease-out); }
.form-success[hidden] { display: none; }
.form-success__mark { width: 66px; height: 88px; margin-bottom: 30px; }
.form-success__mark path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.8s var(--ease-io) .2s forwards; }
.form-success__title { font-family: var(--f-display); font-size: clamp(36px, 3.6vw, 54px); font-weight: 300; line-height: 1.1; margin-bottom: 16px; }
html[lang="ar"] .form-success__title { font-weight: 400; line-height: 1.5; }
.form-success__text { max-width: 40ch; color: var(--muted); margin-bottom: 22px; }
.form-success__ref { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 34px; }
.form-success__ref strong { font-weight: 500; color: var(--gold-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--espresso); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 60px; }
.footer__letter h3 { font-family: var(--f-display); font-size: clamp(30px, 3vw, 44px); font-weight: 300; line-height: 1.15; margin-bottom: 14px; }
html[lang="ar"] .footer__letter h3 { font-weight: 400; line-height: 1.5; }
.footer__letter p { max-width: 40ch; color: var(--muted); font-size: 15px; }
.newsletter { display: flex; gap: 16px; max-width: 440px; margin-top: 30px; border-bottom: 1px solid rgba(239, 230, 216, .3); }
.newsletter input { flex: 1; min-width: 0; padding: 14px 0; background: none; border: 0; outline: none; color: var(--sand); }
.newsletter input::placeholder { color: rgba(239, 230, 216, .45); }
.newsletter button { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); transition: color .3s; }
.newsletter button:hover { color: var(--pearl); }
html[lang="ar"] .newsletter button { font-size: 14px; }
.newsletter__msg { margin-top: 12px; font-size: 13.5px; color: var(--gold-2) !important; min-height: 1.5em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer h4 { margin-bottom: 22px; font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); }
html[lang="ar"] .footer h4 { font-size: 13.5px; }
.footer ul { display: grid; gap: 12px; }
.footer li a { font-size: 15px; color: rgba(239, 230, 216, .72); transition: color .3s; }
.footer li a:hover { color: var(--pearl); }
.footer__word {
  margin-top: 90px; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-display); font-size: clamp(80px, 19vw, 330px); font-weight: 300; line-height: .82; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(211, 183, 132, .32);
}
html[lang="ar"] .footer__word { line-height: 1.1; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px;
  padding-block: 28px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: rgba(239, 230, 216, .5);
}

/* ==========================================================================
   OVERLAY — Lookbook
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ivory);
  visibility: hidden; clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease-io), visibility 0s .9s, background .4s;
}
.overlay.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .9s var(--ease-io), background .4s; }
.overlay.is-dark { background: var(--ink); }
.overlay__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.overlay__close {
  position: absolute; top: 22px; inset-inline-end: var(--pad); z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  background: rgba(247, 242, 234, .82); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s;
}
html[lang="ar"] .overlay__close { font-size: 14px; }
.overlay.is-dark .overlay__close { background: rgba(27, 21, 17, .7); }
.overlay__close:hover { background: var(--pearl); }
.overlay.is-dark .overlay__close:hover { background: var(--espresso); }

.lb { max-width: 1440px; margin-inline: auto; padding: clamp(110px, 12vw, 170px) var(--pad) 110px; }
.lb__head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: clamp(70px, 9vw, 130px); }
.lb__kicker { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 18px; }
.overlay.is-dark .lb__kicker { color: var(--gold-2); }
html[lang="ar"] .lb__kicker { font-size: 14px; }
.lb__title { font-family: var(--f-display); font-size: clamp(80px, 12vw, 190px); font-weight: 300; line-height: .88; }
html[lang="ar"] .lb__title { font-weight: 400; line-height: 1.25; font-size: clamp(70px, 10vw, 160px); }
.lb__meaning { font-family: var(--f-display); font-size: 26px; font-style: italic; color: var(--gold-3); margin-top: 16px; }
.overlay.is-dark .lb__meaning { color: var(--gold-2); }
html[lang="ar"] .lb__meaning { font-style: normal; }
.lb__story { max-width: 46ch; font-size: 17.5px; color: var(--muted); }
.lb__looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.look { display: flex; flex-direction: column; }
.look:nth-child(2) { margin-top: 90px; }
.look:nth-child(3) { margin-top: 40px; }
.overlay.is-open .look { animation: look-in 1.3s var(--ease-out) var(--d, 0s) both; }
@keyframes look-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.look__visual { aspect-ratio: 3 / 4.6; margin-bottom: 26px; }
.look__no { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 8px; }
.overlay.is-dark .look__no { color: var(--gold-2); }
.look__name { font-family: var(--f-display); font-size: clamp(26px, 2.2vw, 34px); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
html[lang="ar"] .look__name { line-height: 1.5; }
.look__specs { display: grid; gap: 12px; padding-block: 18px; border-block: 1px solid var(--line); margin-bottom: 22px; }
.look__specs div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; font-size: 14px; }
.look__specs dt { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
html[lang="ar"] .look__specs dt { font-size: 13px; padding-top: 0; }
.look__request {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; padding-bottom: 6px;
  border-bottom: 1px solid currentColor; transition: color .3s;
}
html[lang="ar"] .look__request { font-size: 14px; }
.look__request:hover { color: var(--gold-3); }
.overlay.is-dark .look__request:hover { color: var(--gold-2); }
.lb__next {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  margin-top: clamp(80px, 10vw, 150px); padding-top: 40px; border-top: 1px solid var(--line);
}
.lb__next span { font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.lb__next button {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--f-display); font-size: clamp(44px, 5vw, 80px); font-weight: 300; line-height: 1.2;
  transition: color .4s;
}
.lb__next button:hover { color: var(--gold-3); }
.overlay.is-dark .lb__next button:hover { color: var(--gold-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 120;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 40px); padding: 16px 26px;
  background: var(--espresso); color: var(--sand); font-size: 14px;
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   CART
   ========================================================================== */
.cart-toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -11px; }
.cart-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.cart-toggle:hover svg { stroke: var(--gold-3); }
.cart-toggle__count {
  position: absolute; top: 3px; inset-inline-end: 1px;
  display: grid; place-items: center; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px;
  background: var(--espresso); color: var(--ivory); font-size: 10.5px; line-height: 1; font-variant-numeric: lining-nums;
}
.cart-toggle__count[hidden] { display: none; }

.look__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.look__actions .look__request { align-self: center; }

.cart { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .6s; }
.cart.is-open { visibility: visible; transition-delay: 0s; }
.cart__scrim { position: absolute; inset: 0; background: rgba(27, 21, 17, .5); opacity: 0; transition: opacity .5s var(--ease); }
.cart.is-open .cart__scrim { opacity: 1; }
.cart__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  display: flex; flex-direction: column; width: min(440px, 100%);
  background: var(--pearl); color: var(--text);
  transform: translateX(100%); transition: transform .6s var(--ease-out);
}
[dir="rtl"] .cart__panel { transform: translateX(-100%); }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart__title { font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 1.2; }
.cart__close { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
html[lang="ar"] .cart__close { font-size: 14px; }
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-inline: 24px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb { position: relative; overflow: hidden; align-self: start; aspect-ratio: 3 / 4; }
.cart-item__chapter { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); }
html[lang="ar"] .cart-item__chapter { font-size: 13px; }
.cart-item__name { margin: 4px 0 14px; font-family: var(--f-display); font-size: 22px; font-weight: 400; line-height: 1.2; }
html[lang="ar"] .cart-item__name { line-height: 1.5; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 40px; height: 40px; font-size: 18px; font-weight: 300; line-height: 1; transition: background .3s; }
.qty button:hover:not(:disabled) { background: var(--sand); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty__n { min-width: 28px; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-item__remove { padding: 8px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: var(--text); }
.cart__empty { padding-block: 56px; text-align: center; }
.cart__empty p { margin-bottom: 18px; font-family: var(--f-display); font-size: 24px; }
.cart__foot { padding: 20px 24px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 1px solid var(--line); }
.cart__note { margin-bottom: 16px; font-size: 13.5px; color: var(--muted); }
.cart__checkout { width: 100%; justify-content: space-between; }

/* Prices and sizes in the cart */
.cart-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-item__price { font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__name { margin-bottom: 10px; }
.cart-item__size {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .cart-item__size { font-size: 13px; }
.cart-item__size select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 76px; padding: 6px 26px 6px 10px; border: 1px solid var(--line); border-radius: 0; background: transparent;
  font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E6F3E'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 10px 7px; background-position: right 9px center;
}
[dir="rtl"] .cart-item__size select { padding: 6px 10px 6px 26px; background-position: left 9px center; }
.cart-item__size.is-unset select { border-color: var(--gold); }
.cart__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
html[lang="ar"] .cart__total { font-size: 14px; }
.cart__total strong { font-family: var(--f-display); font-size: 26px; font-weight: 400; letter-spacing: 0; color: var(--text); font-variant-numeric: lining-nums; }

.cart-toggle.is-bumped svg { animation: cart-bump .6s var(--ease-out); }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1); } }

/* Shop links on the home page */
.header__shop {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header__shop:hover { border-color: var(--gold); }
html[lang="ar"] .header__shop { font-size: 14px; }
/* Mid-size screens: keep the header actions clear of the centred logo */
@media (max-width: 1180px) {
  .header__actions { gap: 20px; }
  .header__cta { padding: 11px 14px; white-space: nowrap; }
}
@media (max-width: 1040px) { .header__shop { display: none; } }
.look__price { margin: -12px 0 18px; font-size: 15px; font-variant-numeric: tabular-nums; }
.look__price a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.look__price a:hover { border-color: currentColor; color: var(--gold-3); }
.overlay.is-dark .look__price a:hover { color: var(--gold-2); }
.lb__shop { margin-top: 26px; }
.chapters__outro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .lb__looks { grid-template-columns: repeat(2, 1fr); }
  .look:nth-child(n) { margin-top: 0; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .header__cta, .header__shop { display: none; }
  .header__menu-label { display: none; }
  .logo__mark { display: none; }

  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: calc(var(--header-h) + 40px); }
  .hero__stage { height: 66vh; min-height: 440px; }
  .hero__frame { inset-inline-start: 4%; }
  .hero__next { height: 38%; }
  .hero__caption { letter-spacing: .14em; }
  .hero__scroll { display: none; }

  .menu__inner { grid-template-columns: 1fr; align-items: start; }
  .menu__aside { display: none; }

  /* Collections: pinned like desktop. Cards take the height the text leaves free. */
  .chapters__track { gap: 28px; padding-block: 76px 52px; }
  .chapters__intro { width: min(520px, 78vw); }
  .chapters__hint { margin-top: 30px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .chapter { width: 74vw; }
  .chapter__visual, .chapter:nth-of-type(odd) .chapter__visual { height: calc(100vh - 340px); height: calc(100svh - 340px); margin-bottom: 20px; }
  .chapters__progress { bottom: 22px; }

  .atelier__grid, .book__grid, .footer__top, .lb__head { grid-template-columns: 1fr; }
  .atelier__visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .book__arch { display: none; }
  .lb__head { gap: 30px; }
}

/* Phones on their side are too short to pin: swipe the cards natively instead */
@media (max-width: 900px) and (max-height: 439px) {
  .chapters__pin { position: relative; height: auto; overflow: visible; padding-block: 90px 40px; touch-action: auto; }
  .chapters__track {
    width: auto; height: auto; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 20px 0;
  }
  .chapters__track::-webkit-scrollbar { display: none; }
  .chapters__pin > .chapters__intro { width: auto; padding-inline: var(--pad); margin-bottom: 20px; }
  .chapter, .chapters__outro { scroll-snap-align: center; }
  .chapter { width: 42vw; }
  .chapter__visual, .chapter:nth-of-type(odd) .chapter__visual { height: 70vh; }
  .chapters__progress { display: none; }
}

@media (max-width: 600px) {
  .lb__looks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-start: 0 !important; padding-inline-start: 0 !important; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .header__actions { gap: 16px; }
  .hero__actions { gap: 24px; }
}

/* Narrow phones: tighten the logo so it clears the language and cart buttons */
@media (max-width: 430px) {
  .logo__word { font-size: 17px; letter-spacing: .3em; margin-inline-start: .3em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
