/* Lusitania Casa — main stylesheet
   Logical properties throughout so Arabic (dir="rtl") mirrors automatically. */

/* ---------- tokens ---------- */
:root {
	/* Brand book "Earthy Whisper" palette (04 Aug 2025) */
	--alabaster: #ECE7E0;     /* backgrounds */
	--charcoal: #413D33;      /* typography, shadow base */
	--stone: #968778;         /* accent tone, text backgrounds */
	--terra: #B86A54;         /* callouts, edge trims */
	--dusty-rose: #B4A38D;    /* logo, decorative headline accents (too light for text: 2:1) */
	--sienna: #7A543B;        /* content backgrounds; headline colour (5.4:1 on Alabaster) */
	--fawn: #D3BCA5;          /* organic accents */
	--slate: #B7ABA0;         /* luxury detailing, hairlines */

	/* semantic roles */
	--bg: #F5F2ED;             /* Concept B ground */
	--bg-soft: #EFEBE4;        /* panel */
	--bg-sand: #ECE7E0;        /* stage (brand book Alabaster) */
	--surface: #FAF8F5;
	--img-bg: #ECE7E0;         /* product photos sit on the stage colour */
	--headline: #2A2722;      /* Concept B: headings in ink */
	--brand: var(--sienna);   /* links, eyebrows, active states */
	--brand-ink: #5E3F2B;
	--brand-tint: #E8DCD1;
	--ink: #2A2722;
	--ink-2: #5A5448;
	--muted: #6B645A;          /* 5.2:1 on ground */
	--line: rgba(65, 61, 51, .16);
	--line-strong: #8C7D6E;   /* form/control borders, 3:1 */
	--gold: var(--terra);
	--stock: #5B6B3A;
	--error: #9E3B2A;
	--white: #FFFFFF;

	--font-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
	--font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-display: clamp(3rem, 1.8rem + 5.4vw, 6.6rem);
	--fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
	--fs-h2: clamp(2.1rem, 1.5rem + 2.3vw, 3.5rem);
	--fs-h3: clamp(1.5rem, 1.25rem + .9vw, 2rem);
	--fs-statement: clamp(1.85rem, 1.3rem + 2.1vw, 3.1rem);
	--fs-lead: clamp(1.03rem, 1rem + .25vw, 1.15rem);

	--gutter: clamp(18px, 4vw, 56px);
	--container: 1392px;       /* 1280 content + two 56px gutters */
	--radius: 0;               /* Concept B is square */
	--radius-lg: 0;
	--header-h: 84px;
	--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;
	--ease-out: cubic-bezier(.22, .61, .36, 1);
	--ease-in: cubic-bezier(.55, .06, .68, .19);
	--dur-1: 160ms; --dur-2: 260ms; --dur-3: 520ms;
	--z-header: 40; --z-float: 50; --z-mobile: 60; --z-modal: 100; --z-toast: 120;
	color-scheme: light;
}

html[lang="ar"] {
	--font-display: "Amiri", "Cormorant Garamond", serif;
	--font-ui: "IBM Plex Sans Arabic", "Montserrat", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 1rem;
	line-height: 1.7;
	letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: var(--bg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--brand); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); transition: top var(--dur-1); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.code { font-family: var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
.rounded { border-radius: var(--radius-lg); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
html[dir="rtl"] .icon-chevron { transform: scaleX(-1); }

/* ---------- type ---------- */
.eyebrow {
	font-family: var(--font-ui);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--brand);
	margin: 0 0 var(--sp-3);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .875rem; }
.eyebrow--light { color: rgba(255, 255, 255, .86); }
.section-head .eyebrow::before, .page-hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--terra); vertical-align: middle; margin-inline-end: 12px; }
.page-hero--image .eyebrow::before { background: var(--fawn); }
.eyebrow--link { display: inline-block; text-decoration: none; }
.eyebrow--link:hover { text-decoration: underline; }
.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 500; line-height: 1; letter-spacing: 0; }
.page-title { font-family: var(--font-display); font-size: var(--fs-h1); color: var(--headline); }
.section-title { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--headline); }
.h-sm { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--headline); margin-bottom: var(--sp-5); }
.statement { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: var(--fs-statement); line-height: 1.25; color: var(--headline); margin-bottom: var(--sp-6); }
.statement-sm { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--headline); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.lead-serif { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] .display, html[lang="ar"] .page-title, html[lang="ar"] .section-title, html[lang="ar"] .statement { line-height: 1.35; letter-spacing: 0; }

.prose { color: var(--ink-2); font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--headline); margin-top: 2em; }
.prose h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--brand); }
.prose blockquote { margin: 1.5em 0; padding-inline-start: 1.2em; border-inline-start: 2px solid var(--gold); font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: 12px 26px;
	border: 1px solid transparent; border-radius: var(--radius);
	font-family: var(--font-ui); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; touch-action: manipulation;
	transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1), border-color var(--dur-1), transform var(--dur-1);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--charcoal); color: var(--alabaster); }
.btn--primary:hover { background: #2B2822; }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: var(--alabaster); }
.btn--light { background: var(--bg-soft); color: var(--brand); }
.btn--light:hover { background: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--bg-soft); border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.center .btn-row { justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: transparent; color: inherit; position: relative;
	transition: background-color var(--dur-1);
}
.icon-btn:hover { background: rgba(31, 30, 27, .07); }
.icon-btn--round { background: var(--surface); border: 1px solid var(--line); color: var(--brand); }
.icon-btn--round:hover { background: var(--brand); color: var(--bg-soft); }
.icon-btn--light { color: var(--white); }
.icon-btn--light:hover { background: rgba(255, 255, 255, .16); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; color: var(--brand); font-weight: 600; font-size: .9375rem; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-4px); }
.pill { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.pill:hover { border-color: var(--brand); }
.pill--quiet { background: transparent; color: var(--muted); }
.pill .icon { width: 1em; height: 1em; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: var(--z-header);
	background: rgba(236, 231, 224, .94);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: var(--sp-5); }
.brand { display: block; justify-self: center; grid-column: 2; }
.brand__logo { height: 52px; width: auto; }
.brand__logo--light { display: none; }
.nav ul { display: flex; gap: clamp(12px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav--start { grid-column: 1; grid-row: 1; }
.header-end { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: .9375rem; font-weight: 500; text-decoration: none; letter-spacing: .01em; position: relative; }
.nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 2px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Amiri", sans-serif; font-size: 1rem; }
.lang-switch[lang="en"] { font-family: "Montserrat", sans-serif; }
.project-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--bg-soft); font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; }
.nav-toggle { display: none; }

/* transparent header over the hero */
.has-hero .site-header:not(.is-solid) { position: fixed; inset-inline: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; color: var(--white); }
.has-hero .site-header:not(.is-solid) .brand__logo--dark { display: none; }
.has-hero .site-header:not(.is-solid) .brand__logo--light { display: block; }
.has-hero .site-header:not(.is-solid) .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.has-hero .site-header:not(.is-solid) .project-count { background: var(--bg-soft); color: var(--brand); }
.has-hero .site-header.is-solid { position: fixed; inset-inline: 0; }

.mega { border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); box-shadow: 0 24px 40px -24px rgba(31, 30, 27, .25); animation: drop var(--dur-2) var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__inner { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-8); padding-block: var(--sp-7); }
.mega__inner--cols { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-6); }
.mega__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.mega-tile { display: grid; gap: 6px; text-decoration: none; }
.mega-tile__img { aspect-ratio: 4 / 3; background: var(--img-bg); border-radius: var(--radius); overflow: hidden; }
.mega-tile__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10%; transition: transform var(--dur-3) var(--ease-out); }
.mega-tile:hover img { transform: scale(1.05); }
.mega-tile__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--headline); }
.mega-tile__tag { font-size: .8125rem; color: var(--muted); }
.mega__head { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--headline); text-decoration: none; margin-bottom: var(--sp-3); }
.mega__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.mega__list a { display: block; padding: 5px 0; font-size: .9375rem; text-decoration: none; }
.mega__list a:hover { color: var(--brand); text-decoration: underline; }
.mega__list .muted { font-size: .8125rem; }

.search-panel { border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); }
.search-form { display: flex; align-items: center; gap: var(--sp-3); min-height: 72px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); padding: 10px 0; }
.search-form input:focus { outline: none; }
.search-form:focus-within { box-shadow: inset 0 -2px 0 var(--brand); }

.mobile-nav { position: fixed; inset: 0; z-index: var(--z-mobile); background: var(--bg); padding-top: var(--header-h); overflow-y: auto; animation: fadein var(--dur-2) var(--ease-out); }
.mobile-nav__inner { padding: var(--sp-5) var(--gutter) var(--sp-8); display: flex; flex-direction: column; min-height: 100%; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list a, .mobile-nav__list summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); text-decoration: none; list-style: none; cursor: pointer; }
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list details[open] summary .icon { transform: rotate(180deg); }
.mobile-nav__list details ul { list-style: none; padding: 0 0 var(--sp-4); margin: 0; }
.mobile-nav__list details a { font-family: var(--font-ui); font-size: 1.0625rem; min-height: 44px; color: var(--ink); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--sp-7); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { z-index: calc(var(--z-mobile) + 1); background: var(--bg) !important; color: var(--ink) !important; }
body.nav-open .brand__logo--dark { display: block !important; }
body.nav-open .brand__logo--light { display: none !important; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 144px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--sand { background: var(--bg-sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.section-head .lead { margin-top: var(--sp-4); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--brand-ink); }
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; transition: opacity 1400ms var(--ease-out); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.hero__panel { margin: 0; overflow: hidden; position: relative; }
.hero__panel:only-child { grid-column: 1 / -1; }
.hero__slide.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active .hero__img { animation: kenburns 9s linear forwards; }
.hero__slide.is-active .hero__panel:nth-child(2) .hero__img { animation-name: kenburns-alt; animation-delay: -1.5s; }
.hero__slide.is-active .hero__panel:nth-child(3) .hero__img { animation-delay: -3s; }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.0) translate3d(-1.5%, -1%, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.0) translate3d(1%, 0, 0); } to { transform: scale(1.08) translate3d(0, -1.5%, 0); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 18, .55) 0%, rgba(20, 24, 18, .05) 30%, rgba(20, 24, 18, .15) 55%, rgba(20, 24, 18, .72) 100%); }
.hero__content { position: relative; padding-bottom: clamp(88px, 12vh, 140px); padding-top: calc(var(--header-h) + 40px); }
.hero__content .display { max-width: 12ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .2); }
.hero__sub { font-size: var(--fs-lead); max-width: 46ch; margin-block: var(--sp-5) var(--sp-6); color: rgba(255, 255, 255, .92); }
.hero__controls { position: absolute; inset-inline: 0; bottom: 96px; display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-4); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots span { width: 28px; height: 2px; background: rgba(255, 255, 255, .4); transition: background-color var(--dur-2); }
.hero__dots span.is-active { background: var(--white); }

/* ---------- intro & triad ---------- */
.intro .statement { max-width: 24ch; margin-inline: auto; }
.triad { background: var(--sienna); color: var(--alabaster); }
.triad--light { background: var(--bg-sand); color: var(--headline); }
.triad__inner { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); min-height: 120px; padding-block: var(--sp-6); flex-wrap: wrap; text-align: center; }
.triad__inner p { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); }
.triad__inner span { width: 40px; height: 1px; background: var(--dusty-rose); }

/* ---------- collection features ---------- */
.coll-feature { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); }
.coll-card { position: relative; display: block; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--img-bg); color: var(--ink); }
.coll-card--lead { grid-row: span 2; }
.coll-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.coll-card--lead .coll-card__media { aspect-ratio: auto; height: 100%; min-height: 520px; }
.coll-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6% 8% 30%; mix-blend-mode: multiply; transition: transform 900ms var(--ease-out); }
.coll-card:hover .coll-card__media img { transform: scale(1.04); }
.coll-card__body { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 4px; padding: clamp(20px, 3vw, 36px); }
.coll-card__name { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); color: var(--headline); line-height: 1; }
.coll-card__tag { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-2); }
.coll-card__more { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--brand); }

.coll-list { display: grid; gap: clamp(40px, 6vw, 88px); }
.coll-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; text-decoration: none; }
.coll-row--flip .coll-row__media { order: 2; }
.coll-row__media { aspect-ratio: 5 / 4; background: var(--img-bg); border-radius: var(--radius-lg); overflow: hidden; }
.coll-row__media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: transform 900ms var(--ease-out); }
.coll-row:hover .coll-row__media img { transform: scale(1.04); }
.coll-row__body { display: grid; gap: var(--sp-3); }
.coll-row__name { font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4.5rem); line-height: 1; color: var(--headline); }
.coll-row__tag { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.coll-row__desc { color: var(--ink-2); max-width: 46ch; }

/* ---------- category tiles ---------- */
.cat-tiles, .cer-grid, .proj-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 24px); }
.cat-tiles { grid-template-columns: repeat(3, 1fr); }
.cat-tile__media { aspect-ratio: 4 / 5 !important; }
.cat-tile__media img { mix-blend-mode: multiply; } /* lets white-background product shots sit on the tile tone */
.cat-tile { display: block; text-decoration: none; }
.cat-tile__media { display: block; aspect-ratio: 3 / 4; background: var(--img-bg); border-radius: var(--radius-lg); overflow: hidden; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__name { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-3); font-family: var(--font-display); font-size: 1.5rem; color: var(--headline); }

.cer-grid { grid-template-columns: repeat(2, 1fr); }
.cer-card__media { aspect-ratio: 3 / 2 !important; }
.cer-card { display: grid; gap: 4px; text-decoration: none; }
.cer-card__media { aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-3); }
.cer-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cer-card:hover img { transform: scale(1.05); }
.cer-card__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--headline); }
.cer-card__tag { font-size: .9375rem; color: var(--ink-2); }

/* ---------- product cards & grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2.4vw, 36px); }
.grid--4 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; animation: fadein var(--dur-2) var(--ease-out); }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--img-bg); border-radius: var(--radius-lg); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform 700ms var(--ease-out); }
.card:hover .card__img { transform: scale(1.05); }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--line-strong); }
.card__body { padding-top: var(--sp-4); display: grid; gap: 2px; }
.card__body .eyebrow { margin-bottom: 2px; font-size: .6875rem; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: underline; }
.card__meta { margin: 0; font-size: .8125rem; color: var(--muted); }
.card .swatches { margin-top: var(--sp-2); }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.badge--stock { background: var(--surface); color: var(--stock); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.badge--stock::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--stock); margin-inline-end: 6px; vertical-align: 1px; }

.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), inset 0 2px 3px rgba(255, 255, 255, .35); flex: none; display: inline-block; }
.swatch--none { background: conic-gradient(#c9cccf, #d4af5a, #232323, #b2aa9d, #c9cccf); }
.swatch-more { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* rail */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: max(240px, calc((100% - 2 * 32px) / 3)); gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-5); }

/* ---------- founders, projects, CTA ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--center { align-items: center; }
.split__media img { width: 100%; }
.quote { margin: 0 0 var(--sp-6); }
.quote p { font-family: var(--font-display); font-size: var(--fs-statement); line-height: 1.3; color: var(--headline); }
.quote p::before { content: "“"; color: var(--dusty-rose); } .quote p::after { content: "”"; color: var(--dusty-rose); }
html[lang="ar"] .quote p::before { content: "«"; } html[lang="ar"] .quote p::after { content: "»"; }
.quote footer { margin-top: var(--sp-4); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.award { display: inline-flex; align-items: center; gap: .5em; font-size: .875rem; color: rgba(245, 240, 231, .82); }
.award--dark { color: var(--brand); margin-bottom: var(--sp-5); }

.proj-grid { grid-template-columns: repeat(3, 1fr); }
.proj-grid--large { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.proj-card { display: grid; gap: 4px; text-decoration: none; }
.proj-card__media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-sand); margin-bottom: var(--sp-3); }
.proj-grid--large .proj-card__media { aspect-ratio: 3 / 2; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.proj-card:hover img { transform: scale(1.04); }
.proj-card__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--headline); }
.proj-card__meta { font-size: .875rem; color: var(--muted); }
.proj-video { margin-top: var(--sp-7); display: flex; justify-content: center; }
.proj-video video { width: min(420px, 100%); aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg); background: var(--brand-ink); }
.proj-video--wide video { width: min(960px, 100%); aspect-ratio: auto; object-fit: contain; }
.supplied { padding: clamp(20px, 3vw, 32px); background: var(--surface); border-radius: var(--radius-lg); }
.supplied--after { margin-top: clamp(32px, 4vw, 56px); }
.supplied__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 var(--sp-6); }
.supplied__list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.proj-credit { margin-top: var(--sp-4); font-size: .8125rem; color: var(--muted); }
.proj-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); }

.cta-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cta-card { position: relative; display: flex; align-items: flex-end; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--white); isolation: isolate; }
.cta-card--green { background: var(--sienna); }
.cta-card--image { background: var(--brand-ink); }
.cta-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out); }
.cta-card--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 18, .15) 0%, rgba(20, 24, 18, .55) 45%, rgba(20, 24, 18, .85) 100%); }
.cta-card:hover .cta-card__img { transform: scale(1.04); }
.cta-card__body { display: grid; gap: var(--sp-3); justify-items: start; padding: clamp(24px, 4vw, 48px); }
.cta-card__title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.1; max-width: 16ch; }
.cta-card__text { max-width: 42ch; color: rgba(255, 255, 255, .88); margin-bottom: var(--sp-3); }

/* ---------- page hero ---------- */
.page-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero__inner { display: grid; justify-items: start; }
.page-hero__intro { margin-top: var(--sp-4); }
.page-hero--image { position: relative; padding: 0; min-height: min(72vh, 680px); display: flex; align-items: flex-end; color: var(--white); background: var(--brand-ink); }
.page-hero--image .page-hero__media { position: absolute; inset: 0; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 18, .1) 30%, rgba(20, 24, 18, .7)); }
.page-hero--image .page-hero__inner { position: relative; z-index: 1; padding-block: var(--sp-9) var(--sp-8); }
.page-hero--image .page-title, .page-hero--image .eyebrow, .page-hero--image .crumbs, .page-hero--image .lead { color: var(--white); }
.page-hero--image .crumbs a { color: rgba(255, 255, 255, .86); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 var(--sp-5); padding: 0; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- filters ---------- */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: rgba(236, 231, 224, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
.has-hero .filters { top: var(--header-h); }
.filters__inner { display: grid; gap: var(--sp-3); padding-block: var(--sp-3); }
.filter-group { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filter-group::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--bg-soft); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.filters__count { margin: 0 0 0 auto; margin-inline-start: auto; font-size: .875rem; color: var(--muted); }
.select-wrap select { min-height: 40px; padding: 8px 36px 8px 14px; padding-inline: 14px 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%232E4A2C' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: .875rem; }
html[dir="rtl"] .select-wrap select { background-position: left 12px center; }
.fin-filter { position: relative; }
.fin-filter summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: .875rem; cursor: pointer; list-style: none; }
.fin-filter summary::-webkit-details-marker { display: none; }
.fin-filter[open] summary { border-color: var(--brand); }
.fin-filter__panel { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; width: min(560px, 90vw); max-height: 60vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; padding: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 40px -20px rgba(31, 30, 27, .35); }
.fin-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: var(--radius); background: transparent; font-size: .875rem; text-align: start; }
.fin-opt:hover { background: var(--bg-soft); }
.fin-opt.is-active { background: var(--brand-tint); font-weight: 600; }
.fin-opt .swatch { width: 20px; height: 20px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: .875rem; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui { width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; transition: background-color var(--dur-1); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform var(--dur-2) var(--ease-out); }
.toggle input:checked + .toggle__ui { background: var(--brand); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
html[dir="rtl"] .toggle input:checked + .toggle__ui::after { transform: translateX(-16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.empty { padding: var(--sp-9) 0; text-align: center; display: grid; gap: var(--sp-4); justify-items: center; }
.browser { padding-bottom: var(--sp-10); }

/* ---------- product page ---------- */
.pdp { padding-top: clamp(20px, 3vw, 40px); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gallery__stage { position: relative; aspect-ratio: 1; background: var(--img-bg); border-radius: var(--radius-lg); overflow: hidden; }
.gallery__viewport { position: absolute; inset: 0; touch-action: pan-y; }
.gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.gallery__slide.is-active { opacity: 1; }
.gallery__img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; cursor: zoom-in; }
.gallery__slide--empty { display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; color: var(--line-strong); }
.gallery__tools { position: absolute; top: 16px; inset-inline-end: 16px; display: flex; gap: 8px; z-index: 3; }
.gallery__tools .pill { min-height: 44px; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; opacity: 0; transition: opacity var(--dur-2); }
.gallery__stage:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
.gallery__arrow--prev { inset-inline-start: 16px; }
.gallery__arrow--next { inset-inline-end: 16px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 76px; height: 76px; padding: 6px; border: 1px solid transparent; border-radius: var(--radius); background: var(--img-bg); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb.is-active { border-color: var(--brand); }
.gallery__sample { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(251, 248, 243, .94); border-radius: var(--radius-lg); box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .25); }
.gallery__sample-chip { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 6px 10px rgba(255, 255, 255, .35), inset 0 -6px 10px rgba(0, 0, 0, .12); }
.gallery__sample-text { display: grid; font-size: .8125rem; color: var(--ink-2); }
.gallery__sample-text strong { font-size: 1rem; color: var(--ink); }
.gallery__spin { position: absolute; inset: 0; z-index: 2; background: var(--img-bg); cursor: grab; touch-action: pan-y; }
.gallery__spin img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; user-select: none; pointer-events: none; }
.gallery__spin-hint { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }

.pdp__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--sp-5); }
.pdp__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.3rem); color: var(--headline); line-height: 1.12; margin-top: calc(var(--sp-3) * -1); }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); margin: 0; font-size: .875rem; color: var(--ink-2); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.dot--on { background: var(--stock); box-shadow: 0 0 0 4px rgba(91, 107, 58, .16); }
.finish-picker { border: 0; padding: var(--sp-5) 0 0; margin: 0; border-top: 1px solid var(--line); }
.finish-picker legend { padding: 0; margin-bottom: var(--sp-3); font-size: .9375rem; color: var(--ink-2); float: left; width: 100%; }
.finish-picker legend strong { color: var(--ink); font-weight: 600; }
.finish-picker__group + .finish-picker__group { margin-top: var(--sp-3); }
.finish-picker__fam { clear: both; margin: 0 0 6px; font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.finish-picker__opts { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
.fin-swatch { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.fin-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fin-swatch__chip { width: 34px; height: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), inset 0 4px 6px rgba(255, 255, 255, .35), inset 0 -4px 6px rgba(0, 0, 0, .1); transition: transform var(--dur-1) var(--ease-out); }
.fin-swatch:hover .fin-swatch__chip { transform: scale(1.06); }
.fin-swatch input:checked + .fin-swatch__chip { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand), inset 0 0 0 1px rgba(0, 0, 0, .16); }
.fin-swatch input:focus-visible + .fin-swatch__chip { outline: 2px solid var(--brand); outline-offset: 5px; }
.fin-swatch__stock { position: absolute; top: 3px; inset-inline-end: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--stock); border: 2px solid var(--bg); }
.pdp__actions { display: grid; gap: var(--sp-3); }
.link-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: .9375rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-wa:hover { text-decoration: underline; }
.link-wa .icon { color: #25D366; }
[data-save].is-saved { background: var(--brand-tint); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: 0; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.facts--stack { grid-template-columns: 1fr; padding-top: 0; border: 0; gap: var(--sp-5); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.facts dd { margin: 4px 0 0; }
.facts address { font-style: normal; }
html[lang="ar"] .facts dt { letter-spacing: 0; font-size: .875rem; }

.downloads { display: grid; gap: 2px; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color var(--dur-1); }
.doc:hover { background: var(--bg-soft); }
.doc .icon { color: var(--brand); }
.doc__label { font-weight: 500; }
.doc__meta { font-size: .75rem; color: var(--muted); }

.pdp-details { border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 96px); }
.pdp-details__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table th, .spec-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); padding-inline-end: var(--sp-4); }
.drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.drawing { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); cursor: zoom-in; }
.drawing img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.container > .h-sm { margin-top: var(--sp-8); }

.set__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
.set__item { flex: 1 1 220px; max-width: 300px; display: grid; gap: 4px; padding: var(--sp-5); background: var(--bg-soft); border-radius: var(--radius-lg); text-decoration: none; }
.set__img { aspect-ratio: 1; background: var(--img-bg); border-radius: var(--radius); margin-block: var(--sp-2); overflow: hidden; }
.set__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.set__name { margin: 0; font-weight: 500; }
.set__item .code { margin: 0; font-size: .8125rem; color: var(--muted); }
.set__plus { color: var(--brand); }
.set__cta { display: grid; gap: var(--sp-3); flex: 1 1 220px; max-width: 280px; }

.pdp-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-float); display: none; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 10px var(--gutter); padding-bottom: max(10px, env(safe-area-inset-bottom)); background: var(--bg-soft); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform var(--dur-2) var(--ease-out); }
.pdp-bar.is-visible { transform: none; }
.pdp-bar__info { display: grid; min-width: 0; font-size: .875rem; }
.pdp-bar__info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pdp-bar__info .code { font-size: .75rem; color: var(--muted); }

/* lightbox & modal */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 24, 18, .62); backdrop-filter: blur(3px); }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: var(--surface); }
.lightbox[open] { animation: fadein var(--dur-2) var(--ease-out); }
.lightbox__stage { width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: none; }
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage img { max-width: 92vw; max-height: 92vh; object-fit: contain; transform-origin: center; transition: transform var(--dur-2) var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lightbox__close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; background: var(--bg-soft); }
.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg); background: var(--bg-soft); }
.modal[open] { animation: rise var(--dur-2) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__inner { position: relative; padding: clamp(24px, 4vw, 40px); }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.modal__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--headline); margin-bottom: var(--sp-4); padding-inline-end: 44px; }
.enquiry-items { display: grid; gap: 8px; margin-bottom: var(--sp-5); }
.enquiry-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.enquiry-item img { width: 56px; height: 56px; object-fit: contain; background: var(--img-bg); border-radius: var(--radius); mix-blend-mode: multiply; }
.enquiry-item p { margin: 0; font-size: .875rem; line-height: 1.4; }
.enquiry-item .code { color: var(--muted); font-size: .8125rem; }

/* ---------- forms ---------- */
.panel { padding: clamp(20px, 3vw, 40px); background: var(--bg-soft); border-radius: var(--radius-lg); }
.section--sand .panel { background: var(--surface); }
.lc-form { display: grid; gap: var(--sp-4); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--surface); font-size: 1rem;
	transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122, 84, 59, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { margin: 0; font-size: .8125rem; color: var(--error); font-weight: 500; }
.hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 12px 16px; border-radius: var(--radius); background: #F6E4E0; color: var(--error); font-weight: 500; }
.form-summary:focus { outline: 2px solid var(--error); }
.form-foot { display: grid; gap: var(--sp-3); justify-items: start; }
.form-done { padding: var(--sp-5); border-radius: var(--radius); background: var(--brand-tint); color: var(--brand-ink); display: grid; gap: var(--sp-3); }
.form-done strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }

.slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; align-items: center; }
.slot { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: .875rem; font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: var(--brand); }
.slot[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--bg-soft); }
.slot:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* ---------- showroom, booking, catalogue, trade, project ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.visit__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); filter: grayscale(.4) sepia(.15); }
.soon { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-6); padding: 8px 14px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: .875rem; color: var(--ink-2); }
.booking { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.catalogue__cover img { box-shadow: 0 30px 60px -30px rgba(31, 30, 27, .45); }
.trade-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-5); }
.search-inline { display: flex; align-items: center; gap: 8px; padding-inline: 12px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.search-inline input { border: 0; background: transparent; min-height: 44px; min-width: 0; flex: 1; font-size: 1rem; }
.search-inline input:focus { outline: none; }
.search-inline:focus-within { border-color: var(--brand); }
.search-inline--grow { flex: 1 1 320px; }
form.search-inline { max-width: 520px; margin: var(--sp-6) auto; padding-inline-end: 4px; }
.table-wrap { overflow-x: auto; }
.trade-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.trade-table th { text-align: start; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.trade-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.trade-table td a { text-decoration: none; font-weight: 500; }
.trade-table td a:hover { text-decoration: underline; }
.trade-table__img img { width: 56px; height: 56px; object-fit: contain; background: var(--img-bg); border-radius: var(--radius); mix-blend-mode: multiply; }
.trade-table__files { display: flex; flex-wrap: wrap; gap: 6px; }
.trade-help { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }

.project { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.project__form { position: sticky; top: calc(var(--header-h) + 24px); }
.p-item { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--sp-4); align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.p-item__img { width: 96px; height: 96px; background: var(--img-bg); border-radius: var(--radius); overflow: hidden; }
.p-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.p-item__body { display: grid; gap: 4px; min-width: 0; }
.p-item__title { font-weight: 500; text-decoration: none; }
.p-item__meta { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-item__fields { display: flex; gap: var(--sp-3); align-items: end; flex-wrap: wrap; margin-top: 4px; }
.p-item__fields label { display: grid; gap: 2px; font-size: .75rem; color: var(--muted); }
.p-item__fields input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.p-item__fields input[type="number"] { width: 84px; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.qty-step button { width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; }
.qty-step input { width: 56px; min-height: 40px; border: 0 !important; text-align: center; background: transparent; -moz-appearance: textfield; }
.qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- footer, floating ---------- */
.site-footer { background: var(--charcoal); color: var(--alabaster); padding-top: clamp(56px, 7vw, 96px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.site-footer__brand img { width: 180px; margin-bottom: var(--sp-5); }
.site-footer__brand .lead-serif { max-width: 22ch; margin-bottom: var(--sp-5); }
.footer-head { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 240, 231, .7); margin-bottom: var(--sp-4); }
html[lang="ar"] .footer-head { letter-spacing: 0; font-size: .875rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; margin-bottom: var(--sp-3); }
.site-footer p { font-size: .9375rem; }
.muted-light { color: rgba(245, 240, 231, .7); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-5); border-top: 1px solid rgba(245, 240, 231, .18); font-size: .8125rem; color: rgba(245, 240, 231, .75); }
.site-footer__bottom p { font-size: inherit; margin: 0; }
.social { display: flex; gap: 8px; }

.wa-float { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px; z-index: var(--z-float); display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; padding-inline: 16px 20px; border-radius: 28px; background: var(--charcoal); color: var(--alabaster); text-decoration: none; font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45); }
.wa-float .icon { width: 26px; height: 26px; }
.toast { position: fixed; bottom: 96px; inset-inline-start: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--sp-4); padding: 12px 18px; border-radius: var(--radius-lg); background: var(--ink); color: var(--bg-soft); font-size: .9375rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: rise var(--dur-2) var(--ease-out); max-width: calc(100vw - 32px); }
html[dir="rtl"] .toast { transform: translateX(50%); }
.toast a, .toast button { color: var(--bg-soft); font-weight: 700; background: none; border: 0; text-decoration: underline; padding: 0; min-height: 32px; }


/* ---------- homepage: statement, picture mosaic (after Bongio), projects ---------- */
.home-statement { padding-bottom: clamp(48px, 6vw, 88px); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.mosaic__col { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.mosaic__col:nth-child(even) { margin-top: clamp(40px, 6vw, 96px); } /* staggered columns */
.mosaic__tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--img-bg); }
.mosaic__media { display: block; }
.mosaic__tile--room .mosaic__media { aspect-ratio: 4 / 5; }
.mosaic__tile--product .mosaic__media { aspect-ratio: 1; }
.mosaic__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.mosaic__tile--product .mosaic__media img { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.mosaic__tile:hover .mosaic__media img, .mosaic__tile:focus-visible .mosaic__media img { transform: scale(1.04); }
.mosaic__caption { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 2px; padding: 16px 18px; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.mosaic__tile--room .mosaic__caption { color: var(--white); background: linear-gradient(transparent, rgba(30, 28, 24, .6)); padding-top: 48px; }
.mosaic__tile--product .mosaic__caption { color: var(--ink); }
.mosaic__tile:hover .mosaic__caption, .mosaic__tile:focus-visible .mosaic__caption { opacity: 1; transform: none; }
.mosaic__sub { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.mosaic__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.mosaic__more { margin-top: clamp(32px, 4vw, 56px); }
.home-projects { border-top: 1px solid var(--line); }
@media (hover: none) {
	.mosaic__caption { opacity: 1; transform: none; }
	.mosaic__tile--product .mosaic__caption { position: static; padding: 0 12px 12px; } /* name sits under the photo on touch screens */
}
@media (max-width: 900px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); }
	.mosaic__col:nth-child(even) { margin-top: 0; }
	.mosaic__col:nth-child(2), .mosaic__col:nth-child(4) { margin-top: 40px; }
}
@media (max-width: 640px) {
	.mosaic__title { font-size: 1.05rem; }
	.mosaic__caption { padding: 10px 12px; }
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
	.nav--end { display: none; }
	.cat-tiles, .proj-grid, .proj-grid--large { grid-template-columns: repeat(2, 1fr); }
	.grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.rail__track { grid-auto-columns: max(220px, calc((100% - 32px) / 2)); }
}
@media (max-width: 1000px) {
	:root { --header-h: 68px; }
	.nav--start { display: none; }
	.nav-toggle { display: inline-grid; grid-column: 1; grid-row: 1; justify-self: start; margin-inline-start: -10px; }
	.brand__logo { height: 40px; }
	.mega { display: none !important; }
	.pdp__grid, .pdp-details__grid, .split, .visit, .booking, .project, .coll-row, .cta-pair { grid-template-columns: 1fr; }
	.coll-row--flip .coll-row__media { order: 0; }
	.coll-feature { grid-template-columns: 1fr; }
	.coll-card--lead { grid-row: auto; }
	.coll-card--lead .coll-card__media { min-height: 0; aspect-ratio: 4 / 3; }
	.pdp__sticky, .project__form { position: static; }
	.pdp-bar { display: flex; }
	.wa-float__label { display: none; }
	.wa-float { width: 56px; padding: 0; justify-content: center; }
	.pdp ~ .wa-float, body.single-lc_product .wa-float { bottom: 84px; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.cta-card { min-height: 380px; }
	.gallery__arrow { opacity: 1; }
}
@media (max-width: 800px) {
	.hero__slide { grid-template-columns: 1fr; }
	.hero__controls { bottom: 28px; justify-content: flex-start; }
	.hero__content { padding-bottom: 104px; }
	.hero__panel:not(:first-child) { display: none; }
}
@media (max-width: 640px) {
	.header-tools .lang-switch { display: none; }
	.field-grid { grid-template-columns: 1fr; }
	.cat-tiles, .cer-grid { gap: 12px; }
	.cat-tile__name, .cer-card__name { font-size: 1.2rem; }
	.proj-grid, .proj-grid--large { grid-template-columns: 1fr; }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.card__title { font-size: .9375rem; }
	.rail__track { grid-auto-columns: 72%; gap: 14px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.p-item { grid-template-columns: 72px 1fr; }
	.p-item__img { width: 72px; height: 72px; }
	.p-item > .icon-btn { grid-column: 2; justify-self: start; }
	.trade-table__img { display: none; }
	.hero__content .display { max-width: none; }
	.facts { grid-template-columns: 1fr; }
	.filters__count { width: 100%; margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hero__img { transform: none; }
}

@media print {
	.site-header, .site-footer, .wa-float, .pdp-bar, .gallery__tools, .gallery__arrow, .pdp__actions { display: none !important; }
	body { background: #fff; }
}

/* ---------- homepage projects: three in one row ---------- */
.proj-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-grid--row .proj-card__media { aspect-ratio: 3 / 2; margin-bottom: var(--sp-2); }
.proj-grid--row .proj-card__name { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
@media (max-width: 640px) {
	/* phones: the same single row, swiped sideways */
	.proj-grid--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.proj-grid--row::-webkit-scrollbar { display: none; }
	.proj-grid--row > li { scroll-snap-align: start; }
}
