/* Layout: the first screen is a jeweller's velvet tray where the customer's name becomes the piece; everything after it stays quiet and pale. */
:root {
  color-scheme: light;
  --pearl: #f8f4f1;
  --shell: #efe6df;
  --ink: #2b1f1d;
  --muted: #6f5f59;
  --line: #ddcfc6;
  --velvet: #2e1720;
  --velvet-deep: #1f0f16;
  --velvet-line: #5a3a42;
  --velvet-soft: #d9c7c0;
  --gold: #a8895a;
  --gold-bright: #dcc08a;
  --danger: #a33a32;
  --display: "Bodoni Moda", "Amiri", Georgia, serif;
  --display-ar: "Amiri", "Bodoni Moda", Georgia, serif;
  --body: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --step--1: .82rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.7rem, 3.2vw, 2.4rem);
  --step-3: clamp(2.3rem, 5vw, 3.7rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--pearl); color: var(--ink); font: 400 var(--step-0)/1.65 var(--body); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--pearl); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; }
html[lang^="ar"] h1, html[lang^="ar"] h2 { font-family: var(--display-ar); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.defs { position: absolute; width: 0; height: 0; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--pearl); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand img { display: block; height: 58px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; flex: 1; font-size: .92rem; }
.main-nav details { position: relative; }
.main-nav summary { cursor: pointer; list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: "+"; margin-inline-start: 5px; color: var(--gold); }
.main-nav details[open] summary::after { content: "–"; }
.sub { position: absolute; inset-block-start: calc(100% + 16px); inset-inline-start: -16px; display: grid; gap: 7px; min-width: 200px; padding: 16px; background: var(--pearl); border: 1px solid var(--line); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.tool { min-height: 40px; padding: 7px 12px; background: none; border: 1px solid var(--line); }
.menu-btn { display: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: 6px; padding-inline: 4px; background: var(--velvet); color: #fff; font-size: .75rem; }

.studio { background: radial-gradient(90% 90% at 25% 10%, #4a2632 0%, var(--velvet) 48%, var(--velvet-deep) 100%); color: #fff; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 54px); align-items: start; }
.stage-column { position: sticky; top: 100px; min-width: 0; }
.stage { width: 100%; aspect-ratio: 8 / 7; border: 1px solid var(--velvet-line); background: radial-gradient(70% 60% at 50% 55%, #532c39 0%, #331a24 70%, #2a151e 100%); }
.stage svg { display: block; width: 100%; height: 100%; }
.stage text { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .55)); }
.stage-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--velvet-soft); font-size: var(--step--1); }
.controls { display: grid; gap: 20px; min-width: 0; }
.eyebrow { color: var(--gold-bright); font-size: var(--step--1); letter-spacing: .08em; }
html[lang^="ar"] .eyebrow { letter-spacing: 0; }
.studio h1 { margin-top: 6px; font-size: var(--step-3); }
.lede { margin-top: 10px; max-width: 48ch; color: var(--velvet-soft); }
.field-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .9rem; }
.field-label span:last-child { color: var(--velvet-soft); font-variant-numeric: tabular-nums; }
#name-input { width: 100%; min-height: 54px; padding: 10px 14px; background: transparent; border: 1px solid var(--gold-bright); color: #fff; font-size: 1.3rem; }
#name-input[aria-invalid="true"] { border-color: #e6a39b; }
.input-message { min-height: 1.4em; margin-top: 5px; color: #f2b7ae; font-size: var(--step--1); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 42px; padding: 8px 14px; background: transparent; border: 1px solid var(--velvet-line); color: #fff; }
.choice[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--velvet-deep); }
.swatch { display: inline-block; width: 13px; height: 13px; margin-inline-end: 7px; border-radius: 50%; vertical-align: -2px; }
.font-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 360px) { .font-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.font-tile { display: grid; gap: 2px; min-height: 76px; padding: 6px 8px; background: transparent; border: 1px solid var(--velvet-line); color: #fff; text-align: center; }
.font-tile b { overflow: hidden; font-weight: 400; font-size: 1.6rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.font-tile small { color: var(--velvet-soft); font-family: var(--body); font-size: .72rem; }
.font-tile[aria-pressed="true"] { border-color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-bright); }
.summary { display: grid; gap: 7px; padding-block: 14px; border-block: 1px solid var(--velvet-line); font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dd, .summary dt { margin: 0; }
.summary dd { font-variant-numeric: tabular-nums; }
.summary .total { color: var(--gold-bright); font-size: var(--step-1); }
.primary { width: 100%; min-height: 52px; padding: 10px 18px; background: var(--gold-bright); border: 1px solid var(--gold-bright); color: var(--velvet-deep); font-weight: 500; }
.primary:disabled { opacity: .5; cursor: not-allowed; }
.workshop { color: var(--velvet-soft); font-size: var(--step--1); }
.workshop summary { cursor: pointer; }
.workshop img { display: block; width: 100%; margin-top: 8px; background: #fff; }

.promises { background: var(--shell); }
.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 24px; }
.promise-grid h3 { font-size: .98rem; font-weight: 500; }
.promise-grid p { color: var(--muted); font-size: .88rem; }

.section { padding-block: clamp(46px, 7vw, 86px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: var(--step-2); }
.tabs { display: flex; gap: 20px; }
.tab { padding: 4px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--gold); color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.product { display: grid; grid-template-rows: auto auto auto auto; gap: 4px; min-width: 0; }
.product-art { aspect-ratio: 4 / 5; margin-bottom: 8px; background: var(--shell); overflow: hidden; }
.product:nth-child(3n + 2) .product-art { background: #e8dcd8; }
.product:nth-child(4n) .product-art { background: var(--velvet); }
.product-art svg { display: block; width: 100%; height: 100%; transition: transform .35s ease; }
.product:hover .product-art svg { transform: scale(1.05); }
.product h3 { font-size: .98rem; font-weight: 400; }
.price { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.add { justify-self: start; min-height: 38px; margin-top: 4px; padding: 5px 0; background: none; border: 0; border-bottom: 1px solid var(--gold); font-size: .88rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split article { display: flex; flex-direction: column; justify-content: end; gap: 12px; min-height: 340px; padding: clamp(24px, 4vw, 52px); }
.split article:first-child { background: #eaded9; }
.split article:last-child { background: var(--velvet); color: #fff; }
.split h2 { font-size: var(--step-3); }
.category-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.category-links a { border-bottom: 1px solid var(--gold); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 14px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; color: var(--gold); font: 400 2rem/1.1 var(--display); }
.steps h3 { margin-top: 6px; font-size: 1.05rem; font-weight: 500; }
.steps p { color: var(--muted); font-size: .92rem; }

.site-footer { background: var(--velvet-deep); color: var(--velvet-soft); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 44px; }
.footer-grid img { width: 94px; }
.footer-grid h3 { margin-bottom: 8px; color: #fff; font-size: .95rem; font-weight: 500; }
.footer-grid ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .main-nav.open { position: absolute; inset-block-start: 100%; inset-inline: 0; display: grid; gap: 0; max-height: calc(100vh - 90px); overflow-y: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); background: var(--pearl); border-bottom: 1px solid var(--line); }
  .main-nav.open > a, .main-nav.open summary { display: flex; justify-content: space-between; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .sub { position: static; min-width: 0; padding: 10px 14px; border: 0; }
  .menu-btn { display: inline-block; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-column { position: static; }
  .controls { display: contents; }
  .studio-copy { order: -1; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product:nth-child(n + 7) { display: none; }
  .owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .brand img { height: 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:nth-child(n + 7) { display: grid; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split article { min-height: 260px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-art svg { transition: none; }
}

/* WordPress and WooCommerce pages */
.studio .controls { margin: 0; }
.confirm { display: flex; gap: 9px; align-items: flex-start; color: var(--velvet-soft); font-size: .88rem; }
.confirm input { margin-top: 5px; accent-color: var(--gold-bright); }
.summary dt { font-weight: 400; }
.tool { display: inline-flex; align-items: center; font-size: .92rem; }
.product-card { display: grid; gap: 4px; min-width: 0; }
.product-art { display: block; aspect-ratio: 4 / 5; margin-bottom: 8px; background: var(--shell); overflow: hidden; }
.product-card:nth-child(3n + 2) .product-art { background: #e8dcd8; }
.product-card:nth-child(4n) .product-art { background: var(--velvet); }
.product-art svg, .product-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-art svg, .product-card:hover .product-art img { transform: scale(1.05); }
.product-card h3 { font-size: .98rem; font-weight: 400; }
.split article:first-child a { color: var(--ink); }
.split article:last-child a { color: #fff; }
.page-title, .woocommerce-products-header__title { font-family: var(--display); font-size: var(--step-2); font-weight: 400; margin-bottom: 18px; }
html[lang^="ar"] .page-title, html[lang^="ar"] .woocommerce-products-header__title { font-family: var(--display-ar); }
html[lang^="ar"] h1, html[lang^="ar"] h2 { font-family: var(--display-ar); }
.page-body { min-height: 45vh; }
.footer-grid a:hover { color: #fff; }
.mb-art { display: block; width: 100%; background: var(--shell); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--body); font-size: .98rem; font-weight: 400; color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--muted); font-size: .95rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit { border-radius: 0; background: var(--velvet); color: #fff; font-weight: 500; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--velvet-deep); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .select2-container--default .select2-selection--single { border: 1px solid var(--line); border-radius: 0; min-height: 44px; padding: 8px 10px; background: #fff; }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--shell); border-top-color: var(--gold); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }
@media (max-width: 980px) {
  .controls { display: contents; }
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce ul.products li.product .mb-art { aspect-ratio: 4 / 5; }
.woocommerce ul.products li.product .button { display: block; margin-top: 6px; padding: 9px 8px; text-align: center; font-size: .86rem; }
.woocommerce .woocommerce-ordering select { min-height: 40px; padding-inline: 8px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 980px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home */
.studio h2 { margin-top: 6px; font-size: var(--step-3); }
.stage text { filter: url(#mb-emboss); }
.hero { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 72% 40%, #5a3040 0%, var(--velvet) 46%, var(--velvet-deep) 100%); color: #fff; }
html[dir="rtl"] .hero { background: radial-gradient(70% 90% at 28% 40%, #5a3040 0%, var(--velvet) 46%, var(--velvet-deep) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: center; min-height: clamp(460px, 72vh, 720px); padding-block: clamp(28px, 4vw, 56px); }
.hero h1 { margin-top: 10px; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.08; }
.hero .lede { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 11px 30px; background: var(--gold-bright); border: 1px solid var(--gold-bright); color: var(--velvet-deep); font-weight: 500; transition: background .2s ease, color .2s ease; }
.cta:hover { background: #fff; border-color: #fff; }
.cta.ghost { background: transparent; color: #fff; }
.cta.ghost:hover { background: #fff; color: var(--velvet-deep); }
.hero-piece { position: relative; width: 100%; aspect-ratio: 8 / 7; align-self: start; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .8s ease, transform .9s ease; }
.hero-scene.is-on { opacity: 1; transform: none; }
.ticker { overflow: hidden; background: var(--gold-bright); color: var(--velvet-deep); direction: ltr; }
.ticker-track { display: flex; width: max-content; animation: mb-ticker 42s linear infinite; }
.ticker-group { display: flex; }
.ticker span { padding: 11px 26px; font-size: .9rem; white-space: nowrap; }
.ticker span::after { content: "◆"; margin-inline-start: 52px; font-size: .55rem; vertical-align: 2px; opacity: .6; }
@keyframes mb-ticker { to { transform: translateX(-50%); } }
.text-link { border-bottom: 1px solid var(--gold); font-size: .92rem; }
.tile-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, minmax(210px, 1fr)); gap: 14px; }
.tile { position: relative; display: block; min-height: 210px; overflow: hidden; }
.tile:first-child { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile .mb-art { position: absolute; inset: 0; width: 100%; height: 100%; background: none; transition: transform .6s ease; }
.tile:hover .mb-art { transform: scale(1.06); }
.tile-label { position: absolute; inset-inline-start: 18px; inset-block-end: 14px; color: #fff; font-family: var(--display-ar); font-size: 1.55rem; }
[data-metal="gold"] { --tray: radial-gradient(75% 70% at 50% 50%, #5a3040 0%, #2e1720 80%); }
[data-metal="silver"] { --tray: radial-gradient(75% 70% at 50% 50%, #475264 0%, #1e2530 82%); }
[data-metal="rose"] { --tray: radial-gradient(75% 70% at 50% 50%, #6e3f3f 0%, #331b1e 82%); }
.tile, .product-card .product-art, .product-card:nth-child(n) .product-art, .woocommerce ul.products li.product .mb-art { background: var(--tray, radial-gradient(75% 70% at 50% 50%, #5a3040 0%, #2e1720 80%)); }
.art-body { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.product-card { position: relative; }
.product-card .add { justify-self: start; border-bottom: 1px solid var(--gold); padding-bottom: 2px; font-size: .88rem; }
.metals { padding-block: clamp(46px, 7vw, 86px); background: var(--velvet-deep); color: #fff; }
.metal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.metal-card { padding: 12px 14px 18px; border: 1px solid var(--velvet-line); text-align: center; }
.metal-card svg { display: block; width: 100%; }
.metal-card text { filter: url(#mb-emboss); }
.metal-card h3 { color: var(--velvet-soft); font-size: .95rem; font-weight: 400; }
.closing { background: var(--shell); text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 22px; padding-block: clamp(48px, 7vw, 84px); }
.closing h2 { font-size: var(--step-3); }
.closing .cta { background: var(--velvet); border-color: var(--velvet); color: #fff; }
.closing .cta:hover { background: var(--velvet-deep); border-color: var(--velvet-deep); color: #fff; }
.reveal-ready { animation: mb-rise .7s ease both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
@keyframes mb-rise { from { opacity: .35; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-piece { order: -1; max-width: 520px; margin-inline: auto; margin-block: -24px -46px; }
  .tile-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 230px; }
  .tile:first-child { grid-row: auto; grid-column: span 2; }
  .tile:nth-child(4) { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .reveal-ready { animation: none; }
  .hero-scene { transition: none; }
}
