/* Layout: dark-first storefront. A generated "mirage" (dune lines resolving into a lattice) opens the page;
   products sit on studio-paper frames; edition data is set in mono. Terracotta appears only as the one accent. */
:root {
  --bg: #151514;
  --surface: #1e1e1c;
  --fg: #e8e1d3;
  --muted: #a39c8d;
  --line: #34322d;
  --ink: #cdb99a;
  --accent: #d2643b;
  --on-accent: #151514;
  --paper: #dedcd6;
  --label: #cdb99a;
  --label-ink: #1a1a18;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-ar: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ece8de; --surface: #e1dccf; --fg: #1a1a18; --muted: #655f52; --line: #cdc7b7;
    --ink: #2e2b25; --accent: #b0431f; --on-accent: #ffffff; --paper: #dedcd6;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ece8de; --surface: #e1dccf; --fg: #1a1a18; --muted: #655f52; --line: #cdc7b7;
  --ink: #2e2b25; --accent: #b0431f; --on-accent: #ffffff; --paper: #dedcd6;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
h2 {
  font-size: clamp(30px, 5.2vw, 54px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg);
  font: 600 13px/1 var(--f-body);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; color: var(--fg); }
.btn.small { padding: 10px 16px; font-size: 12px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .top { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand .ar { font: 500 26px/1 var(--f-ar); }
.brand .lat { font: 500 11px/1 var(--f-mono); letter-spacing: 0.36em; color: var(--muted); }
.nav { display: none; gap: 28px; }
.nav a {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.nav a:hover { color: var(--fg); }
@media (min-width: 760px) { .nav { display: flex; } }

/* Hero */
.hero { padding-top: clamp(40px, 8vw, 96px); overflow: hidden; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mark { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.mark .ar { font: 500 clamp(96px, 24vw, 250px)/1 var(--f-ar); padding-bottom: 0.2em; }
.mark .lat {
  font: 700 clamp(16px, 3.4vw, 30px)/1 var(--f-display);
  font-stretch: 125%;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
}
.lede { max-width: 46ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--fg); }
.lede span { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  position: relative;
  height: clamp(250px, 44vw, 440px);
  margin-top: clamp(8px, 3vw, 28px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
}
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); }
.facts ul {
  list-style: none; margin-block: 0; padding-block: 16px;
  display: flex; flex-wrap: wrap; gap: 10px 32px;
}
.facts li { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts li b { font-weight: 500; color: var(--fg); }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 120px); }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 48px; margin-bottom: clamp(28px, 5vw, 56px);
}
.sec-head h2 { display: flex; flex-direction: column; gap: 14px; }
.sec-head p.note { max-width: 40ch; color: var(--muted); }

/* Products */
.products { display: grid; gap: clamp(32px, 5vw, 56px); }
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
@media (min-width: 820px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; } }
.p-media, .p-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.p-info .btn { align-self: flex-start; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw {
  appearance: none; background: transparent; color: var(--fg); cursor: pointer;
  border: 1px solid var(--line); padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 13px/1 var(--f-body);
}
.sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.sw:hover { border-color: var(--muted); }
.sw[aria-pressed="true"] { border-color: var(--fg); }
.frame { aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; max-width: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.seg { display: flex; gap: 0; align-self: flex-start; border: 1px solid var(--line); }
.seg button {
  appearance: none; background: transparent; color: var(--muted);
  border: 0; padding: 9px 18px; cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.phead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.phead h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.price { font: 500 16px/1 var(--f-mono); }
.sku { font: 400 12px/1.4 var(--f-mono); letter-spacing: 0.12em; color: var(--muted); }
.specs { margin: 0; display: grid; grid-template-columns: minmax(78px, 110px) 1fr; gap: 10px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.specs dt { font: 500 12px/1.7 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; min-width: 0; }
.dots { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.dot { display: inline-flex; align-items: center; gap: 8px; }
.dot i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }

/* Colourways */
.colourways { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .colourways { grid-template-columns: repeat(3, 1fr); } }
.cw { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cw .frame { aspect-ratio: 4 / 5; }
.cw figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.cw figcaption b { font: 500 13px/1.5 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cw figcaption span { font: 400 13px/1.5 var(--f-body); color: var(--muted); }

/* Details */
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .details { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.detail { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.detail figcaption { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Story */
.story { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 880px) { .story { grid-template-columns: 5fr 6fr; } }
.story-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.story-copy p { color: var(--muted); max-width: 52ch; }
.story-copy p.big { color: var(--fg); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45; }
.story-copy .arline { font: 500 clamp(30px, 5vw, 44px)/1.2 var(--f-ar); color: var(--fg); }
.mosaic { min-width: 0; }
.mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface); }

/* Waitlist */
.waitlist { background: var(--surface); border-block: 1px solid var(--line); }
.wl-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) { .wl-grid { grid-template-columns: 1fr 1fr; } }
.wl-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wl-copy p { color: var(--muted); max-width: 46ch; }
.tag {
  align-self: flex-start;
  background: var(--label); color: var(--label-ink);
  padding: 16px 26px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}
.tag .n { font: 500 clamp(30px, 6vw, 44px)/1 var(--f-mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tag .s { font: 500 11px/1 var(--f-mono); letter-spacing: 0.4em; }
form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
label { font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 10px; }
input, select {
  width: 100%; min-width: 0;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 0;
  padding: 15px 16px; font: 400 16px/1.2 var(--f-body);
}
input::placeholder { color: var(--muted); opacity: .8; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
form .btn { align-self: flex-start; }
.status { min-height: 1.6em; font-size: 14px; color: var(--fg); }
.fine { font: 400 12px/1.5 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; font: 400 13px/1.5 var(--f-body); color: var(--muted); text-transform: none; letter-spacing: 0; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.status { color: var(--fg); }
input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }
@media (max-width: 440px) { .row2 { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; font: 600 18px/1.4 var(--f-display); font-stretch: 105%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-mono); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 32px; }
.foot .ar { font: 500 34px/1 var(--f-ar); }
.foot p { font: 400 12px/1.5 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Language switch */
.lang { font: 600 13px/1 var(--f-body); letter-spacing: 0; text-decoration: none; color: var(--fg); padding: 9px 12px; border: 1px solid var(--muted); white-space: nowrap; }
.lang:hover { border-color: var(--fg); background: var(--surface); }
.bar-end { display: flex; align-items: center; gap: 8px; }

/* ===== Arabic / RTL ===== */
:root[lang="ar"] {
  --f-display: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-mono: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
[lang="ar"] body { line-height: 1.8; }
[lang="ar"] .eyebrow, [lang="ar"] .btn, [lang="ar"] .nav a, [lang="ar"] .facts li, [lang="ar"] .seg button,
[lang="ar"] .sku, [lang="ar"] .specs dt, [lang="ar"] .cw figcaption b, [lang="ar"] .detail figcaption,
[lang="ar"] label, [lang="ar"] .fine, [lang="ar"] .foot p, [lang="ar"] .tag .s, [lang="ar"] .brand .lat {
  letter-spacing: 0; text-transform: none;
}
[lang="ar"] .eyebrow, [lang="ar"] .facts li, [lang="ar"] .specs dt, [lang="ar"] .detail figcaption,
[lang="ar"] label, [lang="ar"] .fine, [lang="ar"] .foot p, [lang="ar"] .seg button, [lang="ar"] .nav a, [lang="ar"] .cw figcaption b { font-size: 14px; font-weight: 500; }
[lang="ar"] .btn { font-size: 15px; font-weight: 600; }
[lang="ar"] .btn.small { font-size: 14px; }
[lang="ar"] h2 { font-stretch: 100%; letter-spacing: 0; line-height: 1.35; font-weight: 600; }
[lang="ar"] .phead h3 { font-stretch: 100%; letter-spacing: 0; font-weight: 600; line-height: 1.3; }
[lang="ar"] .faq summary { font-stretch: 100%; font-weight: 600; font-size: 19px; }
[lang="ar"] .sec-head h2 { gap: 8px; }
[lang="ar"] .lede { line-height: 1.7; }
[lang="ar"] .story-copy p.big { line-height: 1.7; }
[lang="ar"] .mark .lat { letter-spacing: 0.5em; padding: 0; margin-inline-end: -0.5em; text-transform: uppercase; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }
[lang="ar"] .brand .lat { letter-spacing: 0.36em; font-family: "DM Mono", ui-monospace, monospace; }
[lang="ar"] .tag .n, [lang="ar"] .price, [lang="ar"] .sku { font-family: "DM Mono", ui-monospace, monospace; }
[lang="ar"] .tag .s { font-family: "DM Mono", ui-monospace, monospace; letter-spacing: 0.4em; }
[lang="ar"] .sku, [lang="ar"] .fine { letter-spacing: 0; }
[lang="ar"] .mark, [lang="ar"] .hero-text { align-items: flex-start; }
[lang="ar"] .seg button + button { border-left: 0; border-inline-start: 1px solid var(--line); }
[lang="ar"] .mark .ar { padding-bottom: 0.2em; }
[lang="ar"] .foot .lat-s { font: 500 12px/1 "DM Mono", ui-monospace, monospace; letter-spacing: 0.3em; }
[lang="ar"] input[type="email"], [lang="ar"] input[type="tel"] { direction: ltr; text-align: start; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[lang="ar"] .consent { font-size: 14px; line-height: 1.7; }

/* Legal / prose pages */
.prose { max-width: 760px; padding-block: clamp(40px, 8vw, 88px); }
.prose h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.prose h2 { font-size: clamp(20px, 3vw, 26px); font-stretch: 100%; letter-spacing: 0; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--fg); max-width: 68ch; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose .upd { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.consent a { color: var(--fg); text-underline-offset: 3px; }
.foot a { color: inherit; text-underline-offset: 3px; }
.btn.small { white-space: nowrap; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--fg); border: 1px solid var(--line); text-decoration: none; transition: color .2s, border-color .2s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }
