/* Dar Nadd — morphing perfume house */
:root {
  --plum: #1A0B10;
  --plum-2: #2A121B;
  --gold: #C9A86A;
  --pearl: #F3EEE7;
  --slate: #1D2433;
  --focus: #C9A86A;
  --fd: 'Aref Ruqaa', 'Almarai', serif;
  --fb: 'Almarai', system-ui, sans-serif;
}
html { background: var(--plum); }
body { font-family: var(--fb); background: var(--plum); color: var(--pearl); line-height: 1.7; overflow-x: hidden; }
.skip { position: absolute; top: -80px; inset-inline-start: 12px; z-index: 60; background: var(--pearl); color: var(--plum); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- bar ---------- */
.bar { position: fixed; top: 0; inset-inline: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(14px, 3vw, 32px); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand, .pill { background: rgba(26, 11, 16, .82); color: var(--pearl); border: 1px solid rgba(201, 168, 106, .35); border-radius: 999px; text-decoration: none; }
.brand { display: inline-flex; gap: 9px; align-items: center; padding: 5px 16px 7px; font-family: var(--fd); font-weight: 700; font-size: 1.2rem; }
.brand__mark { width: 15px; height: 21px; color: var(--gold); }
.bar__end { display: flex; gap: 6px; }
.pill { padding: 7px 14px; font-size: .86rem; line-height: 1.4; }
.pill:hover { border-color: var(--gold); }
@media (max-width: 420px) { .bar__end .pill:first-child { display: none; } .pill { padding: 7px 11px; } }

/* ---------- morph: default = calm stacked families (no JS / before motion) ---------- */
.worlds, .ghosts, .drift, .bottle, .steps { display: none; }
.intro { padding: 120px 20px 30px; text-align: center; }
.intro__name { margin: 0; font-family: var(--fd); font-weight: 700; font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1.1; color: var(--gold); }
.intro__line { margin: 6px 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .9; }
.fam { padding: 56px 20px; display: grid; gap: 18px; justify-items: center; text-align: center; background: var(--bg); color: var(--ink); }
.fam--oud { --bg: radial-gradient(ellipse at 50% 60%, #4A1622 0%, #1A0B10 62%, #0E060A 100%); --ink: #F3E6D8; --acc: #D9A441; }
.fam--rose { --bg: radial-gradient(ellipse at 50% 55%, #F8E1DE 0%, #E7A9AF 55%, #C47483 100%); --ink: #3E0B1C; --acc: #8E1F43; }
.fam--amber { --bg: radial-gradient(ellipse at 50% 58%, #E8A750 0%, #9A5418 52%, #3E1F06 100%); --ink: #FFF1DC; --acc: #FFD58A; }
.fam--musk { --bg: radial-gradient(ellipse at 50% 50%, #FFFFFF 0%, #EDF0F3 50%, #C9D1DA 100%); --ink: #1D2433; --acc: #5D6B84; }
.fam__count { margin: 0; font-size: .85rem; color: var(--acc); }
.fam__name { margin: 0; font-family: var(--fd); font-weight: 700; font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1.15; }
.fam__line { margin: 0; max-width: 22em; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.fam__notes { margin: 0; display: grid; gap: 14px; }
.fam__notes div { display: grid; gap: 2px; }
.fam__notes dt { font-size: .8rem; color: var(--acc); letter-spacing: .02em; }
.fam__notes dd { margin: 0; font-size: 1.08rem; font-weight: 700; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.wi { display: inline-block; will-change: transform, opacity; }

/* ---------- motion mode: one pinned stage ---------- */
.js-motion .stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.js-motion .worlds, .js-motion .ghosts, .js-motion .drift { display: block; position: absolute; inset: 0; }
.js-motion .world { position: absolute; inset: 0; opacity: 0; }
.js-motion .world:first-child { opacity: 1; }
.world--oud { background: radial-gradient(ellipse 70% 80% at 50% 62%, #4A1622 0%, #1A0B10 62%, #0E060A 100%); }
.world--rose { background: radial-gradient(ellipse 70% 80% at 50% 58%, #F8E1DE 0%, #E7A9AF 55%, #C47483 100%); }
.world--amber { background: radial-gradient(ellipse 70% 80% at 50% 60%, #E8A750 0%, #9A5418 52%, #3E1F06 100%); }
.world--musk { background: radial-gradient(ellipse 70% 80% at 50% 52%, #FFFFFF 0%, #EDF0F3 50%, #C9D1DA 100%); }
.ghost { position: absolute; left: 50%; top: 50%; font-family: var(--fd); font-weight: 700; font-size: min(34vw, 62vh); line-height: 1; white-space: nowrap; opacity: 0; }
.ghost:nth-child(1) { color: rgba(217, 164, 65, .1); opacity: 1; }
.ghost:nth-child(2) { color: rgba(142, 31, 67, .1); }
.ghost:nth-child(3) { color: rgba(62, 31, 6, .16); }
.ghost:nth-child(4) { color: rgba(29, 36, 51, .06); }
.pt { position: absolute; will-change: transform; }
.pt svg { display: block; width: 100%; height: auto; overflow: visible; }
.layer { position: absolute; inset: 0; opacity: 0; }
.layer:first-child { opacity: 1; }
.js-motion .bottle { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }

.js-motion .intro { position: absolute; top: clamp(78px, 11vh, 120px); inset-inline: 0; padding: 0 20px; z-index: 3; pointer-events: none; }
.js-motion .intro__name { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.js-motion .intro__line { color: #F3E6D8; }

.js-motion .fams { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.js-motion .fam { position: absolute; inset: 0; padding: 0; background: none; display: block; text-align: start; }
.js-motion .fam__info { position: absolute; inset-inline-start: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-40%); width: min(330px, 28vw); }
.js-motion .fam__notes { position: absolute; inset-inline-end: clamp(24px, 7vw, 120px); top: 50%; transform: translateY(-36%); width: min(260px, 22vw); gap: 22px; }
.js-motion .fam__notes div { border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-top: 10px; }
.js-motion .fam__line { margin-top: 10px; }
.js-motion .fam:not([data-f="0"]) .wi, .js-motion .fam:not([data-f="0"]) .fam__count, .js-motion .fam:not([data-f="0"]) dt { opacity: 0; }

.js-motion .steps { display: flex; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); gap: 6px; margin: 0; padding: 0; list-style: none; z-index: 3; }
.steps li { font-size: .8rem; padding: 4px 12px; border-radius: 999px; color: var(--sc, rgba(243, 230, 216, .55)); border: 1px solid transparent; transition: color .3s, border-color .3s; }
.steps li.is-on { color: var(--sc-on, #F3E6D8); border-color: currentColor; }
.stage.is-light .steps li { --sc: rgba(29, 36, 51, .5); --sc-on: #1D2433; }

@media (max-width: 760px) {
  .js-motion .intro { top: 74px; }
  .js-motion .intro__name { font-size: 2rem; }
  .js-motion .intro__line { font-size: .92rem; }
  .js-motion .fam__info { inset-inline: 20px; top: 74px; transform: none; width: auto; text-align: center; }
  .js-motion .fam__name { font-size: 2.5rem; line-height: 1.2; }
  .js-motion .fam__line { font-size: .92rem; margin-top: 2px; }
  .js-motion .fam__count { font-size: .75rem; }
  .js-motion .fam__notes { inset-inline: 14px; top: auto; bottom: 58px; transform: none; width: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
  .js-motion .fam__notes div { padding-top: 8px; }
  .js-motion .fam__notes dd { font-size: .84rem; line-height: 1.5; }
  .js-motion .steps { bottom: 14px; }
  .ghost { font-size: 52vw; top: 46%; }
}

/* reduced motion / no GSAP: static family panels */
.morph--board .fam { grid-template-columns: 1fr; padding: 72px 20px; }
.morph--board .fam__frame { width: min(320px, 70vw); height: auto; aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
  .morph--board .fam { grid-template-columns: 1fr auto 1fr; align-items: center; text-align: start; padding: 56px max(24px, 6vw); }
  .morph--board .fam__info { order: 1; } .morph--board .fam__frame { order: 2; } .morph--board .fam__notes { order: 3; }
}

/* ---------- shop (the musk room) ---------- */
.shop { background: linear-gradient(#C9D1DA, #EDF0F3 260px, #F4F5F6); color: var(--slate); padding: clamp(64px, 9vw, 110px) 18px clamp(96px, 12vw, 140px); }
.shop__inner { max-width: 1180px; margin: 0 auto; }
.shop__head h2 { margin: 0; font-family: var(--fd); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.2; }
.shop__head p { margin: 6px 0 0; max-width: 38em; color: rgba(29, 36, 51, .75); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 30px; }
.filters button { border: 1px solid rgba(29, 36, 51, .3); background: transparent; color: var(--slate); border-radius: 999px; padding: 8px 18px; font-size: .92rem; }
.filters button[aria-pressed="true"] { background: var(--slate); color: #F4F5F6; border-color: var(--slate); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 22px; }
.prod { display: grid; gap: 8px; align-content: start; }
.prod__niche { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; background: var(--nb); display: grid; place-items: end center; padding-bottom: 8%; overflow: hidden; }
.prod__niche::after { content: ""; position: absolute; inset: auto 12% 6% 12%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); }
.prod__niche svg { position: relative; z-index: 1; width: 58%; height: auto; }
.prod--small .prod__niche svg { width: 40%; }
.prod--oud { --nb: radial-gradient(ellipse at 50% 70%, #4A1622, #1A0B10); }
.prod--rose { --nb: radial-gradient(ellipse at 50% 70%, #F8E1DE, #D99AA3); }
.prod--amber { --nb: radial-gradient(ellipse at 50% 70%, #E8A750, #7A410F); }
.prod--musk { --nb: radial-gradient(ellipse at 50% 70%, #FFFFFF, #CBD3DC); }
.prod__fam { margin: 6px 0 0; font-size: .8rem; color: #5D6B84; }
.prod__name { margin: 0; font-family: var(--fd); font-weight: 700; font-size: 1.6rem; line-height: 1.25; }
.prod__desc { margin: 0; font-size: .9rem; color: rgba(29, 36, 51, .72); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sizes button { border: 1px solid rgba(29, 36, 51, .25); background: transparent; color: var(--slate); border-radius: 10px; padding: 6px 10px; font-size: .82rem; }
.sizes button[aria-pressed="true"] { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); font-weight: 700; }
.prod__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.prod__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.prod__add { border: 0; border-radius: 999px; background: var(--slate); color: #F4F5F6; padding: 9px 18px; font-size: .9rem; font-weight: 700; }
.prod__add.is-done { background: #8E1F43; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .prod__name { font-size: 1.3rem; }
  .prod__desc { display: none; }
  .prod__row { flex-direction: column; align-items: stretch; }
  .prod__add { padding: 9px 10px; }
}

/* ---------- house ---------- */
.house { background: var(--plum); padding: clamp(56px, 8vw, 100px) 18px; }
.house__inner { max-width: 1100px; margin: 0 auto; }
.house h2 { margin: 0 0 26px; font-family: var(--fd); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold); }
.house__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.house h3 { margin: 0 0 6px; font-size: 1rem; color: var(--gold); }
.house p { margin: 0; color: rgba(243, 238, 231, .86); }
.house__social { display: flex; gap: 18px; margin-top: 30px !important; }
.house__social a { color: var(--pearl); text-underline-offset: 5px; text-decoration-color: var(--gold); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 18px 96px; background: #0E060A; color: rgba(243, 238, 231, .65); font-size: .88rem; }
.foot p { margin: 0; }
.foot a { color: var(--pearl); text-underline-offset: 4px; }

/* ---------- bag + sheet ---------- */
.bagbar { position: fixed; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; z-index: 45; pointer-events: none; transform: translateY(140%); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.bagbar.is-on { transform: none; }
.bagbar__btn { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--plum); color: var(--pearl); border: 1px solid rgba(201, 168, 106, .5); border-radius: 999px; padding: 10px 22px 10px 12px; box-shadow: 0 14px 40px rgba(26, 11, 16, .35); }
html[dir="ltr"] .bagbar__btn { padding: 10px 12px 10px 22px; }
.bagbar__count { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--plum); display: grid; place-items: center; font-weight: 800; }
.sheet { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: 26px 22px 22px; background: #F4F5F6; color: var(--slate); overflow: auto; }
.sheet::backdrop { background: rgba(14, 6, 10, .62); }
.sheet h2 { margin: 0 0 14px; font-family: var(--fd); font-weight: 700; font-size: 1.9rem; line-height: 1.25; }
.sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
.sheet__close button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(29, 36, 51, .25); background: transparent; font-size: 1.3rem; line-height: 1; }
.lines { list-style: none; margin: 0 0 8px; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(29, 36, 51, .14); }
.lines small { color: #5D6B84; }
.lines .q { display: flex; gap: 4px; align-items: center; }
.lines .q button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(29, 36, 51, .3); background: transparent; line-height: 1; }
.sheet__total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 10px 0 16px; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 700; }
.check input { width: 18px; height: 18px; accent-color: #8E1F43; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: .9rem; font-weight: 700; }
.field[hidden] { display: none; }
.field input, .field select { border: 1px solid rgba(29, 36, 51, .28); border-radius: 12px; padding: 11px 13px; background: #fff; font-weight: 400; }
.btn { display: flex; justify-content: center; width: 100%; margin-top: 8px; padding: 14px 18px; border-radius: 14px; border: 0; background: var(--plum); color: var(--pearl); font-weight: 800; text-decoration: none; }
.btn--wa { background: #1F7A4D; }
.btn--ghost { background: transparent; color: var(--slate); border: 1px solid rgba(29, 36, 51, .3); }
.bubble { background: #DCF2D9; border-radius: 16px 16px 4px 16px; padding: 14px 16px; margin-bottom: 8px; }
.bubble pre { margin: 0; white-space: pre-wrap; font-family: var(--fb); font-size: .94rem; line-height: 1.7; }
