/* The gallery (template 0.15.0, «الحجر بمقياس المعرض», the owner, 2026-11-07): every slab hung large, as a gallery hangs a work,
   on a stone-toned ground, with nothing framed around it. The ground, the raised surfaces, the sunken field behind a slab and the
   company's deep bands are tone steps of its own colours (lib/identity.js); nothing is separated by a hairline or a resting
   shadow. Loaded after site.css and vitrine.css on every public page, it retires the vitrine's ornaments (the gold hairlines,
   the offset frames, the hanging tags, the light sweep). */

:root {
  --g-r: min(var(--r), 12px);
  --g-rb: min(var(--r-btn), 12px);
  --g-m: clamp(20px, 5vw, 80px);
  --g-sec: clamp(80px, 10vw, 160px);
  --g-ease: cubic-bezier(.32, .72, 0, 1);
  --g-dw: 500;
}

/* ---------------------------------------------------------------- type, measure, the browser's own parts */
body { font-size: 1.0625rem; line-height: 1.8; }
.wrap { max-width: 1440px; padding-inline: max(var(--g-m), env(safe-area-inset-left, 0px)) max(var(--g-m), env(safe-area-inset-right, 0px)); }
::selection { background: var(--s-fill); color: var(--on-s); }
.num { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 2px solid var(--s-text); outline-offset: 3px; }
.g-h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.5rem); font-weight: var(--g-dw); line-height: 1.15; text-wrap: balance; margin: 0; }
.g-h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
.g-h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.35; margin: 0; }
.g-lead { font-size: 1.25rem; line-height: 1.7; max-width: 62ch; margin: 0; }
html[lang="en"] .g-h1, html[lang="en"] .g-h2 { letter-spacing: -.02em; }

/* ---------------------------------------------------------------- the old world's ornaments, retired */
.w-h::before, .v-sweep { display: none !important; }
.w-h { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); font-weight: 600; }
.w-sec { padding-block: var(--g-sec); }
.w-head { margin-bottom: 48px; }

/* ---------------------------------------------------------------- the company's deep bands: the header, inner page heads, the visit, the footer */
.top, .top.over.solid { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.top .logo-day { display: none; }
.top .logo-night { display: inline-block; }
.top-wa { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
.top .nav a, .top .menu a { color: inherit; }
.head-band, .g-band { background: var(--deep); color: var(--on-deep); }
.head-band .page-head p { color: var(--mut-deep); }
.w-end { background: var(--deep); color: var(--on-deep); border: 0; }
.w-end p { color: var(--mut-deep); }
.w-end .w-btn { color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 34%, transparent); }
.w-end .w-btn-p, .g-band .w-btn-p { background: var(--s-fill); color: var(--on-s); border-color: transparent; }
.foot { background: var(--deep2); color: var(--on-deep); }
.foot-bar { border-top: 0; }
.foot-grid small, .foot-bar > span, .foot-text { color: var(--mut-deep); opacity: 1; }
.foot-credit { margin: 0; padding-block: 14px 22px; font-size: .875rem; color: var(--mut-deep); text-align: center; }
.foot-credit a { color: var(--on-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--s-deep) 70%, transparent); }
.foot-credit a:hover { text-decoration-color: var(--s-deep); }
.g-band :focus-visible, .foot :focus-visible, .top :focus-visible, .w-end :focus-visible { outline-color: var(--s-deep); }

/* ---------------------------------------------------------------- shared parts */
.g-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 48px; }
.g-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: inherit; text-decoration: none; }
.g-more::after, .g-go::after, .g-kit i::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(-135deg); transition: transform .3s var(--g-ease); }
html[dir="ltr"] .g-more::after, html[dir="ltr"] .g-go::after, html[dir="ltr"] .g-kit i::after { transform: rotate(45deg); }
.g-more:hover::after { transform: translateX(-4px) rotate(-135deg); }
html[dir="ltr"] .g-more:hover::after { transform: translateX(4px) rotate(45deg); }
.g-band .g-more { color: var(--on-deep); }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: var(--g-rb);
  background: var(--sf); color: var(--ink); font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--g-ease), background-color .2s; }
.g-btn:hover { background: color-mix(in srgb, var(--sf) 82%, var(--ink)); }
.g-btn:active, .g-tile:active, .g-cat:active, .g-kit:active { transform: scale(.97); }
.g-btn-p { min-height: 56px; background: var(--s-fill); color: var(--on-s); }
.g-btn-p:hover { background: color-mix(in srgb, var(--s-fill) 88%, var(--ink)); }
.g-btn svg, .g-keep svg, .g-zoom svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- the tile: a true-scale detail of the slab, the whole slab on hover */
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.g-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.g-tile { display: grid; gap: 14px; color: inherit; text-decoration: none; transition: transform .16s var(--g-ease); }
.g-tile-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--g-r); background: var(--well); }
.g-tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--g-ease), opacity .26s; }
.g-tile-pic .g-tile-whole { object-fit: contain; padding: 14%; background: var(--well); opacity: 0; }
@media (hover: hover) {
  .g-tile:hover .g-tile-pic img:first-child { transform: scale(1.03); }
  .g-tile:hover .g-tile-whole { opacity: 1; }
}
.g-tile-t { display: grid; gap: 2px; min-width: 0; }
.g-tile-t b { font-size: 1.125rem; font-weight: 600; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-meta { font-size: .875rem; color: var(--mut); }
.g-ghost { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 64px; border-radius: var(--g-rb); background: var(--sf);
  color: var(--ink); font-weight: 600; text-decoration: none; }
.g-ghost:hover { background: color-mix(in srgb, var(--sf) 82%, var(--ink)); }

/* ---------------------------------------------------------------- home: the categories on the deep band */
.g-cats { padding-block: var(--g-sec); }
.g-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-cat { display: grid; gap: 22px; color: inherit; text-decoration: none; transition: transform .16s var(--g-ease); }
.g-cat-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--g-r); background: var(--deep2); }
.g-cat-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--g-ease); }
@media (hover: hover) { .g-cat:hover .g-cat-pic img { transform: scale(1.03); } }
.g-cat-t { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; }
.g-cat-name { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 600; line-height: 1.2; }
.g-cat-fact { grid-column: 1; color: var(--mut-deep); font-size: 1rem; }
.g-minis { grid-column: 1; display: flex; gap: 6px; margin-top: 10px; }
.g-minis img { width: 56px; height: 28px; object-fit: cover; border-radius: 2px; }
.g-go { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 32px; height: 32px; color: var(--s-deep); transition: transform .3s var(--g-ease); }
.g-cat:hover .g-go { transform: translateX(-6px); }
html[dir="ltr"] .g-cat:hover .g-go { transform: translateX(6px); }
.g-cats[data-n="1"] .g-cat-list { grid-template-columns: 1fr; }
.g-cats[data-n="1"] .g-cat-pic { aspect-ratio: 21 / 9; }
.g-cats[data-n="3"] .g-cat-list { grid-template-columns: 1.4fr 1fr; }
.g-cats[data-n="3"] .g-cat-list > li:first-child { grid-row: span 2; }
.g-cats[data-n="3"] .g-cat-list > li:not(:first-child) .g-cat-pic { aspect-ratio: 3 / 2; }
.g-cats[data-n="4"] .g-cat-pic { aspect-ratio: 3 / 2; }
.g-cats[data-n="5"] .g-cat-list, .g-cats[data-n="6"] .g-cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- the category page */
.g-phead { padding-block: clamp(40px, 5vw, 72px); }
.g-phead-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: 320px; }
.g-phead-t { display: grid; gap: 22px; align-content: center; }
.g-phead .g-lead { color: var(--mut-deep); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-phead-pic { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--g-r); background: var(--deep2); }
.g-phead-pic img { width: 100%; height: 100%; object-fit: cover; }
.g-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-facts li { padding: 8px 14px; border-radius: var(--g-rb); background: color-mix(in srgb, var(--on-deep) 9%, transparent); font-size: .95rem; }
.g-bar { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--sf); }
.g-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 76px; padding-block: 12px; }
.g-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: calc(var(--g-rb) + 4px); background: var(--bg); }
.g-seg a { padding: 9px 18px; border-radius: var(--g-rb); color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.g-seg a:hover { background: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.g-seg a[aria-current] { background: var(--deep); color: var(--on-deep); }
.g-filt > summary { display: none; }
.g-filt::details-content { content-visibility: visible; display: contents; }
.g-filt-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: var(--g-rb); background: var(--bg); color: var(--ink);
  font-size: .95rem; text-decoration: none; white-space: nowrap; }
html[dir="rtl"] .g-chip { padding: 6px 8px 6px 14px; }
.g-chip:first-child { padding-inline: 14px; }
.g-chip:hover { background: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.g-chip[aria-current] { background: var(--deep); color: var(--on-deep); }
.g-chip .num { color: var(--mut); font-size: .85rem; }
.g-chip[aria-current] .num { color: var(--mut-deep); }
.g-sw { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.g-filt-in .filter { display: none; }
.g-clear { font-size: .95rem; color: var(--mut); }
.g-count { margin: 0 0 0 auto; color: var(--mut); font-size: .95rem; }
html[dir="rtl"] .g-count { margin: 0 auto 0 0; }
.g-list { padding-block: 56px var(--g-sec); }

/* ---------------------------------------------------------------- the product page */
.g-prod { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; padding-block: 32px clamp(56px, 6vw, 96px); }
.g-stage { position: relative; margin: 0; aspect-ratio: 4 / 3; max-height: calc(100vh - 140px); width: 100%; overflow: hidden; border-radius: var(--g-r); background: var(--well); cursor: zoom-in; }
.g-stage .g-main { width: 100%; height: 100%; object-fit: contain; padding: 3%; box-sizing: border-box; background: none; }
.g-lb-img { background: none; }
.g-stage[data-kind="close"] .g-main { object-fit: none; padding: 0; }
.g-stage[data-kind="photo"] .g-main { object-fit: cover; padding: 0; }
.g-zoom { position: absolute; inset-block-end: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--g-rb); background: color-mix(in srgb, var(--sf) 94%, transparent); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.g-zoom:hover { background: var(--sf); }
.g-stage .g-count { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; margin: 0; padding: 4px 10px; border-radius: var(--g-rb);
  background: color-mix(in srgb, var(--sf) 90%, transparent); color: var(--ink); font-size: .875rem; display: none; }
.g-thumbs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.g-thumb { display: grid; gap: 6px; width: 88px; color: var(--mut); font-size: .875rem; line-height: 1.3; text-align: center; text-decoration: none; }
.g-thumb img { width: 88px; height: 66px; object-fit: cover; border-radius: calc(var(--g-r) * .6); background: var(--well); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.g-thumb .g-th-close { object-fit: none; object-position: 50% 50%; }
.g-thumb[aria-current] { color: var(--ink); font-weight: 600; }
.g-thumb[aria-current] img { outline-color: var(--ink); }
.g-thumb:hover img { outline-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.g-info { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.g-info-in { display: grid; gap: 14px; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--mut); }
.g-crumbs a { color: inherit; text-decoration: none; }
.g-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.g-name { margin: 6px 0 0; font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.6rem); font-weight: var(--g-dw); line-height: 1.3; text-wrap: balance; }
.g-fact { margin: 0; color: var(--mut); font-size: 1rem; }
.g-avail { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; }
.g-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; }
.g-avail.no::before { background: var(--mut); }
.g-desc { margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-acts { display: grid; gap: 12px; margin-top: 18px; }
.g-acts .g-btn-p { width: 100%; }
.g-kit { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 8px; padding-inline-end: 20px; border-radius: var(--g-r);
  background: var(--sf); color: var(--ink); font-weight: 600; text-decoration: none; transition: transform .16s var(--g-ease), background-color .2s; }
.g-kit:hover { background: color-mix(in srgb, var(--sf) 82%, var(--ink)); }
.g-kit img { width: 84px; height: 54px; object-fit: cover; border-radius: calc(var(--g-r) * .6); }
.g-kit i { display: grid; place-items: center; }
.g-halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.g-keep { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--mut); font: inherit; font-size: .95rem; cursor: pointer; }
.g-keep:hover { color: var(--ink); }
.g-keep[aria-pressed="true"] { color: var(--ink); }
.g-keep[aria-pressed="true"] svg { fill: currentColor; }
.g-more-sec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 72px); padding-block: 0 var(--g-sec); }
.g-spec { display: grid; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: var(--g-r); background: var(--sf); }
.g-spec-tiles { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
/* without the long words the specifications run the page's whole width */
.g-more-sec:not(:has(.g-long)) { grid-template-columns: 1fr; }
.g-more-sec:not(:has(.g-long)) .g-spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: clamp(32px, 4vw, 64px); }
.g-more-sec:not(:has(.g-long)) .g-spec > .g-h3, .g-more-sec:not(:has(.g-long)) .g-spec-tiles { grid-column: 1 / -1; }
.g-spec-tiles div { display: grid; gap: 2px; padding: 16px 18px; border-radius: calc(var(--g-r) * .7); background: var(--bg); }
.g-spec-tiles dt { font-size: .875rem; color: var(--mut); }
.g-spec-tiles dd { margin: 0; font-size: 1.125rem; font-weight: 600; }
.g-feats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 16px; }
.g-feats li { display: grid; justify-items: start; gap: 10px; font-size: .95rem; line-height: 1.4; }
.g-feats svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.g-suits { margin: 0; color: var(--mut); }
.g-suits b { color: var(--ink); margin-inline-end: 8px; }
.g-long { max-width: 68ch; }
.g-similar { padding-block: 0 var(--g-sec); }

/* ---------------------------------------------------------------- the phone bar: WhatsApp (or a call back) and the visit, never wrapping */
.v-bar a { white-space: nowrap; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .g-spec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .g-phead-in { grid-template-columns: 1fr; min-height: 0; }
  .g-phead-pic { order: -1; margin-inline: calc(-1 * var(--g-m)); border-radius: 0; aspect-ratio: 16 / 10; }
  .g-phead { padding-top: 0; }
  .g-bar-in { flex-wrap: nowrap; min-height: 64px; gap: 10px; }
  .g-seg { overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
  .g-seg::-webkit-scrollbar { display: none; }
  .g-seg a { padding: 8px 14px; }
  .g-filt > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--g-rb); background: var(--bg); font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
  .g-filt > summary::-webkit-details-marker { display: none; }
  .g-filt[data-active] > summary { background: var(--deep); color: var(--on-deep); }
  .g-filt::details-content { content-visibility: hidden; display: block; }
  .g-filt[open]::details-content { content-visibility: visible; }
  .g-filt[open] .g-filt-in { position: fixed; inset: auto 0 0; z-index: 40; display: grid; gap: 16px; max-height: 70vh; overflow: auto; padding: 24px var(--g-m) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--sf); border-radius: var(--g-r) var(--g-r) 0 0; box-shadow: 0 -18px 50px rgb(0 0 0 / .28); }
  .g-count { display: none; }
  .g-list { padding-top: 32px; }
  .g-prod { grid-template-columns: 1fr; padding-top: 0; gap: 22px; }
  .g-gal { margin-inline: calc(-1 * var(--g-m)); }
  .g-stage { border-radius: 0; max-height: none; }
  .g-stage .g-count { display: block; }
  .g-thumbs { padding-inline: var(--g-m); }
  .g-info { position: static; }
  .g-more-sec { grid-template-columns: 1fr; }
  .g-cat-list, .g-cats[data-n] .g-cat-list { grid-template-columns: 1fr; gap: 44px; }
  .g-cats[data-n] .g-cat-list > li:first-child { grid-row: auto; }
  .g-cat-pic, .g-cats[data-n] .g-cat-pic, .g-cats[data-n] .g-cat-list > li .g-cat-pic { aspect-ratio: 4 / 3; }
  body.pg-products, body.pg-product { padding-bottom: 74px; }
}
@media (max-width: 560px) {
  .g-grid { grid-template-columns: 1fr; gap: 36px; }
  .g-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .g-grid-4 .g-tile-t b { font-size: 1rem; }
  .g-spec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-thumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .g-tile-pic img, .g-cat-pic img, .g-btn, .g-tile, .g-cat, .g-kit { transition: opacity .2s; }
  .g-tile:hover .g-tile-pic img:first-child, .g-cat:hover .g-cat-pic img { transform: none; }
}
@media (max-width: 900px) {
  .g-more-sec .g-spec, .g-more-sec:not(:has(.g-long)) .g-spec { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- the home page's other sections, without the vitrine's frames */
.g-drawer { padding-block: var(--g-sec); }
.kit-case { outline: 0; box-shadow: none; border-radius: var(--g-r); overflow: hidden; }
.kit-case img, .w-about-pic, .work img { border-radius: var(--g-r); }
.vitrine::before, .w-hall::before { display: none; }
@media (max-width: 900px) {
  /* the filter sheet rises above the phone bar, which steps aside while it is open */
  .g-bar:has(.g-filt[open]) { z-index: 45; }
  body:has(.g-filt[open]) .v-bar { display: none; }
}

/* the header over the home page's first picture: clear while the picture shows, the company's deep band once the page scrolls
   (a light company included); over the vitrine's light case it is the deep band from the start */
html[data-mode] .top.over { background: var(--deep); color: var(--on-deep); border-color: transparent; }
html[data-mode][data-layout="wide"] .top.over:not(.solid):not([data-open]), html[data-mode][data-layout="works"] .top.over:not(.solid):not([data-open]) {
  background: linear-gradient(to bottom, rgb(8 9 10 / .55), rgb(8 9 10 / 0)); color: #fff; }
.g-cat-pic { max-height: min(76vh, 720px); width: 100%; }
.top .mode-btn { border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }

/* ---------------------------------------------------------------- the kitchen in the stage (drawn by the design tool's engine) */
.g-stage .g-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--g-ease); }
.g-stage[data-kind="kitchen"] .g-main { visibility: hidden; }
.g-stage:not([data-kind="kitchen"]) .g-canvas, .g-stage:not([data-kind="kitchen"]) .g-wait { display: none; }
.g-stage.kit-ready .g-canvas { opacity: 1; }
.g-wait { position: absolute; inset: auto 0 50%; margin: 0; text-align: center; color: var(--mut); font-size: .95rem; }
.g-stage[data-kind="kitchen"] { cursor: default; }

/* ---------------------------------------------------------------- the lightbox: the view full screen on the company's deepest tone */
.g-lb { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--deep2); color: var(--on-deep); overflow: hidden; }
.g-lb::backdrop { background: var(--deep2); }
.g-lb-frame { position: absolute; inset: 0 0 64px; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.g-lb[data-zoomed="1"] .g-lb-frame { cursor: grab; }
.g-lb[data-zoomed="1"] .g-lb-frame:active { cursor: grabbing; }
.g-lb-img { max-width: calc(100% - 48px); max-height: calc(100dvh - 140px); width: auto; height: auto; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; will-change: transform; }
.g-lb-cap { position: absolute; inset: auto 0 0; margin: 0; padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .95rem; color: var(--mut-deep); }
.g-lb-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--g-rb); background: none; color: var(--on-deep); cursor: pointer; transition: color .2s, background-color .2s; }
.g-lb-btn:hover { background: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.g-lb-prev svg, .g-lb-next svg { width: 30px; height: 30px; stroke-width: 1.5; }
.g-lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-lb-tools { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; display: flex; gap: 8px; }
.g-lb-prev, .g-lb-next { position: absolute; top: 50%; margin-top: -24px; }
.g-lb-prev { inset-inline-start: 16px; }
.g-lb-next { inset-inline-end: 16px; }
.g-lb[data-many="0"] .g-lb-prev, .g-lb[data-many="0"] .g-lb-next { display: none; }
.g-lb :focus-visible { outline: 2px solid var(--s-deep); outline-offset: 3px; }
@media (max-width: 900px) { .g-lb-prev, .g-lb-next, .g-lb-in, .g-lb-out { display: none; } .g-lb-img { max-width: 100%; } }
html:has(.g-lb[open]) { overflow: hidden; }

/* ---------------------------------------------------------------- «اترك رقمك ونتصل بك» */
.g-call { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--g-r); background: var(--sf); color: var(--ink); }
.g-call::backdrop { background: rgb(0 0 0 / .55); }
.g-call-form { display: grid; gap: 14px; padding: 28px; }
.g-call-form p { margin: 0; color: var(--mut); }
.g-call-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.g-call { overflow-x: hidden; }
.g-call-form input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ln); border-radius: var(--g-rb); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.g-call-form input:focus { outline: 2px solid var(--s-text); outline-offset: 1px; border-color: transparent; }
.g-call-form .g-consent { font-size: .875rem; }
.g-call-err { min-height: 1.4em; color: #B3261E !important; font-size: .9rem; }
html[data-mode="dark"] .g-call-err { color: #FFB4AB !important; }
.g-sent { color: var(--ink) !important; font-size: 1.05rem; }
.g-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- the vitrine first screen, without its ornaments */
.vitrine { background: var(--bg); color: var(--ink); }
.v-case { outline: 0; box-shadow: none; border-radius: var(--g-r); background: var(--well); }
.v-name { font-weight: var(--g-dw); }
.v-tag { border: 0; padding: 0; color: var(--mut); gap: 4px 14px; }
.v-tag::before { display: none; }
.v-tag b { color: var(--ink); }
.v-acts .v-wa, .v-acts .v-visit { border-radius: var(--g-rb); }
.v-acts .v-visit { border: 0; background: var(--sf); color: var(--ink); }
.v-acts .v-visit:hover { background: color-mix(in srgb, var(--sf) 82%, var(--ink)); }
.v-pieces { background: none; border-top: 0; padding: 0; }
.v-piece img { box-shadow: none; border-radius: calc(var(--g-r) * .6); outline: 2px solid transparent; outline-offset: 3px; }
.v-piece:hover img, .v-piece[aria-pressed="true"] img, .v-piece[aria-current] img { transform: none; }
.v-piece[aria-pressed="true"] img, .v-piece[aria-current] img { outline-color: var(--ink); }
.v-piece span b { color: var(--mut); }

/* ---------------------------------------------------------------- the first picture's words stay readable on a bright kitchen */
.wide-stage::after { background: linear-gradient(to left, color-mix(in srgb, var(--cat-dark) 92%, transparent) 0%, color-mix(in srgb, var(--cat-dark) 70%, transparent) 36%, color-mix(in srgb, var(--cat-dark) 18%, transparent) 70%),
  linear-gradient(to top, color-mix(in srgb, var(--cat-dark) 70%, transparent), transparent 30%); }
html[dir="ltr"] .wide-stage::after { background: linear-gradient(to right, color-mix(in srgb, var(--cat-dark) 92%, transparent) 0%, color-mix(in srgb, var(--cat-dark) 70%, transparent) 36%, color-mix(in srgb, var(--cat-dark) 18%, transparent) 70%),
  linear-gradient(to top, color-mix(in srgb, var(--cat-dark) 70%, transparent), transparent 30%); }

/* the display weight follows the font pair; a kitchen among the colours takes two columns */
html[data-font="messiri"] { --g-dw: 600; }
html[data-font="readex"] { --g-dw: 400; }
.g-kitchen { grid-column: span 2; }
.g-kitchen .g-tile-pic { aspect-ratio: auto; height: 100%; min-height: 100%; }
.g-kitchen { grid-template-rows: 1fr auto; }
@media (max-width: 560px) { .g-kitchen { grid-column: auto; } .g-kitchen .g-tile-pic { aspect-ratio: 4 / 3; height: auto; } }
/* on a computer the arrows stand beside the picture, never over it */
@media (min-width: 901px) { .g-lb-img { max-width: calc(100% - 176px); } }

/* the finish review (2026-11-07): the phone bar opaque, its buttons without the browser's border; the category page's bar wraps
   on a phone (no segment cut at the edge) and its intro is whole; the vitrine's resting shadows gone in either mode */
.v-bar { background: var(--sf); border-top: 0; }
.v-bar button { border: 0; font: inherit; cursor: pointer; }
.v-bar > :only-child { grid-column: 1 / -1; }
.v-bar .v-visit { border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: none; color: var(--ink); }
@media (max-width: 900px) {
  .g-bar-in { flex-wrap: wrap; padding-block: 10px; }
  .g-seg { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
  .g-seg a { flex: 1 1 auto; text-align: center; white-space: normal; }
  .g-phead .g-lead { display: block; -webkit-line-clamp: none; overflow: visible; }
}
html[data-mode] .v-case, html[data-mode] .kit-case, html[data-mode] .v-piece img, html[data-mode] .piece img, html[data-mode] .hall-slab { box-shadow: none; }

/* the last of the vitrine's gold lines (the works tile, the reviews, the inner pages' heads, the visitor's list): tone steps instead */
.works-t { border-top: 0; background: var(--deep); color: var(--on-deep); }
.said figure { border-top: 0; padding: 24px; border-radius: var(--g-r); background: var(--sf); }
.head-band .page-head h1::before { display: none; }
.keep-chip { border: 0; border-radius: var(--g-rb); background: var(--deep); color: var(--on-deep); }
.keep-box { border: 0; border-radius: var(--g-r); background: var(--sf); color: var(--ink); }
