/* HAMSA | همسة: signature touches per section.
   Occasion rail, arched fabric swatches, satin colour ribbons, studio spotlight,
   order timeline, footer watermark, image curtain reveals and a soft paper grain.
   Everything stays static and readable with prefers-reduced-motion. */

/* ---------- paper grain: a quiet tactile layer over the whole page ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .15 0 0 0 0 .15 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- section titles: a hairline that draws in under each heading ---------- */
.section-head h2 { position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--burgundy), var(--rose));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .25s;
}
[dir="rtl"] .section-head h2::after { transform-origin: right; }
.section-head.in h2::after, .section-head:not(.rv) h2::after { transform: scaleX(1); }

/* ---------- image curtain: editorial photos unveil from the bottom ---------- */
.motion-ready .cat-tile.rv .cat-media, .motion-ready .occ-card.rv .occ-media, .motion-ready .story > img.rv {
  clip-path: inset(100% 0 0 0);
}
.motion-ready .cat-tile.rv.in .cat-media, .motion-ready .occ-card.rv.in .occ-media, .motion-ready .story > img.rv.in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) var(--d, 0ms), transform .8s ease;
}
.motion-ready .cat-tile.rv.in .media-img, .motion-ready .occ-card.rv.in .media-img { animation: settle 1.8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }
@keyframes settle { from { transform: scale(1.18); } }

/* ---------- occasions: numbered editorial rail ---------- */
.occ-grid {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.occ-grid::-webkit-scrollbar { display: none; }
.occ-grid .occ-card { aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: 180px 180px var(--r) var(--r); }
.occ-card .occ-label { padding: 22px 20px; font-size: 1.65rem; gap: 2px; background: linear-gradient(to top, rgba(43, 18, 20, .72), rgba(43, 18, 20, 0) 60%); inset: 40% 0 0; align-content: end; }
.occ-num {
  position: absolute; top: 22px; inset-inline-start: 0; inset-inline-end: 0; text-align: center; z-index: 1;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .3em; color: #FBF6F1; text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.occ-card::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251, 246, 241, .55); border-radius: 170px 170px calc(var(--r) - 4px) calc(var(--r) - 4px);
  opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.occ-card:hover::after, .occ-card:focus-visible::after { opacity: 1; transform: scale(1); }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--burgundy);
  display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.rail-nav button:hover { background: var(--burgundy); color: var(--ivory); transform: translateY(-2px); }
.rail-nav button[data-d="-1"] svg { transform: scaleX(-1); }
[dir="rtl"] .rail-nav button svg { transform: scaleX(-1); }
[dir="rtl"] .rail-nav button[data-d="-1"] svg { transform: none; }

/* ---------- fabrics: arched swatches ---------- */
.fab-arches { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 26px 16px; }
.fab-arch { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--burgundy); }
.fab-img {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 10px 10px;
  background: linear-gradient(160deg, #F1E3DB, #C48B85); box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--ivory), 0 0 0 7px transparent;
  transition: box-shadow .5s, translate .6s cubic-bezier(.2, .8, .2, 1);
}
.fab-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.fab-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.1s ease;
}
.fab-arch:hover .fab-img, .fab-arch:focus-visible .fab-img { translate: 0 -6px; box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--ivory), 0 0 0 7px var(--rose), 0 22px 30px -18px rgba(82, 21, 32, .5); }
.fab-arch:hover .fab-img img { transform: scale(1.1); }
.fab-arch:hover .fab-img::after { background-position: -40% 0; }
.fab-name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.15; margin-top: 12px; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.fab-arch em { font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- palette: satin colour ribbons ---------- */
.center .palette {
  display: flex; gap: 6px; max-width: 1080px; height: clamp(240px, 34vw, 360px); margin: 34px auto 0; grid-template-columns: none;
}
.ribbon-sw {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 999px; overflow: hidden; color: var(--fg);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .34) 42%, rgba(255, 255, 255, 0) 58%, rgba(0, 0, 0, .14) 85%),
    var(--c);
  background-size: 300% 100%, auto; background-position: 100% 0, 0 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1), background-position 1.4s ease, border-radius .7s;
}
.ribbon-sw:hover, .ribbon-sw:focus-visible { flex-grow: 3.2; border-radius: 40px; background-position: 0 0, 0 0; }
.rs-name {
  position: absolute; inset-inline: 0; bottom: 26px; font-family: var(--serif); font-size: 1.15rem; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; margin: 0 auto;
  transition: opacity .4s;
}
[dir="rtl"] .rs-name { transform: none; }
.ribbon-sw:hover .rs-name, .ribbon-sw:focus-visible .rs-name { writing-mode: horizontal-tb; transform: none; font-size: 1.35rem; }
.motion-ready .ribbon-sw.rv.in { animation: unfurl 1.1s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }
@keyframes unfurl { from { opacity: 0; clip-path: inset(0 0 100% 0 round 999px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 0); } }

/* ---------- style studio: icon medallions and a pointer spotlight ---------- */
.tool-card { overflow: hidden; isolation: isolate; }
.tool-card::before, .step::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 139, 133, .22), transparent 70%);
}
.tool-card:hover::before, .step:hover::after { opacity: 1; }
.tool-card .ic-lg {
  width: 52px; height: 52px; padding: 13px; border-radius: 50%; box-sizing: border-box;
  background: radial-gradient(circle at 30% 25%, #FBF6F1, #F1E3DB 60%, #E3B9AF); box-shadow: 0 8px 18px -10px rgba(107, 29, 42, .5);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.tool-card:hover .ic-lg { transform: rotate(-8deg) scale(1.08); }
.tool-card:hover { border-color: rgba(196, 139, 133, .6); transform: translateY(-4px); box-shadow: 0 26px 40px -30px rgba(82, 21, 32, .55); }

/* Studio grid: three across; a short last row stretches so no card is left alone. */
@media (min-width: 981px) {
  .studio-grid { grid-template-columns: repeat(6, 1fr); }
  .studio-grid > .tool-card { grid-column: span 2; }
  .studio-grid > .tool-card:last-child:nth-child(3n+2), .studio-grid > .tool-card:nth-last-child(2):nth-child(3n+1) { grid-column: span 3; }
  .studio-grid > .tool-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; column-gap: 26px; align-items: center; }
  .studio-grid > .tool-card:last-child:nth-child(3n+1) .ic-lg { grid-row: span 3; }
  .studio-grid > .tool-card:last-child:nth-child(3n+1) .link-arrow { grid-column: 3; grid-row: 1 / span 3; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid > .tool-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- how to order: a drawn timeline ---------- */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; inset-inline: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--burgundy), var(--rose), transparent);
  transform: scaleX(0); transition: transform 1.6s cubic-bezier(.7, 0, .2, 1) .2s;
}
.steps:has(.step.in)::before, .steps:not(:has(.rv))::before { transform: scaleX(1); }
.step { background: transparent; border: 0; text-align: center; padding: 0 18px 10px; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); }
.step::before {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1px var(--rose), 0 0 0 7px var(--ivory), 0 0 0 8px rgba(196, 139, 133, .35);
  font-size: 1.9rem; color: var(--burgundy); line-height: 68px;
}
.step h3 { font-size: 1.6rem; }
@media (max-width: 700px) {
  .steps::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 34px; width: 1px; height: auto; transform-origin: top;
    background: linear-gradient(180deg, var(--rose), var(--burgundy), var(--rose)); }
  .step { text-align: start; display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; padding: 0 0 8px; }
  .step::before { grid-row: span 2; margin: 0; }
}

/* ---------- footer: the name, written large ---------- */
.site-footer { position: relative; overflow: hidden; }
.footer-mark {
  font-family: var(--serif); font-weight: 400; font-size: clamp(4.5rem, 17vw, 15rem); line-height: .82; letter-spacing: .14em;
  text-align: center; padding-inline-start: .14em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(107, 29, 42, .2);
  margin: 40px 0 -0.08em; user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .occ-grid { grid-auto-columns: 68%; }
  .rail-nav { display: none; }
  .center .palette { height: 220px; gap: 4px; }
  .rs-name { font-size: .95rem; bottom: 18px; }
  .ribbon-sw:hover, .ribbon-sw:focus-visible { flex-grow: 4; }
  .ribbon-sw:hover .rs-name { font-size: 1rem; }
  .fab-arches { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
  .fab-name { font-size: 1.1rem; }
}

/* ---------- reduced motion: everything visible and still ---------- */
@media (prefers-reduced-motion: reduce) {
  .motion-ready .cat-tile.rv .cat-media, .motion-ready .occ-card.rv .occ-media, .motion-ready .story > img.rv { clip-path: none; }
  .motion-ready .media-img { animation: none !important; }
  .section-head h2::after, .steps::before { transform: none; transition: none; }
  .ribbon-sw, .fab-img, .fab-img img, .tool-card .ic-lg { transition: none; }
  .motion-ready .ribbon-sw.rv.in { animation: none; }
}

/* price on request: a quiet label that never wraps */
.price.price-ask { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--burgundy); }
.pdp-price .price.price-ask { font-size: .9rem; }
.quick-ask svg { width: 16px; height: 16px; }
@media (hover: none) { html[dir="rtl"] .quick-add { font-size: 0; } .quick-ask { background: #25D366; color: #fff; } .quick-ask .ic { width: 20px; height: 20px; } }
