/* Musaddaf: an old Damascus courtyard house. Honey limestone and black basalt (ablaq) carry the page; tile colour
   (cobalt, turquoise, saffron) only in small details; the mother-of-pearl in the photographs is the only glow.
   Arabic switches the faces and mirrors the layout through logical properties. Phone first. */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/aref-ruqaa-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("../fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }

:root {
  --lime: #E9DCC3; --lime-d: #DCCAA7; --paper: #F4ECDD; --joint: #B9A27C;
  --basalt: #24211D; --ink: #1C1915; --stone: #574E40; --walnut: #5A3925;
  --cobalt: #1F3F8F; --turq: #1F7F8E; --saffron: #D99A2B; --night: #15110D; --night-ink: #EFE4CF;
  --display: "Marcellus", "Aref Ruqaa", Georgia, serif;
  --body: "Alegreya Sans", "Noto Naskh Arabic", system-ui, sans-serif;
  --ar-display: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --pad: clamp(18px, 5vw, 72px); --max: 1240px; --head: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
html[lang="ar"] { --display: "Aref Ruqaa", "Noto Naskh Arabic", serif; --body: "Noto Naskh Arabic", "Alegreya Sans", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
html.locked { overflow: hidden; }
body { font-variant-numeric: lining-nums; overflow-x: clip; margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
::selection { background: var(--cobalt); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--basalt); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--turq) 60%, transparent); }
.u:hover { text-decoration-thickness: 2px; text-decoration-color: var(--turq); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the stone and tile details ---------- */
.band { height: 16px; background: var(--lime-d) url("../assets/tiles/band.svg") 0 0 / 32px 16px repeat-x; }
.ablaq-top { position: relative; }
.ablaq-top::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 28px;
  background: repeating-linear-gradient(90deg, var(--basalt) 0 56px, var(--lime) 56px 112px); border-block: 1px solid var(--joint); }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--lime) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
header.top.scrolled, header.top.solid { border-bottom-color: var(--joint); box-shadow: 0 6px 18px -14px rgba(28,25,21,.5); }
.bar { display: flex; align-items: center; gap: 16px; height: var(--head); max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-en { font-family: "Marcellus", serif; font-size: 23px; letter-spacing: .02em; }
.brand-ar { font-family: var(--ar-display); font-size: 25px; line-height: 1; transform: translateY(-2px); }
.brand-dot { width: 5px; height: 5px; background: var(--saffron); transform: rotate(45deg); }
nav.main { display: none; gap: 28px; margin-inline-start: auto; font-size: 16px; }
nav.main a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
nav.main a:hover { border-bottom-color: var(--turq); }
.tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang { border: 1px solid var(--joint); background: transparent; border-radius: 999px; height: 36px; min-width: 52px; padding: 0 12px; cursor: pointer; font-size: 15px; }
.lang span { font-family: "Noto Naskh Arabic", "Alegreya Sans", sans-serif; }
.lang:hover { background: var(--paper); }
.cur select { appearance: none; -webkit-appearance: none; border: 1px solid var(--joint); background: transparent; border-radius: 999px; height: 36px; padding: 0 12px; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.bag-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.bag-btn svg { width: 24px; height: 24px; }
.bag-btn:hover { background: var(--paper); }
.bag-n { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 20px; height: 20px; }
.btn-dark { background: var(--basalt); color: var(--paper); }
.btn-dark:hover { background: var(--walnut); }
.btn-dark.is-in { background: var(--paper); color: var(--ink); border-color: var(--basalt); }
.btn-line { background: transparent; border-color: var(--basalt); color: var(--ink); }
.btn-line:hover { background: var(--lime); }
.btn-light { background: var(--night-ink); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: var(--night-ink); border-color: color-mix(in srgb, var(--night-ink) 50%, transparent); }
.btn-ghost-light:hover { border-color: var(--night-ink); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--stone); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--lime); }

/* ---------- shared piece text ---------- */
.edition { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; font-variant-numeric: lining-nums; }
html[lang="ar"] .edition { letter-spacing: 0; font-size: 15px; }
.price { margin: 0 0 4px; font-variant-numeric: lining-nums tabular-nums; }
.price .amount { font-family: "Marcellus", var(--body); font-size: 24px; }
html[lang="ar"] .price .amount { font-family: var(--body); font-weight: 700; font-size: 22px; }
.price .incl { color: var(--stone); font-size: 15px; }
.arrives { color: var(--turq); font-size: 15px; margin: 0 0 14px; font-weight: 500; }
.made { color: var(--stone); font-size: 14px; margin: 12px 0 0; }

/* ---------- hero: the ablaq arch frames the artisan's hands; the first piece sits under it ---------- */
.hero { background: var(--lime); padding: 10px var(--pad) 28px; display: grid; gap: 12px; }
.arch { position: relative; overflow: hidden; container-type: inline-size; width: min(100%, 520px, 44svh); margin-inline: auto; aspect-ratio: 1000 / 900; }
.arch-photo { position: absolute; top: 12cqw; inset-inline: 10cqw; bottom: 0; overflow: hidden; border-radius: 40cqw 40cqw 0 0; background: #6b4a33; }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.arch .sheen { position: absolute; top: 12cqw; inset-inline: 10cqw; bottom: 0; border-radius: 40cqw 40cqw 0 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,240,220,.0) 38%, rgba(255,236,214,.45) 47%, rgba(200,240,235,.35) 52%, rgba(255,255,255,0) 62%); mix-blend-mode: soft-light; }
.arch-stone { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; }
.hero-copy { max-width: 560px; margin-inline: auto; width: 100%; text-align: center; }
.hero-copy h1 { font-size: clamp(26px, 6.6vw, 50px); margin: 4px 0 8px; }
.hero-sub { color: var(--stone); font-size: 16px; max-width: 32em; margin: 0 auto 14px; }
.lead-piece { display: grid; grid-template-columns: 112px 1fr; gap: 6px 16px; align-items: center; text-align: start; background: var(--paper); border: 1px solid var(--joint); padding: 14px; box-shadow: 0 14px 30px -24px rgba(28,25,21,.55); }
.lead-img { grid-row: span 1; display: block; aspect-ratio: 1; overflow: hidden; background: var(--lime-d); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-title { font-size: 22px; margin: 0 0 6px; }
.lead-title a { text-decoration: none; }
.lead-piece .arrives { margin: 0; font-size: 14px; }
.lead-piece .btn { grid-column: 1 / -1; margin-top: 8px; }
.lead-piece .made { grid-column: 1 / -1; margin: 12px 0 0; text-align: center; }
.see-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 16px; text-decoration: none; color: var(--stone); }
.see-all svg { width: 18px; height: 18px; }
.see-all:hover { color: var(--ink); }

/* ---------- the six pieces: one per screen on a phone, alternating sides on a desktop ---------- */
.gallery { padding: 64px 0 24px; }
.gallery h2, .making h2, .promise h2, .light h2 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 10px; }
.lede { color: var(--stone); font-size: 18px; max-width: 34em; }
.pieces { list-style: none; margin: 28px 0 0; padding: 0; }
.piece-row { display: grid; gap: 18px; padding: 0 var(--pad) 64px; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; }
.row-media { display: grid; gap: 10px; }
.row-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--lime-d); }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.row-img img.tall { object-position: 50% 45%; }
.row-img:hover img { transform: scale(1.03); }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 64px; height: 64px; padding: 0; border: 1px solid var(--joint); background: var(--lime-d); cursor: pointer; overflow: hidden; opacity: .72; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; border-color: var(--basalt); }
.row-title { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 8px; }
.row-title a { text-decoration: none; }
.row-line { color: var(--stone); max-width: 30em; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions .btn { flex: 1 1 180px; }

/* the six pieces as a compact grid: two across on a phone, three on a desktop; a card opens the piece */
.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding: 0 var(--pad) 40px; }
.card-link { display: grid; gap: 4px; text-decoration: none; }
.card-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--lime-d); margin-bottom: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-link:hover .card-img img { transform: scale(1.04); }
.card .edition { font-size: 12px; margin: 0; }
.card-title { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.card .price .amount { font-size: 18px; }
html[lang="ar"] .card .price .amount { font-size: 17px; }
.card-link:focus-visible { outline-offset: 6px; }
.returns { color: var(--stone); font-size: 14px; margin: 0; }
.preview-line { font-size: 14px; color: var(--walnut); background: var(--lime); padding: 8px 12px; margin: 0 0 12px; }

/* ---------- the making ---------- */
.making { background: var(--lime); padding: 92px 0 72px; }
.making-grid { display: grid; gap: 28px; }
.making-photo { margin: 0; }
.making-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.making-text p { max-width: 34em; }

/* ---------- light the shell (the game) ---------- */
.light { background: var(--night); color: var(--night-ink); padding: 72px 0 80px; }
.light .lede { color: color-mix(in srgb, var(--night-ink) 78%, transparent); }
.lamp-stage { position: relative; margin: 26px auto 0; width: min(100% - 2 * var(--pad), 1100px); aspect-ratio: 1; max-height: 78vh; overflow: hidden; border: 1px solid #3a2f25; outline: none; touch-action: pan-y; }
.lamp-stage:focus-visible { box-shadow: 0 0 0 3px var(--saffron); }
.lamp-stage.playing { touch-action: none; }
.lamp-canvas { position: absolute; inset: 0; display: block; cursor: default; }
.lamp-stage.playing .lamp-canvas { cursor: none; }
.lamp-hud { position: absolute; inset-inline: 0; top: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; pointer-events: none;
  background: linear-gradient(rgba(21,17,13,.75), rgba(21,17,13,0)); }
.lamp-hint { display: none; color: color-mix(in srgb, var(--night-ink) 75%, transparent); }
.lamp-stage.playing .lamp-hint { display: block; }
.lamp-count { font-variant-numeric: tabular-nums; }
.lamp-actions { position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 14px; background: linear-gradient(rgba(21,17,13,0), rgba(21,17,13,.8)); }
.lamp-stage.done .lamp-actions, .lamp-stage.done .lamp-hud { display: none; }
.lamp-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, rgba(21,17,13,.86) 0%, rgba(21,17,13,.62) 55%, rgba(21,17,13,.35) 100%); }
.lamp-end[hidden] { display: none; }
.lamp-verse { font-family: var(--display); font-size: clamp(24px, 4.4vw, 42px); line-height: 1.3; max-width: 18em; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.lamp-end .btn { max-width: 100%; white-space: normal; text-align: center; }
.lamp-again { background: none; border: 0; color: var(--night-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }

/* ---------- our promise ---------- */
.promise { padding: 80px 0; }
.promises { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; }
.promises li { position: relative; padding-inline-start: 40px; }
.promises li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 24px; height: 24px; background: url("../assets/tiles/star.svg") center / contain no-repeat; }
.promises h3 { font-size: 22px; margin-bottom: 6px; }
.promises p { color: var(--stone); margin: 0; max-width: 32em; }
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 18px; border: 1px solid var(--basalt); text-decoration: none; }
.wa svg { width: 20px; height: 20px; }
.wa-small { margin-top: 10px; width: 100%; justify-content: center; }

/* ---------- footer ---------- */
.foot { background: var(--basalt); color: var(--lime); }
.foot-in { padding-block: 40px 56px; display: grid; gap: 8px; }
.foot .brand { margin-bottom: 8px; }
.foot .origin { font-size: 16px; }
.foot .fine { color: color-mix(in srgb, var(--lime) 72%, transparent); font-size: 14px; max-width: 40em; }
.foot a:focus-visible { outline-color: var(--saffron); }

/* ---------- the piece page ---------- */
.piece { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding: 18px var(--pad) 72px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--stone); margin-bottom: 14px; }
.back svg { width: 18px; height: 18px; }
html[dir="rtl"] .back svg, html[dir="rtl"] .see-all svg { transform: scaleX(-1); }
.piece-grid { display: grid; gap: 26px; }
.shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--lime-d); }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.tall img { object-position: 50% 42%; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.dot { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; inset: 9px; transform: rotate(45deg); border: 1px solid var(--basalt); }
.dot.on::after { background: var(--basalt); }
.render-note { text-align: center; color: var(--stone); font-size: 13px; margin-top: 6px; }
.piece-title { font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 10px; }
.piece-line { color: var(--stone); font-size: 19px; max-width: 30em; }
.buy { margin: 16px 0 22px; }
.gift { border: 1px solid var(--joint); padding: 14px 16px 10px; margin: 0 0 26px; display: grid; gap: 10px; }
.gift legend { font-family: var(--display); font-size: 20px; padding: 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--basalt); flex: none; }
.field { display: grid; gap: 4px; font-size: 15px; color: var(--stone); padding-inline-start: 32px; }
.field[hidden] { display: none; }
.field input, .f input, .f textarea { width: 100%; border: 1px solid var(--joint); background: #FFFBF3; padding: 12px; border-radius: 2px; font-size: 16px; color: var(--ink); }
.field input:focus, .f input:focus, .f textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.h-small { font-size: 22px; margin: 0 0 10px; }
.specs { margin: 0 0 22px; display: grid; }
.specs > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--joint); }
.specs dt { color: var(--stone); }
.specs dd { margin: 0; }
.mini-promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--stone); font-size: 15px; }
.mini-promise li { padding-inline-start: 26px; position: relative; }
.mini-promise li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 14px; height: 14px; background: url("../assets/tiles/star.svg") center / contain no-repeat; }

/* ---------- the bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(28,25,21,.45); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100vw); background: var(--paper); overflow-y: auto; padding: 0 20px 28px;
  transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: -18px 0 40px -24px rgba(28,25,21,.6); outline: none; overscroll-behavior: contain; }
html[dir="rtl"] .drawer-panel { transform: translateX(-100%); box-shadow: 18px 0 40px -24px rgba(28,25,21,.6); }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.d-head { position: sticky; top: 0; background: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid var(--joint); margin-bottom: 14px; z-index: 1; }
.d-head h2 { font-size: 26px; }
.d-empty { padding: 30px 0; display: grid; gap: 16px; justify-items: start; }
.d-items { list-style: none; margin: 0; padding: 0; }
.d-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--joint); align-items: start; }
.d-item img { width: 72px; height: 72px; object-fit: cover; }
.d-item-info .edition { font-size: 12px; margin-bottom: 2px; }
.d-item-title { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.25; }
.d-item-title a { text-decoration: none; }
.d-extra { margin: 2px 0 0; font-size: 14px; color: var(--stone); }
.d-item-price { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 6px; }
.d-total strong { font-family: "Marcellus", var(--body); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
html[lang="ar"] .d-total strong { font-family: var(--body); font-weight: 700; }
.d-how { color: var(--stone); font-size: 14px; margin-top: 12px; }
.d-form { display: grid; gap: 12px; }
.f { display: grid; gap: 4px; }
.f label { font-size: 15px; font-weight: 500; }
.f-help { margin: 0; color: var(--stone); font-size: 13px; }
.f-err { margin: 0; color: #9B2C24; font-size: 14px; min-height: 0; }
.f-err:empty { display: none; }
.f input[aria-invalid="true"] { border-color: #9B2C24; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.d-ok .ref { font: 700 26px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; margin: 0; padding: 10px 16px; border: 1px dashed var(--joint); }
.d-ok { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 30px 6px; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
  .card-title { font-size: 24px; }
  .lead-piece { grid-template-columns: 150px 1fr; }
  .promises { grid-template-columns: 1fr 1fr; gap: 34px 48px; }
  .making-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
}
@media (min-width: 901px) {
  :root { --head: 72px; }
  nav.main { display: flex; }
  .tools { margin-inline-start: 24px; }
  .hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: 28px var(--pad) 48px; max-width: none; }
  .arch { width: min(100%, 560px, 74vh); aspect-ratio: 1000 / 1180; margin-inline-start: auto; margin-inline-end: 0; }
  .hero-copy { text-align: start; margin: 0; max-width: 540px; }
  .hero-sub { margin-inline: 0; }
  .lead-piece .made { text-align: start; }
  .piece-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-bottom: 96px; }
  .piece-row.flip .row-media { order: 2; }
  .lamp-stage { aspect-ratio: 16 / 9; }
  .piece-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .piece-media { position: sticky; top: calc(var(--head) + 16px); }
}
@media (max-width: 900px) and (max-height: 800px) {
  .arch { width: min(100%, 520px, 35svh); }
  .hero-copy h1 { margin-bottom: 10px; }
  .lead-piece { padding: 12px; }
}
@media (max-width: 380px) {
  .cur select { padding: 0 8px; }
  .brand-en { font-size: 20px; } .brand-ar { font-size: 22px; }
}
/* not-found page */
.nf { min-height: 100vh; display: grid; place-items: center; background: var(--lime); }
.nf-box { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 24px; }
.nf-box h1 { font-size: 32px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
