:root {
  --ink: #14201f;
  --ink-soft: #24302e;
  --limestone: #d8cdbc;
  --gypsum: #f2ede4;
  --dune: #9b8d7a;
  --silver: #747c7a;
  --rukn: #5a382f;
  --sera: #6c3040;
  --rihla: #3c6063;
  --line: rgba(242, 237, 228, .22);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--gypsum); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body:not(.is-ready) .site-header { opacity: 0; transform: translateY(-12px); }
body:not(.is-ready) .scene-frame { opacity: 0; transform: scale(.985); }
body:not(.is-ready) .narrative { opacity: 0; transform: translateY(12px); }
.site-header, .scene-frame, .narrative { transition: opacity .85s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
button, dialog { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--gypsum); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 50; padding: 12px 18px; background: var(--gypsum); color: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(20,32,31,.72), rgba(20,32,31,.18));
  backdrop-filter: blur(12px);
}
.brand { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.brand span:first-child { font-size: 14px; letter-spacing: .24em; }
.brand span:last-child { font-size: 12px; letter-spacing: .16em; opacity: .72; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.text-button, .bag-button { border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.bag-button { display: flex; align-items: center; gap: 10px; }
.bag-count { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }

.experience { min-height: 100svh; display: grid; grid-template-columns: minmax(420px, 45vw) 1fr; background: var(--ink); }
.scene { min-height: 100svh; padding-top: 0; overflow: hidden; }
.scene-frame { position: relative; height: 100svh; margin: 0; overflow: hidden; background: #23302e; }
#scene-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.035); transition: opacity .58s ease, transform .82s cubic-bezier(.2,.7,.2,1), filter .58s ease; will-change: transform, opacity; }
.scene-frame.is-changing #scene-image { opacity: .12; transform: scale(1.11); filter: blur(1.5px); }
.water-layer { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.038); clip-path: polygon(46% 59%, 57% 59%, 78% 92%, 22% 92%); filter: url(#water-ripple); opacity: 0; pointer-events: none; transition: opacity .45s ease; animation: water-wind 7s ease-in-out infinite alternate; will-change: transform, filter; }
.experience[data-active-room="courtyard"] .water-layer { opacity: .72; }
.scene-frame.is-changing .water-layer { opacity: 0; }
.filter-definitions { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.scene-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(7,15,14,.18) 0%, transparent 38%, rgba(7,15,14,.27) 100%); pointer-events: none; transition: background .58s ease, opacity .58s ease; }
.scene-frame.is-changing .scene-shade { opacity: .72; background-color: rgba(8,14,13,.52); }
@keyframes water-wind { from { transform: scale(1.038) translate3d(-.45px, 0, 0); } to { transform: scale(1.04) translate3d(.45px, .3px, 0); } }
.scene-frame figcaption { position: absolute; left: 30px; bottom: 25px; z-index: 2; color: rgba(242,237,228,.8); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }

.hotspots { position: absolute; inset: 0; z-index: 3; transition: opacity .25s ease; }
.hotspot { position: absolute; width: 66px; height: 98px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; padding: 0 0 11px; border: 1px solid rgba(242,237,228,.35); background: rgba(20,32,31,.13); backdrop-filter: blur(2px); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.hotspot::before { content: ""; position: absolute; width: 5px; height: 5px; top: 12px; border: 1px solid currentColor; border-radius: 50%; }
.hotspot:hover { transform: translateY(-4px); background: rgba(20,32,31,.48); border-color: var(--gypsum); }
.hotspot-index { font-size: 8px; letter-spacing: .18em; opacity: .72; }
.hotspot-name { font-size: 9px; letter-spacing: .22em; }
.hotspot-rukn { left: 7%; top: 49%; }
.hotspot-sera { left: 70.5%; top: 47.5%; }
.hotspot-rihla { right: 2%; top: 48%; }
.experience:not([data-active-room="courtyard"]) .hotspots { opacity: 0; pointer-events: none; }
.return-button { position: absolute; z-index: 4; left: 30px; top: 100px; border: 1px solid rgba(242,237,228,.45); background: rgba(20,32,31,.38); backdrop-filter: blur(10px); padding: 12px 16px; cursor: pointer; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }

.narrative { min-height: 100svh; padding: calc(var(--header-h) + 32px) clamp(34px, 5vw, 82px) 34px; display: grid; grid-template-rows: auto 1fr auto; }
.narrative-topline { display: flex; justify-content: space-between; color: rgba(242,237,228,.56); font-size: 8px; letter-spacing: .2em; }
.narrative-body { align-self: center; max-width: 650px; padding: 38px 0; }
.narrative-body.is-revealing > * { animation: copy-reveal .68s both cubic-bezier(.2,.7,.2,1); }
.narrative-body.is-revealing > *:nth-child(2) { animation-delay: .04s; }
.narrative-body.is-revealing > *:nth-child(3) { animation-delay: .09s; }
.narrative-body.is-revealing > *:nth-child(4) { animation-delay: .14s; }
.narrative-body.is-revealing > *:nth-child(5) { animation-delay: .18s; }
.narrative-body.is-revealing > *:nth-child(6) { animation-delay: .22s; }
.narrative-body.is-revealing > *:nth-child(7) { animation-delay: .25s; }
@keyframes copy-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: block; margin: 0 0 24px; font-size: 9px; line-height: 1.4; letter-spacing: .25em; color: var(--dune); }
.narrative h1 { margin: 0; font-size: clamp(66px, 8.5vw, 144px); line-height: .78; letter-spacing: -.07em; font-weight: 300; }
.room-arabic { margin: 28px 0 0; text-align: left; font-size: 20px; letter-spacing: .14em; color: var(--limestone); }
.room-description { max-width: 510px; margin: 42px 0 0; color: rgba(242,237,228,.8); font: 300 clamp(15px, 1.3vw, 19px)/1.65 Georgia, serif; }
.room-notes { margin: 16px 0 0; color: var(--dune); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.room-commerce { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.room-commerce[hidden] { display: none; }
.room-commerce > div { display: grid; gap: 8px; }
.volume { font-size: 8px; letter-spacing: .18em; color: rgba(242,237,228,.6); }
.price { font: 300 23px/1 Georgia, serif; }
.primary-button { min-width: 180px; padding: 16px 22px; border: 1px solid var(--gypsum); background: var(--gypsum); color: var(--ink); cursor: pointer; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
.primary-button:hover { background: transparent; color: var(--gypsum); }
.primary-button:active { transform: translateY(1px); }
.room-choices { display: none; }
.narrative-footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.narrative-footer p { margin: 0; color: rgba(242,237,228,.72); font-size: 9px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; }
.narrative-footer p span { color: rgba(242,237,228,.4); }
.explore-next { display: flex; align-items: center; gap: 28px; border: 0; background: none; cursor: pointer; padding: 8px 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.explore-next span:last-child { font-size: 20px; font-weight: 200; }
.explore-next span:last-child { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.explore-next:hover span:last-child { transform: translateX(7px); }

.shop-drawer { width: min(1120px, calc(100vw - 30px)); height: calc(100svh - 30px); max-width: none; max-height: none; margin: 15px 15px 15px auto; padding: 34px; border: 0; color: var(--ink); background: var(--gypsum); transform: translateX(18px); opacity: 0; transition: opacity .35s ease, transform .35s ease, display .35s allow-discrete, overlay .35s allow-discrete; }
.shop-drawer[open] { transform: translateX(0); opacity: 1; }
.shop-drawer.is-closing { transform: translateX(18px); opacity: 0; }
.shop-drawer::backdrop, .story-dialog::backdrop { background: rgba(9,15,14,.76); backdrop-filter: blur(8px); }
.drawer-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 30px; }
.drawer-header .eyebrow { margin-bottom: 12px; color: var(--rihla); }
.drawer-header h2 { margin: 0; font: 300 clamp(34px, 4vw, 62px)/1 Georgia, serif; }
.close-button { width: 44px; height: 44px; border: 1px solid rgba(20,32,31,.25); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 24px; font-weight: 200; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-card { display: grid; grid-template-rows: minmax(260px, 44vh) auto auto; background: #e9e2d7; }
.shop-drawer[open] .shop-card { animation: shop-card-enter .58s both cubic-bezier(.2,.7,.2,1); }
.shop-drawer[open] .shop-card:nth-child(2) { animation-delay: .05s; }
.shop-drawer[open] .shop-card:nth-child(3) { animation-delay: .1s; }
.shop-drawer[open] .shop-card:nth-child(4) { animation-delay: .15s; }
.shop-drawer[open] .shop-card:nth-child(5) { animation-delay: .2s; }
@keyframes shop-card-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.shop-image { border: 0; padding: 0; overflow: hidden; cursor: pointer; background: #c9bdac; }
.shop-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shop-image:hover img { transform: scale(1.025); }
.shop-card > div { padding: 18px 18px 14px; }
.shop-card span { font-size: 7px; letter-spacing: .19em; }
.shop-card h3 { margin: 8px 0 7px; font-size: 18px; font-weight: 400; letter-spacing: .12em; }
.shop-card p { margin: 0; font: 13px/1.4 Georgia, serif; color: rgba(20,32,31,.7); }
.add-line { display: flex; justify-content: space-between; padding: 15px 18px; border: 0; border-top: 1px solid rgba(20,32,31,.14); background: transparent; color: var(--ink); cursor: pointer; font-size: 9px; letter-spacing: .14em; }
.shop-card-featured { grid-column: span 2; grid-template-columns: 56% 1fr; grid-template-rows: 1fr auto; }
.shop-card-featured .shop-image { grid-row: 1 / span 2; }
.shop-card-featured > div { align-self: end; }
.shop-card-featured .add-line { grid-column: 2; }

.story-dialog { width: min(1080px, calc(100vw - 30px)); max-width: none; height: min(760px, calc(100svh - 30px)); max-height: none; padding: 0; border: 0; color: var(--ink); background: var(--gypsum); grid-template-columns: 46% 1fr; overflow: hidden; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), display .5s allow-discrete, overlay .5s allow-discrete; }
.story-dialog[open] { display: grid; opacity: 1; transform: translateY(0) scale(1); }
.story-dialog.is-closing { opacity: 0; transform: translateY(12px) scale(.99); }
.story-image, .story-image img { width: 100%; height: 100%; }
.story-image img { object-fit: cover; }
.story-copy { align-self: center; padding: clamp(35px, 6vw, 78px); }
.story-copy h2 { margin: 0 0 38px; font: 300 clamp(40px, 5vw, 72px)/.98 Georgia, serif; }
.story-copy p { margin: 0 0 20px; color: rgba(20,32,31,.75); font: 16px/1.65 Georgia, serif; }
.story-copy .primary-button { margin-top: 20px; }
.primary-button.dark { background: var(--ink); color: var(--gypsum); border-color: var(--ink); }
.primary-button.dark:hover { background: transparent; color: var(--ink); }
.story-dialog > .close-button { position: absolute; right: 22px; top: 22px; z-index: 3; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 13px 20px; background: var(--gypsum); color: var(--ink); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: .3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.bag-count.is-pulsing { animation: bag-pulse .42s ease; }
@keyframes bag-pulse { 45% { transform: scale(1.2); background: var(--gypsum); color: var(--ink); } }

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .site-header { padding: 0 18px; }
  .site-header nav { gap: 18px; }
  .site-header .text-button { display: none; }
  .experience { display: block; }
  .scene, .scene-frame { min-height: 65svh; height: 65svh; }
  .scene-frame > img { object-position: center 51%; }
  .narrative { min-height: 0; padding: 40px 22px 26px; }
  .narrative-body { padding: 56px 0 46px; }
  .narrative h1 { font-size: clamp(64px, 23vw, 105px); }
  .room-description { margin-top: 34px; }
  .room-choices { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .room-choices button { padding: 16px 2px; border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer; font-size: 9px; letter-spacing: .12em; }
  .room-choices button:last-child { border-right: 0; }
  .room-choices span { opacity: .5; margin-right: 4px; }
  .hotspot { width: 52px; height: 78px; }
  .hotspot-rukn { left: 5%; top: 49%; }
  .hotspot-sera { left: 69%; }
  .hotspot-rihla { right: 1%; }
  .narrative-footer p { display: none; }
  .explore-next { margin-left: auto; }
  .return-button { left: 18px; top: 82px; }
  .scene-frame figcaption { left: 15px; bottom: 18px; }
  .shop-drawer { width: calc(100vw - 12px); height: calc(100svh - 12px); margin: 6px; padding: 24px 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card { grid-template-rows: 260px auto auto; }
  .shop-card-featured { grid-template-columns: 56% 1fr; grid-template-rows: 1fr auto; min-height: 360px; }
  .story-dialog { width: calc(100vw - 12px); height: calc(100svh - 12px); }
  .story-dialog[open] { display: block; overflow-y: auto; }
  .story-image { height: 44vh; }
  .story-copy { padding: 35px 24px 50px; }
}

@media (max-width: 540px) {
  .brand span:first-child { font-size: 12px; }
  .brand span:last-child { font-size: 10px; }
  .bag-button { font-size: 9px; }
  .narrative-topline span:last-child { display: none; }
  .room-commerce { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card { grid-template-columns: 42% 1fr; grid-template-rows: auto auto; min-height: 175px; }
  .shop-image { grid-row: 1 / span 2; }
  .shop-card > div { align-self: end; }
  .add-line { grid-column: 2; }
  .shop-card-featured { grid-column: auto; grid-template-columns: 42% 1fr; grid-template-rows: auto auto; min-height: 190px; }
  .hotspot-name { display: none; }
  .hotspot { width: 38px; height: 56px; }
  .hotspot::before { top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .water-layer { opacity: 0 !important; filter: none; }
}

@starting-style {
  .shop-drawer[open] { transform: translateX(18px); opacity: 0; }
  .story-dialog[open] { opacity: 0; transform: translateY(18px) scale(.985); }
}

/* Refined navigation, accessible dialogs and stable mobile layouts. */
html { scrollbar-gutter: stable; }
body.dialog-open { overflow: hidden; }
button { touch-action: manipulation; }
.text-button, .bag-button { min-height: 44px; }
.text-button { transition: color .2s; }
.text-button:hover, .text-button[aria-current="true"] { color: var(--limestone); }
.shop-drawer button:focus-visible, .story-dialog button:focus-visible { outline-color: var(--ink); }
.scene-frame.is-changing #scene-image { opacity: .45; transform: scale(1.055); filter: none; }
.room-choices { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-choices button { min-height: 44px; padding: 14px 4px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 9px; letter-spacing: .12em; transition: background .2s; }
.room-choices button:last-child { border-right: 0; }
.room-choices button:hover, .room-choices button[aria-current="true"] { background: rgba(242,237,228,.09); }
.room-choices span { opacity: .55; margin-right: 4px; }
.bag-summary { margin-bottom: 26px; padding: 20px; border: 1px solid rgba(20,32,31,.18); }
.bag-summary h3 { margin: 0 0 12px; font-weight: 400; }
.bag-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px solid rgba(20,32,31,.1); }
.bag-row button { background: none; border: 0; text-decoration: underline; min-height: 44px; cursor: pointer; font-size: 11px; }
.bag-note { color: #56605a; font-size: 12px; line-height: 1.5; }
.toast { max-width: calc(100vw - 32px); width: max-content; line-height: 1.6; text-align: center; }
.narrative-topline { gap: 16px; line-height: 1.6; }
@media (max-width: 880px) {
  .site-header .text-button[data-open-story] { display: block; font-size: 9px; }
  .narrative { scroll-margin-top: 66px; }
}
@media (max-width: 540px) {
  .site-header nav { gap: 12px; }
  .hotspot-name { display: block; font-size: 7px; letter-spacing: .08em; }
  .hotspot { width: 44px; height: 64px; }
}
@media (max-height: 800px) and (min-width: 881px) {
  .narrative h1 { font-size: clamp(60px, 7vw, 106px); }
  .narrative-body { padding: 26px 0; }
  .room-description { margin-top: 26px; }
  .room-commerce { margin-top: 24px; }
}
