:root {
  --paper: #f7f4ed;
  --ink: #252017;
  --muted: #62574b;
  --accent: #8b482f;
  --line: #dcd2c3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --margin: clamp(22px, 5.4vw, 86px);
  --panel-inset: clamp(14px, 2.7vw, 42px);
  --radius-panel: clamp(20px, 2.4vw, 34px);
  --radius-card: clamp(14px, 1.6vw, 22px);
  --surface: #fcf9f3;
  --shadow-card: 0 2px 5px #4429160b, 0 10px 26px #44291612;
  --shadow-panel: 0 3px 8px #4429160c, 0 18px 46px #4429161c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f2ede4; color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a85b36; outline-offset: 5px; }
.utility-page { margin-block: 55px; padding-block: 32px; max-width: 1000px; }
.utility-page h1 { margin-block: 16px 32px; }
.utility-page section { margin-block: 22px; padding: 25px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.utility-page section h2 { font: 600 23px/1.5 var(--sans); margin-bottom: 10px; }
.utility-page > .primary { display: inline-flex; margin-top: 25px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.site-header {
  min-height: 83px;
  margin: var(--panel-inset) var(--panel-inset) 0;
  padding: 10px clamp(16px, 3vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid #e6dbcb;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.brand { justify-self: start; display: block; width: 94px; aspect-ratio: 1; overflow: hidden; }
.brand img { height: auto; transform: scale(1.43); }
.site-header .brand { mix-blend-mode: multiply; }
nav { display: flex; gap: clamp(16px, 3.5vw, 54px); }
nav a, .header-link, .site-footer > a:last-child { font-size: 13px; font-weight: 600; }
nav a:hover, .header-link:hover, .site-footer > a:last-child:hover { color: var(--accent); }
.header-link { justify-self: end; border-bottom: 1px solid var(--ink); padding: 5px 0; }
.header-link span, .site-footer > a:last-child span { margin-left: 9px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  min-height: clamp(545px, 49vw, 800px);
  margin: clamp(18px, 2.6vw, 36px) var(--panel-inset) 0;
  background: var(--surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  overflow: clip;
}
.hero-copy { padding: clamp(56px, 7vw, 105px) 24px clamp(54px, 6.5vw, 100px) clamp(25px, 4vw, 66px); align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow i { width: 24px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(52px, 7.2vw, 128px); line-height: .87; letter-spacing: -.025em; margin: 30px 0 25px; }
em { font-weight: 400; color: var(--accent); }
.intro { max-width: 355px; color: var(--muted); }
.primary { display: inline-flex; align-items: center; gap: 28px; margin-top: 32px; padding: 15px 19px; background: #35271e; color: #fff8eb; font-size: 13px; font-weight: 600; }
.primary, .color-banner-action { border-radius: 999px; }
.primary:hover { background: var(--accent); }
.hero-image { position: relative; background: #b18c69; }
.hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 31%; }
.hero-image figcaption { position: absolute; bottom: 18px; right: 18px; padding: 8px 12px; border-radius: 999px; color: #fff8eb; background: #272018dc; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.wrap { padding-inline: var(--margin); }
.collection { padding-block: clamp(65px, 8.5vw, 130px); }
.section-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: end; margin-bottom: 34px; }
.section-head > p { justify-self: end; max-width: 365px; color: var(--muted); }
h2 { font-size: clamp(49px, 6.2vw, 99px); line-height: .96; letter-spacing: -.02em; }
.section-head h2, .craft h2 { margin-top: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.filters button { border: 1px solid #c6b8a7; background: transparent; padding: 8px 14px; border-radius: 25px; font-size: 12px; font-weight: 600; }
.filters button:hover { border-color: var(--accent); }
.filters [aria-pressed="true"] { color: #fff8eb; background: #35271e; border-color: #35271e; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 34px 22px; }
.piece-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: clip;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .piece-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-panel); }
}
.piece img { aspect-ratio: 4 / 4.6; object-fit: cover; background: #e4dacb; transition: filter .2s ease; }
.piece-link:hover img { filter: brightness(.89); }
.piece-label { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex: 1; padding: 14px clamp(11px, 1.6vw, 25px) 17px; }
.piece-label h3 { font-size: clamp(25px, 2.5vw, 38px); line-height: 1.03; }
.piece-label p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.piece-label span { flex: 0 0 35px; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; }
.piece-link:hover .piece-label > span { background: #35271e; color: #fff8eb; }
.design-id {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #faf7f0ed;
  color: #35271e;
  box-shadow: 0 3px 12px #241a1526;
  font: 500 11px/1.5 var(--sans);
  pointer-events: none;
}
.design-id bdi { font-weight: 700; letter-spacing: .06em; }
.studio-preview, .wall-stage { position: relative; }
.craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-inline: var(--panel-inset);
  border-radius: var(--radius-panel);
  overflow: clip;
  background: #2d241c;
  color: #faf1e4;
  box-shadow: var(--shadow-panel);
}
.craft img { height: 100%; min-height: 470px; max-height: 690px; object-fit: cover; }
.craft-copy { padding: clamp(52px, 7.6vw, 128px) var(--margin); align-self: center; }
.craft em, .craft .eyebrow { color: #e3ad89; }
.craft-copy > p:not(.eyebrow) { max-width: 360px; margin-top: 20px; color: #e5d9cc; }
.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 5vw, 74px);
  margin: clamp(32px, 5vw, 76px) var(--panel-inset) var(--panel-inset);
  padding-block: 25px;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  background: #211b16;
  color: #faf1e4;
  border-top: 1px solid #514337;
}
.site-footer .brand { width: 135px; mix-blend-mode: screen; }
.copyright { font-size: 13px; }
.copyright p + p { margin-top: 5px; color: #ddcfc0; }
.site-footer > a:last-child:hover { color: #e3ad89; }
.lightbox { max-width: min(92vw, 820px); max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 20px 65px #140e0a66; background: var(--surface); color: var(--ink); }
.lightbox::backdrop { background: #17120ee6; }
.lightbox-content { padding: 12px 18px; }
.lightbox img { object-fit: contain; width: min(74vw, 720px); height: min(69dvh, 750px); background: #ede5d8; }
.lightbox-head, .lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox-head { margin-bottom: 8px; }
.lightbox h2 { font-size: clamp(25px, 4vw, 35px); }
.lightbox button { background: transparent; border: 0; border-radius: 999px; min-height: 44px; font-weight: 600; }
.lightbox-head button { font-size: 28px; min-width: 44px; }
@media (max-width: 710px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; gap: 12px; }
  .site-header .brand { width: 75px; }
  .header-link { display: none; }
  .hero, .craft, .section-head { grid-template-columns: 1fr; }
  .hero-copy { padding: 54px var(--margin) 50px; }
  h1 { font-size: clamp(53px, 13vw, 89px); }
  .hero-image { aspect-ratio: 1 / 1.05; }
  .section-head { gap: 15px; margin-bottom: 22px; }
  .section-head > p { justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 13px; }
  .piece-label span { flex-basis: 29px; font-size: 13px; }
  .craft img { min-height: auto; height: auto; aspect-ratio: 1.25; }
}
@media (max-width: 365px) {
  .gallery { grid-template-columns: 1fr; }
  nav { gap: 12px; }
}
@media (max-width: 620px) {
  .site-footer { grid-template-columns: 1fr auto; gap: 18px; }
  .site-footer .brand { width: 115px; }
  .site-footer .copyright { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.lightbox-layout {
  display: grid;
  align-items: start;
  gap: 18px;
  width: min(calc(92vw - 40px), 750px);
}
.lightbox-layout:has(.studio-controls:not([hidden])) { grid-template-columns: minmax(0, 1fr) 220px; }
.studio-preview { position: relative; min-width: 0; border-radius: 13px; overflow: clip; }
.studio-preview img { width: 100%; height: min(65dvh, 670px); }
.studio-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.studio-photo-recolored { visibility: hidden; }
.studio-preview:has(.studio-photo-recolored) { background: #ede5d8; }
.studio-controls { display: grid; gap: 10px; font-size: 14px; }
.studio-controls label, .studio-controls legend { font-weight: 600; }
.studio-controls fieldset { border-radius: 13px; border: 1px solid #aa9885; min-width: 0; margin: 0; padding: 8px 12px; }
.studio-layer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.studio-layer + .studio-layer { border-top: 1px solid #d1c2b2; }
.studio-layer input { flex: 0 0 48px; width: 48px; height: 44px; border: 0; background: transparent; padding: 5px 0; cursor: pointer; }
.lightbox .studio-reset { justify-self: start; border: 1px solid #aa9885; padding-inline: 12px; }
.studio-reset:hover { background: #ded0bf; }
.piece[data-design] .piece-label p { color: var(--accent); }
@media (max-width: 590px) {
  .lightbox-layout:has(.studio-controls:not([hidden])) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lightbox-layout:has(.studio-controls:not([hidden])) img { height: min(37dvh, 460px); }
}

.collection-link {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4.5vw, 64px);
}
.collection-link .primary { margin-top: 0; }
.collection-page { padding-top: clamp(46px, 6vw, 96px); }
.collection-heading {
  padding-bottom: clamp(24px, 3.5vw, 50px);
  border-bottom: 1px solid var(--line);
}
.collection-heading h1 { margin: 18px 0 0; }
.site-header [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.color-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(18px, 3vw, 42px);
  row-gap: 18px;
  margin: 0 0 24px;
  padding: clamp(21px, 3.2vw, 42px);
  background: #efe6d7;
  border: 1px solid #e0d2bd;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-panel);
}
.color-banner-swatches { display: flex; padding-right: 4px; }
.color-banner-swatches span {
  width: clamp(24px, 3vw, 44px);
  aspect-ratio: 1;
  border: 2px solid #efe6d7;
  border-radius: 50%;
  background: #425b4d;
}
.color-banner-swatches span + span { margin-left: -9px; background: #a36b50; }
.color-banner-swatches span:last-child { background: #d8b884; }
.color-banner-copy h2 { margin: 7px 0 9px; font-size: clamp(34px, 4vw, 54px); }
.color-banner-copy > p:last-child { max-width: 450px; color: var(--muted); font-size: 14px; }
.color-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  min-height: 44px;
  background: #35271e;
  border: 1px solid #35271e;
  color: #fff8eb;
  font-size: 13px;
  font-weight: 600;
}
.color-banner-action:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 850px) {
  .color-banner { grid-template-columns: auto minmax(0, 1fr); }
  .color-banner-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 475px) {
  .color-banner { grid-template-columns: minmax(0, 1fr); }
  .color-banner-action { grid-column: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page {
    scroll-snap-type: y mandatory;
    scroll-padding-block: var(--panel-inset);
  }
  .home-page :is(.site-header, .hero, .collection, .craft) {
    scroll-snap-align: start;
  }
  .home-page .site-footer {
    scroll-snap-align: end;
  }
}

.wall-page { padding-block: clamp(42px, 6vw, 95px) 12px; }
.wall-page h1 { margin: 16px 0 0; }
.wall-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 290px); gap: clamp(16px, 2.5vw, 36px); align-items: start; }
.wall-stage, .wall-tools { border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: var(--surface); }
.wall-stage { display: grid; justify-items: center; overflow: clip; background: #e8ddcd; }
.wall-empty { min-height: 370px; display: grid; align-content: center; gap: 14px; text-align: center; padding: 24px; }
.wall-empty h2 { font-size: clamp(37px, 5vw, 63px); }
.wall-empty p, #wall-status { color: var(--muted); }
#wall-scene {
  position: relative;
  width: min(100%, var(--scene-max-width, 100%));
  overflow: clip;
  container-type: inline-size;
}
#wall-canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; }
#wall-canvas:active { cursor: grabbing; }
#wall-placement {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wall-object-shadow {
  filter: drop-shadow(0 .28cqw .46cqw rgb(35 23 14 / var(--contact-alpha)))
    drop-shadow(var(--shadow-x) var(--shadow-y) 1.3cqw rgb(35 23 14 / var(--cast-alpha)));
}
#wall-object {
  position: relative;
  transform: perspective(82cqw) rotateZ(var(--spin)) rotateX(var(--pitch)) rotateY(var(--yaw));
  transform-style: preserve-3d;
}
.wall-object-face, .wall-object-edge { display: block; width: 100%; height: auto; }
.wall-object-face { position: relative; }
.wall-object-edge {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--layer) * -.18cqw));
}
.wall-tools { padding: 20px; display: grid; gap: 9px; font-size: 13px; }
.wall-tools label, .wall-tools legend { font-weight: 600; }
.wall-tools select, .wall-secondary, .wall-tools input::file-selector-button {
  color: var(--ink); background: var(--paper); border: 1px solid #c9b9a8; border-radius: 12px; min-height: 40px; padding: 7px 10px; font: inherit;
}
.wall-tools fieldset { min-width: 0; margin: 5px 0; border: 1px solid #d4c6b5; border-radius: 13px; padding: 6px 10px; }
.wall-adjustments { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7px; }
.wall-adjustments input { width: 100%; min-width: 0; accent-color: var(--accent); }
.wall-tools .wall-ai { justify-content: space-between; margin-top: 2px; border: 0; gap: 9px; text-align: left; }
.wall-ai:disabled { opacity: .55; cursor: default; }
#wall-status { min-height: 3em; }
@media (max-width: 710px) { .wall-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 390px) { .site-header nav { gap: 9px; } .site-header nav a { font-size: 12px; } }

.piece { display: flex; flex-direction: column; min-width: 0; }
.piece > .piece-link { flex: 1; }
.product-whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  margin-top: 10px;
  border: 1px solid #c6d3c4;
  border-radius: 14px;
  background: #e9efe5;
  color: #284735;
  font-size: 12px;
  font-weight: 600;
}
.product-whatsapp:hover { background: #dce8d6; border-color: #86a381; }
.studio-layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 9px; gap: 3px 10px; }
.layer-rgb { grid-column: 1 / -1; font: 12px/1.6 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }

.product-whatsapp {
  background: #176b43;
  color: #ffffff;
  border-color: #176b43;
  min-height: 48px;
  font-size: 14px;
  box-shadow: 0 5px 14px #176b4325;
}
.product-whatsapp:hover { background: #105334; border-color: #105334; }
.order-dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  width: min(94vw, 480px);
  max-height: 90dvh;
  background: var(--surface);
  color: var(--ink);
}
.order-dialog::backdrop { background: #17120ed9; }
.order-dialog h2 { font-size: 36px; margin-bottom: 12px; }
.order-dialog textarea { width: 100%; min-height: 160px; padding: 12px; margin-block: 14px; border: 1px solid var(--line); border-radius: 12px; font: 13px/1.5 var(--sans); color: var(--ink); background: var(--paper); }
.order-dialog button { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--paper); }
.order-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.order-dialog img { max-height: 220px; object-fit: contain; margin-block: 12px; }
.order-dialog p { font-size: 13px; color: var(--muted); }

@font-face { font-family: "Takhayeel Arabic"; src: url("fonts/arabic.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
.site-header { grid-template-columns: auto minmax(0,1fr) auto; padding-inline: clamp(14px,3vw,44px); gap: 14px; }
.site-header nav { justify-content: center; flex-wrap: wrap; gap: 12px clamp(12px,2vw,28px); }
.site-header .header-link { display: none; }
.language-picker { font: 600 12px var(--sans); padding: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); max-width: 100%; }
.corporate-uses { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.corporate-uses span { border-radius: 20px; background: #e8e0d2; padding: 8px 16px; font-size: 14px; }
.corporate-fields { display: grid; gap: 10px; margin-block: 12px; }
.corporate-fields label { display: grid; gap: 5px; font-size: 13px; }
.corporate-fields input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; background: var(--paper); }
.install-app { grid-column: 1 / -1; justify-self: start; padding: 10px 16px; color: #faf1e4; border: 1px solid #aa9885; background: transparent; border-radius: 20px; }
.app-update { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; z-index: 20; background: #35271e; color: #fff8eb; border: 1px solid #c6b8a7; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-panel); }
[dir="rtl"] { --sans: "Takhayeel Arabic", Arial, sans-serif; --serif: "Takhayeel Arabic", Arial, sans-serif; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] h1 { line-height: 1.3; font-size: clamp(40px,5.3vw,86px); letter-spacing: 0; font-weight: 500; }
[dir="rtl"] h2 { line-height: 1.45; font-size: clamp(32px,4.4vw,64px); font-weight: 500; }
[dir="rtl"] h3 { line-height: 1.5; font-size: clamp(20px,2vw,29px); font-weight: 500; }
[dir="rtl"] em { font-style: normal; }
[dir="rtl"] .hero-copy { padding: clamp(40px,6vw,90px) clamp(25px,4vw,66px) clamp(40px,6vw,90px) 24px; }
[dir="rtl"] .lightbox h2, [dir="rtl"] .order-dialog h2 { font-size: 26px; }
[dir="rtl"] .color-banner-copy h2 { font-size: clamp(27px,3vw,42px); }
[dir="rtl"] .color-banner-swatches { direction: ltr; }
.layer-rgb, input[type="range"], input[type="color"], #wall-scene { direction: ltr; }
.layer-rgb { text-align: start; unicode-bidi: isolate; }
[dir="rtl"] .wall-tools { text-align: right; }
.order-dialog textarea { min-height: 230px; }
@media (max-width: 620px) {
  .site-header { grid-template-columns: auto 1fr; }
  .language-picker { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header nav { grid-column: 1 / -1; padding-bottom: 8px; }
  .site-header .brand { width: 65px; }
  [dir="rtl"] .hero-copy { padding: 35px 24px; }
  [dir="rtl"] h1 { font-size: clamp(38px,9vw,58px); }
  .piece-label { flex-wrap: wrap; }
}

.order-dialog .product-whatsapp { width: 100%; text-align: start; font: 600 14px/1.6 var(--sans); }
.order-dialog .chat-secondary { background: transparent; color: #176b43; box-shadow: none; }
.order-dialog [aria-disabled="true"] { opacity: .55; cursor: progress; }
.order-dialog [data-delivery-help] { margin-block: 10px; }
