/* Mabkhara — a made-up oud & bakhoor house in Sharjah. Kaiven Studios concept. */
:root {
  --char: #0f0d0c;
  --char-2: #17120f;
  --oud: #3b2418;
  --ivory: #f2ebdf;
  --muted: #a89a86;
  --brass: #b8925a;
  --ember: #c2412d;
  --line: rgba(242, 235, 223, .13);
  --serif: 'Bodoni Moda', Didot, Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --ar: 'Almarai', system-ui, sans-serif;
  --ar-display: 'Aref Ruqaa', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--char); color: var(--ivory); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
html[lang="ar"] body, html[lang="ar"] button { font-family: var(--ar); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.sec { display: flex; gap: 14px; align-items: baseline; font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: 22px; }
.sec span:first-child { font: 400 14px/1 var(--serif); font-style: italic; letter-spacing: .04em; color: var(--muted); }
html[lang="ar"] .sec { letter-spacing: 0; font: 700 14px/1 var(--ar); }
h1, h2 { font: 400 clamp(42px, 6.2vw, 94px)/.98 var(--serif); letter-spacing: -.012em; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
html[lang="ar"] h1, html[lang="ar"] h2 { font: 700 clamp(42px, 6vw, 86px)/1.25 var(--ar-display); letter-spacing: 0; }
html[lang="ar"] h1 em, html[lang="ar"] h2 em { font-style: normal; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 24px; border-radius: 2px; background: var(--ivory); color: var(--char); font-weight: 500; font-size: 14px; letter-spacing: .06em; text-decoration: none; transition: background .25s, color .25s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover, .btn:focus-visible { background: var(--brass); color: var(--char); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ivory); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); background: transparent; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(rgba(15, 13, 12, .82), transparent); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 18px; height: 28px; color: var(--ivory); }
.logo-en { font: 500 19px/1 var(--serif); letter-spacing: .3em; }
.logo-ar { font: 700 20px/1 var(--ar-display); color: var(--brass); }
.links { display: flex; gap: 26px; font-size: 14px; letter-spacing: .04em; }
.links a { text-decoration: none; opacity: .75; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.burn { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.burn b { font-weight: 500; }
.ember-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 2px rgba(194, 65, 45, .7); animation: glow 2.6s ease-in-out infinite; }
.burn.closed .ember-dot { background: #6b625a; box-shadow: none; animation: none; }
@keyframes glow { 50% { opacity: .45; box-shadow: 0 0 4px 1px rgba(194, 65, 45, .4); } }
.lang { min-height: 40px; padding: 0 15px; border: 1px solid var(--ivory); border-radius: 99px; font: 700 14px/1 var(--ar); }
html[lang="ar"] .lang { font: 500 13px/1 var(--sans); }

/* 1. film */
.film { position: relative; height: 720vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--char); }
#smoke { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-bottle { position: absolute; z-index: 1; bottom: 0; height: 92%; width: auto; max-width: none; left: 66%; transform: translateX(-50%); opacity: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 62% at 50% 55%, #000 55%, transparent 100%); mask-image: radial-gradient(60% 62% at 50% 55%, #000 55%, transparent 100%); will-change: opacity, transform; }
.shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(15, 13, 12, .94) 0%, rgba(15, 13, 12, .6) 34%, transparent 58%),
  radial-gradient(130% 100% at 62% 50%, transparent 52%, rgba(15, 13, 12, .75)); }
html[dir="rtl"] .shade { transform: scaleX(-1); }
.chapter { position: absolute; z-index: 3; left: clamp(22px, 6vw, 96px); top: 50%; transform: translateY(-50%); max-width: min(580px, 46vw); opacity: 0; will-change: opacity, transform; }
html[dir="rtl"] .chapter { left: auto; right: clamp(22px, 6vw, 96px); }
.chapter .sub { margin-top: 22px; max-width: 38ch; color: var(--muted); font-size: 16px; }
.chapter .btn { margin-top: 28px; }
.dots { position: absolute; z-index: 3; right: 26px; top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 12px; }
.dots li { width: 6px; height: 6px; border-radius: 50%; background: rgba(242, 235, 223, .28); transition: background .3s, transform .3s; }
.dots li.on { background: var(--ember); transform: scale(1.5); }
html[dir="rtl"] .dots { right: auto; left: 26px; }
.hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hint i { width: 1px; height: 30px; background: linear-gradient(transparent, var(--brass)); animation: rise 1.9s infinite; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } 50% { transform: scaleY(1); transform-origin: bottom; } 51% { transform-origin: top; } to { transform: scaleY(0); transform-origin: top; } }
html[lang="ar"] .hint { letter-spacing: 0; font: 700 13px/1 var(--ar); }

/* 2. the house */
.house { padding: clamp(90px, 12vw, 150px) 0; background: var(--char-2); border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; margin: 40px 0 28px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 14px 18px; font-size: 15px; letter-spacing: .05em; color: var(--muted); transition: color .2s; }
.tab::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tab.on { color: var(--ivory); }
.tab.on::after { transform: scaleX(1); }
.fam { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.fam-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--char); }
.fam-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.fam-photo img.swap { opacity: 0; transform: scale(1.04); }
.fam-intro { color: var(--muted); max-width: 44ch; margin-bottom: 18px; }
.list { list-style: none; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list .nm { font: 400 24px/1.2 var(--serif); }
html[lang="ar"] .list .nm { font: 700 20px/1.4 var(--ar); }
.list .pr { font: 500 15px/1.6 var(--sans); color: var(--brass); white-space: nowrap; }
.list .pr small { font-size: 11px; letter-spacing: .1em; margin-inline-end: 4px; color: var(--muted); }
.list .alt { grid-column: 1 / -1; font: 400 15px/1.3 var(--ar-display); color: var(--muted); }
html[lang="ar"] .list .alt { font: italic 400 15px/1.3 var(--serif); }
.list .ds { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* 3. finder */
.finder { padding: clamp(90px, 12vw, 150px) 0; background:
  radial-gradient(70% 60% at 85% 30%, rgba(59, 36, 24, .55), transparent 70%), var(--char); }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.q { margin-top: 34px; }
.q legend { font: 400 italic 20px/1.3 var(--serif); margin-bottom: 14px; }
html[lang="ar"] .q legend { font: 700 18px/1.4 var(--ar); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--brass); color: var(--ivory); }
.chip.on { background: var(--ivory); border-color: var(--ivory); color: var(--char); }
.match { position: sticky; top: 96px; border: 1px solid var(--line); background: rgba(23, 18, 15, .85); }
.match-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.match-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-body { padding: clamp(22px, 3vw, 34px); }
.match .k { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
html[lang="ar"] .match .k { letter-spacing: 0; font-size: 14px; }
.match h3 { font: 400 clamp(30px, 3.4vw, 44px)/1.1 var(--serif); margin-top: 10px; }
html[lang="ar"] .match h3 { font: 700 34px/1.3 var(--ar-display); }
.m-alt { color: var(--muted); font: 400 18px/1.3 var(--ar-display); margin-top: 4px; }
html[lang="ar"] .m-alt { font: italic 400 17px/1.3 var(--serif); }
.match.flash h3, .match.flash .notes b { animation: settle .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes settle { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } }
.notes { list-style: none; margin: 22px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.notes li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.notes span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
html[lang="ar"] .notes span { letter-spacing: 0; font-size: 14px; }
.notes b { font-weight: 400; }
.match-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.price { font: 400 26px/1 var(--serif); color: var(--brass); }

/* 4. gift */
.gift { padding: clamp(90px, 12vw, 150px) 0; background: var(--char-2); border-top: 1px solid var(--line); }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.lead { color: var(--muted); max-width: 44ch; margin-top: 22px; }
.picks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.pick { width: 100%; text-align: start; padding: 16px 18px; border: 1px solid var(--line); display: grid; gap: 2px; transition: border-color .2s, background .2s; }
.pick:hover { border-color: rgba(184, 146, 90, .6); }
.pick[aria-pressed="true"] { border-color: var(--brass); background: rgba(184, 146, 90, .1); }
.pick b { font: 400 18px/1.25 var(--serif); }
html[lang="ar"] .pick b { font: 700 16px/1.4 var(--ar); }
.pick span { font-size: 13px; color: var(--muted); }
.box-wrap { position: sticky; top: 96px; }
.gift-photo { aspect-ratio: 1; overflow: hidden; }
.gift-photo img { width: 100%; height: 100%; object-fit: cover; }
.box { margin-top: -1px; border: 1px solid var(--brass); padding: 20px; background: var(--char); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots span { min-height: 66px; display: grid; place-items: center; text-align: center; padding: 8px; border: 1px dashed var(--line); font: 400 italic 14px/1.25 var(--serif); color: var(--muted); }
html[lang="ar"] .slots span { font: 700 13px/1.4 var(--ar); }
.slots span.full { border: 1px solid var(--brass); color: var(--ivory); font-style: normal; background: linear-gradient(rgba(184, 146, 90, .14), transparent); animation: settle .5s cubic-bezier(.2, .7, .2, 1); }
.box-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.box-foot b { font: 400 24px/1 var(--serif); color: var(--brass); margin-inline-start: 6px; }

/* 5. visit */
.visit { position: relative; padding-bottom: clamp(70px, 9vw, 120px); background: var(--char); }
.visit-photo { height: clamp(300px, 52vw, 620px); overflow: hidden; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.visit-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 28px; }
.vcard { background: var(--char-2); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.vcard h3 { font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif); }
html[lang="ar"] .vcard h3 { font: 700 30px/1.4 var(--ar-display); }
.vcard > p:not(.sec) { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.contact { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hours b { font-weight: 500; }

/* 6. ending */
.end { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #000; text-align: center; }
#endSmoke { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.end-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 0 20px; }
.end-mark { width: 34px; height: 54px; color: var(--ivory); margin-bottom: 14px; }
.big { font: 400 clamp(46px, 11vw, 168px)/1 var(--serif); letter-spacing: .14em; margin-inline-end: -.14em; }
.big-ar { font: 700 clamp(30px, 5vw, 64px)/1.3 var(--ar-display); color: var(--brass); }
.see { color: var(--muted); font: italic 400 20px/1.4 var(--serif); margin: 10px 0 26px; }
html[lang="ar"] .see { font: 400 19px/1.5 var(--ar); }

/* contact note + float */
.wa-float { position: fixed; z-index: 40; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 20px; border-radius: 99px; background: var(--ivory); color: var(--char); font-weight: 500; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform: translateY(120px); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.wa-float svg { width: 20px; height: 20px; }
.wa-float.on { transform: none; }
html[dir="rtl"] .wa-float { right: auto; left: 18px; }
.note { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.note[hidden] { display: none; }
.note-card { position: relative; width: min(440px, 100%); padding: 34px 30px 30px; background: var(--char-2); border: 1px solid var(--brass); }
.note-card h3 { font: 400 26px/1.2 var(--serif); padding-inline-end: 30px; }
html[lang="ar"] .note-card h3 { font: 700 24px/1.4 var(--ar); }
.note-card p { color: var(--muted); margin-top: 12px; }
.note-card .note-q { color: var(--ivory); margin: 22px 0 14px; }
.note-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--muted); }
html[dir="rtl"] .note-x { right: auto; left: 12px; }
.credit { padding: 26px 20px; text-align: center; font-size: 12px; color: var(--muted); background: #000; border-top: 1px solid var(--line); }

/* phones */
@media (max-width: 900px) {
  .links { display: none; }
  .fam, .finder-grid, .gift-grid, .visit-grid { grid-template-columns: 1fr; }
  .match, .box-wrap { position: static; }
  .fam-photo { aspect-ratio: 4 / 3; }
  .visit-grid { margin-top: 20px; }
}
@media (max-width: 760px) {
  .burn { display: none; }
  .logo-en { font-size: 16px; letter-spacing: .22em; }
  .hero-bottle { left: 50%; height: 44%; bottom: auto; top: 8%; }
  .shade { background: linear-gradient(0deg, rgba(15, 13, 12, .96) 0%, rgba(15, 13, 12, .7) 38%, transparent 66%), radial-gradient(140% 100% at 50% 40%, transparent 50%, rgba(15, 13, 12, .7)); }
  html[dir="rtl"] .shade { transform: none; }
  .chapter { top: auto; bottom: 74px; transform: none; max-width: none; right: 22px; }
  html[dir="rtl"] .chapter { left: 22px; }
  .chapter .sub { font-size: 15px; margin-top: 14px; }
  .dots { top: 50%; right: 12px; }
  html[dir="rtl"] .dots { left: 12px; }
  .hint { bottom: 16px; }
  .picks { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 54px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { overflow-x: clip; }
