/* ============================================================
   Kamellia — cinematic editorial lookbook
   ============================================================ */
:root {
  --clay:   #B46D58;
  --blush:  #D89779;
  --sienna: #AC6C53;
  --ivory:  #F1E8DF;
  --paper:  #FCFAF7;
  --ink:    #2A211E;
  --clay-deep: #9c5a47;
  --clay-text: #8F4E3B; /* AA-contrast clay for text-sized type */
  --line: rgba(42, 33, 30, 0.14);
  --ink-soft: rgba(42, 33, 30, 0.72);

  --display: "Bodoni Moda", "El Messiri", "Georgia", serif;
  --body: "Jost", "El Messiri", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* tracking scale */
  --ls-lg: 0.24em;
  --ls-md: 0.16em;
  --ls-sm: 0.08em;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html[lang="ar"] { --display: "El Messiri", serif; --body: "Amiri", "El Messiri", serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-weight: 300; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.95; font-weight: 400; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .cinema :focus-visible, .enquire :focus-visible,
.site-footer :focus-visible,
.site-header:not(.scrolled) :focus-visible { outline-color: var(--ivory); }

/* Latin snippets shown while Arabic is active */
html[lang="ar"] .essence-mini i, html[lang="ar"] .footer-handle { font-family: "Jost", "Amiri", serif; }

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

/* ---- Type primitives ---- */
.display { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
html[lang="ar"] .display { line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.display.xl { font-size: clamp(2.6rem, 6.5vw, 6rem); }
h1.hero-title { font-size: clamp(3rem, 9vw, 8rem); font-weight: 500; }
h2.display { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3.display { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow {
  font-family: var(--body); font-weight: 500; font-size: 0.72rem;
  letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--ink-soft);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.08em; font-size: 0.95rem; }
.eyebrow.light { color: var(--ivory); opacity: 0.92; }
.light { color: var(--ivory); }

.section-lede { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; margin-top: 1.2rem; }
.section-lede.light { color: rgba(241,232,223,0.82); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 760px; }
.section-head .eyebrow { margin-bottom: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--body); font-weight: 500; font-size: 0.76rem;
  letter-spacing: var(--ls-md); text-transform: uppercase;
  padding: 1.05rem 2.1rem; border: 1px solid var(--clay); border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: all .4s var(--ease); white-space: nowrap;
}
html[lang="ar"] .btn { letter-spacing: 0.03em; font-size: 0.98rem; }
.btn-solid { background: var(--clay); color: var(--ivory); }
.btn-solid:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn-line { background: transparent; color: var(--clay-text); }
.btn-line:hover { background: var(--clay); border-color: var(--clay); color: var(--ivory); }
.btn-line.light { color: var(--ivory); border-color: rgba(241,232,223,0.5); }
.btn-line.light:hover { background: var(--ivory); color: var(--clay); border-color: var(--ivory); }
.btn.full { width: 100%; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* directional / scale variants */
.reveal.reveal-l { transform: translateX(-36px); }
.reveal.reveal-r { transform: translateX(36px); }
html[dir="rtl"] .reveal.reveal-l { transform: translateX(36px); }
html[dir="rtl"] .reveal.reveal-r { transform: translateX(-36px); }
.reveal.reveal-scale { transform: translateY(18px) scale(.95); }
.reveal.reveal-l.in, .reveal.reveal-r.in, .reveal.reveal-scale.in,
html[dir="rtl"] .reveal.reveal-l.in, html[dir="rtl"] .reveal.reveal-r.in { transform: none; }
/* curtain unveil for imagery */
.reveal.reveal-clip { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1.15s var(--ease), opacity .9s var(--ease); }
.reveal.reveal-clip.in { clip-path: inset(0 0 0 0); }

/* ---- Scroll progress ---- */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 2px; width: 0; background: var(--clay); z-index: 1400; pointer-events: none; }

/* ---- Floral decor (camellia motif) ---- */
/* .parallax elements drift via --py (set by JS) so decorative transforms survive */
.parallax { transform: translate3d(0, var(--py, 0px), 0); }
.has-blossom { position: relative; z-index: 0; overflow: hidden; }
.section-blossom { position: absolute; pointer-events: none; user-select: none; z-index: -1; }
.section-blossom.b-strip-end { inset-block: 0; inset-inline-end: -5%; height: 110%; width: auto; opacity: .12; }
.section-blossom.b-strip-start { inset-block: 0; inset-inline-start: -5%; height: 110%; width: auto; opacity: .1; transform: scaleX(-1) translate3d(0, var(--py, 0px), 0); }
html[dir="rtl"] .section-blossom.b-strip-end { transform: scaleX(-1) translate3d(0, var(--py, 0px), 0); }
html[dir="rtl"] .section-blossom.b-strip-start { transform: translate3d(0, var(--py, 0px), 0); }
.section-blossom.b-corner-bottom { bottom: -6%; inset-inline-start: -8%; width: min(52vw, 560px); opacity: .16; transform: rotate(-7deg) translate3d(0, var(--py, 0px), 0); }
.section-blossom.b-corner-top { top: -8%; inset-inline-end: -9%; width: min(48vw, 520px); opacity: .13; transform: rotate(172deg) translate3d(0, var(--py, 0px), 0); }
.section-blossom.b-ghost { top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%) rotate(-4deg); width: min(88vw, 900px); opacity: .1; filter: grayscale(1) brightness(2.6); }
html[dir="rtl"] .section-blossom.b-ghost { transform: translate(50%, -50%) rotate(4deg); }
/* full-width camellia line, same clay tone, behind the epigraph text */
.epigraph-line { position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); width: 100%; min-width: 900px; opacity: .45; pointer-events: none; user-select: none; z-index: 0; }

/* ---- Intro ---- */
.intro {
  position: fixed; inset: 0; z-index: 2000; background: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 1.4rem;
  transition: opacity .8s var(--ease), visibility .8s;
}
.intro.gone { opacity: 0; visibility: hidden; }
.intro-logo { width: clamp(190px, 30vw, 320px); opacity: 0; transform: translateY(12px); animation: introLogo 1s var(--ease) forwards; }
.intro-word { font-family: var(--body); font-size: .72rem; letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--clay-text); opacity: 0; animation: fadeIn .8s .45s forwards; }
html[lang="ar"] .intro-word { letter-spacing: .08em; }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: .9; } }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: transform .5s var(--ease), background .5s, border-color .5s, padding .5s;
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 1.3rem var(--gutter); transition: padding .5s; }
.site-header.scrolled { background: rgba(252,250,247,0.9); backdrop-filter: saturate(150%) blur(12px); border-color: var(--line); }
.site-header.scrolled .header-inner { padding-block: .85rem; }
.site-header.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ivory); text-decoration: none; }
.site-header.scrolled .brand, body.subpage .brand { color: var(--ink); }
.brand-logo { height: 78px; width: auto; transition: height .5s; }
.site-header.scrolled .brand-logo { height: 60px; }
.brand-ar { display: none; font-family: "El Messiri", serif; font-size: 1.25rem; line-height: 1; }
html[lang="ar"] .brand-ar { display: inline; }
/* homepage: ivory mark over the hero, clay mark once scrolled */
.brand-logo-dark { display: none; }
.site-header.scrolled .brand-logo-dark, body.subpage .brand-logo-dark { display: block; }
.site-header.scrolled .brand-logo-light, body.subpage .brand-logo-light { display: none; }
.nav { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); margin-inline-start: auto; }
.nav a { font-size: 0.76rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ivory); text-decoration: none; font-weight: 400; transition: color .3s, opacity .3s; position: relative; white-space: nowrap; }
html[lang="ar"] .nav a { letter-spacing: 0; font-size: 1rem; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header.scrolled .nav a { color: var(--ink); }
.lang-toggle { background: transparent; border: 1px solid rgba(241,232,223,0.5); border-radius: 100px; padding: 0.5rem 1.1rem; font-family: var(--body); font-size: 0.76rem; color: var(--ivory); cursor: pointer; transition: all .3s; letter-spacing: .04em; }
html:not([lang="ar"]) .lang-toggle { font-family: "El Messiri", var(--body); letter-spacing: 0; font-size: .9rem; }
html[lang="ar"] .lang-toggle { font-family: "Jost", var(--body); letter-spacing: .04em; font-size: .8rem; }
.site-header.scrolled .lang-toggle { border-color: var(--line); color: var(--ink); }
.lang-toggle:hover { background: var(--clay); border-color: var(--clay); color: var(--ivory); }

/* ---- Mobile menu ---- */
.menu-toggle { display: none; width: 42px; height: 42px; background: none; border: none; cursor: pointer; place-items: center; color: var(--ivory); }
.site-header.scrolled .menu-toggle, body.subpage .menu-toggle { color: var(--ink); }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin-block: 3.5px; }
.mobile-menu { position: fixed; inset: 0; z-index: 1300; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 1.7rem; text-align: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 1.7rem; color: var(--ink); text-decoration: none; }
.mobile-menu .menu-close { position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; width: 46px; height: 46px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--ivory); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: kenBurns 16s var(--ease) 1 both; }
.hero-img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 28%; will-change: transform; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.09); } }
/* rotating hero (slideshow through the collection) */
.hero-media.rotating { animation: none; }
.hero-media.rotating .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
  opacity: 0; transition: opacity 1s var(--ease); will-change: opacity, transform;
}
.hero-media.rotating .hero-slide.active { opacity: 1; animation: slideDrift 4.5s var(--ease) both; }
@keyframes slideDrift { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero-piece {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 1.6rem;
  color: var(--ivory); text-decoration: none; font-size: .7rem; letter-spacing: var(--ls-md);
  text-transform: uppercase; border-bottom: 1px solid rgba(241,232,223,.5); padding-bottom: .3rem;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
html[lang="ar"] .hero-piece { letter-spacing: .03em; font-size: .95rem; }
.hero-piece.show { opacity: .95; visibility: visible; }
.hero-piece:hover { border-color: var(--ivory); }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(28,22,20,0.42) 0%, rgba(28,22,20,0) 16%),
  linear-gradient(90deg, rgba(28,22,20,0.66) 0%, rgba(28,22,20,0.28) 42%, rgba(28,22,20,0) 70%),
  linear-gradient(0deg, rgba(28,22,20,0.72) 0%, rgba(28,22,20,0.12) 46%, rgba(28,22,20,0) 66%); }
.hero-inner { padding: 0 var(--gutter) clamp(4rem, 9vh, 8rem); max-width: 1000px; }
.hero-inner .eyebrow { margin-bottom: 1.6rem; }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroTitleReveal { from { opacity: 0; transform: translateY(34px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.hero-title { margin-bottom: 1.8rem; animation: heroTitleReveal 1.3s var(--ease) .3s both; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.35rem); max-width: 44ch; color: rgba(241,232,223,0.9); animation: heroRise 1.1s var(--ease) .75s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; animation: heroRise 1.1s var(--ease) 1s both; }
.hero .btn-line { color: var(--ivory); border-color: rgba(241,232,223,0.55); }
.hero .btn-line:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.scroll-cue { position: absolute; inset-inline-end: var(--gutter); bottom: clamp(2rem,5vh,3.5rem); display: flex; align-items: center; gap: .8rem; color: var(--ivory); text-decoration: none; font-size: .64rem; letter-spacing: var(--ls-lg); text-transform: uppercase; opacity: .85; }
html[lang="ar"] .scroll-cue { letter-spacing: .06em; font-size: .85rem; }
.scroll-cue i { width: 1px; height: 46px; background: rgba(241,232,223,0.6); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset-inline: 0; top: -100%; height: 100%; background: var(--ivory); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60%,100% { top: 100%; } }
.hero-side { position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left; font-size: .62rem; letter-spacing: var(--ls-lg); color: rgba(241,232,223,0.7); }
html[lang="ar"] .hero-side { display: none; }

/* ---- Epigraph (static band) ---- */
.epigraph { position: relative; overflow: hidden; background: var(--ivory); padding: clamp(3rem, 6vw, 5rem) var(--gutter); border-block: 1px solid rgba(42,33,30,0.06); text-align: center; }
.epigraph p { position: relative; z-index: 1; font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); max-width: 44ch; margin-inline: auto; line-height: 1.4; }
html[lang="ar"] .epigraph p { font-style: normal; }

/* ---- Directional arrows (mirrored in RTL) ---- */
.arrow { display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---- Featured (The Edit) ---- */
.featured { padding-block: clamp(4rem, 9vw, 8rem) clamp(2rem,5vw,4rem); }
/* The Edit — clean 3-across row of pieces */
.edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); }
.edit-card { display: block; text-decoration: none; color: var(--ink); }
.edit-media { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4/5; background: var(--ivory); box-shadow: 0 30px 60px -46px rgba(42,33,30,.5); }
.edit-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.1s var(--ease); }
.edit-card:hover .edit-media img { transform: scale(1.05); }
.edit-view { position: absolute; inset-inline: 0; bottom: 1.1rem; text-align: center; color: var(--ivory); font-size: .66rem; letter-spacing: var(--ls-md); text-transform: uppercase; opacity: 0; transition: opacity .4s var(--ease); text-shadow: 0 1px 10px rgba(28,22,20,.5); }
html[lang="ar"] .edit-view { letter-spacing: .04em; font-size: .88rem; }
.edit-card:hover .edit-view { opacity: 1; }
.edit-body { padding-top: 1.1rem; text-align: center; }
.edit-body .eyebrow { color: var(--ink-soft); }
.edit-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: .35rem 0 .5rem; }
.edit-price { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
.link-underline { background: none; border: none; cursor: pointer; font-family: var(--body); font-size: .76rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 0 0 .4rem; border-bottom: 1px solid var(--clay); transition: color .3s, gap .3s; display: inline-flex; gap: .6em; }
html[lang="ar"] .link-underline { letter-spacing: .03em; font-size: .98rem; }
.link-underline:hover { color: var(--clay-text); }

/* ---- Cinema (parallax quote) ---- */
.cinema { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; color: var(--ivory); text-align: center; }
.cinema.tall { min-height: 92vh; place-items: end start; text-align: start; }
.cinema-media { position: absolute; inset: 0; z-index: -2; }
.cinema-media img { width: 100%; height: 130%; object-fit: cover; object-position: 50% 18%; will-change: transform; }
.cinema-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(28,22,20,0.42); }
.cinema.tall .cinema-scrim { background: linear-gradient(0deg, rgba(28,22,20,0.72), rgba(28,22,20,0.1) 60%); }
.cinema-quote { max-width: 16ch; font-style: italic; font-size: clamp(1.8rem, 4.4vw, 3.6rem); padding-inline: var(--gutter); line-height: 1.18; }
html[lang="ar"] .cinema-quote { font-style: normal; max-width: 22ch; }
.cinema-inner { padding: var(--gutter); padding-bottom: clamp(3rem,7vh,6rem); max-width: 900px; }
.cinema-inner .eyebrow { margin-bottom: 1.2rem; }

/* ---- Collections rail ---- */
.collections { padding-block: clamp(4rem, 9vw, 8rem); background: var(--ivory); }
.rail { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1.5rem; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-card { position: relative; flex: 0 0 min(78vw, 460px); aspect-ratio: 3/4; scroll-snap-align: center; border-radius: 2px; overflow: hidden; color: var(--ivory); text-decoration: none; isolation: isolate; }
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.1s var(--ease); z-index: -2; }
.rail-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(28,22,20,0.7) 4%, rgba(28,22,20,0) 55%); }
.rail-card:hover img { transform: scale(1.05); }
.rail-card .rc-inner { margin-top: auto; padding: 2rem; align-self: flex-end; display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.rail-card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem,2.6vw,2.2rem); }
.rail-card p { font-size: .9rem; opacity: .9; margin-top: .5rem; max-width: 28ch; }
.rail-card .rc-count { font-size: .68rem; letter-spacing: var(--ls-md); text-transform: uppercase; margin-top: 1.1rem; opacity: .82; }
html[lang="ar"] .rail-card .rc-count { letter-spacing: .04em; }

/* ---- Atelier grid ---- */
.atelier { padding-block: clamp(4rem, 9vw, 8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.filter { background: none; border: none; cursor: pointer; font-family: var(--body); font-size: .8rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); padding: 0 0 .4rem; position: relative; transition: color .3s; }
html[lang="ar"] .filter { letter-spacing: .02em; font-size: 1rem; }
.filter::after { content: ""; position: absolute; inset-inline: 0; bottom: -1.25rem; height: 1px; background: var(--clay); transform: scaleX(0); transition: transform .4s var(--ease); }
.filter:hover { color: var(--ink); }
.filter.active { color: var(--clay-text); }
.filter.active::after { transform: scaleX(1); }

.atelier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem) clamp(1rem,1.6vw,1.6rem); }
.product-card { position: relative; background: none; border: none; padding: 0; text-align: start; font-family: inherit; display: block; }
.pc-link { position: absolute; inset: 0; z-index: 1; border-radius: 2px; }
.pc-media { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 3/4; background: var(--ivory); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pc-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.product-card:hover .pc-alt { opacity: 1; }
.pc-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.2rem; background: linear-gradient(0deg, rgba(28,22,20,0.5), rgba(28,22,20,0) 50%); opacity: 0; transition: opacity .4s var(--ease); }
.product-card:hover .pc-overlay { opacity: 1; }
.pc-overlay span { color: var(--ivory); font-size: .68rem; letter-spacing: var(--ls-md); text-transform: uppercase; border: 1px solid rgba(241,232,223,0.7); padding: .6rem 1.2rem; border-radius: 2px; backdrop-filter: blur(2px); }
html[lang="ar"] .pc-overlay span { letter-spacing: .04em; font-size: .9rem; }
.pc-body { padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pc-name { font-family: var(--display); font-size: 1.18rem; font-weight: 500; line-height: 1.2; }
.pc-meta { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.pc-price { font-size: .8rem; color: var(--ink-soft); letter-spacing: .02em; white-space: nowrap; }

/* ---- House ---- */
.house { position: relative; background: var(--ivory); padding-block: clamp(4rem, 9vw, 8rem); overflow: hidden; }
.blossom-strip { position: absolute; inset-block: 0; inset-inline-end: -4%; height: 100%; width: auto; opacity: .4; pointer-events: none; }
html[dir="rtl"] .blossom-strip { inset-inline-end: auto; inset-inline-start: -4%; transform: scaleX(-1); }
.house-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.house-media { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 80px -50px rgba(42,33,30,.5); }
.house-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.house-copy { max-width: 560px; }
.house-copy .eyebrow { margin-bottom: 1.2rem; }
.house-copy h2 { margin-bottom: 1.6rem; }
.house-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; }
.house-copy .link-underline { margin-top: .6rem; }
.essence-mini { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.essence-mini li { background: var(--ivory); padding: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; }
.essence-mini span { font-family: var(--display); font-size: 1.25rem; }
.essence-mini i { font-style: normal; color: var(--clay-text); font-size: .85rem; }

/* ---- Made to measure ---- */
.mtm { padding-block: clamp(4rem, 9vw, 7rem); }
.mtm .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.mtm-copy .eyebrow { margin-bottom: 1.1rem; }
.mtm-copy h2 { margin-bottom: 1.4rem; }
.mtm-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; max-width: 52ch; }
.mtm-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.piece-mtm { margin-top: .6rem; }
.mtm-media { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 80px -50px rgba(42,33,30,.5); }
.mtm-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* ---- Accessories (home) ---- */
.acc { padding-block: clamp(4rem, 9vw, 8rem) 0; }
.acc-grid { grid-template-columns: repeat(5, 1fr); }

/* ---- Gifting ---- */
.gift { background: var(--ivory); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.gift-blossom { width: 110px; margin: 0 auto 1.4rem; opacity: .9; }
.gift .eyebrow { margin-bottom: 1rem; }
.gift p { max-width: 54ch; margin: 1.2rem auto 0; color: var(--ink-soft); }

/* ---- Enquire ---- */
.enquire { background: var(--clay); color: var(--ivory); padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.enquire-inner { max-width: 760px; margin-inline: auto; }
.enquire h2 { margin-block: 1rem 1.4rem; }
.enquire .section-lede { margin-inline: auto; }
.enquire-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.6rem; }
.enquire .btn-solid { background: var(--ivory); color: var(--clay); border-color: var(--ivory); }
.enquire .btn-solid:hover { background: var(--paper); color: var(--clay-deep); }
.enquire .btn-line { color: var(--ivory); border-color: rgba(241,232,223,0.5); }
.enquire .btn-line:hover { background: var(--ivory); color: var(--clay); border-color: var(--ivory); }
.enquire-note { margin-top: 1.8rem; font-size: .95rem; color: rgba(241,232,223,0.85); }
.enquire-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241,232,223,.55); transition: text-decoration-color .3s; }
.enquire-note a:hover { text-decoration-color: var(--ivory); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: var(--ivory); overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.5rem,5vw,4rem); align-items: start; }
.footer-logo { height: 72px; margin-bottom: 1.4rem; }
.footer-brand .brand-ar { color: var(--ivory); display: none; font-size: 1.35rem; margin-bottom: .8rem; }
html[lang="ar"] .footer-brand .brand-ar { display: block; }
.footer-tagline { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: rgba(241,232,223,0.82); max-width: 30ch; }
html[lang="ar"] .footer-tagline { font-style: normal; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a { color: rgba(241,232,223,0.78); text-decoration: none; font-size: .78rem; letter-spacing: var(--ls-md); text-transform: uppercase; transition: color .3s; }
html[lang="ar"] .footer-nav a { letter-spacing: 0; font-size: 1rem; }
.footer-nav a:hover { color: var(--ivory); }
.footer-meta { text-align: end; font-size: .85rem; color: rgba(241,232,223,0.55); }
.footer-meta p { margin-bottom: .4rem; }
.footer-meta a { color: rgba(241,232,223,0.78); text-decoration: none; transition: color .3s; }
.footer-meta a:hover { color: var(--ivory); }
.footer-handle { color: rgba(241,232,223,0.9) !important; letter-spacing: .03em; }

/* ---- Piece page ---- */
.piece-top { padding-block: .4rem 1.6rem; }
.piece-back { display: inline-flex; align-items: center; gap: .6em; font-size: .74rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color .3s; animation: heroRise .8s var(--ease) both; }
html[lang="ar"] .piece-back { letter-spacing: .03em; font-size: .95rem; }
.piece-back:hover { color: var(--clay-text); }
.piece-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(3rem,6vw,5rem); }
.piece-gallery { display: flex; flex-direction: column; gap: clamp(.8rem, 1.5vw, 1.4rem); animation: heroRise .9s var(--ease) .1s both; }
.piece-photo { overflow: hidden; border-radius: 2px; background: var(--ivory); aspect-ratio: 3/4; box-shadow: 0 40px 80px -50px rgba(42,33,30,.35); }
.piece-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.piece-body { max-width: 560px; animation: heroRise .9s var(--ease) .25s both; }
@media (min-width: 1001px) { .piece-body { position: sticky; top: 110px; } }
.piece-collection { display: inline-block; text-decoration: none; margin-bottom: .9rem; }
.piece-name { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.1rem; }
.piece-desc { color: var(--ink-soft); margin-bottom: 1.8rem; font-size: 1.05rem; }
.piece-desc-ar { font-family: "Amiri", serif; font-size: 1.05rem; line-height: 1.9; margin-top: -1rem; }
.tone-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-inline-end: .45em; border: 1px solid rgba(0,0,0,.12); vertical-align: middle; }

/* not-found (bad ?p= links) */
.piece-notfound { text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter); grid-column: 1 / -1; }
.piece-notfound h1 { margin-bottom: 1rem; }
.piece-notfound p { color: var(--ink-soft); margin-bottom: 2rem; }

/* size selector */
.size-block { margin-bottom: 1.8rem; }
.size-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.size-label { font-size: .72rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); }
html[lang="ar"] .size-label { letter-spacing: .02em; font-size: .92rem; }
.size-guide-toggle { background: none; border: none; cursor: pointer; font-family: var(--body); font-size: .72rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--clay-text); border-bottom: 1px solid var(--clay); padding: 0 0 .2rem; transition: color .3s; }
html[lang="ar"] .size-guide-toggle { letter-spacing: .02em; font-size: .92rem; }
.size-guide-toggle:hover { color: var(--clay-deep); }
.size-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.size-btn { min-width: 52px; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-family: var(--body); font-weight: 400; font-size: .82rem; letter-spacing: var(--ls-sm); color: var(--ink); cursor: pointer; transition: all .3s var(--ease); }
.size-btn:hover { border-color: var(--clay); color: var(--clay-text); }
.size-btn.active { background: var(--clay); border-color: var(--clay); color: var(--ivory); }

/* size guide table — dark header, ivory rows */
.size-guide { margin-top: 1.2rem; animation: heroRise .5s var(--ease) both; }
.size-guide table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-guide th { background: var(--ink); color: var(--ivory); font-family: var(--body); font-weight: 400; font-size: .7rem; letter-spacing: var(--ls-sm); text-transform: uppercase; padding: .8rem .5rem; }
html[lang="ar"] .size-guide th { letter-spacing: .02em; font-size: .88rem; }
.size-guide td { text-align: center; padding: .75rem .5rem; border-bottom: 1px solid var(--line); background: var(--ivory); font-family: var(--display); font-size: 1.05rem; }
.size-guide td:first-child { font-weight: 600; }
.size-note { font-size: .8rem; color: var(--ink-soft); margin-top: .7rem; }

/* fabric & care + good-to-know accordions */
.piece-extra { border-top: 1px solid var(--line); margin-top: 1.6rem; }
.piece-extra details { border-bottom: 1px solid var(--line); }
.piece-extra summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .95rem 0; font-size: .72rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink); }
.piece-extra summary::-webkit-details-marker { display: none; }
.piece-extra summary::after { content: "+"; color: var(--clay-text); font-size: 1.05rem; line-height: 1; }
.piece-extra details[open] summary::after { content: "–"; }
html[lang="ar"] .piece-extra summary { letter-spacing: .02em; font-size: .92rem; }
.piece-extra .pe-body { padding: 0 0 1.1rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
.pe-body a { color: var(--clay-text); text-underline-offset: 2px; }

/* sticky order bar (mobile piece pages) */
.order-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 950; display: none; align-items: center; gap: 1rem; padding: .7rem var(--gutter); padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); background: rgba(252,250,247,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.order-bar .ob-name { font-family: var(--display); font-size: 1rem; line-height: 1.25; flex: 1; }
.order-bar .btn { padding: .8rem 1.3rem; width: auto; }

/* prev / next pager */
.piece-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-bottom: clamp(3rem,6vw,5rem); }
.pager-link { background: var(--paper); padding: clamp(1.4rem,3vw,2.2rem) var(--gutter); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; transition: background .4s; }
.pager-link:hover { background: var(--ivory); }
.pager-link.next { text-align: end; align-items: flex-end; }
.pager-dir { font-size: .68rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); }
html[lang="ar"] .pager-dir { letter-spacing: .03em; font-size: .88rem; }
.pager-name { font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--clay-text); }

.spec { border-top: 1px solid var(--line); margin-bottom: 1.8rem; }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .72rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); }
html[lang="ar"] .spec dt { letter-spacing: .02em; font-size: .92rem; }
.spec dd { font-size: .98rem; text-align: end; }
.modal-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; line-height: 1.6; }

/* ============================================================
   Made-to-measure order page
   ============================================================ */
.order-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.order { max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem); display: flex; flex-direction: column; gap: clamp(2.4rem, 5vw, 4rem); }
.order-narrow { width: 100%; max-width: 760px; margin-inline: auto; }
.measure-wrap { width: 100%; max-width: 1180px; margin-inline: auto; }

.order-section { border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 3vw, 2rem); }
.order-step { display: flex; align-items: baseline; gap: .7rem; font-size: .72rem; letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--ink); margin-bottom: 1.4rem; }
html[lang="ar"] .order-step { letter-spacing: .06em; font-size: .95rem; }
.order-step-n { font-family: var(--display); font-size: 1rem; color: var(--clay-text); letter-spacing: 0; }
.order-step .field-optional { margin-inline-start: auto; }
.order-step-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.order-step-row .order-step { margin-bottom: 0; }

/* fields */
.field { margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }
.field-label { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; font-size: .74rem; letter-spacing: var(--ls-sm); text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.lbl-ar { font-style: normal; font-family: "Amiri", serif; font-size: .98rem; color: var(--ink-soft); letter-spacing: 0; text-transform: none; margin-inline-start: auto; }
html[lang="ar"] .field-label { letter-spacing: .02em; font-size: .95rem; }
.field-optional { font-size: .64rem; letter-spacing: .1em; color: var(--clay-text); text-transform: uppercase; font-style: italic; }
html[lang="ar"] .field-optional { letter-spacing: 0; font-size: .82rem; font-style: normal; }
.field-hint { display: block; font-size: .74rem; color: var(--ink-soft); margin-top: .4rem; line-height: 1.5; }

.input {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(42,33,30,.4); }
.input:hover { border-color: rgba(42,33,30,.28); }
.input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180,109,88,.12); }
textarea.input { resize: vertical; min-height: 3.2rem; line-height: 1.6; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; inset-inline-end: 1rem; top: 50%; width: .55rem; height: .55rem; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select.input { cursor: pointer; padding-inline-end: 2.4rem; }

.input-unit { position: relative; display: flex; align-items: center; }
.input-unit .input { padding-inline-end: 3rem; }
.unit-suffix { position: absolute; inset-inline-end: 1rem; font-size: .8rem; color: var(--ink-soft); pointer-events: none; }

/* selected piece card */
.order-piece { display: flex; gap: 1.1rem; align-items: center; margin-top: 1.2rem; padding: .9rem; background: var(--ivory); border-radius: 3px; }
.order-piece img { width: 72px; height: 92px; object-fit: cover; object-position: 50% 18%; border-radius: 2px; flex: 0 0 auto; }
.order-piece-info h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.order-piece-info p { font-size: .8rem; color: var(--ink-soft); margin-bottom: .5rem; }
.order-piece-info .link-underline { font-size: .68rem; padding-bottom: .25rem; }

/* toggles */
.unit-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.unit-btn { background: none; border: none; cursor: pointer; font-family: var(--body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: .5rem 1rem; transition: background .3s, color .3s; }
.unit-btn.active { background: var(--ink); color: var(--ivory); }

/* measurements around the sketch */
.measure-diagram { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(270px, 400px) minmax(220px, 1fr); gap: clamp(1.6rem, 3.5vw, 3rem); align-items: center; margin-top: 2rem; }
.md-col { display: flex; flex-direction: column; gap: clamp(1.7rem, 3vw, 2.8rem); }
.md-col .measure-field { margin-bottom: 0; }
.md-sketch { margin: 0; }
.md-sketch svg { width: 100%; height: auto; display: block; }
.md-blossom { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); width: 130%; max-width: none; opacity: .16; pointer-events: none; z-index: -1; }
.measure-field .field-label { display: flex; align-items: center; gap: .5em; }
.m-num { display: inline-grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid var(--clay); border-radius: 50%; font-style: normal; font-size: .66rem; color: var(--clay-text); letter-spacing: 0; }
.m-arrow { color: var(--clay); transition: color .3s; }
.m-arrow > path:first-of-type { stroke: currentColor; stroke-width: 2; stroke-dasharray: 7 6; fill: none; }
.m-arrow .m-head { fill: currentColor; }
.m-arrow .m-dot { fill: currentColor; }
.m-arrow .m-chip { fill: var(--paper); stroke: currentColor; stroke-width: 1.5; }
.m-arrow .m-txt { fill: var(--ink); font-family: var(--body); font-size: 13px; text-anchor: middle; }
.m-arrow.active { color: var(--clay-deep); }
.m-arrow.active > path:first-of-type { stroke-width: 3.5; stroke-dasharray: none; }
.style-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.style-options .size-btn { min-width: 96px; }
.measure-help { font-size: .78rem; color: var(--ink-soft); margin-top: 1.6rem; line-height: 1.6; text-align: center; }

/* details */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.details-full { grid-column: 1 / -1; }

/* live preview + send */
.order-preview { background: var(--ivory); border-radius: 4px; padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.order-preview-title { font-size: .72rem; letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
html[lang="ar"] .order-preview-title { letter-spacing: .06em; font-size: .95rem; }
.order-bubble {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px 3px 3px 0;
  padding: 1.1rem 1.2rem; font-size: .9rem; line-height: 1.7; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; min-height: 6rem; max-height: 46vh; overflow-y: auto;
  font-family: var(--body);
}
html[lang="ar"] .order-bubble { border-radius: 3px 3px 0 3px; }
.order-preview-hint { font-size: .72rem; color: var(--ink-soft); margin: .8rem 0 1.2rem; line-height: 1.5; }
.order-send { gap: .6em; }
.order-send.is-disabled { opacity: .5; }
.order-hint { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: .9rem; transition: color .3s; }
.order-hint.ready { color: var(--clay-text); }
.order-reset { display: block; margin: 1rem auto 0; background: none; border: none; cursor: pointer; font-family: var(--body); font-size: .72rem; letter-spacing: var(--ls-sm); text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
html[lang="ar"] .order-reset { letter-spacing: 0; font-size: .9rem; }
.order-reset:hover { color: var(--clay-text); }

/* sticky mobile send */
.order-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 950; display: none; padding: .7rem var(--gutter); padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); background: rgba(252,250,247,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.order-sticky .btn { width: 100%; }
.order-send.is-disabled, .order-sticky .btn.is-disabled { pointer-events: auto; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .house-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .house-media { max-width: 520px; }
  .mtm .wrap { grid-template-columns: 1fr; }
  .mtm-media { max-width: 520px; }
  .atelier-grid { grid-template-columns: repeat(2, 1fr); }
  .acc-grid { grid-template-columns: repeat(3, 1fr); }
  .piece-layout { grid-template-columns: 1fr; }
  .piece-gallery { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .order-bar { display: flex; }
  body.has-orderbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.has-orderbar .float-ui { inset-block-end: calc(1.2rem + 68px); }
  /* order page */
  .measure-diagram { grid-template-columns: 1fr 1fr; }
  .md-sketch { grid-column: 1 / -1; grid-row: 1; width: min(72vw, 340px); margin-inline: auto; }
  .order-preview .order-send { display: none; }
  .order-preview-hint { margin-bottom: 0; }
  .order-sticky { display: block; }
  body[data-page="order"] { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-page="order"] .float-ui { inset-block-end: calc(1.2rem + 70px); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .lang-toggle { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
}
@media (max-width: 620px) {
  .measure-diagram { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .order-piece img { width: 60px; height: 78px; }
  .atelier-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .edit-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; }
  .edit-body h3 { font-size: 1.2rem; }
  .pc-name { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-meta { text-align: start; }
  .hero-actions, .enquire-actions { flex-direction: column; }
  .btn { width: 100%; }
  .order-bar .btn { width: auto; }
  .hero-side, .scroll-cue { display: none; }
  .hero { align-items: flex-end; }
  .hero-img { object-position: 60% 16%; }
  .hero-scrim { background: linear-gradient(0deg, rgba(28,22,20,0.86) 0%, rgba(28,22,20,0.5) 34%, rgba(28,22,20,0.22) 60%, rgba(28,22,20,0.12) 100%); }
  h1.hero-title { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .hero-inner { padding-bottom: 3rem; }
  .hero-lede { font-size: 1rem; }
  .hero-media.rotating .hero-slide { object-position: 55% 25%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal, .reveal.reveal-l, .reveal.reveal-r, .reveal.reveal-scale, .reveal.reveal-clip { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-title, .hero-lede, .hero-actions { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-media { transform: none !important; }
}

/* ============================================================
   Sub-pages (Collection · Piece · Story · Good to Know)
   ============================================================ */
body.subpage { background: var(--paper); }
body.subpage .site-header { background: rgba(252,250,247,0.92); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
body.subpage .nav a { color: var(--ink); }
body.subpage .lang-toggle { border-color: var(--line); color: var(--ink); }
body.subpage main { padding-top: clamp(84px, 10vw, 104px); }

/* Page hero (slim) */
.page-hero { text-align: center; padding: clamp(2rem,5vw,4rem) var(--gutter) clamp(2.5rem,5vw,4rem); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem,5vw,4.2rem); }
.page-hero p { max-width: 54ch; margin: 1.2rem auto 0; color: var(--ink-soft); }

/* "View all" link block under featured */
.view-all { text-align: center; padding: clamp(1rem,3vw,2.5rem) var(--gutter) clamp(3rem,6vw,5rem); }
.view-all .link-underline { font-size: .82rem; }

/* info pages (Good to Know · Story) */
.info-blocks { max-width: 820px; margin-inline: auto; padding: 0 var(--gutter) clamp(4rem,8vw,7rem); display: grid; gap: clamp(2rem,4vw,3rem); }
.info-block h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin-bottom: .8rem; }
.info-block p { color: var(--ink-soft); margin-bottom: .8rem; }
.story-media { max-width: 1000px; margin: 0 auto clamp(2rem,5vw,4rem); padding-inline: var(--gutter); }
.story-media img { border-radius: 2px; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 18%; }
.process { max-width: 1000px; margin-inline: auto; padding-inline: var(--gutter); margin-bottom: clamp(4rem,8vw,7rem); display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process > div { background: var(--paper); padding: 1.4rem; }
.process h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: .5rem; }
.process p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 900px) {
  body.subpage .nav { display: none; }
}
@media (max-width: 620px) {
  .brand-logo { height: 56px; }
}

/* ============================================================
   Editorial · Quotes · Instagram · Floating UI · Recently viewed
   ============================================================ */

/* ---- Editorial masonry ---- */
.editorial { padding-block: clamp(4rem, 9vw, 8rem) clamp(2rem, 4vw, 3rem); }
.masonry { columns: 3; column-gap: clamp(1rem, 2vw, 1.8rem); }
.m-tile { position: relative; display: block; break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.8rem); overflow: hidden; border-radius: 2px; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.1s var(--ease); }
.m-tall { aspect-ratio: 3 / 4.6; }
.m-sq   { aspect-ratio: 1 / 1; }
.m-port { aspect-ratio: 3 / 4; }
.m-tile:hover img { transform: scale(1.05); }
.m-name {
  position: absolute; inset-inline-start: .9rem; bottom: .9rem;
  font-size: .66rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ivory);
  background: rgba(28,22,20,.5); backdrop-filter: blur(3px); padding: .5rem .9rem; border-radius: 2px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
html[lang="ar"] .m-name { letter-spacing: .03em; font-size: .85rem; }
.m-tile:hover .m-name { opacity: 1; transform: none; }
.editorial-handle { text-align: end; font-size: .74rem; letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--ink-soft); padding-top: 1.2rem; }
html[lang="ar"] .editorial-handle { letter-spacing: .05em; }

/* ---- Quotes ---- */
.quotes { background: var(--ivory); padding-block: clamp(4rem, 9vw, 8rem); }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quote-card { background: var(--ivory); padding: clamp(1.8rem, 3vw, 2.6rem); margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.quote-card blockquote { font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); }
html[lang="ar"] .quote-card blockquote { font-style: normal; }
.quote-card blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; color: var(--ink-soft); margin-bottom: .7rem; }
html[lang="ar"] .quote-card blockquote::before { content: "«"; }
.quote-card figcaption { margin-top: auto; font-size: .72rem; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--ink-soft); }
html[lang="ar"] .quote-card figcaption { letter-spacing: .04em; font-size: .9rem; }

/* ---- Instagram strip ---- */
.ig { padding-block: clamp(4rem, 9vw, 8rem) 0; }
.ig .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1s var(--ease); }
.ig-tile:hover img { transform: scale(1.06); }
.ig-ic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ivory); background: rgba(42,33,30,.45); opacity: 0; transition: opacity .4s var(--ease); }
.ig-tile:hover .ig-ic { opacity: 1; }
.ig .view-all { padding-block: clamp(2rem, 4vw, 3rem); }

/* ---- Floating UI (WhatsApp + wishlist) ---- */
.float-ui { position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.float-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(42,33,30,.55);
  transition: background .3s;
  animation: fadeInBtn .8s var(--ease) both;
}
@keyframes fadeInBtn { from { opacity: 0; } to { opacity: 1; } }
.float-wa { background: var(--clay); color: var(--ivory); animation-delay: .4s; }
.float-wa:hover { background: var(--clay-deep); }
.float-wish { background: var(--paper); color: var(--clay-text); border: 1px solid var(--line); animation-delay: .55s; }
.float-wish.has-items, .float-wish[aria-expanded="true"] { color: var(--clay-deep); }
.wish-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding-inline: 5px;
  display: grid; place-items: center; border-radius: 100px; background: var(--ink); color: var(--ivory);
  font-size: .68rem; font-family: var(--body);
}
.wish-panel {
  width: min(330px, 86vw); background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(42,33,30,.5); padding: 1.3rem; animation: heroRise .4s var(--ease) both;
}
.wish-panel-title { font-family: var(--display); font-size: 1.15rem; margin-bottom: 1rem; }
.wish-items { display: flex; flex-direction: column; gap: .7rem; max-height: 300px; overflow-y: auto; margin-bottom: 1rem; }
.wish-empty { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }
.wish-item { display: flex; align-items: center; gap: .7rem; }
.wish-item a { display: flex; align-items: center; gap: .7rem; flex: 1; text-decoration: none; color: var(--ink); }
.wish-item img { width: 44px; height: 56px; object-fit: cover; object-position: 50% 18%; border-radius: 2px; }
.wish-item span { font-family: var(--display); font-size: .98rem; }
.wish-x { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--ink-soft); transition: color .3s; padding: .2rem .4rem; }
.wish-x:hover { color: var(--clay-text); }
.wish-panel .btn.full { padding-block: .85rem; }

/* hearts */
.card-wish {
  position: absolute; top: .8rem; inset-inline-end: .8rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; display: grid; place-items: center; z-index: 2;
  background: rgba(252,250,247,.85); backdrop-filter: blur(3px); color: var(--ink);
  opacity: 0; transition: opacity .35s var(--ease), color .35s;
}
.product-card:hover .card-wish, .card-wish.active, .card-wish:focus-visible { opacity: 1; }
.card-wish:hover { color: var(--clay-text); }
.card-wish.active { color: var(--clay); }
.card-wish.active svg { fill: var(--clay); stroke: var(--clay); }
@media (hover: none) { .card-wish { opacity: 1; } }
.piece-actions { display: flex; gap: .6rem; margin-bottom: 0; }
.piece-actions .btn.full { flex: 1; }
.wish-btn {
  width: 54px; flex: 0 0 54px; border: 1px solid var(--line); border-radius: 2px; background: transparent;
  cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all .3s var(--ease);
}
.wish-btn:hover { border-color: var(--clay); color: var(--clay-text); }
.wish-btn.active { background: var(--clay); border-color: var(--clay); color: var(--ivory); }
.wish-btn.active svg { fill: var(--ivory); }

/* ---- Recently viewed ---- */
.recent { padding-bottom: clamp(3rem, 6vw, 5rem); }
.recent .eyebrow { margin-bottom: 1.4rem; }
.recent-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.recent-card { display: block; text-decoration: none; color: var(--ink); }
.recent-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 18%; border-radius: 2px; transition: transform .8s var(--ease); }
.recent-card:hover img { transform: scale(1.03); }
.recent-card span { display: block; padding-top: .7rem; font-family: var(--display); font-size: 1rem; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .masonry { columns: 2; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .recent-row { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .float-ui { inset-block-end: 1rem; inset-inline-end: 1rem; }
  .float-btn { width: 50px; height: 50px; }
  body.has-orderbar .float-ui { inset-block-end: calc(1rem + 64px); }
}
