/* HAMSA | همسة — motion layer (hero, marquee, reveals, signature, micro-interactions) */
body { animation: page-in .7s ease both; }
@keyframes page-in { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero { min-height: min(calc(100svh - 108px), 860px); display: flex; align-items: center; }
.hero-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 120px; }
.hero-copy {
  max-width: 560px;
  translate: 0 var(--hy, 0); opacity: var(--ho, 1);
  will-change: translate, opacity;
}
.hero-copy > * { animation: rise-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > .eyebrow { animation-delay: .1s; }
.hero-copy > .hero-sub { animation-delay: 1.15s; }
.hero-copy > .hero-actions { animation-delay: 1.35s; }
.hero-copy > .hero-mark, .hero-copy > .hero-title { animation: none; }
@keyframes rise-in { from { opacity: 0; translate: 0 26px; } }

.hero-mark { display: flex; flex-direction: column; align-items: flex-start; margin: 4px 0 18px; }
.hero-ar {
  font-family: var(--ar-display); font-size: clamp(4.6rem, 11vw, 8.6rem); line-height: 1.05; padding: 0 .08em;
  background: linear-gradient(100deg, #4A111C 0%, #7A2233 34%, #D9A59B 48%, #F3D6CC 50%, #D9A59B 52%, #7A2233 66%, #4A111C 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: write 1.8s .25s cubic-bezier(.65, 0, .25, 1) both, shine 7s 2.4s ease-in-out infinite;
}
@keyframes write { from { clip-path: inset(-25% -5% -25% 100%); } to { clip-path: inset(-25% -5% -25% -5%); } }
@keyframes shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: -60% 0; } }
.hero-en {
  font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--burgundy);
  letter-spacing: .62em; margin-top: -.2em; padding-inline-start: .3em;
  animation: track 1.6s .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes track { from { letter-spacing: 1.5em; opacity: 0; } }
.hero-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; margin-bottom: .35em; }
html[dir="rtl"] .hero-title { font-family: var(--ar-sans); font-weight: 500; line-height: 1.5; }
.hero-sub { max-width: 27em; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(107, 29, 42, .45); border-radius: 14px; animation: rise-in 1s 2s both; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--burgundy); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 820px) {
  .hero { min-height: auto; align-items: flex-end; }
  .hero-inner { padding-top: 64vw; padding-bottom: 90px; }
  .hero-ar { font-size: clamp(4rem, 20vw, 6rem); }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; direction: ltr;
  background: var(--burgundy); color: var(--blush); padding: 17px 0;
  border-block: 1px solid rgba(196, 154, 108, .45);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .16em; text-transform: uppercase; padding: 0 26px; white-space: nowrap; }
html[dir="rtl"] .marquee span { font-family: var(--ar-sans); letter-spacing: 0; text-transform: none; font-size: 1.15rem; }
.marquee .mq-ar { font-family: var(--ar-display) !important; font-size: 1.7rem; text-transform: none; letter-spacing: 0; color: #F3D6CC; }
.marquee i { color: var(--gold); font-style: normal; font-size: .9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll reveals ---------- */
.motion-ready .rv { opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .3s; }
.motion-ready .rv.in { animation: rv-in 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }
@keyframes rv-in { from { opacity: 0; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em .02em .14em; margin: -.1em -.02em -.14em; }
[data-split] .w > span { display: inline-block; translate: 0 115%; }
[data-split].in .w > span { animation: word-rise 1.05s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 75ms + 250ms) both; }
.hero-title[data-split].in .w > span { animation-delay: calc(var(--i) * 75ms + 700ms); }
@keyframes word-rise { from { translate: 0 115%; } to { translate: 0 0; } }

/* ---------- product signature (3D ribbon still, see ribbon.js) ---------- */
.fabric .mark {
  position: absolute; z-index: 1; inset-inline-end: 7%; bottom: 6%; width: 34%; max-width: 120px; aspect-ratio: 560 / 480;
  color: transparent; background: var(--sig, none) center / contain no-repeat;
  filter: drop-shadow(0 7px 8px rgba(40, 10, 14, .32)) drop-shadow(0 1px 1px rgba(40, 10, 14, .35));
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.fabric--box .mark { width: 26%; }
.card:hover .mark, .cat-tile:hover .mark { transform: translateY(-5px) rotate(-5deg) scale(1.07); }
.pdp-main .fabric .mark { max-width: 170px; width: 30%; }
.bag-thumb .mark { width: 46%; }

/* ---------- cards & tiles ---------- */
.card-media { transition: translate .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.card:hover .card-media { translate: 0 -6px; box-shadow: 0 26px 40px -26px rgba(82, 21, 32, .55); }
.cat-tile {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; will-change: transform;
}
.cat-tile::after, .contact-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .3), transparent 48%);
  opacity: 0; transition: opacity .4s;
}
.cat-tile:hover::after, .contact-card:hover::after { opacity: 1; }
.cat-text { transform: translateZ(40px); transition: padding .5s; }
.cat-tile:hover .cat-text { padding-bottom: 30px; }
.contact-card { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.contact-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }

/* ---------- buttons: sheen + magnetic ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; translate: var(--bx, 0px) var(--by, 0px); transition: background .25s, color .25s, translate .35s cubic-bezier(.2, .8, .2, 1); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover::after { transform: translateX(120%); }

/* ---------- header & progress ---------- */
.nav { transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.site-header { transition: box-shadow .4s, background .4s; }
.scrolled .site-header { box-shadow: 0 12px 30px -22px rgba(82, 21, 32, .45); background: rgba(251, 246, 241, .96); }
.scrolled .nav { height: 62px; }
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--burgundy));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}
html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- quote band ---------- */
.quote-band .ribbon {
  position: absolute; inset-inline-end: -30px; top: -40px; width: 440px; max-width: 70vw; aspect-ratio: 560 / 480;
  background: var(--sig, none) center / contain no-repeat; opacity: .28; z-index: 0;
  animation: drift 12s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(-14px, 12px) rotate(-4deg); } }
.quote-band blockquote { z-index: 1; }

/* ---------- misc ---------- */
.swatch span { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.swatch:hover span { transform: translateY(-6px) scale(1.06); }
.value .icon { transition: transform .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.value:hover .icon { transform: translateY(-4px) rotate(-8deg); background: var(--blush); }

@media (prefers-reduced-motion: reduce) {
  .motion-ready .rv { opacity: 1; translate: none; }
  [data-split] .w > span { translate: none; }
  .hero-ar { clip-path: none; }
  .marquee-track { animation: none; }
}
