/* قالب لينن — استوديو تصميم داخلي
   الألوان كلها من متغيرات :root، غيّرها من هنا فقط. */
:root {
  --sand: #D2C7BB;      /* الخلفية */
  --sand-2: #C7B9AD;    /* أشرطة أغمق قليلًا */
  --cream: #F1EBD2;     /* الكروت والنص على الغامق */
  --orange: #E89403;    /* مشمش: اللون الأساسي */
  --sun: #F1B22B;       /* عسل: اللون المكمّل */
  --brown: #6C4220;     /* النص */
  --ink: #3A2516;       /* الأشرطة الغامقة */
  --display: 'Marhey', 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --body: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 18px 40px -22px rgba(58, 37, 22, .55);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--sand); color: var(--brown);
  font: 400 clamp(16px, 1.05vw + 11px, 19px)/1.7 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(32px, 4.2vw, 64px); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.lede { font-size: clamp(17px, 1.2vw + 10px, 22px); max-width: 38ch; opacity: .92; }
.lede-lg { max-width: 52ch; }
.label { font-family: var(--display); font-size: 15px; margin: 26px 0 10px; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
  transition: transform .35s var(--ease), background .3s;
  box-shadow: inset 0 0 0 2px rgba(58, 37, 22, .08);
}
.btn:hover { transform: translateY(-2px); background: var(--sun); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(241, 235, 210, .14); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--brown); }
.btn-ghost-ink { color: var(--ink); }
.link-arrow { font-family: var(--display); text-decoration: none; border-bottom: 2px dashed currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-arrow::after { content: ' ←'; }
[dir="ltr"] .link-arrow::after { content: ' →'; }

/* الشريط العلوي: الشعار في المنتصف وخط خياطة تحته */
.bar {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: 74px; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.bar::after { content: ''; position: absolute; inset-inline: var(--gutter); bottom: 0; border-bottom: 2px dashed currentColor; opacity: .35; }
.bar.on-cloth { color: var(--ink); }
.bar.solid { background: rgba(210, 199, 187, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--brown); }
.bar.hide { transform: translateY(-100%); }
.bar-nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.bar-nav a, .menu a { text-decoration: none; font-weight: 500; position: relative; }
.bar-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: -2px; border-bottom: 2px dashed currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.bar-nav a:hover::after, .bar-nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo { font-family: var(--display); font-weight: 700; font-size: 34px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.logo-sm { font-size: 28px; }
.logo-knot { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: inset -3px -3px 0 rgba(58, 37, 22, .18); }
.bar-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lang { text-decoration: none; font-weight: 600; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px currentColor; }
.tour-btn { border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; min-height: 42px; padding: 0 16px; cursor: pointer; font-size: 14px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; inset-inline-start: 13px; width: 20px; height: 2px; background: var(--cream); transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .bar { color: var(--cream); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .bar .menu-btn { background: var(--orange); }
.note { background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 14px; font-weight: 600; justify-self: start; }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.menu nav { display: grid; gap: 14px; text-align: center; }
.menu a { font-family: var(--display); font-size: clamp(34px, 9vw, 56px); }
.tour-note { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--cream); padding: 8px 16px; border-radius: 999px; font-size: 14px; }
[dir="rtl"] .tour-note { transform: translateX(50%); }

/* الواجهة: القماش فوق الغرفة */
.hero { height: 230vh; position: relative; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--sand); }
.hero-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform: scale(calc(1.12 - .12 * var(--lift, 0))); transform-origin: 50% 70%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(58, 37, 22, .7), rgba(58, 37, 22, 0) 60%), linear-gradient(to right, rgba(58, 37, 22, .5), rgba(58, 37, 22, 0) 60%); opacity: var(--lift, 0); }
[dir="rtl"] .hero-shade { background: linear-gradient(to top, rgba(58, 37, 22, .7), rgba(58, 37, 22, 0) 60%), linear-gradient(to left, rgba(58, 37, 22, .5), rgba(58, 37, 22, 0) 60%); }
.cloth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cloth-fallback {
  display: none; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 28%, var(--cream) 28% 50%, var(--sun) 50% 78%, var(--cream) 78% 100%) 0 0 / min(420px, 34vw) 100%;
  transform: translateY(calc(-105% * var(--lift, 0)));
}
.no-webgl .cloth { display: none; }
.no-webgl .cloth-fallback { display: block; }
.tag {
  position: absolute; top: 110px; inset-inline-start: 50%; translate: calc(-50% * var(--dirx, 1)) 0;
  width: min(290px, 70vw); padding: 34px 26px 24px; text-align: center; border-radius: 18px;
  background: var(--cream); color: var(--ink); box-shadow: var(--shadow);
  outline: 2px dashed rgba(108, 66, 32, .45); outline-offset: -10px;
  transform-origin: 50% 0; animation: sway 6s ease-in-out infinite;
  opacity: calc(1 - var(--lift, 0) * 3.2); transform: translateY(calc(var(--lift, 0) * -60vh));
}
[dir="rtl"] .tag { --dirx: -1; }
.tag-hole { position: absolute; top: 12px; inset-inline-start: 50%; translate: calc(-50% * var(--dirx, 1)) 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sand-2); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .2); }
.tag b { display: block; font-family: var(--display); font-size: clamp(54px, 7vw, 84px); line-height: 1.05; }
.tag small { display: block; font-size: 16px; font-weight: 600; margin-top: 6px; }
.tag i { display: block; font-style: normal; font-size: 13px; opacity: .7; margin-top: 10px; border-top: 2px dashed rgba(108, 66, 32, .35); padding-top: 10px; }
@keyframes sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
.hero-copy {
  position: absolute; inset-inline: var(--gutter); bottom: clamp(36px, 8vh, 90px); color: var(--cream); max-width: 880px;
  opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 40px)); pointer-events: none;
}
.hero-copy.live { pointer-events: auto; }
.hero-copy h1 { font-size: clamp(40px, 6.2vw, 96px); text-wrap: balance; }
.hero-copy .lede { margin-top: 16px; }
.hero-copy .btn-ghost { color: var(--cream); }
.hint { position: absolute; bottom: 26px; inset-inline-start: 50%; translate: calc(-50% * var(--dirx, 1)) 0; color: var(--ink); background: var(--cream); padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: calc(1 - var(--lift, 0) * 5); box-shadow: var(--shadow); }
[dir="rtl"] .hint { --dirx: -1; }
.hint-thread { width: 2px; height: 16px; background: var(--orange); border-radius: 2px; animation: tug 1.6s var(--ease) infinite; }
@keyframes tug { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* جملة الاستوديو مع صور صغيرة داخل النص */
.intro { padding-block: clamp(90px, 14vw, 180px) clamp(60px, 9vw, 120px); }
.statement { font-family: var(--display); font-size: clamp(30px, 4.1vw, 62px); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.statement .w { opacity: .18; transition: opacity .6s var(--ease); }
.statement .w.in { opacity: 1; }
.pill { display: inline-block; vertical-align: middle; width: 2.4em; height: 1.2em; border-radius: 999px; overflow: hidden; margin-inline: .08em; box-shadow: var(--shadow); translate: 0 -.08em; }
.pill img { width: 100%; height: 100%; object-fit: cover; }
.pill-fabric { width: 1.8em; background: repeating-linear-gradient(90deg, var(--orange) 0 28%, var(--cream) 28% 50%, var(--sun) 50% 78%, var(--cream) 78% 100%) 0 0 / .9em 100%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: clamp(48px, 7vw, 90px) 0 0; }
.facts-3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.fact { background: var(--cream); border-radius: var(--radius); padding: 22px 24px 20px; position: relative; }
.fact::before { content: ''; position: absolute; inset: 8px; border: 2px dashed rgba(108, 66, 32, .25); border-radius: 22px; pointer-events: none; }
.fact dt { font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1.1; color: var(--brown); }
.fact dt small { font-size: .45em; }
.fact dd { margin: 4px 0 0; font-weight: 500; }

/* المشاريع */
.projects { padding-bottom: clamp(80px, 10vw, 140px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head-stack { display: grid; justify-content: start; gap: 14px; }
.proj-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px); align-items: start; }
.proj-grid .proj:nth-child(2) { margin-top: clamp(60px, 10vw, 160px); }
.proj-grid .proj:nth-child(3) { margin-top: calc(-1 * clamp(0px, 4vw, 70px)); }
.proj-grid-all .proj:nth-child(n) { margin-top: 0; }
.proj-grid-all .proj:nth-child(even) { margin-top: clamp(40px, 6vw, 100px); }
.proj { text-decoration: none; display: block; }
.proj-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj-media::after { content: ''; position: absolute; inset: 12px; border: 2px dashed rgba(241, 235, 210, .9); border-radius: 20px; opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .6s var(--ease); }
.proj:hover .proj-media img, .proj:focus-visible .proj-media img { transform: scale(1.05); }
.proj:hover .proj-media::after, .proj:focus-visible .proj-media::after { opacity: 1; transform: none; }
.proj-type { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; z-index: 1; }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.proj-meta h3 { font-size: clamp(24px, 2.2vw, 34px); }
.proj-meta span { font-weight: 500; opacity: .75; white-space: nowrap; }
.proj p { margin-top: 6px; max-width: 46ch; opacity: .85; }
.proj.is-hidden { display: none; }

/* أشرطة الألوان */
.band { padding-block: clamp(80px, 10vw, 150px); }
.band-cream { background: var(--cream); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-orange { background: var(--orange); color: var(--ink); }

/* منتقي الخامة */
.picker-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; cursor: pointer; min-height: 42px; padding: 0 18px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 2px rgba(108, 66, 32, .35); font-weight: 600; transition: background .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--brown); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--brown); color: var(--cream); box-shadow: none; }
.swatches { display: flex; gap: 14px; }
.swatch { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--c); box-shadow: inset 0 -6px 10px rgba(58, 37, 22, .18), 0 0 0 0 var(--brown); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(58, 37, 22, .3); }
.swatch:hover { transform: translateY(-3px); }
.swatch[aria-checked="true"] { box-shadow: inset 0 -6px 10px rgba(58, 37, 22, .18), 0 0 0 4px var(--cream), 0 0 0 6px var(--brown); }
.swatch-name { display: block; font-size: 13px; font-weight: 600; text-align: center; margin-top: 6px; }
.swatch-wrap { display: grid; justify-items: center; }
.piece-info { margin: 24px 0 18px; min-height: 96px; }
.piece-info h3 { font-size: clamp(26px, 2.4vw, 36px); }
.piece-info p { margin-top: 4px; }
.piece-info .size { font-weight: 600; opacity: .7; }
.picker-stage { position: relative; margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 1; background: var(--sand); box-shadow: var(--shadow); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-next { clip-path: inset(0 0 100% 0); }
.stage-next.go { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease); }
.stage-tag { position: absolute; bottom: 18px; inset-inline-end: 18px; background: var(--cream); color: var(--ink); border-radius: 14px; padding: 8px 16px; font-weight: 600; font-size: 15px; outline: 2px dashed rgba(108, 66, 32, .35); outline-offset: -6px; }

/* الغرفة التفاعلية */
.room-sec { padding-block: clamp(80px, 10vw, 150px) 0; }
.room { position: relative; margin: 0 auto; width: min(1440px, 100%); }
.room img { width: 100%; }
.hot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hot::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(232, 148, 3, .9); transition: transform .3s var(--ease); }
.hot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--cream); animation: ping 2.4s var(--ease) infinite; }
.hot:hover::before, .hot[aria-expanded="true"]::before { transform: scale(1.25); background: var(--orange); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.hot-card {
  position: absolute; z-index: 3; width: min(280px, 70vw); background: var(--cream); color: var(--ink); border-radius: 20px; padding: 16px 18px;
  box-shadow: var(--shadow); outline: 2px dashed rgba(108, 66, 32, .35); outline-offset: -8px; pointer-events: none;
  opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .3s, transform .4s var(--ease);
}
.hot-card.show { opacity: 1; transform: none; }
.hot-card b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; }
.hot-card p { font-size: 15px; margin-top: 4px; line-height: 1.55; }

/* قبل وبعد */
.ba-sec { padding-block: clamp(80px, 10vw, 150px); }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-height: 82vh; width: 100%; background: var(--sand-2); touch-action: pan-y; user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
[dir="rtl"] .ba .ba-after { clip-path: inset(0 var(--pos) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 0; border-inline-start: 3px dashed var(--cream); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; inset-inline-start: var(--pos); width: 64px; height: 64px; margin-inline-start: -32px; margin-top: -32px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); pointer-events: none; }
.ba-knob::before { content: '⟷'; font-size: 24px; }
.ba-label { position: absolute; top: 16px; background: var(--cream); color: var(--ink); padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; pointer-events: none; }
.ba-label.b { inset-inline-start: 16px; }
.ba-label.a { inset-inline-end: 16px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input:focus-visible + .ba-knob { outline: 3px solid var(--cream); outline-offset: 3px; }

/* طريقة العمل: عينات قماش بحواف مسننة */
.process-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); align-items: start; }
.process-text { position: sticky; top: 110px; }
.process-img { border-radius: var(--radius); margin-top: 32px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.swatch-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.swatch-cards li {
  --pink: 10px; counter-increment: step; position: relative; padding: 34px 32px 30px; color: var(--ink);
  background: var(--card, var(--cream));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--pink) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--pink) 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--pink) 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--pink) 51% repeat-x;
  rotate: var(--r, 0deg); transform: translateY(40px); opacity: 0; transition: transform .9s var(--ease), opacity .7s, rotate .9s var(--ease);
}
.swatch-cards li.in { transform: none; opacity: 1; }
.swatch-cards li:nth-child(1) { --card: var(--orange); --r: -1.5deg; }
.swatch-cards li:nth-child(2) { --card: var(--cream); --r: 1deg; }
.swatch-cards li:nth-child(3) { --card: var(--sun); --r: -.8deg; }
.swatch-cards li:nth-child(4) { --card: var(--sand); --r: 1.4deg; }
.swatch-cards li::before { content: counter(step, arabic-indic); font-family: var(--display); font-size: 56px; line-height: 1; display: block; margin-bottom: 10px; opacity: .9; }
[lang="en"] .swatch-cards li::before { content: '0' counter(step); }
.swatch-cards h3 { font-size: clamp(24px, 2.2vw, 32px); }
.swatch-cards p { margin-top: 8px; }
.swatch-cards li::after { content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(58, 37, 22, .3); border-radius: 6px; pointer-events: none; }

/* رأي العميل */
.quote-band { background: var(--sand-2); }
.quote { margin-inline: auto; text-align: center; max-width: 980px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.45; font-weight: 500; text-wrap: balance; }
.quote figcaption { margin-top: 24px; font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; opacity: .75; }
.quote-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-family: var(--display); font-size: 48px; line-height: 1; color: var(--cream); }

/* الختام */
.finale-in { display: grid; justify-items: start; }
.finale-title { font-size: clamp(64px, 13vw, 210px); line-height: .95; }
.finale-title span { display: block; }
.finale-title span:last-child { padding-inline-start: .6em; }
[lang="ar"] .finale-title { line-height: 1.15; }
.finale .lede { margin-top: 20px; }
.lib-card { margin-top: clamp(50px, 7vw, 90px); display: flex; gap: 18px; align-items: center; text-decoration: none; background: var(--cream); border-radius: 22px; padding: 10px; padding-inline-end: 24px; max-width: 520px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.lib-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.lib-card img { width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.lib-card small { display: block; font-size: 13px; opacity: .75; }
.lib-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.35; }
.lib-card em { font-style: normal; font-size: 14px; font-weight: 600; border-bottom: 2px dashed currentColor; }

/* التذييل */
.foot { background: var(--ink); color: var(--cream); padding: 40px var(--gutter) 28px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; font-size: 15px; }
.foot-row a { text-decoration: none; }
.stitch { border-top: 2px dashed currentColor; opacity: .3; margin: 22px 0 14px; }
.foot-copy { font-size: 13px; opacity: .65; }

/* الصفحات الداخلية */
.inner .bar { color: var(--brown); }
.inner-main { padding-top: 140px; padding-bottom: clamp(70px, 9vw, 130px); }
.page-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 60px); }
.page-head h1 { font-size: clamp(44px, 7vw, 108px); text-wrap: balance; }
.filters { margin-bottom: 30px; }
.p-hero { margin: 0 auto clamp(36px, 5vw, 64px); width: min(1440px, 100% - 2 * var(--gutter)); border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 8; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 80px); margin-bottom: clamp(40px, 6vw, 80px); }
.p-meta { margin: 0; display: grid; gap: 12px; align-content: start; background: var(--cream); padding: 24px; border-radius: var(--radius); }
.p-meta div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dashed rgba(108, 66, 32, .25); padding-bottom: 10px; }
.p-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.p-meta dt { opacity: .75; }
.p-meta dd { margin: 0; font-weight: 600; }
.p-story h2 { font-size: clamp(26px, 2.4vw, 36px); }
.p-story p { margin: 8px 0 28px; max-width: 60ch; font-size: clamp(17px, 1vw + 11px, 21px); }
.p-sub { font-size: clamp(28px, 3vw, 44px); margin-top: clamp(50px, 7vw, 90px); }
.p-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); margin-top: 18px; }
.p-details img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.next-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-top: clamp(60px, 8vw, 110px); text-decoration: none; background: var(--orange); color: var(--ink); border-radius: 36px; padding: clamp(22px, 3vw, 36px); overflow: hidden; }
.next-card small { display: block; font-weight: 600; }
.next-card b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 72px); line-height: 1.2; }
.next-card img { width: clamp(120px, 22vw, 300px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; transition: transform .8s var(--ease); }
.next-card:hover img { transform: scale(1.05) rotate(-1deg); }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.col-card { background: var(--cream); border-radius: var(--radius); padding: 12px 12px 22px; display: grid; gap: 12px; }
.col-card .col-img { border-radius: 20px; overflow: hidden; aspect-ratio: 1; position: relative; background: var(--sand); }
.col-card .col-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.col-card h2 { font-size: 26px; padding-inline: 10px; }
.col-card p { padding-inline: 10px; }
.col-card .size { font-weight: 600; opacity: .7; font-size: 15px; }
.col-card .swatches { padding-inline: 10px; gap: 10px; }
.col-card .swatch { width: 40px; height: 40px; }
.col-card .swatch::after { inset: 4px; }
.custom-card { margin-top: clamp(40px, 6vw, 80px); border-radius: 36px; padding: clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; outline: 2px dashed rgba(108, 66, 32, .35); outline-offset: -14px; }
.custom-card h2 { font-size: clamp(26px, 3vw, 42px); }
.custom-card p { margin-top: 6px; max-width: 52ch; }
.studio-sec { padding-block: clamp(50px, 7vw, 100px); }
.studio-sec h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values div { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.values h3 { font-size: 26px; color: var(--ink); }
.values p { margin-top: 8px; }
.services { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.services li { counter-increment: s; display: grid; grid-template-columns: 70px 1fr 1.3fr; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 2px dashed rgba(241, 235, 210, .3); }
.services li::before { content: counter(s, arabic-indic); font-family: var(--display); font-size: 30px; color: var(--sun); }
[lang="en"] .services li::before { content: '0' counter(s); }
.services h3 { font-size: clamp(24px, 2.4vw, 34px); }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--cream); border-radius: 22px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(19px, 1.4vw + 10px, 24px); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--body); font-weight: 600; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; max-width: 70ch; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label span { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 2px solid transparent; border-radius: 18px; padding: 14px 16px; transition: border-color .3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--orange); }
.form [aria-invalid="true"] { border-color: var(--brown); border-style: dashed; }
.form-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-weight: 600; }
.field-err { display: block; font-size: 14px; margin-top: 4px; font-weight: 600; }
.contact-aside { border-radius: 36px; padding: 28px; display: grid; gap: 10px; }
.contact-aside h2 { font-size: 30px; }
.contact-aside a { font-weight: 600; font-size: 20px; }
.contact-aside .note { background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 14px; font-weight: 600; justify-self: start; }
.contact-aside img { border-radius: 24px; margin-top: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.nf-main { min-height: 80vh; display: grid; align-content: center; justify-items: start; gap: 16px; padding-block: 140px 80px; }
.nf-main h1 { font-size: clamp(40px, 6vw, 90px); max-width: 16ch; }
.nf-thread { width: min(560px, 90%); }
.nf-thread path { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 14 12; animation: thread 6s linear infinite; }
@keyframes thread { to { stroke-dashoffset: -260; } }

/* ظهور العناصر */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar-nav, .bar-end .btn-sm { display: none; }
  .menu-btn { display: block; }
  .logo { justify-self: start; }
  .picker-in, .process-in, .p-body, .contact-grid { grid-template-columns: 1fr; }
  .process-text { position: static; }
  .picker-stage { max-width: 560px; width: 100%; margin-inline: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 50px 1fr; }
  .services li p { grid-column: 2; }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid .proj:nth-child(n), .proj-grid-all .proj:nth-child(n) { margin-top: 0; }
  .facts-3 { grid-template-columns: 1fr; }
  .col-grid, .p-details, .form { grid-template-columns: 1fr; }
  .tag { top: 96px; }
  .ba { aspect-ratio: 3 / 4; }
  .p-hero { aspect-ratio: 4 / 3; border-radius: 24px; }
  .next-card { grid-template-columns: 1fr; }
  .swatch { width: 50px; height: 50px; }
  .lib-card img { width: 110px; }
  .tour-btn [data-tour-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tour-btn { width: 42px; padding: 0; }
  .hot-card { width: min(240px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .swatch-cards li { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}
