/* CityStay Studios
   Layout concept: a quiet limestone page where every image sits in a Damascene arch;
   the hero arch opens into the building as you scroll, the studio is toured sideways. */
:root {
  /* Color: limestone, warm stone, velvet grey, charcoal, brass */
  --paper: #F3F4F1;
  --paper-2: #E7EAE7;
  --mist: #E6E1D7;
  --ink: #1D2124;
  --ink-soft: #596167;
  --ink-faint: #B9BEBF;
  --line: #D3D7D4;
  --brass: #A4814E;
  --brass-deep: #7A5C33;
  --brass-soft: #E4D7BF;
  --night: #1B1F22;
  --night-2: #24292D;
  --night-fg: #EEEDE8;
  --night-soft: #A9AFB2;
  --on-brass: #17140F;
  --veil: rgba(20, 23, 26, 0.55);
  --header-bg: rgba(243, 244, 241, 0.82);

  /* Type */
  --f-display: "Marcellus", "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-label: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --t-xs: 0.75rem;
  --t-s: 0.875rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --t-hero: clamp(3rem, 1rem + 8.4vw, 9rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

:root[lang="ar"] {
  --f-display: "IBM Plex Sans Arabic", "Geeza Pro", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif;
  --f-label: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif;
}

:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] .statement-text, :root[lang="ar"] .panel-lede, :root[lang="ar"] .hero-quote-text { font-weight: 300; }
:root[lang="ar"] .hero-title em, :root[lang="ar"] .final-title .line:nth-child(2) { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; font-weight: 400; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-m);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brass-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--f-label);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
:root[lang="ar"] .kicker { letter-spacing: 0; font-size: var(--t-s); }

.display-xl { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.01em; }
.display-l { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.005em; }
:root[lang="ar"] .display-xl, :root[lang="ar"] .display-l { line-height: 1.35; letter-spacing: 0; }
.body-l { font-size: var(--t-l); line-height: 1.6; color: var(--ink-soft); max-width: 36ch; }
.body-m { color: var(--ink-soft); max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: var(--bh);
  padding: 0 1.5em;
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), scale .15s var(--ease);
}
:root[lang="ar"] .btn { letter-spacing: 0; font-size: var(--t-m); }
.btn-small { --bh: 40px; padding: 0 1.1em; font-size: var(--t-xs); }
.btn-large { --bh: 64px; padding: 0 2.2em; font-size: var(--t-m); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--brass-deep); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-brass:hover { background: var(--night-fg); color: var(--night); }
.wa-ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.arrow { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }

/* ---------- Progress + header ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, 0)); }
:root[dir="rtl"] .progress span { transform-origin: right; }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; gap: 5px; }
.wordmark-name { font-family: "Jost", var(--f-body); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.03em; }
.wordmark-sub { font-family: "Jost", var(--f-body); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; padding-inline-start: 0.42em; position: relative; padding-bottom: 6px; }
.wordmark-sub::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 1px; background: var(--brass); transform: translateX(-50%); }
.wordmark-lg .wordmark-name { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.wordmark-lg .wordmark-sub { font-size: 0.75rem; }

.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { font-family: var(--f-label); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; position: relative; padding-block: 6px; }
:root[lang="ar"] .nav a { letter-spacing: 0; font-size: var(--t-s); }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font: 500 var(--t-xs)/1 var(--f-label); letter-spacing: 0.1em; cursor: pointer;
}
.lang-toggle .lang-ar { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 0.95rem; letter-spacing: 0; }
.lang-toggle .lang-sep { opacity: .4; }
:root[lang="en"] .lang-en, :root[lang="ar"] .lang-ar { color: var(--ink); }
.lang-toggle:hover { border-color: var(--ink); }
@media (max-width: 980px) { .nav { display: none; } }

/* ---------- Mobile menu ---------- */
.menu-btn, .menu-close {
  width: 44px; height: 44px; display: none; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink);
}
.menu-btn svg, .menu-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
:root[dir="rtl"] .menu-btn svg { transform: scaleX(-1); }
.menu-btn:hover, .menu-close:hover { border-color: var(--ink); }
@media (max-width: 980px) { .menu-btn { display: grid; } }
:root.menu-open { overflow: hidden; }
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .45s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu-close { display: grid; justify-self: end; }
.menu-nav { display: grid; align-content: center; gap: 4px; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 10px; text-decoration: none;
  font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 4vw, 2.75rem); line-height: 1.15;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu-nav a:nth-child(5) { transition-delay: .2s; }
.menu-i { font: 500 var(--t-xs)/1 var(--f-label); letter-spacing: 0.1em; color: var(--brass-deep); font-variant-numeric: tabular-nums; }
:root[lang="ar"] .menu-nav a { line-height: 1.5; }
.menu-foot { display: grid; gap: 14px; justify-items: start; color: var(--ink-soft); font-size: var(--t-s); }

/* press feedback (on tap/click only; hover is a colour change) */
.btn:active, .dock:active, .lang-toggle:active, .menu-btn:active, .menu-close:active, .marquee-toggle:active { scale: 0.97; }
/* icon-only under 520px: the label stays in the accessibility tree, just off-screen */
@media (max-width: 520px) {
  .site-header .btn-small span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .btn-small { --bh: 44px; width: 44px; padding: 0; }
}

/* ---------- Loader ---------- */
.loader { display: none; clip-path: inset(0 0 0 0); }
.intro .loader, .loader.is-leaving {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--paper);
  animation: loader-fallback 0s 3s forwards;
}
.loader-mark { display: grid; justify-items: center; gap: 14px; }
.loader-name { overflow: hidden; font-family: "Jost", sans-serif; font-size: clamp(2.6rem, 9vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.loader-name span { display: block; transform: translateY(105%); animation: rise 1s var(--ease) .1s forwards; }
.loader-line { width: 64px; height: 1px; background: var(--brass); transform: scaleX(0); animation: grow .9s var(--ease) .5s forwards; }
.loader-sub { font: 500 0.7rem/1 "Jost", sans-serif; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-soft); opacity: 0; animation: fade .8s ease .7s forwards; }
.loader.is-leaving { transition: clip-path 1.1s var(--ease-io); }
@keyframes rise { to { transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes loader-fallback { to { visibility: hidden; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-sticky { position: relative; }
.hero-copy {
  position: relative; z-index: 1;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(16px, 4vh, 48px));
  padding-inline: var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  display: grid; gap: clamp(18px, 3vh, 32px);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.eyebrow { font-family: var(--f-label); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: var(--t-s); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--brass-soft); border-radius: 999px; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-deep); }
:root[lang="ar"] .badge { letter-spacing: 0; font-size: var(--t-s); }
.badge-dot { width: 7px; height: 7px; border: 1px solid var(--brass); background: var(--brass-soft); transform: rotate(45deg); flex: none; }

.hero-title { font-family: var(--f-display); font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) { padding-inline-start: clamp(0px, 14vw, 240px); }
.hero-title em { font-style: normal; color: var(--brass); }
:root[lang="ar"] .hero-title { line-height: 1.25; letter-spacing: 0; font-size: clamp(2.6rem, 1rem + 7vw, 7.5rem); }

.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.hero-sub { max-width: 34ch; color: var(--ink-soft); font-size: var(--t-m); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-arch { position: relative; margin: clamp(28px, 5vh, 56px) auto 0; width: min(calc(100% - 2 * var(--gutter)), 560px); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--mist); }
.hero-arch-media { position: absolute; inset: 0; }
.hero-arch-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: translateY(var(--iy, 0px)) scale(var(--s, 1)); transform-origin: 50% 30%; }
.hero-quote { position: absolute; inset-inline: 0; bottom: 0; padding: 40px var(--gutter) clamp(28px, 6vh, 64px); display: grid; gap: 10px; color: #F3F2EE; background: linear-gradient(to top, var(--veil), transparent); opacity: var(--q, 1); }
.hero-quote-text { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.05; transform: translateY(calc((1 - var(--q, 1)) * 30px)); }
.hero-quote-cap { font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; opacity: .8; }
:root[lang="ar"] .hero-quote-cap { letter-spacing: 0; font-size: var(--t-s); }

.motion .hero { height: 260vh; }
.motion .hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .hero-copy { opacity: var(--co, 1); transform: translateY(var(--cy, 0px)); will-change: transform, opacity; }
.motion .hero-arch {
  position: absolute; inset: 0; margin: 0; width: auto; aspect-ratio: auto; border-radius: 0; z-index: 2; pointer-events: none;
  clip-path: var(--clip, inset(70% 35% 0 35% round 999px 999px 0 0));
  will-change: clip-path;
}
.motion .hero-quote { opacity: var(--q, 0); }
@media (max-width: 520px) {
  .hero-copy { gap: 16px; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); }
  .hero-meta { gap: 10px; }
  .hero-sub { font-size: var(--t-s); }
  .hero-ctas { gap: 8px; flex-wrap: nowrap; }
  .hero-ctas .btn { --bh: 48px; padding: 0 1.05em; }
}
@media (min-width: 900px) {
  .motion .hero-foot { position: relative; }
  .motion .hero-sub, .motion .hero-ctas { max-width: calc(50% - 19vw); }
  .motion .hero-ctas { justify-content: flex-end; }
}

/* intro sequence for the hero headline */
.motion .hero-title .line > span { transform: translateY(var(--ly, 0)); transition: transform 1.2s var(--ease); }
.intro .hero-title .line > span { --ly: 110%; }
.intro .hero-meta, .intro .hero-foot { opacity: 0; }
.hero-meta, .hero-foot { transition: opacity 1s ease .5s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--paper); position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 36px; padding-inline-end: 36px; will-change: transform; }
.marquee-track span { font-family: "Marcellus", serif; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; white-space: nowrap; color: var(--ink); }
.marquee-track span.ar { font-family: "Reem Kufi", sans-serif; color: var(--brass); }
.marquee-track i { width: 10px; height: 10px; border: 1px solid var(--brass); transform: rotate(45deg); flex: none; }
.marquee-toggle {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink-soft);
  box-shadow: 0 0 0 10px var(--paper);
}
.marquee-toggle:hover { border-color: var(--ink); color: var(--ink); }
.marquee-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
:root:not(.motion) .marquee-toggle { display: none; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(96px, 16vh, 200px); display: grid; gap: 32px; }
.statement-text { font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 3.2vw, 3.6rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 26ch; }
:root[lang="ar"] .statement-text { line-height: 1.6; letter-spacing: 0; max-width: 30ch; }
.statement-text .w { color: var(--ink-faint); transition: color .5s ease; }
.statement-text .w.on { color: var(--ink); }
.statement-text .w.brass.on { color: var(--brass); }

/* ---------- Tour (pinned horizontal) ---------- */
.tour { position: relative; background: var(--paper-2); padding-block: 72px; }
.tour-sticky { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vh, 40px); }
.tour-head { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tour-counter { display: flex; align-items: center; gap: 14px; font-family: var(--f-label); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.tour-bar { width: clamp(60px, 12vw, 160px); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.tour-bar span { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(var(--tp, 0)); }
:root[dir="rtl"] .tour-bar span { transform-origin: right; }
.tour-track {
  display: flex; gap: clamp(20px, 3vw, 48px); align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); padding-bottom: 16px;
  scrollbar-width: thin; scrollbar-color: var(--brass) var(--line);
}
.tour-track:focus-visible { outline-offset: -2px; }
.panel { flex: 0 0 auto; width: min(78vw, 420px, 46svh); scroll-snap-align: center; display: grid; gap: 18px; }
.panel-media { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--mist); }
.panel-wide { width: min(86vw, 525px, 57.5svh); }
.panel-wide .panel-media { aspect-ratio: 1 / 1; }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateX(var(--px, 0px)) scale(1.18); }
.panel-cap { display: grid; gap: 6px; min-width: 0; }
.panel-cap h3 { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.1; }
.panel-cap p { color: var(--ink-soft); font-size: var(--t-s); max-width: 36ch; line-height: 1.6; }
.panel-intro, .panel-end { width: min(86vw, 500px); align-self: center; align-content: center; gap: 20px; }
.panel-intro .display-xl { font-size: clamp(2.75rem, 1.5rem + 4vw, 5rem); }
.panel-lede { font-family: var(--f-display); font-size: var(--t-l); color: var(--brass-deep); }
.panel-body { color: var(--ink-soft); max-width: 34ch; }
.panel-end .btn { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); }
:root[lang="ar"] .chips li { letter-spacing: 0; font-size: var(--t-s); }
.swipe-hint { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
:root[lang="ar"] .swipe-hint { letter-spacing: 0; }
.swipe-hint svg { width: 40px; height: 12px; fill: none; stroke: var(--brass); stroke-width: 1.2; animation: nudge 2.2s var(--ease) infinite; }
:root[dir="rtl"] .swipe-hint svg { transform: scaleX(-1); animation-name: nudge-rtl; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes nudge-rtl { 0%, 100% { transform: scaleX(-1) translateX(0); } 50% { transform: scaleX(-1) translateX(8px); } }

.motion .tour { padding-block: 0; }
.motion .tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; align-content: center; padding-top: calc(var(--header-h) * 0.6); }
.motion .tour-track { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }

/* ---------- Reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .reveal-clip { clip-path: inset(18% 0 0 0 round 6px); transition: clip-path 1.6s var(--ease); }
.motion .reveal-clip.is-in { clip-path: inset(0 0 0 0 round 6px); }

/* ---------- Amenities ---------- */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 7vh, 80px); max-width: 30ch; }
.amenities { padding-block: clamp(72px, 12vh, 140px); display: grid; gap: clamp(32px, 5vh, 56px); }
.am-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.am { display: grid; gap: 10px; align-content: start; padding: 28px 24px 8px 0; min-width: 0; }
.am + .am { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.am .ico { width: 40px; height: 40px; margin-bottom: 8px; fill: none; stroke: var(--brass); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.am h3 { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.3; }
.am p { color: var(--ink-soft); font-size: var(--t-s); }
.motion .am .ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) calc(var(--d, 0s) + .2s); }
.motion .am.is-in .ico path { stroke-dashoffset: 0; }
@media (max-width: 1000px) {
  .am-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); border-top: 0; }
  .am, .am + .am { grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .am .ico { grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 600px) { .am-row { grid-template-columns: 1fr; } }

/* ---------- Building ---------- */
/* overflow-x: clip keeps the rotating roundel's corners from widening the page on mobile */
.building { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; padding-block: clamp(40px, 8vh, 120px) clamp(96px, 16vh, 180px); }
.building-media { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--mist); max-width: 100%; }
.building-media img { object-position: 50% 66%; }
.parallax { position: absolute; inset: -12% 0; }
.parallax img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.building-copy { position: relative; display: grid; gap: 22px; min-width: 0; }
.roundel { width: clamp(110px, 12vw, 160px); height: auto; justify-self: end; margin-bottom: 8px; transform: rotate(var(--rot, 0deg)); }
:root[dir="rtl"] .roundel { justify-self: start; }
.roundel circle { fill: none; stroke: var(--brass); stroke-width: 0.8; }
.roundel .r2 { stroke-dasharray: 2 3; }
.ring-text { font: 500 9.6px "Jost", sans-serif; letter-spacing: 0.32em; fill: var(--ink-soft); }
.roundel-ar { font: 500 34px "Reem Kufi", sans-serif; fill: var(--ink); }
@media (max-width: 820px) {
  .building { grid-template-columns: 1fr; }
  .building-media { width: 100%; }
  .roundel { position: absolute; top: -80px; inset-inline-end: 0; margin: 0; }
  .building-copy { padding-top: 24px; }
}

/* ---------- Steps ---------- */
.steps { padding-block: 0 clamp(96px, 16vh, 180px); }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); position: relative; }
.step-list::before { content: ""; position: absolute; top: 28px; inset-inline: 28px; height: 1px; background: var(--line); }
.step-list::after { content: ""; position: absolute; top: 28px; inset-inline: 28px; height: 1px; background: var(--brass); transform-origin: left; transform: scaleX(var(--sp, 1)); }
:root[dir="rtl"] .step-list::after { transform-origin: right; }
.motion .step-list::after { transform: scaleX(var(--sp, 0)); }
.step { position: relative; display: grid; gap: 10px; min-width: 0; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brass); background: var(--paper); font-family: "Marcellus", serif; font-size: 1.4rem; color: var(--brass-deep); margin-bottom: 12px; }
.step h3 { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; }
.step p { color: var(--ink-soft); max-width: 30ch; }
@media (max-width: 760px) {
  .step-list { grid-template-columns: 1fr; gap: 36px; }
  .step-list::before, .step-list::after { top: 28px; bottom: 28px; inset-inline: 28px auto; width: 1px; height: auto; }
  .step-list::after { transform-origin: top; transform: scaleY(var(--sp, 1)); }
  .motion .step-list::after { transform: scaleY(var(--sp, 0)); }
  .step { grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
}

/* ---------- Location ---------- */
.location { position: relative; overflow: hidden; background: var(--mist); padding-block: clamp(110px, 18vh, 200px) clamp(72px, 10vh, 120px); }
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.location-inner {
  position: relative; display: grid; gap: clamp(40px, 7vh, 72px) clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas: "copy route" "near near";
  align-items: center;
}
.location-copy { grid-area: copy; display: grid; gap: 26px; justify-items: start; }
.location .display-xl { font-size: clamp(2.6rem, 1rem + 6vw, 6.5rem); line-height: 1; }
:root[lang="ar"] .location .display-xl { line-height: 1.3; }

/* route sketch: a north-up city plate; stays unmirrored in Arabic (it's geography) */
/* a soft clearing in the lattice, like a printed plate */
.route { grid-area: route; width: 100%; max-width: 560px; justify-self: end; direction: ltr; overflow: visible; background: radial-gradient(closest-side, var(--mist) 62%, color-mix(in srgb, var(--mist) 0%, transparent)); }
.route text { font-family: var(--f-body); paint-order: stroke; stroke: var(--mist); stroke-width: 6px; stroke-linejoin: round; }
/* the city: drawn first, quieter than the routes */
.route .ctx { opacity: var(--c, 1); }
.route .wall { fill: none; stroke: var(--brass-deep); stroke-width: 1; opacity: .55; }
.route .wall-in { stroke-dasharray: 2 4; opacity: .45; }
.route .citadel path { fill: var(--mist); stroke: var(--brass-deep); stroke-width: 1; }
.route .street { fill: none; stroke: var(--ink-soft); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .12; }
.route .souq path { fill: none; stroke: var(--brass-deep); stroke-width: 1; }
.route .souq-ribs { opacity: .7; }
.route .ctx-label { font-size: 12px; font-style: italic; letter-spacing: 0.04em; fill: var(--ink-soft); }
.route .old-city { font-family: "Marcellus", serif; font-style: normal; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--brass-deep); }
/* routes: a faint path and one dot per minute, revealed through a mask */
.route .path { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .35; stroke-linejoin: round; }
.route .steps { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 calc(1 / var(--n)); }
.route .mk { fill: none; stroke: #fff; stroke-width: 18; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k, 1)); }
/* stops */
.route .stop { opacity: var(--o, 1); }
.route .badge circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3; }
.route .badge path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.route .stop-name { font-size: 16px; fill: var(--ink); }
.route .stop-time { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; fill: var(--brass-deep); }
.route .origin circle { fill: none; stroke: var(--brass); stroke-width: 1; }
.route .origin rect { fill: var(--brass); stroke: var(--mist); stroke-width: 3px; }
.route .origin text { font-family: "Marcellus", serif; font-size: 21px; fill: var(--ink); }
.route .compass .rose { fill: var(--mist); stroke: var(--ink-soft); stroke-width: 1; }
.route .compass .rose-minor { fill: var(--mist); stroke: var(--ink-soft); stroke-width: 1; }
.route .compass .rose-n { fill: var(--brass); stroke: none; }
.route .compass text { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; fill: var(--ink-soft); }
.route .legend circle { fill: var(--ink); }
.route .legend text { font-size: 12px; fill: var(--ink-soft); }
/* phones: the plate bleeds to the screen edges and its type steps up so labels stay readable */
@media (max-width: 600px) {
  .route { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .route .stop-name { font-size: 18px; }
  .route .stop-time { font-size: 15px; }
  .route .ctx-label { font-size: 15px; }
  .route .old-city { font-size: 17px; }
  .route .legend text { font-size: 16px; }
  .route .origin text { font-size: 24px; }
}
:root[lang="ar"] .route text:not(.origin text) { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-style: normal; text-transform: none; }

/* the landmarks themselves, in the same arch the rooms use */
.near { grid-area: near; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.near-item { display: grid; gap: 6px; align-content: start; min-width: 0; }
.near-media { aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--paper-2); margin-bottom: 10px; }
.near-media img { width: 100%; height: 100%; object-fit: cover; }
.near-item h3 { font-family: var(--f-display); font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem); line-height: 1.25; }
.near-item p { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep); }
:root[lang="ar"] .near-item p { letter-spacing: 0; font-size: var(--t-s); }

@media (max-width: 900px) {
  .location-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "route" "near"; }
  .route { justify-self: center; }
  .near { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(96px, 16vh, 180px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-bottom: 1px solid var(--line); min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 0 28px; color: var(--ink-soft); max-width: 60ch; }
.faq details[open] .faq-a { animation: faq-in .6s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* ---------- Final CTA ---------- */
.final { background: var(--night); color: var(--night-fg); padding-block: clamp(110px, 20vh, 240px); position: relative; overflow: hidden; }
.final-arch { position: absolute; bottom: 0; inset-inline-end: clamp(16px, 8vw, 140px); width: min(34vw, 420px); height: auto; pointer-events: none; fill: none; stroke: var(--brass); stroke-width: 1; opacity: .5; }
.final-arch .inner { opacity: .5; }
.motion .final-arch path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-io); }
.motion .final-arch .inner { transition-delay: .35s; }
.motion .final-arch.is-in path { stroke-dashoffset: 0; }
/* no room beside the CTA on phones: the outline would run behind the button */
@media (max-width: 700px) { .final-arch { display: none; } }
.final-inner { position: relative; display: grid; gap: 30px; justify-items: start; }
.final .kicker { color: var(--brass); }
.final-title { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 8vw, 8.5rem); line-height: 0.98; letter-spacing: -0.02em; }
:root[lang="ar"] .final-title { line-height: 1.25; letter-spacing: 0; }
.final-title .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.final-title .line > span { display: inline-block; }
.final-title .line:nth-child(2) { padding-inline-start: clamp(0px, 10vw, 180px); color: var(--brass); }
.motion .final-title .line > span { transform: translateY(110%); transition: transform 1.3s var(--ease); }
.motion .final-title .line:nth-child(2) > span { transition-delay: .12s; }
.motion .final-title .line:nth-child(3) > span { transition-delay: .24s; }
.motion .final-title.is-in .line > span { transform: none; }
.final .body-l { color: var(--night-soft); }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-block: clamp(64px, 10vh, 110px) 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 7vw, 120px); }
.footer-cols > div { display: grid; gap: 8px; align-content: start; }
.footer-cols p { color: var(--ink-soft); }
.footer-cols a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.footer-cols a:hover { border-color: var(--brass); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: var(--t-xs); color: var(--ink-soft); }
.ar-tag { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: var(--t-s); }
.photo-credit { flex-basis: 100%; font-size: 0.6875rem; }
.photo-credit a { color: inherit; text-underline-offset: 2px; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 500 var(--t-s)/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(20, 23, 26, 0.22);
  transform: translate(-50%, 160%); transition: transform .7s var(--ease), scale .15s var(--ease);
}
:root[lang="ar"] .dock { letter-spacing: 0; font-size: var(--t-m); }
.dock.is-shown { transform: translate(-50%, 0); }
@media (max-width: 760px) { .dock { display: inline-flex; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
