:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #252920;
  --olive: #29382e;
  --gold: #856023;
  --muted: #605d50;
  --line: #dcd5c4;
  --sans: "Noto Sans Arabic", Tahoma, sans-serif;
  --serif: "Noto Serif Arabic", Georgia, var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.9 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a47227;
  outline-offset: 4px;
}
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); line-height: 1.48; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4.65rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: 1.18rem; line-height: 1.55; }
p { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 5rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset-block-start: .5rem; inset-inline-start: .5rem; background: white; padding: .5rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; white-space: nowrap; }
.brand img { display: block; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.brand bdi, .eyebrow bdi { font-family: system-ui, sans-serif; font-size: .8em; letter-spacing: .08em; }
nav { display: flex; gap: clamp(.75rem, 3vw, 2.5rem); font-size: .9rem; white-space: nowrap; }
nav a { padding-block: .55rem; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current=page] { border-color: var(--gold); color: var(--gold); }
.header-contact { display: flex; align-items: center; gap: .5rem; color: var(--olive); font-weight: 700; white-space: nowrap; }
.header-contact:hover, .social a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 490px; margin-block: 3.4rem 4.3rem; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem 0 2rem clamp(1rem, 4.5vw, 4rem); }
.eyebrow { display: flex; align-items: baseline; gap: .5rem; color: var(--gold); font-size: .86rem; font-weight: 700; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; align-self: center; width: 22px; height: 1px; background: currentColor; margin-inline-end: .15rem; }
h1 em { color: var(--gold); font-style: normal; }
.intro { max-width: 37ch; margin-block: 1.2rem 1.8rem; font-size: clamp(1rem, 1.5vw, 1.13rem); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .8rem; min-height: 48px; padding: .48rem 1.16rem; border: 1px solid transparent; font-weight: 700; font-size: .93rem; cursor: pointer; }
.button span, .header-contact span { font-family: system-ui, sans-serif; font-size: 1.05em; }
.primary { background: var(--olive); color: #fffdf6; }
.primary:hover { background: #3e5143; }
.outline { border-color: #a29b89; }
.outline:hover { background: #ebe5d9; }
.hero-art { position: relative; display: block; min-height: 420px; overflow: hidden; background: #e5d8c5; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-art:hover img { filter: brightness(1.025); }
.uv-printing { margin-bottom: 4.3rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.uv-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.uv-heading .eyebrow { margin-bottom: .6rem; }
.uv-heading p { margin-top: .5rem; }
.uv-heading .button { flex-shrink: 0; }
.uv-materials { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.uv-materials li { padding: .85rem .65rem; text-align: center; border: 1px solid var(--line); color: var(--olive); font-weight: 600; }
.uv-materials span { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.contact { background: var(--olive); color: #fffaf0; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 3rem; }
.contact p { color: #e4e3d4; max-width: 45ch; }
.contact .eyebrow { color: #e7cc93; }
.contact .actions { flex-shrink: 0; }
.light-button { background: #f3e9d3; color: var(--olive); }
.light-button:hover { background: #fff9ee; }
.dark-outline { border-color: #b9b8a5; }
.dark-outline:hover { background: #3e5143; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.6rem; font-size: .88rem; }
.footer .brand img { width: 37px; height: 37px; }
.social { display: flex; gap: 1.25rem; color: var(--olive); }
.subhero { padding-block: 3.25rem 2.25rem; }
.subhero .intro { max-width: 44ch; margin-block: .8rem .2rem; }
.gallery { margin-bottom: 4.5rem; }
[hidden] { display: none !important; }
.gallery-tools { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.gallery-search { width: min(100%, 340px); }
.gallery-search label { display: block; font-size: .83rem; font-weight: 700; color: var(--muted); }
.gallery-search input { width: 100%; min-height: 46px; padding: .4rem .8rem; background: #fffdf8; color: var(--ink); border: 1px solid #a39a86; border-radius: 4px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.gallery-filters button, .dialog-button { cursor: pointer; padding: .36rem .8rem; min-height: 42px; font-size: .86rem; color: var(--olive); background: transparent; border: 1px solid #b4aa97; border-radius: 4px; }
.gallery-filters button:hover, .dialog-button:hover:not(:disabled) { background: #ebe5d7; }
.gallery-filters button[aria-pressed="true"] { background: var(--olive); color: #fffaf0; border-color: var(--olive); }
.gallery-count { font-size: .85rem; margin-block: .7rem; }
.gallery-empty { border: 1px solid var(--line); padding: 1.4rem; }
.design-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 2vw, 1.4rem); }
.design { display: flex; flex-direction: column; min-width: 0; background: #fffcf5; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; scroll-margin-top: 1rem; }
.design:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.design-photo { position: relative; display: block; background: #eadcca; }
.design-photo img { display: block; width: 100%; height: auto; }
.design-photo > span { position: absolute; inset-inline-end: .5rem; inset-block-end: .5rem; background: #fffaf1; color: var(--olive); padding: .12rem .45rem; border-radius: 3px; font-size: .74rem; }
.design-photo:hover > span { background: var(--olive); color: #fff; }
.design-meta { padding: .7rem .8rem .5rem; }
.design-meta > span { color: var(--muted); font-size: .77rem; }
.design-code { font-family: system-ui, sans-serif; }
.design-meta h3 { overflow-wrap: anywhere; }
.design-order { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding: .55rem .8rem; min-height: 44px; font-size: .86rem; font-weight: 700; color: var(--olive); border-top: 1px solid var(--line); }
.design-order:hover { background: #ede8da; }
.design-photo:focus-visible, .design-order:focus-visible { outline-offset: -4px; }
.design-dialog { width: min(690px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; }
.design-dialog::backdrop { background: #18261fbb; }
.design-dialog-bar, .design-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .65rem .8rem; }
.design-dialog h2 { font-size: clamp(1rem, 2.7vw, 1.45rem); }
.design-dialog img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; background: #e6d8c5; }
.dialog-paging { display: flex; gap: .35rem; }
.dialog-button:disabled { opacity: .5; cursor: default; }
.design-dialog .button { font-size: .8rem; min-height: 42px; padding-inline: .6rem; }

@media (max-width: 950px) {
  .uv-materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wrap { width: calc(100% - 3rem); }
  .hero { margin-block: 2.5rem 3rem; min-height: 0; }
  .hero-art { min-height: 360px; }
  .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-inner { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 670px) {
  .uv-printing { margin-bottom: 2.7rem; }
  .uv-heading { flex-direction: column; align-items: flex-start; }
  .uv-materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .2rem .5rem; padding-top: .55rem; min-height: 0; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: .4rem; border-top: 1px solid var(--line); }
  nav a { display: flex; align-items: center; min-height: 46px; font-size: .85rem; }
  .brand img { width: 42px; height: 42px; }
  .header-contact { font-size: .83rem; min-height: 44px; }
  .hero { grid-template-columns: 1fr; margin-block: 1.25rem 2.6rem; }
  .hero-text { padding: 1.1rem 0 1.65rem; }
  .hero-art { min-height: 0; aspect-ratio: 1.36; }
  .gallery-tools { flex-direction: column; align-items: stretch; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-meta h3 { font-size: .95rem; }
  .design-order { font-size: .76rem; }
  .gallery { margin-bottom: 2.7rem; }
  .subhero { padding-block: 1.55rem 1.3rem; }
  .subhero .eyebrow { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
