/* =========================================================
   Mokha Coffee — brand site
   Palette drawn from the house itself: oxblood (logo), lime
   plaster (walls), turquoise + violet (doors), saffron (lamps).
   ========================================================= */

:root {
  color-scheme: light;

  /* ---- Primitives (never used directly in components) ---- */
  --oxblood-950: oklch(0.2 0.05 20);
  --oxblood-900: oklch(0.26 0.075 22);
  --oxblood-800: oklch(0.33 0.105 24);
  --oxblood-700: oklch(0.41 0.135 25);
  --oxblood-600: oklch(0.48 0.15 26);

  --plaster-50: oklch(0.975 0.012 85);
  --plaster-100: oklch(0.948 0.02 82);
  --plaster-200: oklch(0.905 0.028 80);
  --plaster-300: oklch(0.84 0.032 78);
  --plaster-500: oklch(0.7 0.035 70);

  --ink-900: oklch(0.21 0.02 35);
  --ink-700: oklch(0.36 0.025 38);
  --ink-600: oklch(0.45 0.025 40);

  --turq-800: oklch(0.4 0.07 215);
  --turq-700: oklch(0.47 0.08 215);
  --turq-500: oklch(0.63 0.09 212);
  --turq-200: oklch(0.88 0.04 205);

  --violet-600: oklch(0.45 0.17 300);
  --violet-300: oklch(0.75 0.1 300);

  --saffron-300: oklch(0.9 0.12 95);
  --saffron-400: oklch(0.86 0.15 92);
  --saffron-600: oklch(0.7 0.14 78);

  --vermilion-700: oklch(0.5 0.16 45);
  --vermilion-300: oklch(0.82 0.1 55);

  /* ---- Semantic tokens (light surfaces) ---- */
  --color-bg-page: var(--plaster-50);
  --color-bg-sunken: var(--plaster-100);
  --color-bg-raised: oklch(0.99 0.006 85);
  --color-bg-brand: var(--oxblood-800);
  --color-bg-brand-deep: var(--oxblood-950);
  --color-text-primary: var(--ink-900);
  --color-text-secondary: var(--ink-600);
  --color-text-on-brand: var(--plaster-50);
  --color-text-on-brand-muted: oklch(0.86 0.03 60);
  --color-accent-solid: var(--oxblood-700);
  --color-accent-text: var(--oxblood-700);
  --color-highlight: var(--saffron-400);
  --color-cool: var(--turq-700);
  --color-border: var(--plaster-300);
  --color-border-input: var(--plaster-500);
  --color-error-text: var(--vermilion-700);
  --color-focus: var(--turq-700);

  /* section-scoped roles (overridden in dark sections) */
  --surface: var(--color-bg-page);
  --text: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
  --line: var(--color-border);
  --accent: var(--color-accent-text);
  --focus: var(--color-focus);

  /* ---- Type ---- */
  --font-display: "Gloock", "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-arabic: "Aref Ruqaa", "Noto Naskh Arabic", serif;

  --text-display: clamp(3.5rem, 1.2rem + 7.4vw, 8.5rem);
  --text-h2: clamp(2.375rem, 1.5rem + 3.6vw, 5rem);
  --text-h3: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --text-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.8125rem;

  /* ---- Space & shape ---- */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --max: 82rem;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Textures ---- */
  --khatam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h6.5M49.5 28H56M28 0v6.5M28 49.5V56'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: clip;
}
/* paper grain across the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-position: from-font; text-decoration-thickness: from-font; text-underline-offset: 0.18em; }
:not(html)[lang="ar"] { font-family: var(--font-arabic); }
::selection { background: var(--saffron-300); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-bg-raised);
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); background: var(--surface); color: var(--text); }
.section--dark {
  --surface: var(--color-bg-brand-deep);
  --text: var(--color-text-on-brand);
  --text-muted: var(--color-text-on-brand-muted);
  --line: oklch(1 0 0 / 0.14);
  --accent: var(--color-highlight);
  --focus: var(--saffron-400);
}
.tnum { font-variant-numeric: tabular-nums; }
.u-accent { color: var(--accent); }
.br-wide { display: none; }
@media (min-width: 48rem) { .br-wide { display: inline; } }

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  line-height: 1.4;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  /* <button>s get a grey fill from the browser; ghost buttons must stay see-through like links */
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:not(:disabled):active { scale: 0.96; }
.btn--block { width: 100%; }
.btn--saffron { background: var(--saffron-400); color: var(--ink-900); }
.btn--oxblood { background: var(--oxblood-700); color: var(--plaster-50); }
.btn--ghost { border-color: oklch(1 0 0 / 0.4); color: var(--plaster-50); }
.btn--ghost-dark { border-color: oklch(1 0 0 / 0.4); color: var(--plaster-50); }
.btn--ghost-ink { border-color: var(--color-border-input); color: var(--ink-900); }
.btn--pill { min-height: 2.5rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
@media (hover: hover) {
  .btn--saffron:hover { background: var(--saffron-300); }
  .btn--oxblood:hover { background: var(--oxblood-800); }
  .btn--ghost:hover, .btn--ghost-dark:hover { background: oklch(1 0 0 / 0.08); border-color: oklch(1 0 0 / 0.7); }
  .btn--ghost-ink:hover { background: var(--plaster-100); }
}

.arrow {
  display: inline-block;
  width: 1.1em; height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate 200ms var(--ease-out);
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  background: var(--oxblood-800);
  color: var(--plaster-50);
  clip-path: inset(0 0 0 0);
}
.preloader__mark {
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 1.1;
  font-weight: 700;
}
.preloader__line {
  width: 7rem; height: 2px;
  background: oklch(1 0 0 / 0.18);
  position: relative;
  overflow: hidden;
}
.preloader__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--saffron-400);
  transform-origin: left;
  scale: 0 1;
}
@media (prefers-reduced-motion: no-preference) {
  .js .preloader__mark { animation: mark-in 900ms var(--ease-expo) both; }
  .js .preloader__line::after { animation: line-fill 1100ms var(--ease-out) 150ms both; }
  .is-loaded .preloader {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 900ms cubic-bezier(0.76, 0, 0.24, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loaded .preloader { opacity: 0; transition: opacity 300ms ease-out; }
}
.is-done .preloader { display: none; }
@keyframes mark-in {
  from { opacity: 0; filter: blur(12px); transform: translateY(18px) scale(0.92); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes line-fill { to { scale: 1 1; } }

/* ---------- Progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--saffron-400);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--plaster-50);
  transition-property: background-color, color, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 1rem var(--gutter);
}
.nav.is-solid {
  background: oklch(0.975 0.012 85 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink-900);
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.08);
}
.nav.is-solid .nav__cta { background: var(--oxblood-700); color: var(--plaster-50); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--oxblood-700);
  color: var(--plaster-50);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 0.25rem;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18);
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav__links { display: none; gap: 1.75rem; }
.nav__links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.5rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: right;
  transition: scale 300ms var(--ease-out);
}
@media (hover: hover) {
  .nav__links a:hover::after { scale: 1 1; transform-origin: left; }
}
.nav__links a[aria-current="true"]::after { scale: 1 1; }
.nav__cta { background: var(--saffron-400); color: var(--ink-900); display: none; }
.nav__toggle {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}
.nav__toggle-lines, .nav__toggle-lines::before {
  display: block;
  width: 1.125rem; height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav__toggle-lines { translate: 0 -3px; }
.nav__toggle-lines::before { content: ""; position: absolute; top: 6px; }
@media (min-width: 62rem) {
  .nav__inner { gap: 1.5rem; }
  .nav__links { display: flex; margin-inline-end: 0.5rem; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- Mobile menu ---------- */
.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--oxblood-800);
  color: var(--plaster-50);
  overscroll-behavior: contain;
}
.menu::backdrop { background: transparent; }
.menu__inner {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 2rem;
}
/* the khatam pattern stays faint and fades in towards the bottom, so it never crosses the links */
.menu__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--khatam);
  background-size: 56px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 85%);
          mask-image: linear-gradient(to bottom, transparent 10%, #000 85%);
  pointer-events: none;
}
.menu__close {
  align-self: flex-end;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid oklch(1 0 0 / 0.4);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.06);
  font-weight: 500;
}
.menu__list { margin-top: 2.5rem; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid oklch(1 0 0 / 0.14);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  line-height: 1.2;
  text-decoration: none;
}
.menu__list span { font-family: var(--font-mono); font-size: var(--text-label); color: var(--saffron-400); }
.menu__foot { margin-top: auto; padding-top: 2rem; font-size: 2.5rem; color: var(--saffron-400); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__list li { animation: rise 500ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms + 80ms); }
}

/* ---------- Hero ---------- */
.hero {
  --focus: var(--saffron-400);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(6.5rem, 5rem + 4vw, 9rem);
  background: var(--oxblood-800);
  color: var(--plaster-50);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 78% 30%, oklch(0.86 0.15 92 / 0.28), transparent 70%),
    radial-gradient(45% 50% at 10% 100%, oklch(0.63 0.09 212 / 0.22), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, oklch(0.41 0.135 25), transparent 80%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--khatam);
  background-size: 56px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(60% 70% at 20% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 70% at 20% 45%, #000 20%, transparent 75%);
}
[dir="rtl"] .hero__pattern {
  -webkit-mask-image: radial-gradient(60% 70% at 80% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 70% at 80% 45%, #000 20%, transparent 75%);
}

/* A real photo fills the inline-end of a hero (landing and inner pages); the oxblood behind
   the text fades into it. On narrow screens the photo becomes a band below the text. */
.hero-photo {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: var(--photo-w, 66%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
[dir="rtl"] .hero-photo {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 42%);
          mask-image: linear-gradient(to left, transparent 0%, #000 42%);
}
.hero-photo img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: var(--photo-x, 60%) 50%;
  transform: translateY(var(--py, 0px));
}
/* keep the nav and the facts row readable where they cross the photo */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.26 0.075 22 / 0.55), transparent 22%),
    linear-gradient(to top, oklch(0.26 0.075 22 / 0.9), transparent 28%);
}
@media (max-width: 61.99rem) {
  .hero-photo {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: clamp(16rem, 42svh, 26rem);
    margin-top: -3rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
  }
  [dir="rtl"] .hero-photo {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 38%);
  }
  .hero-photo::after { background: linear-gradient(to top, oklch(0.26 0.075 22 / 0.85), transparent 35%); }
  .hero__grid { order: 1; }
  .hero__meta { order: 3; }
}
.hero__grid {
  flex: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-bottom: 2.5rem;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.25fr 0.75fr; gap: 4rem; }
}
.hero__title {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-inline-start: 0.6em; }
.hero__title em { font-style: normal; color: var(--saffron-400); }
.hero__arabic {
  width: fit-content;
  margin-top: 0.5rem;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  line-height: 1.4;
  color: var(--saffron-400);
  text-align: start;
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-on-brand-muted);
}
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.12),
    0 30px 60px -20px oklch(0.15 0.05 20 / 0.6),
    0 12px 24px -12px oklch(0.15 0.05 20 / 0.5);
}
.arch img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: translateY(var(--py, 0px)) scale(1.02);
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid oklch(1 0 0 / 0.16);
  font-size: var(--text-small);
  color: var(--color-text-on-brand-muted);
}
.hero__meta strong { color: var(--plaster-50); font-weight: 600; }
/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js [data-line] { transform: translateY(105%); }
  .js .is-ready [data-line] {
    transform: none;
    transition: transform 1100ms var(--ease-expo);
    transition-delay: calc(var(--i) * 110ms + 100ms);
  }
  .js [data-hero] { opacity: 0; filter: blur(4px); translate: 0 12px; }
  .js .is-ready [data-hero] {
    opacity: 1; filter: blur(0); translate: 0 0;
    transition-property: opacity, filter, translate;
    transition-duration: 700ms;
    transition-timing-function: var(--ease-out);
    transition-delay: calc(var(--i) * 100ms + 250ms);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-photo img { scale: 1.1; }
  .js .is-ready .hero-photo img { scale: 1; transition: scale 2600ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-hero], .js [data-line] { opacity: 0; }
  .js .is-ready [data-hero], .js .is-ready [data-line] { opacity: 1; transition: opacity 400ms ease-out; }
}

/* Motion follows the visitor: no ambient loops run on their own.
   Glow tracks the pointer; the hero photo and the filmstrip track scroll (script.js). */
@media (prefers-reduced-motion: no-preference) {
  .hero__glow {
    transform: translate3d(var(--gx, 0%), var(--gy, 0%), 0);
    transition: transform 1600ms var(--ease-out);
  }
}
/* the steam wisps on the bar cards */
@keyframes steam {
  0% { stroke-dashoffset: 0; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: -162; opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; filter: blur(4px); translate: 0 12px; }
  to { opacity: 1; filter: blur(0); translate: 0 0; }
}

/* ---------- Filmstrip: real photos of the café ---------- */
.film {
  --film-h: clamp(14rem, 8rem + 17vw, 24rem);
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem) clamp(1rem, 0.5rem + 1.5vw, 2rem);
  background: var(--color-bg-page);
}
.film__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.875rem, 0.5rem + 1vw, 1.5rem);
  width: max-content;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
  will-change: transform;
}
.film__item figure { display: grid; gap: 0.75rem; margin: 0; }
.film__frame {
  height: var(--film-h);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--plaster-200);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.06), 0 24px 40px -28px oklch(0.2 0.05 20 / 0.45);
}
.film__item--arch .film__frame { width: calc(var(--film-h) * 0.78); border-radius: 999px 999px var(--radius-md) var(--radius-md); }
.film__item--wide .film__frame { width: calc(var(--film-h) * 1.45); }
.film__frame img { width: 100%; height: 100%; object-fit: cover; transition: scale 800ms var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .film__item:hover .film__frame img { scale: 1.05; } }
.film figcaption { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
:root:lang(ar) .film figcaption { font-family: inherit; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
/* without motion it is simply a row you can swipe */
@media (prefers-reduced-motion: reduce) {
  .film { overflow-x: auto; scroll-snap-type: x proximity; }
  .film__item { scroll-snap-align: start; }
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; filter: blur(4px); translate: 0 12px; }
  .js [data-reveal].is-in {
    opacity: 1; filter: blur(0); translate: 0 0;
    transition-property: opacity, filter, translate;
    transition-duration: 600ms;
    transition-timing-function: var(--ease-out);
    transition-delay: calc(var(--i, 0) * 100ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-in { opacity: 1; transition: opacity 400ms ease-out; }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head--row { align-items: end; }
.section-head__aside { max-width: 30rem; color: var(--text-muted); font-size: var(--text-lead); line-height: 1.5; }
@media (min-width: 62rem) {
  .section-head--row { grid-template-columns: 1fr auto; gap: 2rem 4rem; }
  .section-head:not(.section-head--row) .section-head__aside { margin-top: 0.5rem; }
}

/* ---------- Story ---------- */
.story { background: var(--color-bg-page); }
.story__grid { display: grid; gap: 2rem; }
.story__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
  max-width: 22ch;
}
.story__body { display: grid; gap: 1.25rem; max-width: 38rem; font-size: var(--text-lead); line-height: 1.55; color: var(--text-muted); }
.story__sign { width: fit-content; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.4; color: var(--color-accent-text); text-align: start; }
@media (min-width: 62rem) {
  .story__grid { grid-template-columns: 14rem 1fr; column-gap: 4rem; row-gap: 3rem; }
  .story__index { padding-top: 1rem; }
  .story__body { grid-column: 2; }
  .stats { grid-column: 1 / -1; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.75rem 1rem 0 0;
}
.stat dt { font-size: var(--text-small); color: var(--text-muted); line-height: 1.4; }
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 3vw, 5rem);
  line-height: 1;
  color: var(--color-accent-text);
  font-variant-numeric: tabular-nums;
}
.stat small { font-size: 0.45em; margin-inline-start: 0.1em; color: var(--text-muted); }
.stat dd[dir="ltr"] {
  white-space: nowrap;
}
[dir="rtl"] .stat dd[dir="ltr"] { text-align: right; }

/* ---------- The bar ---------- */
/* `clip` (not `hidden`) so the sticky pin keeps working */
.bar {
  position: relative;
  overflow-x: clip;
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
  background: var(--color-bg-brand-deep);
  color: var(--text);
}
.bar__pin {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-top: var(--section-y);
}
.bar__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--khatam);
  background-size: 56px;
  opacity: 0.045;
  pointer-events: none;
}
.bar__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.bar__head h2 { margin-top: 1rem; max-width: 13ch; }

/* Pinned horizontal deck: desktop + motion-safe only (class set by JS) */
.is-pinned .bar__runway { height: var(--runway, 300vh); }
.is-pinned .bar__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-top: clamp(6rem, 4.5rem + 2vw, 7.5rem);
  padding-bottom: 1.5rem;
  gap: clamp(1rem, 0.5rem + 1.5vh, 2rem);
}
.is-pinned .card { width: clamp(15rem, (100svh - 35rem) * 0.92, 22rem); }
.is-pinned .bar__head h2 { font-size: clamp(2.25rem, 1.2rem + 2.8vw, 4rem); }

.deck-controls { display: flex; align-items: center; gap: 0.75rem; }
.deck-count {
  margin-inline-end: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--plaster-50);
}
.deck-count__of { color: var(--text-muted); }
.deck-btn {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--plaster-50);
  transition-property: background-color, color, border-color, scale, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.deck-btn:not(:disabled):active { scale: 0.96; }
.deck-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .deck-btn:not(:disabled):hover { background: var(--saffron-400); border-color: var(--saffron-400); color: var(--ink-900); }
}
.arrow--back { rotate: 180deg; }

.deck {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline-offset: -3px;
}
.deck::-webkit-scrollbar { display: none; }
.is-pinned .deck { overflow: visible; scroll-snap-type: none; }
.deck__track {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  width: max-content;
  padding-inline: var(--edge);
  padding-block: 1.5rem 2rem;
  transform: translate3d(var(--deck-x, 0px), 0, 0);
}

/* ---- Cards ---- */
.card {
  --c1: var(--plaster-50);
  --c2: var(--saffron-400);
  --c3: var(--oxblood-800);
  --card-bg: var(--turq-700);
  --card-art: var(--turq-800);
  --card-fg: var(--plaster-50);
  flex: 0 0 auto;
  width: clamp(16.5rem, 12rem + 14vw, 22rem);
  scroll-snap-align: start;
  scroll-margin-inline-start: var(--gutter);
}
.card[data-tone="saffron"] { --card-bg: var(--saffron-400); --card-art: var(--saffron-600); --card-fg: var(--ink-900); --c1: var(--ink-900); --c2: var(--oxblood-800); --c3: var(--plaster-50); }
.card[data-tone="oxblood"] { --card-bg: var(--oxblood-700); --card-art: var(--oxblood-900); --c2: oklch(0.66 0.2 32); --c3: var(--turq-500); }
.card[data-tone="plaster"] { --card-bg: var(--plaster-100); --card-art: var(--plaster-200); --card-fg: var(--ink-900); --c1: var(--ink-900); --c2: oklch(0.68 0.13 135); --c3: var(--turq-700); }
.card[data-tone="violet"] { --card-bg: var(--violet-600); --card-art: oklch(0.34 0.13 300); --c2: var(--saffron-400); --c3: var(--saffron-600); }
.card[data-tone="sea"] { --card-bg: var(--turq-500); --card-art: var(--turq-700); --card-fg: var(--ink-900); --c1: var(--ink-900); --c2: var(--oxblood-800); --c3: var(--plaster-50); }

.card__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--card-bg);
  color: var(--card-fg);
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.08),
    0 30px 50px -24px oklch(0 0 0 / 0.6);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 400ms var(--ease-out);
}
/* travelling glare that follows the pointer */
.card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(32rem circle at var(--mx, 50%) var(--my, 0%), oklch(1 0 0 / 0.22), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.card.is-hover .card__inner { --lift: -8px; transition-duration: 150ms; }
.card.is-hover .card__inner::after { opacity: 1; }

.card__art {
  position: relative;
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  background-color: var(--card-art);
  background-image: var(--khatam);
  background-size: 44px;
  background-blend-mode: soft-light;
}
.card__art svg {
  width: 78%;
  overflow: visible;
  translate: var(--shift, 0px) 0;
  transition: scale 500ms var(--ease-out);
}
.card.is-hover .card__art svg { scale: 1.06; }
.card__art .f1 { fill: var(--c1); }
.card__art .f2 { fill: var(--c2); }
.card__art .f3 { fill: var(--c3); }
.card__art .f4 { fill: var(--oxblood-950); }
.card__art .s1 { fill: none; stroke: var(--c1); stroke-linecap: round; stroke-linejoin: round; }
.card__art .s2 { fill: none; stroke: var(--c2); stroke-linecap: round; }
.card__art .s3 { fill: none; stroke: var(--c3); stroke-linecap: round; }
.card__art .wisp { stroke-width: 3; stroke-dasharray: 16 80; opacity: 0.8; }

.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0.75rem 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card__inner h3 {
  margin: 0.75rem 0.75rem 0;
  font-size: clamp(1.625rem, 1.4rem + 0.7vw, 2rem);
}
.card__ar { margin: 0.25rem 0.75rem 0; font-size: 1.375rem; line-height: 1.4; width: fit-content; }
.card__desc { margin: 0.75rem 0.75rem 0; font-size: 0.9375rem; line-height: 1.5; }

.card--note .card__inner {
  justify-content: flex-end;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: transparent;
  color: var(--plaster-50);
  border: 1px dashed oklch(1 0 0 / 0.3);
  box-shadow: none;
}
.card__note-ar { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1.3; color: var(--saffron-400); width: fit-content; }
.card__note { font-size: var(--text-lead); line-height: 1.5; color: var(--text-muted); }
.card--note .link-arrow { color: var(--saffron-300); }

.deck-foot { position: relative; }
.deck-progress { height: 2px; background: oklch(1 0 0 / 0.14); overflow: hidden; border-radius: 2px; }
.deck-progress span {
  display: block;
  height: 100%;
  background: var(--saffron-400);
  transform-origin: left;
  transform: scaleX(var(--deck-p, 0.143));
}

/* Card illustrations come alive while hovered (motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .card:not(.is-hover) .card__art * { animation-play-state: paused !important; }
  .card__art .wisp { animation: steam 3.6s ease-in-out infinite; }
  .card__art .wisp + .wisp { animation-delay: -1.8s; }
  .card__art .drip { animation: drip-short 1.8s cubic-bezier(0.55, 0, 1, 0.45) infinite; }
  .card__art .pour { stroke-dasharray: 10 14; animation: pour 0.9s linear infinite; }
  .card__art .ice { animation: bob 4s ease-in-out infinite alternate; transform-box: fill-box; }
  .card__art .ice--2 { animation-delay: -2s; }
  .card__art .chili { animation: sway 5s ease-in-out infinite alternate; transform-origin: 134px 46px; }
  .card__art .whisk { animation: whisk 1.2s ease-in-out infinite alternate; transform-origin: 145px 20px; }
  .card__art .beans { animation: bob 3.2s ease-in-out infinite alternate; }
  .card__art .drizzle { animation: bob 2.8s ease-in-out infinite alternate; }
}
@keyframes drip-short { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes pour { to { stroke-dashoffset: -24; } }
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes sway { from { rotate: -4deg; } to { rotate: 5deg; } }
@keyframes whisk { from { rotate: -7deg; } to { rotate: 7deg; } }

/* ---------- Events ---------- */
.events { background: var(--color-bg-sunken); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  -webkit-tap-highlight-color: transparent;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  transition-property: background-color, color, border-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
@media (hover: hover) { .chip:hover { background: var(--plaster-200); } }
.chip[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: var(--plaster-50); }

.event-list { border-top: 1px solid var(--ink-900); }
.event {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}
.event[hidden] { display: none; }
.event__date { display: flex; flex-direction: column; }
.event__day {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.2rem + 2vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-text);
  transition: color 150ms ease-out;
}
.event__month { margin-top: 0.375rem; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.event__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.event__desc { margin-top: 0.5rem; color: var(--text-muted); max-width: 36rem; }
.event__meta, .event__cta { grid-column: 2; }
.event__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--text-small); color: var(--text-muted); }
.event__cat {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-cool);
}
.event__cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--plaster-50);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.event__cta:active { scale: 0.96; }
@media (hover: hover) {
  .event:hover .event__day { color: var(--ink-900); }
  .event__cta:hover { background: var(--oxblood-700); }
  .event__cta:hover .arrow { translate: 3px 0; }
}
@media (min-width: 62rem) {
  .event { grid-template-columns: 8rem 1fr 15rem auto; align-items: center; gap: 2rem; padding-block: 2.25rem; }
  .event__meta, .event__cta { grid-column: auto; }
  /* flex-start keeps the left-to-right time lined up with the house and category in Arabic too */
  .event__meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
.events__empty { padding-block: 2rem; color: var(--text-muted); }
.events__private { margin-top: 2.5rem; max-width: 40rem; color: var(--text-muted); }
.events__private a { color: var(--color-accent-text); font-weight: 500; }

/* cursor-follow preview */
.event-peek {
  position: fixed;
  left: 0; top: 0;
  z-index: 50;
  width: 12rem;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -60%) rotate(var(--r, 0deg));
  transition-property: opacity, scale;
  transition-duration: 250ms;
  transition-timing-function: var(--ease-out);
}
.event-peek.is-on { opacity: 1; scale: 1; }
.event-peek__card {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  background-color: var(--peek-bg, var(--oxblood-700));
  background-image: var(--khatam);
  background-size: 40px;
  background-blend-mode: soft-light;
  color: var(--peek-fg, var(--plaster-50));
  box-shadow: 0 24px 40px -16px oklch(0.2 0.05 20 / 0.5);
}
.event-peek__day { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; }
.event-peek__month { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; }
.event-peek[data-tone="turq"] { --peek-bg: var(--turq-700); }
.event-peek[data-tone="saffron"] { --peek-bg: var(--saffron-400); --peek-fg: var(--ink-900); }
.event-peek[data-tone="violet"] { --peek-bg: var(--violet-600); }
.event-peek[data-tone="sea"] { --peek-bg: var(--turq-500); --peek-fg: var(--ink-900); }
.event-peek[data-tone="oxblood"] { --peek-bg: var(--oxblood-700); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .event-peek { display: none; } }

/* ---------- Journal ---------- */
.journal { background: var(--color-bg-page); }
.posts { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 48rem) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.post__art {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.post__art svg { width: 100%; height: 100%; transition: scale 600ms var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post:hover .post__art svg { scale: 1.05; }
}
.post__meta { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.post__meta span:first-child { color: var(--color-cool); }
.post__title { margin-top: 0.5rem; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); }
.post__title a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 150ms ease-out;
}
/* the whole card is the hit area */
.post__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
@media (hover: hover) { .post:hover .post__title a { text-decoration-color: currentColor; } }
.post__excerpt { margin-top: 0.75rem; color: var(--text-muted); }

/* journal art */
.post__art--port .a-bg { fill: var(--oxblood-700); }
.post__art--port .a-sun { fill: var(--saffron-400); }
.post__art--port .a-sail { fill: var(--plaster-50); }
.post__art--port .a-hull { fill: var(--oxblood-950); }
.post__art--port .a-wave { fill: none; stroke: var(--turq-200); stroke-width: 3; stroke-linecap: round; }
.post__art--port .a-wave--2 { opacity: 0.6; }
.post__art--port .a-wave--3 { opacity: 0.35; }
.post__art--v60 .a-bg { fill: var(--turq-700); }
.post__art--v60 .a-cone { fill: var(--plaster-50); }
.post__art--v60 .a-ribs { stroke: var(--plaster-300); stroke-width: 2; fill: none; }
.post__art--v60 .a-server { fill: oklch(1 0 0 / 0.18); stroke: var(--plaster-50); stroke-width: 3; }
.post__art--v60 .a-drop { fill: var(--saffron-400); }
.post__art--chili .a-bg { fill: var(--saffron-400); }
.post__art--chili .a-glass { fill: var(--oxblood-950); }
.post__art--chili .a-ice { fill: oklch(1 0 0 / 0.75); }
.post__art--chili .a-chili { fill: var(--oxblood-700); }
.post__art--chili .a-stem { fill: none; stroke: var(--turq-700); stroke-width: 5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .post:not(:hover) .post__art * { animation-play-state: paused !important; }
  .post__art--v60 .a-drop { animation: drip 2.4s cubic-bezier(0.55, 0, 1, 0.45) infinite; }
  .post__art--port .a-wave { animation: wave 6s ease-in-out infinite alternate; }
  .post__art--port .a-wave--2 { animation-delay: -2s; }
  .post__art--port .a-wave--3 { animation-delay: -4s; }
}
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes wave { to { transform: translateX(-24px); } }

/* ---------- Careers ---------- */
.careers { background: var(--oxblood-900); --surface: var(--oxblood-900); }
.careers__grid { display: grid; gap: 3.5rem; }
@media (min-width: 62rem) { .careers__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.careers h2 { margin-top: 1rem; }
.careers__lead { margin-top: 1.5rem; max-width: 34rem; font-size: var(--text-lead); line-height: 1.5; color: var(--text-muted); }
.perks { margin-top: 2rem; display: grid; gap: 0.75rem; }
.perks li { display: flex; gap: 0.75rem; align-items: baseline; }
.perks li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem; height: 0.75rem;
  background: var(--saffron-400);
  clip-path: polygon(50% 0%, 61% 25%, 85% 15%, 75% 39%, 100% 50%, 75% 61%, 85% 85%, 61% 75%, 50% 100%, 39% 75%, 15% 85%, 25% 61%, 0% 50%, 25% 39%, 15% 15%, 39% 25%);
}
.roles__title { margin-top: 3rem; margin-bottom: 1rem; }
.roles { border-top: 1px solid var(--line); }
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.role div { display: grid; gap: 0.125rem; }
.role strong { font-weight: 600; font-size: 1.0625rem; }
.role span { font-size: var(--text-small); color: var(--text-muted); }
.role__apply {
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid oklch(1 0 0 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--plaster-50);
  font-weight: 500;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.role__apply:active { scale: 0.96; }
a.role__apply { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }

/* landing page: an invitation to the careers page instead of the full form */
.careers__cta {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
@media (min-width: 62rem) { .careers__cta { position: sticky; top: 6rem; } }
.careers__cta-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.careers__cta-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-out); }
.careers__cta-body { display: grid; gap: 0.75rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.careers__cta-title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); line-height: 1.15; }
:root:lang(ar) .careers__cta-title { font-weight: 700; }
.careers__cta-text { color: var(--color-text-secondary); line-height: 1.55; text-wrap: pretty; }
.careers__cta-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  background: var(--oxblood-700);
  color: var(--plaster-50);
  font-weight: 600;
  transition: background-color 200ms ease-out;
}
.careers__cta:active { scale: 0.99; }
@media (hover: hover) {
  .careers__cta:hover { translate: 0 -3px; box-shadow: 0 28px 48px -28px oklch(0 0 0 / 0.6); }
  .careers__cta:hover .careers__cta-btn { background: var(--oxblood-800); }
  .careers__cta:hover .careers__cta-btn .arrow { translate: 4px 0; }
  [dir="rtl"] .careers__cta:hover .careers__cta-btn .arrow { translate: -4px 0; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .careers__cta:hover .careers__cta-photo img { scale: 1.04; } }
@media (hover: hover) { .role__apply:hover { background: var(--saffron-400); color: var(--ink-900); border-color: var(--saffron-400); } }

.form-card {
  --focus: var(--turq-700);
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  box-shadow: 0 40px 80px -30px oklch(0.1 0.04 20 / 0.7);
}
@media (min-width: 62rem) { .form-card { position: sticky; top: 6rem; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__title { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.form__hint { margin-top: -0.5rem; font-size: var(--text-small); color: var(--color-text-secondary); }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.375rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: var(--text-small); font-weight: 500; padding: 0; line-height: 1.4; }
.field legend { margin-bottom: 0.375rem; }
.field__opt { font-weight: 400; color: var(--color-text-secondary); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-sm);
  background: var(--color-bg-raised);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field select {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23463a33' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
}
.field ::placeholder { color: var(--color-text-secondary); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--turq-700);
  box-shadow: 0 0 0 3px oklch(0.47 0.08 215 / 0.3);
}
.field [aria-invalid="true"] { border-color: var(--color-error-text) !important; }
.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--color-error-text);
  font-weight: 500;
}
.field__error:not(:empty) { display: flex; }
.field__error::before {
  content: "!";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.125rem; height: 1.125rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--color-error-text);
  color: var(--plaster-50);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  font-size: 0.9375rem;
  transition-property: background-color, color, border-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.choice > span::before {
  content: "";
  width: 0.875rem; height: 0.875rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: inset 0 0 0 3px var(--color-bg-page);
}
.choice > input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: var(--plaster-50); }
.choice > input:checked + span::before { background: var(--saffron-400); border-color: var(--saffron-400); box-shadow: inset 0 0 0 2px var(--ink-900); }
.choice > input:focus-visible + span { outline: 2px solid var(--turq-700); outline-offset: 2px; }
@media (hover: hover) { .choice input:not(:checked):hover + span { background: var(--plaster-100); } }

.file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.375rem 0.375rem 0.375rem 0.375rem;
  border: 1px dashed var(--color-border-input);
  border-radius: var(--radius-sm);
  background: var(--color-bg-raised);
  cursor: pointer;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
}
.file__btn { padding: 0.5rem 0.875rem; border-radius: 4px; background: var(--plaster-200); font-weight: 500; white-space: nowrap; }
.file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-secondary); }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__input:focus-visible + .field__error, .file:has(+ .file__input:focus-visible) { outline: 2px solid var(--turq-700); outline-offset: 2px; }

.check { display: flex !important; gap: 0.75rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--oxblood-700); }

.form button[type="submit"][aria-busy="true"] { opacity: 0.7; cursor: progress; }

.form-done { display: grid; justify-items: start; gap: 1rem; padding-block: 2rem; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done h3 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.form-done p { color: var(--color-text-secondary); max-width: 32rem; }
.form-done .btn--ghost-dark { border-color: var(--color-border-input); color: var(--ink-900); }
.form-done__mark {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--turq-700);
  -webkit-mask: none;
  position: relative;
}
.form-done__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plaster-50);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 60% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 60% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .form-done:not([hidden]) > * { animation: rise 300ms ease-out both; }
  .form-done:not([hidden]) > :nth-child(2) { animation-delay: 100ms; }
  .form-done:not([hidden]) > :nth-child(3) { animation-delay: 200ms; }
  .form-done:not([hidden]) > :nth-child(4) { animation-delay: 300ms; }
}

/* ---------- Visit ---------- */
.visit { background: var(--color-bg-page); }
.houses { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .houses { grid-template-columns: 1fr 1fr; } }
.house {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-bg-sunken);
}
.house:nth-child(2) { background: var(--turq-200); }
.house__no { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-accent-text); }
.house h3 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.house address { font-style: normal; color: var(--color-text-secondary); }
.house:nth-child(2) address, .house:nth-child(2) dt { color: var(--ink-700); }
.house__info { display: grid; gap: 0.75rem; padding-block: 1rem; border-block: 1px solid oklch(0 0 0 / 0.1); }
.house__info div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.house__info dt { color: var(--color-text-secondary); }
.house__info dd { font-weight: 500; }
.house__info a { text-decoration: none; }
@media (hover: hover) { .house__info a:hover { text-decoration: underline; } }
.link-arrow {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) { .link-arrow:hover .arrow { translate: 4px 0; } }
.contact {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--color-border);
}

/* ---------- "Say marhaba": quick ways to reach us + reasons to write ---------- */
.say { display: grid; gap: 3rem; }
@media (min-width: 62rem) {
  .say { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 1rem + 5vw, 6rem); align-items: start; }
}
.say__intro .label + .say__title { margin-top: 0.75rem; }
.say__title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.say__lead { margin-top: 1rem; max-width: 30rem; font-size: var(--text-lead); line-height: 1.5; color: var(--color-text-secondary); text-wrap: pretty; }

.say__wa {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  margin-top: 2rem;
  padding: 0.875rem 1.25rem 0.875rem 0.875rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--plaster-50);
  text-decoration: none;
  transition-property: background-color, scale;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
[dir="rtl"] .say__wa { padding: 0.875rem 0.875rem 0.875rem 1.25rem; }
.say__wa:active { scale: 0.98; }
.say__wa-icon {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: oklch(0.66 0.14 152);
  color: oklch(0.99 0 0);
}
.say__wa-icon .icon { width: 1.375rem; height: 1.375rem; }
.say__wa-text { display: grid; flex: 1; min-width: 0; }
.say__wa-text strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.say__wa-text span { font-size: var(--text-small); color: color-mix(in oklab, var(--plaster-50) 68%, transparent); }
.say__wa-arrow { flex-shrink: 0; transition: translate 200ms var(--ease-out); }
[dir="rtl"] .say__wa-arrow { scale: -1 1; }
@media (hover: hover) {
  .say__wa:hover { background: var(--oxblood-800); }
  .say__wa:hover .say__wa-arrow { translate: 4px 0; }
  [dir="rtl"] .say__wa:hover .say__wa-arrow { translate: -4px 0; }
}

.say__quick { max-width: 28rem; margin-top: 1.5rem; border-top: 1px solid var(--color-border); }
.say__quick li { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--color-border); }
.say__line {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  min-height: 3.75rem;
  padding-block: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease-out;
}
.say__line > .icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--color-accent-text); }
.say__line > span { display: grid; min-width: 0; }
.say__line small { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.say__line > span > span { font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
[dir="rtl"] .say__line > span > span { text-align: end; }
.say__copy {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.say__copy .icon { width: 1.125rem; height: 1.125rem; }
.say__copy:active { scale: 0.92; }
@media (hover: hover) {
  .say__line:hover { color: var(--color-accent-text); }
  .say__copy:hover { background: var(--plaster-100); color: var(--ink-900); }
}

.say__visit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin-top: 1.25rem; font-size: var(--text-small); color: var(--color-text-secondary); }
.say__visit a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); }
@media (hover: hover) { .say__visit a:hover { text-decoration-color: currentColor; } }

.say__ask { margin-bottom: 1rem; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.say__grid { display: grid; gap: 0.75rem; }
.say__grid > li { display: grid; }
@media (min-width: 40rem) { .say__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; } }

/* each reason is a colour block in the colours of Mokha's painted doors */
.say-card {
  --bg: var(--oxblood-700);
  --fg: var(--plaster-50);
  --muted: oklch(0.96 0.01 85 / 0.8);
  --line: oklch(1 0 0 / 0.32);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "icon go" ". ." "title title" "text text";
  column-gap: 1rem;
  row-gap: 0.375rem;
  width: 100%;
  min-height: clamp(12.5rem, 10rem + 5vw, 15rem);
  padding: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.say-card[data-tone="saffron"] { --bg: var(--saffron-400); --fg: var(--ink-900); --muted: oklch(0.21 0.02 35 / 0.75); --line: oklch(0.21 0.02 35 / 0.28); }
.say-card[data-tone="turq"] { --bg: var(--turq-700); }
.say-card[data-tone="violet"] { --bg: var(--violet-600); }
.say-card[data-tone="oxblood"] { --bg: var(--oxblood-700); }
/* the khatam pattern, faint, in one corner */
.say-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--khatam);
  background-size: 48px;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 70%);
}
[dir="rtl"] .say-card::after {
  -webkit-mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 70%);
          mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 70%);
}
.say-card:active { scale: 0.985; }
.say-card__icon {
  grid-area: icon;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.say-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.say-card__title { grid-area: title; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem); line-height: 1.1; text-wrap: balance; }
:root:lang(ar) .say-card__title { font-weight: 700; line-height: 1.3; }
.say-card__text { grid-area: text; max-width: 30ch; font-size: var(--text-small); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* the round arrow button; its words stay for screen readers */
.say-card__go {
  grid-area: go;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 250ms ease-out, color 250ms ease-out, border-color 250ms ease-out;
}
.say-card__go > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.say-card__go .icon { width: 1.125rem; height: 1.125rem; rotate: -45deg; transition: rotate 300ms var(--ease-out); }
[dir="rtl"] .say-card__go .icon { rotate: 45deg; scale: -1 1; }
@media (hover: hover) {
  .say-card:hover { translate: 0 -3px; box-shadow: 0 22px 40px -24px oklch(0.2 0.05 20 / 0.55); }
  .say-card:hover .say-card__go { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .say-card:hover .say-card__go .icon { rotate: 0deg; }
}
.say-card:focus-visible .say-card__go { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.say__other {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.125rem;
  border: 1px dashed var(--color-border-input);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition-property: background-color, border-color, scale;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.say__other > .icon:first-child { flex-shrink: 0; width: 1.375rem; height: 1.375rem; color: var(--color-accent-text); }
.say__other > span { flex: 1; min-width: 0; }
.say__other strong { font-weight: 600; }
.say__other > span > span { color: var(--color-text-secondary); }
.say__other-arrow { flex-shrink: 0; color: var(--color-text-secondary); transition: translate 200ms var(--ease-out), color 200ms ease-out; }
[dir="rtl"] .say__other-arrow { scale: -1 1; }
.say__other:active { scale: 0.99; }
@media (hover: hover) {
  .say__other:hover { border-style: solid; border-color: var(--oxblood-700); background: var(--color-bg-raised); }
  .say__other:hover .say__other-arrow { translate: 4px 0; color: var(--color-accent-text); }
  [dir="rtl"] .say__other:hover .say__other-arrow { translate: -4px 0; }
}

/* ---------- Footer ---------- */
.footer {
  --focus: var(--saffron-400);
  position: relative;
  overflow: hidden;
  padding-block: 3rem 2rem;
  background: var(--oxblood-800);
  color: var(--plaster-50);
}
.footer__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--khatam);
  background-size: 56px;
  opacity: 0.06;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
          mask-image: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
.footer .wrap { position: relative; }
/* the brand set across the full width, quietly, as the last thing on every page */
.footer__wordmark {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.15em;
  margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  font-family: var(--font-display);
  font-size: clamp(4rem, 1rem + 15.5vw, 15.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: color-mix(in oklab, var(--plaster-50) 16%, transparent);
  user-select: none;
}
.footer__wordmark [lang="ar"] { font-family: var(--font-arabic); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.footer__grid { display: grid; gap: 2rem; padding-block: 2rem; border-top: 1px solid oklch(1 0 0 / 0.16); }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__grid p { color: var(--color-text-on-brand-muted); }
.footer__grid .label { color: var(--saffron-300); margin-bottom: 0.5rem; }
.footer__tag { width: fit-content; font-size: 2.25rem; line-height: 1.4; color: var(--saffron-400) !important; }
.footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
.footer nav a, .footer__base a { display: inline-block; padding-block: 0.375rem; text-decoration: none; }
@media (hover: hover) { .footer a:hover { text-decoration: underline; } }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.16);
  font-size: var(--text-small);
  color: var(--color-text-on-brand-muted);
}

/* =========================================================
   v3: language, direction, reviews, events booking, map,
   cursor, page transitions
   ========================================================= */

/* ---------- Direction helpers ---------- */
:root { --start-edge: left; }
[dir="rtl"] { --start-edge: right; }
.progress__bar, .deck-progress span { transform-origin: var(--start-edge); }
[dir="rtl"] .arrow { scale: -1 1; }
[dir="rtl"] .skip-link { left: auto; right: 0.75rem; }
[dir="rtl"] .field select { background-position: left 0.75rem center; }
@media (hover: hover) {
  [dir="rtl"] .event__cta:hover .arrow,
  [dir="rtl"] .link-arrow:hover .arrow { translate: -4px 0; }
}

/* ---------- Arabic typography ---------- */
:root:lang(ar) {
  --font-display: "Amiri", "Gloock", serif;
  --font-body: "IBM Plex Sans Arabic", "Schibsted Grotesk", sans-serif;
  --font-mono: "IBM Plex Sans Arabic", "DM Mono", monospace;
}
/* English islands inside the Arabic page keep the Latin faces */
:where(:root:lang(ar)) [lang="en"] {
  --font-display: "Gloock", serif;
  --font-body: "Schibsted Grotesk", sans-serif;
  --font-mono: "DM Mono", monospace;
  font-family: var(--font-body);
}
/* letter-spacing breaks Arabic joining */
:root:lang(ar) *:not(:lang(en)) { letter-spacing: 0 !important; }
:root:lang(ar) body { font-size: 1.0625rem; }
:root:lang(ar) h2, :root:lang(ar) h3 { font-weight: 700; line-height: 1.35; }
:root:lang(ar) .label { font-weight: 500; }
:root:lang(ar) .hero__title { font-family: var(--font-arabic); font-weight: 700; line-height: 1.3; }
:root:lang(ar) .hero__title .line { padding-block: 0.12em 0.2em; margin-bottom: -0.2em; }
:root:lang(ar) .hero__title .line:nth-child(2) { padding-inline-start: 1.2em; }
.hero__arabic:lang(en) { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.3; }
.card__ar:lang(en) { font-family: var(--font-display); font-size: 1.125rem; opacity: 0.85; }
.card__note-ar:lang(en) { font-family: var(--font-display); }
:root:lang(ar) .stat dd, :root:lang(ar) .event__day, :root:lang(ar) .event-peek__day { font-family: "Gloock", serif; }

/* hide the swap until Arabic strings are in place */
.i18n-pending body { opacity: 0; }
.no-preload .preloader { display: none !important; }

/* ---------- Language button ---------- */
.lang-btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid color-mix(in oklab, currentColor 45%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition-property: background-color, border-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.lang-btn:active { scale: 0.96; }
.lang-btn [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1rem; font-weight: 600; }
.lang-btn [lang="en"] { font-family: "Schibsted Grotesk", sans-serif; }
@media (hover: hover) {
  .lang-btn:hover { background: color-mix(in oklab, currentColor 12%, transparent); border-color: currentColor; }
}
.menu__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.menu__top .menu__close { align-self: auto; }

/* ---------- Live open status ---------- */
[data-open-status] { display: inline-flex; align-items: center; gap: 0.5rem; }
.status-pill__dot {
  flex-shrink: 0;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
[data-state="open"] .status-pill__dot { background: oklch(0.78 0.17 150); }
[data-state="soon"] .status-pill__dot { background: var(--saffron-400); }
[data-state="closed"] .status-pill__dot { background: var(--plaster-500); }
.house [data-state="open"] .status-pill__dot { background: oklch(0.55 0.15 150); }
@media (prefers-reduced-motion: no-preference) {
  [data-state="open"] .status-pill__dot { animation: ping 1.6s ease-out 3; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 oklch(0.78 0.17 150 / 0.6); }
  100% { box-shadow: 0 0 0 0.6rem oklch(0.78 0.17 150 / 0); }
}
.status-pill--menu {
  margin-top: 2rem;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.1);
  font-size: var(--text-small);
}

/* ---------- Reviews ---------- */
.reviews {
  --text: var(--plaster-50);
  --text-muted: var(--color-text-on-brand-muted);
  --focus: var(--saffron-400);
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--oxblood-800);
  color: var(--plaster-50);
}
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--khatam);
  background-size: 56px;
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent 70%);
          mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent 70%);
  pointer-events: none;
}
.reviews__head { position: relative; display: grid; gap: 1.75rem; }
.reviews__head .label { color: var(--saffron-300); }
.reviews__feature { margin: 0; }
.reviews__feature blockquote { margin: 0; }
.reviews__feature blockquote p {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
  color: var(--plaster-50);
}
.reviews__feature figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  font-size: var(--text-small);
  color: var(--text-muted);
}
.reviews__summary { position: relative; max-width: 34rem; font-size: var(--text-lead); line-height: 1.5; color: var(--text-muted); }

.stars, .review::before {
  display: inline-block;
  width: 6rem; height: 1.2rem;
  background: var(--saffron-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.1 6.6.6-5 4.4 1.5 6.5L12 16.2 6.3 19.6l1.5-6.5-5-4.4 6.6-.6z'/%3E%3C/svg%3E") left center / 1.2rem 1.2rem repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.1 6.6.6-5 4.4 1.5 6.5L12 16.2 6.3 19.6l1.5-6.5-5-4.4 6.6-.6z'/%3E%3C/svg%3E") left center / 1.2rem 1.2rem repeat-x;
}

.reviews__rows {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-block: clamp(3rem, 2rem + 4vw, 5rem) 2.5rem;
  direction: ltr;
}
.reviews__row {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: clamp(17rem, 14rem + 12vw, 25rem);
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--oxblood-900);
  color: var(--plaster-50);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.08), 0 20px 40px -24px oklch(0 0 0 / 0.6);
}
.review::before { content: ""; width: 5.5rem; height: 1.1rem; -webkit-mask-size: 1.1rem 1.1rem; mask-size: 1.1rem 1.1rem; }
.reviews__row:nth-child(2) .review:nth-child(odd) { background: var(--oxblood-950); }
.review__title { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; text-wrap: balance; }
.review__title:lang(ar) { font-family: var(--font-arabic); font-size: 1.625rem; line-height: 1.4; }
.review p:not(.review__title) { color: var(--color-text-on-brand-muted); line-height: 1.55; }
.review__date {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: "DM Mono", monospace;
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--saffron-300);
}
.reviews__more { color: var(--saffron-300); position: relative; }
/* reduced motion: rows become swipeable instead of scroll-driven */
@media (prefers-reduced-motion: reduce) {
  .reviews__row { width: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding-bottom: 0.5rem; touch-action: pan-x pan-y; }
  .review { scroll-snap-align: start; }
}

/* ---------- Events: booking + calendar ---------- */
button.event__cta { border: 0; font: inherit; font-weight: 500; font-size: 0.9375rem; cursor: pointer; }
.event__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
@media (min-width: 62rem) {
  .event { grid-template-columns: 8rem minmax(0, 1fr) 13rem auto; }
  .event__actions { grid-column: auto; flex-direction: column; align-items: flex-end; }
}
.cal { position: relative; }
/* each revealed row is its own layer, so lift the row whose calendar menu is open above the rows below it */
.event:has(.cal[open]) { z-index: 5; }
.cal summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  list-style: none;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--color-border-input);
  text-underline-offset: 0.3em;
  white-space: nowrap;
  transition: color 150ms ease-out, text-decoration-color 150ms ease-out;
}
.cal summary::-webkit-details-marker { display: none; }
.cal summary::before {
  content: "";
  width: 1rem; height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13.5v4M10 15.5h4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M12 13.5v4M10 15.5h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) { .cal summary:hover { color: var(--ink-900); text-decoration-color: currentColor; } }
.cal[open] summary { color: var(--ink-900); }
.cal__menu {
  z-index: 6;
  display: grid;
  min-width: 15rem;
  margin-top: 0.25rem;
  padding: 0.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.08), 0 18px 36px -14px oklch(0.2 0.05 20 / 0.35);
}
@media (min-width: 62rem) {
  .cal__menu { position: absolute; inset-inline-end: 0; top: 100%; }
}
.cal__menu a, .cal__menu button {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.9375rem;
  text-align: start;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .cal__menu a:hover, .cal__menu button:hover { background: var(--plaster-100); } }
@media (prefers-reduced-motion: no-preference) {
  .cal[open] .cal__menu { animation: rise 200ms ease-out both; }
}
.cal--primary summary {
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--plaster-50);
  font-size: 0.9375rem;
  text-decoration: none;
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.cal--primary summary:active { scale: 0.96; }
.cal--primary[open] summary { background: var(--oxblood-700); color: var(--plaster-50); }
@media (hover: hover) { .cal--primary summary:hover { background: var(--oxblood-700); color: var(--plaster-50); } }

/* RSVP sheet */
.sheet {
  --focus: var(--turq-700);
  width: min(100% - 2rem, 36rem);
  max-height: min(100% - 2rem, 50rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  box-shadow: 0 40px 80px -20px oklch(0.15 0.05 20 / 0.5);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: oklch(0.2 0.05 20 / 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__inner { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.sheet__head h2 { margin-top: 0.5rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.sheet__when { margin-top: 0.5rem; color: var(--color-text-secondary); }
.sheet__close {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .sheet__close:hover { background: var(--plaster-100); } }
@media (max-width: 36rem) {
  .sheet {
    width: 100%; max-width: 100%;
    margin: auto 0 0;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: rise 300ms ease-out both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 36rem) {
  .sheet[open] { animation: sheet-up 400ms var(--ease-expo) both; }
}
@keyframes sheet-up { from { translate: 0 100%; } to { translate: 0 0; } }
.field__hint { font-size: var(--text-small); line-height: 1.4; color: var(--color-text-secondary); }
.cal-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stepper {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  background: var(--color-bg-raised);
  overflow: hidden;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.stepper:focus-within { border-color: var(--turq-700); box-shadow: 0 0 0 3px oklch(0.47 0.08 215 / 0.3); }
.stepper__btn {
  -webkit-tap-highlight-color: transparent;
  width: 3rem;
  min-height: 3rem;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .stepper__btn:hover { background: var(--plaster-100); } }
.stepper__btn:focus-visible { outline-offset: -3px; }
.field .stepper input {
  width: 3.5rem !important;
  min-height: 3rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Journal card affordance ---------- */
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent-text);
}
@media (hover: hover) {
  .post:hover .post__more .arrow { translate: 4px 0; }
  [dir="rtl"] .post:hover .post__more .arrow { translate: -4px 0; }
}

/* ---------- Visit: map ---------- */
.visit__grid { display: grid; gap: 1.25rem; }
@media (min-width: 62rem) {
  .visit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .visit__grid .houses { grid-template-columns: 1fr; }
}
.house { border: 1px solid transparent; transition: box-shadow 200ms ease-out; }
.house.is-active { box-shadow: 0 0 0 2px var(--oxblood-700); }
.map { margin: 0; display: grid; gap: 0.75rem; }
.map svg {
  width: 100%;
  height: auto;
  direction: ltr;
  border-radius: var(--radius-lg);
  color: var(--plaster-300);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.06), 0 30px 60px -30px oklch(0.2 0.05 20 / 0.4);
}
.map figcaption { font-size: var(--text-small); color: var(--color-text-secondary); }
.map__land { fill: var(--plaster-200); }
.map__land-pattern { opacity: 0.8; }
.map__sea { fill: var(--turq-500); }
.map__coast { fill: none; stroke: var(--ink-900); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map__waves path { fill: none; stroke: var(--turq-200); stroke-width: 2.5; stroke-linecap: round; opacity: 0.8; }
.map__roads path { fill: none; stroke: var(--plaster-50); stroke-width: 8; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--oxblood-700); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.001 0.03; }
.map__dhow-hull { fill: var(--oxblood-800); }
.map__dhow-sail { fill: var(--plaster-50); }
.map__label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--ink-700);
}
.map__label--sea { fill: var(--ink-900); font-size: 16px; }
.map__label--small { font-size: 12px; }
.map__pin { cursor: pointer; }
.map__pin-body {
  fill: var(--oxblood-700);
  stroke: var(--plaster-50);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: fill 200ms ease-out, scale 200ms var(--ease-out);
}
.map__pin-no { fill: var(--plaster-50); font: 600 15px var(--font-body); pointer-events: none; }
.map__pin-ripple { fill: var(--oxblood-700); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map__pin-label {
  font: 600 16px var(--font-body);
  fill: var(--ink-900);
  paint-order: stroke;
  stroke: var(--plaster-200);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map__pin:focus { outline: none; }
.map__pin:focus-visible .map__pin-body { stroke: var(--turq-700); stroke-width: 5; }
.map[data-active="pizza"] [data-pin="pizza"] .map__pin-body,
.map[data-active="lighthouse"] [data-pin="lighthouse"] .map__pin-body { fill: var(--ink-900); scale: 1.15; }
:root:lang(ar) .map__label { text-transform: none; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .js .map:not(.is-in) .map__coast { stroke-dashoffset: 1; }
  .js .map .map__coast { transition: stroke-dashoffset 1800ms var(--ease-out) 200ms; }
  .js .map:not(.is-in) .map__pin-body, .js .map:not(.is-in) .map__route { opacity: 0; }
  .map.is-in .map__pin-body { animation: pin-drop 700ms var(--ease-expo) 900ms both; }
  .map.is-in [data-pin="lighthouse"] .map__pin-body { animation-delay: 1100ms; }
  .map.is-in .map__route { animation: route-in 1400ms ease-out 1300ms both; }
  .map.is-in .map__pin-ripple { animation: ripple 1.8s ease-out 1600ms 3; }
}
@keyframes pin-drop { from { opacity: 0; translate: 0 -24px; scale: 0.6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes route-in { from { opacity: 0; stroke-dashoffset: 0.3; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes ripple { from { opacity: 0.35; scale: 1; } to { opacity: 0; scale: 3; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 260;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--plaster-50);
  font-size: var(--text-small);
  opacity: 0;
  translate: -50% 1rem;
  pointer-events: none;
  transition: opacity 200ms ease-out, translate 200ms ease-out;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Page transitions (cross-document) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  .progress { view-transition-name: site-progress; }
  ::view-transition-old(root) { animation: vt-recede 600ms cubic-bezier(0.76, 0, 0.24, 1) both; }
  ::view-transition-new(root) { animation: vt-arch 900ms cubic-bezier(0.76, 0, 0.24, 1) both; }
  ::view-transition-group(*) { animation-duration: 800ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }
  html.vt-lang::view-transition-old(root) { animation: vt-fade-out 250ms ease-out both; }
  html.vt-lang::view-transition-new(root) { animation: vt-fade-in 350ms ease-out both; }
}
@keyframes vt-arch {
  from { clip-path: inset(100% 0 0 0 round 50vw 50vw 0 0); }
  to { clip-path: inset(0 0 0 0 round 0); }
}
@keyframes vt-recede { to { opacity: 0.4; scale: 0.96; } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* =========================================================
   Journal article pages
   ========================================================= */
.page-article { background: var(--color-bg-page); }
.page-article .nav { background: oklch(0.975 0.012 85 / 0.86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: var(--ink-900); box-shadow: 0 1px 0 oklch(0 0 0 / 0.08); }
.page-article .nav__cta { background: var(--oxblood-700); color: var(--plaster-50); }

.article-hero { padding-top: clamp(7rem, 6rem + 3vw, 9rem); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--text-small); color: var(--color-text-secondary); }
.crumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; color: var(--plaster-500); }
.crumbs a { text-decoration: none; font-weight: 500; color: var(--color-accent-text); }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }

.article-hero h1 {
  margin-top: 1.5rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
:root:lang(ar) .article-hero h1 { font-weight: 700; line-height: 1.3; }
.article-hero__dek { margin-top: 1.25rem; max-width: 36rem; font-size: var(--text-lead); line-height: 1.5; color: var(--color-text-secondary); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  padding-block: 1rem;
  border-block: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}
.article-meta .tag { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-cool); }
.article-meta .copy-btn { margin-inline-start: auto; }
.copy-btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-border-input);
  border-radius: 999px;
  background: transparent;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-primary);
  transition-property: background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.copy-btn:active { scale: 0.96; }
@media (hover: hover) { .copy-btn:hover { background: var(--plaster-100); } }
.copy-btn::before {
  content: "";
  width: 1rem; height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article-art {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.article-art svg { width: 100%; height: 100%; }
@media (max-width: 36rem) { .article-art { aspect-ratio: 4 / 3; } }

.article-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--section-y);
}
@media (min-width: 62rem) {
  .article-layout { grid-template-columns: 14rem minmax(0, 42rem); gap: 5rem; justify-content: start; }
  .article-layout > .toc { position: sticky; top: 7rem; align-self: start; }
}
.toc { display: grid; gap: 1rem; }
.toc__title { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.toc ol { display: grid; gap: 0.125rem; border-inline-start: 1px solid var(--color-border); }
.toc a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  padding-inline: 1rem 0;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  font-size: var(--text-small);
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
@media (hover: hover) { .toc a:hover { color: var(--color-text-primary); } }
.toc a[aria-current="true"] { color: var(--color-accent-text); border-inline-start-color: var(--oxblood-700); font-weight: 500; }
@media (max-width: 61.99rem) {
  .toc { padding: 1.25rem; border-radius: var(--radius-md); background: var(--color-bg-sunken); }
  .toc ol { border: 0; }
  .toc a { padding-inline-start: 0; border: 0; }
  .toc .copy-btn { display: none; }
}

.prose { font-size: 1.125rem; line-height: 1.7; }
:root:lang(ar) .prose { font-size: 1.1875rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.2;
  scroll-margin-top: 6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 1rem; }
.prose ul { display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-inline-start: 1.5rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 0.625rem; height: 0.625rem;
  background: var(--saffron-600);
  clip-path: polygon(50% 0%, 61% 25%, 85% 15%, 75% 39%, 100% 50%, 75% 61%, 85% 85%, 61% 75%, 50% 100%, 39% 75%, 15% 85%, 25% 61%, 0% 50%, 25% 39%, 15% 15%, 39% 25%);
}
.pull {
  margin-block: 2.5rem;
  padding-inline-start: 1.5rem;
  border-inline-start: 3px solid var(--saffron-400);
}
.pull p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-accent-text);
  text-wrap: balance;
}
:root:lang(ar) .pull p { font-weight: 700; line-height: 1.5; }

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-border);
  box-shadow: 0 0 0 1px var(--color-border);
}
@media (min-width: 48rem) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec div { display: grid; gap: 0.25rem; padding: 1rem 1.125rem; background: var(--color-bg-sunken); }
.spec dt { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.spec dd { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.spec-title { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }

.steps { display: grid; gap: 0.75rem; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-sunken);
}
.steps time { font-family: "DM Mono", monospace; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--color-accent-text); padding-top: 0.1rem; }
.steps strong { display: block; font-weight: 600; }

.tip {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--turq-200);
  color: var(--ink-900);
}
.tip strong { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; color: var(--turq-800); }

.article-cta {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--oxblood-800);
  background-image: var(--khatam);
  background-size: 56px;
  background-blend-mode: soft-light;
  color: var(--plaster-50);
}
.article-cta h2 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.article-cta p { color: var(--color-text-on-brand-muted); }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.article-cta .btn--ghost { color: var(--plaster-50); }
.prose .article-cta { --focus: var(--saffron-400); }

.more-reads { padding-block: 0 var(--section-y); }
.more-reads__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }
.more-reads__head h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.more-reads .posts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; color: var(--color-accent-text); text-decoration: none; }
.back-link .arrow { rotate: 180deg; }

/* =========================================================
   Database-driven content
   ========================================================= */
/* Both languages are in the page; show the one matching <html lang> */
html:not([lang="ar"]) .i18n-ar,
html[lang="ar"] .i18n-en { display: none !important; }

/* spam trap: invisible to people, filled in by bots */
/* hidden without moving it off-screen: a far-off offset becomes scrollable space in right-to-left pages */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.event__full {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px dashed var(--color-border-input);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.card__art--photo { background-image: none; }
.card__art--photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid oklch(1 0 0 / 0.1); outline-offset: -1px; }
.post__art img, .article-art img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px; }
.post__art--pattern .a-bg { fill: var(--violet-600); }
.post__art--pattern .a-arch path { fill: var(--plaster-50); }
.post__art--pattern .a-lamp { fill: var(--saffron-400); }
.journal__all { margin-top: 2.5rem; color: var(--color-accent-text); }
.journal-list { padding-block: 3rem var(--section-y); }
.empty-note { color: var(--color-text-secondary); font-size: var(--text-lead); }
.roles__none { padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius-md); color: var(--text-muted); }
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 110;
  padding: 0.75rem var(--gutter);
  background: var(--saffron-400);
  color: var(--ink-900);
  font-weight: 500;
  text-align: center;
}
.page-article .preview-banner { margin-top: 4.5rem; }
.preview-banner a { color: inherit; font-weight: 600; }
.prose__note { padding: 0.75rem 1rem; border-radius: var(--radius-md); background: var(--color-bg-sunken); color: var(--color-text-secondary); font-size: 1rem; }

/* Markdown output inside articles */
.prose h3 { margin-top: 2rem; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.prose a { color: var(--color-accent-text); font-weight: 500; }
.prose ol { display: grid; gap: 0.75rem; counter-reset: step; }
.prose ol > li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-sunken);
}
[dir="rtl"] .prose ol > li { padding: 1rem 3.5rem 1rem 1.25rem; }
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 1.125rem;
  top: 1rem;
  font-family: "DM Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-text);
}
.prose blockquote {
  margin: 2.5rem 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 3px solid var(--saffron-400);
}
.prose blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-accent-text);
  text-wrap: balance;
}
:root:lang(ar) .prose blockquote p { font-weight: 700; line-height: 1.5; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); text-align: start; }
.prose th { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.prose img { border-radius: var(--radius-md); }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin-block: 2.5rem; }

.not-found { padding-bottom: var(--section-y); }
.not-found__mark { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1.2; color: var(--oxblood-700); width: fit-content; }
.not-found .article-cta__actions { margin-top: 2rem; }

/* Database text marked as Arabic reads in the page's Arabic text font;
   the calligraphic Ruqaa face stays for decorative bits (tagline, logo, card subtitles in English mode) */
.i18n-ar[lang="ar"] { font-family: inherit; }
:root:lang(ar) .hero__title { line-height: 1.12; }

/* =========================================================
   Multi-page site: logo, contact drawer, inner pages
   ========================================================= */

/* ---------- icons + logo ---------- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.brand__logo { display: block; width: auto; height: 3rem; }
.brand__logo svg { height: 100%; width: auto; }
@media (min-width: 62rem) { .brand__logo { height: 3.5rem; } }
.nav__links a[aria-current="page"]::after { scale: 1 1; }
.nav__cta { border: 0; cursor: pointer; }
.menu__cta { align-self: flex-start; margin-top: 2rem; border: 0; }

/* ---------- contact drawer ---------- */
.drawer {
  --focus: var(--turq-700);
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  width: min(100%, 34rem);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  box-shadow: 0 0 80px -20px oklch(0.15 0.05 20 / 0.5);
  overscroll-behavior: contain;
}
/* the page behind an open panel or sheet doesn't scroll */
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.drawer::backdrop { background: oklch(0.2 0.05 20 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer__inner { display: grid; align-content: start; gap: 1.5rem; min-height: 100%; padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.25rem) 2.5rem; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.drawer__head h2 { margin-top: 0.25rem; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.drawer__close {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--color-border-input);
  border-radius: 50%;
  background: transparent;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .drawer__close:hover { background: var(--plaster-100); } }
.drawer__quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.quick {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-sunken);
  font-size: var(--text-small);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition-property: background-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.quick .icon { width: 1.5rem; height: 1.5rem; color: var(--color-accent-text); }
.quick--wa .icon { color: oklch(0.55 0.15 150); }
.quick:active { scale: 0.96; }
@media (hover: hover) { .quick:hover { background: var(--plaster-200); } }
.drawer__lead { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; }
.drawer__step { display: grid; gap: 1rem; }
.drawer__step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in 450ms var(--ease-expo) both; }
  .drawer__step:not([hidden]) { animation: step-in 300ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer[open] { animation: vt-fade-in 200ms ease-out both; }
}
@keyframes drawer-in { from { translate: 100% 0; } to { translate: 0 0; } }
[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { translate: -100% 0; } to { translate: 0 0; } }
@keyframes step-in { from { opacity: 0; translate: 12px 0; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@media (max-width: 36rem) {
  .drawer { width: 100%; inset-block-start: auto; height: 94dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  @media (prefers-reduced-motion: no-preference) {
    .drawer[open], [dir="rtl"] .drawer[open] { animation: sheet-up 450ms var(--ease-expo) both; }
  }
}
.drawer__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
[dir="rtl"] .drawer__back .icon { scale: -1 1; }
.drawer__switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: var(--plaster-100);
}
.drawer__switch::-webkit-scrollbar { display: none; }
.drawer__tab {
  flex: 1 0 auto;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.drawer__tab:active { scale: 0.96; }
.drawer__tab[aria-pressed="true"] {
  background: var(--color-bg-raised);
  color: var(--ink-900);
  box-shadow: 0 1px 2px oklch(0.2 0.05 20 / 0.12), 0 0 0 1px var(--color-border);
}
@media (hover: hover) { .drawer__tab[aria-pressed="false"]:hover { color: var(--ink-900); background: color-mix(in oklab, var(--plaster-200) 70%, transparent); } }
@media (hover: hover) { .drawer__back:hover { background: var(--plaster-100); color: var(--ink-900); } }
.drawer__form-head { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.drawer__form-head h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.drawer__form-head p { margin-top: 0.25rem; color: var(--color-text-secondary); }
.drawer__other {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
}
@media (hover: hover) { .drawer__other:hover { text-decoration-color: currentColor; } }

/* choice cards (drawer + inline hub) */
.choice-cards { display: grid; gap: 0.625rem; }
.choice-card {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
  color: var(--color-text-primary);
  text-align: start;
  text-decoration: none;
  transition-property: border-color, box-shadow, translate, scale;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.choice-card:active { scale: 0.98; }
@media (hover: hover) {
  .choice-card:hover { border-color: var(--oxblood-700); box-shadow: 0 12px 28px -18px oklch(0.2 0.05 20 / 0.45); }
  .choice-card:hover .choice-card__arrow { translate: 4px 0; color: var(--color-accent-text); }
  [dir="rtl"] .choice-card:hover .choice-card__arrow { translate: -4px 0; }
}
.choice-card__icon {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--plaster-100);
  color: var(--color-accent-text);
}
.choice-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.choice-card__text { display: grid; gap: 0.125rem; flex: 1; min-width: 0; }
.choice-card__text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
:root:lang(ar) .choice-card__text strong { font-weight: 700; }
.choice-card__text > span { font-size: var(--text-small); color: var(--color-text-secondary); line-height: 1.45; }
.choice-card__arrow { color: var(--color-text-secondary); transition: translate 200ms var(--ease-out), color 200ms ease-out; }
[dir="rtl"] .choice-card__arrow { scale: -1 1; }
.story__more, .visit__all, .events__all { margin-top: 1.5rem; color: var(--color-accent-text); }
.section--dark .story__more { color: var(--saffron-300); }

/* ---------- page hero ---------- */
.page-hero {
  --focus: var(--saffron-400);
  --photo-w: 62%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(32rem, 76svh, 48rem);
  padding: clamp(7rem, 6rem + 4vw, 9.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--oxblood-800);
  color: var(--plaster-50);
}
.page-hero__glow {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(40% 40% at 80% 30%, oklch(0.86 0.15 92 / 0.22), transparent 70%),
    radial-gradient(45% 50% at 5% 100%, oklch(0.63 0.09 212 / 0.18), transparent 70%);
}
.page-hero__pattern {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--khatam); background-size: 56px; opacity: 0.07;
  -webkit-mask-image: radial-gradient(60% 80% at 20% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 80% at 20% 45%, #000 20%, transparent 75%);
}
[dir="rtl"] .page-hero__pattern {
  -webkit-mask-image: radial-gradient(60% 80% at 80% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 80% at 80% 45%, #000 20%, transparent 75%);
}
.page-hero__grid { width: 100%; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 4rem; } }
@media (max-width: 61.99rem) {
  .page-hero { min-height: 0; justify-content: flex-start; padding-bottom: 0; }
  .page-hero__grid { order: 1; padding-bottom: 2rem; }
}
.page-hero__eyebrow { color: var(--saffron-300); }
.page-hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
:root:lang(ar) .page-hero__title { font-weight: 700; line-height: 1.25; }
.page-hero__ar { margin-top: 0.5rem; width: fit-content; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.4; color: var(--saffron-400); }
.page-hero__lead { margin-top: 1.25rem; max-width: 34rem; font-size: var(--text-lead); line-height: 1.5; color: var(--color-text-on-brand-muted); }
.page-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-inner .nav:not(.is-solid) { color: var(--plaster-50); }

/* ---------- photo band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 4rem + 6vw, 9rem); color: var(--plaster-50); background: var(--oxblood-950); }
.band__photo { position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, oklch(0.2 0.05 20 / 0.9), oklch(0.2 0.05 20 / 0.55)); }
[dir="rtl"] .band__shade { background: linear-gradient(to left, oklch(0.2 0.05 20 / 0.9), oklch(0.2 0.05 20 / 0.55)); }
.band--quote .band__shade { background: oklch(0.2 0.05 20 / 0.72); }
.band__inner { --focus: var(--saffron-400); display: grid; gap: 1rem; justify-items: start; }
.band .label { color: var(--saffron-300); }
.band h2 { max-width: 20ch; }
.band__lead { max-width: 34rem; font-size: var(--text-lead); line-height: 1.5; color: var(--color-text-on-brand-muted); }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.band__actions .btn .icon { width: 1.125rem; height: 1.125rem; }
.band--quote .band__inner { justify-items: center; text-align: center; }
.band--quote blockquote { margin: 0; }
.band--quote blockquote p { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
:root:lang(ar) .band--quote blockquote p { font-weight: 700; line-height: 1.4; }
.band__cite { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--saffron-300); }

/* ---------- menu page ---------- */
/* filters sit above the grid and scroll away with the page; groups flow side by side to stay short */
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.25rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-raised);
}
.menu-filters__group { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.menu-filters__label { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); white-space: nowrap; }
.menu-filters__chips { display: flex; flex-wrap: wrap; gap: 0.375rem; min-width: 0; }
.menu-filters .chip { min-height: 2.5rem; padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.menu-filters__foot { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.menu-filters__count { font-size: var(--text-small); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-filters__clear { min-height: 2.5rem; padding: 0 0.5rem; border: 0; background: none; font-weight: 500; color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 0.25em; }
/* phones: each filter's label sits above its chips, and the chips wrap instead of running off the screen */
@media (max-width: 47.99rem) {
  .menu-filters { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; }
  .menu-filters__group { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .menu-filters__chips { flex-wrap: wrap; }
  .menu-filters__foot { justify-content: space-between; margin-inline-start: 0; padding-top: 0.75rem; border-top: 1px solid var(--color-border); }
}
.menu-filters .chip { white-space: nowrap; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 2.5rem 1.75rem; }
.menu-item { display: grid; align-content: start; gap: 1.125rem; }
.menu-item[hidden] { display: none; }
.menu-item__art {
  position: relative;
  aspect-ratio: 1 / 1.1;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  background-color: var(--card-art, var(--turq-800));
  background-image: var(--khatam);
  background-size: 44px;
  background-blend-mode: soft-light;
  box-shadow: 0 24px 40px -28px oklch(0.2 0.05 20 / 0.55);
}
.menu-item__art img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px; transition: scale 600ms var(--ease-out); }
.menu-item__art svg { width: 72%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .menu-item:hover .menu-item__art img { scale: 1.05; } }
.menu-item[data-tone="turq"] { --card-art: var(--turq-800); }
.menu-item[data-tone="saffron"] { --card-art: var(--saffron-600); }
.menu-item[data-tone="oxblood"] { --card-art: var(--oxblood-900); }
.menu-item[data-tone="plaster"] { --card-art: var(--plaster-200); }
.menu-item[data-tone="violet"] { --card-art: oklch(0.34 0.13 300); }
.menu-item[data-tone="sea"] { --card-art: var(--turq-700); }
.menu-item .card-tone { --c1: var(--plaster-50); --c2: var(--saffron-400); --c3: var(--oxblood-800); }
.menu-item[data-tone="saffron"] .card-tone, .menu-item[data-tone="plaster"] .card-tone, .menu-item[data-tone="sea"] .card-tone { --c1: var(--ink-900); --c2: var(--oxblood-800); --c3: var(--plaster-50); }
.menu-item .card-tone .f1 { fill: var(--c1); } .menu-item .card-tone .f2 { fill: var(--c2); } .menu-item .card-tone .f3 { fill: var(--c3); } .menu-item .card-tone .f4 { fill: var(--oxblood-950); }
.menu-item .card-tone .s1 { fill: none; stroke: var(--c1); stroke-linecap: round; } .menu-item .card-tone .s2 { fill: none; stroke: var(--c2); } .menu-item .card-tone .s3 { fill: none; stroke: var(--c3); }
.menu-item .card-tone .wisp { stroke-width: 3; stroke-dasharray: 16 80; opacity: 0.8; }
.menu-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-item__head h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.menu-item__price {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--saffron-400);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.menu-item__body { display: grid; gap: 0.625rem; }
.menu-item__head h3 { line-height: 1.15; }
.menu-item__alt { margin-top: -0.25rem; width: fit-content; font-size: 1.25rem; line-height: 1.6; color: var(--color-text-secondary); }
.menu-item__alt [lang="en"] { font-family: var(--font-display); font-size: 1.0625rem; }
.menu-item__desc { color: var(--color-text-secondary); }
.menu-item__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.menu-item__tags li { padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--color-bg-sunken); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
:root:lang(ar) .menu-item__tags li { font-size: 0.8125rem; text-transform: none; }
.menu-empty { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; border: 1px dashed var(--color-border-input); border-radius: var(--radius-lg); text-align: center; color: var(--color-text-secondary); }
.menu-empty[hidden] { display: none; }
.menu-note { margin-top: 3rem; max-width: 40rem; color: var(--color-text-secondary); font-size: var(--text-small); }

/* ---------- offers + past events ---------- */
.offers { background: var(--color-bg-page); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.offer { display: grid; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-sunken); }
.offer__art { aspect-ratio: 16 / 10; overflow: hidden; }
.offer__art img { width: 100%; height: 100%; object-fit: cover; }
.offer__body { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; }
.offer__badge { justify-self: start; padding: 0.25rem 0.875rem; border-radius: 999px; background: var(--oxblood-700); color: var(--plaster-50); font-weight: 600; font-size: 0.9375rem; }
.offer[data-tone="saffron"] .offer__badge { background: var(--saffron-400); color: var(--ink-900); }
.offer__desc { color: var(--color-text-secondary); }
.offer__until { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-cool); }
.empty-panel { display: grid; justify-items: start; gap: 0.75rem; padding: 2rem; border: 1px dashed var(--color-border-input); border-radius: var(--radius-lg); color: var(--color-text-secondary); }
.empty-panel .link-arrow { color: var(--color-accent-text); }
.past { background: var(--color-bg-sunken); }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2rem 1.5rem; }
.past-item { display: grid; align-content: start; gap: 0.5rem; }
.past-item__art { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 0.5rem; border-radius: var(--radius-md); background: var(--turq-700); }
.past-item[data-tone="saffron"] .past-item__art { background: var(--saffron-600); }
.past-item[data-tone="violet"] .past-item__art { background: var(--violet-600); }
.past-item[data-tone="oxblood"] .past-item__art { background: var(--oxblood-700); }
.past-item__art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
/* no photo: the date set large over the khatam pattern, with the event type in the corner */
.past-item__art { position: relative; isolation: isolate; }
.past-item__art:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--khatam);
  background-size: 44px;
  opacity: 0.14;
}
.past-item__when { display: grid; justify-items: center; gap: 0.25rem; color: var(--plaster-50); }
.past-item__day { font-family: var(--font-display); font-size: clamp(3.5rem, 3rem + 2vw, 4.75rem); line-height: 1; }
.past-item__my { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
:root:lang(ar) .past-item__my { font-family: inherit; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
.past-item__type {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.16);
  color: var(--plaster-50);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
:root:lang(ar) .past-item__type { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 0.875rem; }
.past-item__date { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); }
.past-item h3 { font-size: 1.375rem; }
.past-item__desc { color: var(--color-text-secondary); font-size: 0.9375rem; }

/* ---------- about ---------- */
.values { position: relative; overflow: hidden; background: var(--oxblood-900); --surface: var(--oxblood-900); }
.values__pattern { position: absolute; inset: 0; background-image: var(--khatam); background-size: 56px; opacity: 0.05; pointer-events: none; }
.values__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.value { display: grid; align-content: start; gap: 0.75rem; padding: 1.75rem 1.5rem; border: 1px solid oklch(1 0 0 / 0.12); border-radius: var(--radius-lg); background: oklch(1 0 0 / 0.04); }
.value__no { font-family: var(--font-mono); font-size: var(--text-label); color: var(--saffron-400); }
.value h3 { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); }
.value p { color: var(--color-text-on-brand-muted); }
.heritage { background: var(--color-bg-sunken); }
.heritage__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .heritage__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; } }
.heritage__art { margin: 0; width: min(100%, 26rem); justify-self: center; }
.heritage__art .arch { aspect-ratio: 4 / 5; }
.heritage__art .arch img { height: 100%; }
.heritage__copy { display: grid; gap: 1.25rem; justify-items: start; }
.heritage__copy > p:not(.label) { max-width: 36rem; font-size: var(--text-lead); line-height: 1.55; color: var(--color-text-secondary); }
.houses--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important; }

/* ---------- visit page + richer house cards ---------- */
.house__desc { color: var(--color-text-secondary); }
.house address { display: flex; align-items: flex-start; gap: 0.5rem; }
.house address .icon { margin-top: 0.15em; color: var(--color-accent-text); }
.house__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.btn--small-pill { min-height: 2.75rem; padding: 0.375rem 1rem; font-size: 0.9375rem; }
.btn--small-pill .icon { width: 1.125rem; height: 1.125rem; }
.week { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.week th, .week td { padding: 0.5rem 0; text-align: start; border-bottom: 1px solid oklch(0 0 0 / 0.08); font-weight: 400; }
.week td { text-align: end; }
.week tr.is-today th, .week tr.is-today td { font-weight: 600; color: var(--ink-900); }
.week tr.is-today th::after { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-start: 0.5rem; border-radius: 50%; background: var(--oxblood-700); vertical-align: middle; }
.week__closed { color: var(--color-error-text); font-weight: 500; }
@media (min-width: 62rem) {
  .visit__grid--page { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .visit__side { position: sticky; top: 6.5rem; }
}

/* ---------- footer (multi-page) ---------- */
.footer__grid--wide { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer__grid--wide { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; } }
.footer__logo { display: block; height: 4rem; margin-bottom: 1rem; color: var(--plaster-50); }
.footer__logo svg { height: 100%; width: auto; }
.footer__brand .footer__tag { margin-top: 0.5rem; font-size: 1.75rem; }
.footer nav ul { grid-template-columns: 1fr; }
.footer .label { margin-bottom: 0.75rem; color: var(--saffron-300); }
.footer__place { display: grid; gap: 0.125rem; margin-bottom: 1rem; font-size: var(--text-small); }
.footer__place-name { font-weight: 600; color: var(--plaster-50) !important; font-size: 1rem; }
.footer__place a { color: var(--saffron-300); text-decoration: underline; text-underline-offset: 0.2em; padding-block: 0.25rem; width: fit-content; }
.footer__social ul { display: grid; gap: 0.25rem; }
.footer__social a { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.5rem; text-decoration: none; overflow-wrap: anywhere; }
.footer__social .icon { width: 1.25rem; height: 1.25rem; color: var(--saffron-300); }

/* preloader uses the real logo */
.preloader__logo { display: block; height: clamp(5rem, 3rem + 8vw, 8rem); color: var(--plaster-50); }
.preloader__logo svg { height: 100%; width: auto; }
@media (prefers-reduced-motion: no-preference) {
  .js .preloader__logo { animation: mark-in 900ms var(--ease-expo) both; }
}


/* ---------- The bar: signature drinks as tall photo panels (inspired by Oatly) ---------- */
.bar { padding-block: var(--section-y); }
.bar__all { color: var(--saffron-300); }
.sig {
  position: relative;
  display: flex;
  gap: 0.625rem;
  height: clamp(26rem, 70svh, 42rem);
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}
.sig__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--oxblood-900);
}
.sig__panel.is-open { flex-grow: 3.2; }
.sig__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, oklch(0.16 0.04 25 / 0.9) 0%, oklch(0.16 0.04 25 / 0.35) 42%, transparent 66%);
}
.sig__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.88); }
.sig__panel.is-open .sig__photo { scale: 1.04; filter: none; }
.sig__art { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; --c1: var(--plaster-50); --c2: var(--saffron-400); --c3: var(--turq-500); }
.sig__art svg { width: 70%; max-width: 14rem; }
.sig__art .f1 { fill: var(--c1); } .sig__art .f2 { fill: var(--c2); } .sig__art .f3 { fill: var(--c3); } .sig__art .f4 { fill: var(--oxblood-950); }
.sig__art .s1 { fill: none; stroke: var(--c1); stroke-linecap: round; } .sig__art .s2 { fill: none; stroke: var(--c2); } .sig__art .s3 { fill: none; stroke: var(--c3); }
.sig__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.625rem; padding: clamp(1rem, 0.75rem + 0.8vw, 1.5rem); }
/* while one panel is open, the narrow ones use smaller names that wrap instead of being cut off */
@media (min-width: 62rem) {
  .sig:has(.is-open) .sig__panel:not(.is-open) .sig__body { padding: clamp(0.75rem, 0.6rem + 0.4vw, 1rem); }
  .sig:has(.is-open) .sig__panel:not(.is-open) .sig__name { font-size: clamp(1.15rem, 0.85rem + 0.5vw, 1.4rem); }
  .sig:has(.is-open) .sig__panel:not(.is-open) .sig__alt { font-size: 1.125rem; }
}
.sig__top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: clamp(0.875rem, 0.7rem + 0.5vw, 1.25rem); }
.sig__no { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.08em; color: var(--plaster-50); text-shadow: 0 1px 8px oklch(0 0 0 / 0.4); }
.sig__rule { display: block; width: 1.75rem; height: 2px; border-radius: 2px; background: var(--saffron-400); }
.sig__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--plaster-50);
  text-wrap: balance;
  text-shadow: 0 2px 18px oklch(0.1 0.03 25 / 0.45);
}
.sig__panel.is-open .sig__name { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.25rem); }
:root:lang(ar) .sig__name { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.sig__alt { margin-top: -0.25rem; width: fit-content; font-size: 1.375rem; line-height: 1.3; color: var(--saffron-300); }
.sig__alt [lang="en"] { font-family: var(--font-display); font-size: 1.0625rem; }
.sig__link { color: inherit; text-decoration: none; }
.sig__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sig__link:focus-visible { outline: none; }
.sig__link:focus-visible::after { outline: 3px solid var(--saffron-400); outline-offset: -3px; }
.sig__more { display: grid; grid-template-rows: 0fr; opacity: 0; }
.sig__more > div { overflow: hidden; width: clamp(15rem, 30vw, 28rem); max-width: 100%; }
.sig__panel.is-open .sig__more { grid-template-rows: 1fr; opacity: 1; }
.sig__desc { color: oklch(0.96 0.01 85 / 0.88); line-height: 1.5; text-wrap: pretty; }
.sig__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.875rem; }
.sig__tag { padding: 0.25rem 0.75rem; border: 1px solid oklch(1 0 0 / 0.35); border-radius: 999px; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--plaster-50); }
:root:lang(ar) .sig__tag { font-family: inherit; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .sig__panel { transition: flex-grow 650ms var(--ease-out); }
  .sig__rule { transition: width 500ms var(--ease-out); }
  .sig__panel.is-open .sig__rule { width: 3.5rem; }
  .sig__photo { transition: scale 900ms var(--ease-out), filter 600ms ease-out; }
  .sig__more { transition: grid-template-rows 500ms var(--ease-out), opacity 250ms ease-out; }
  .sig__panel.is-open .sig__more { transition-delay: 180ms, 300ms; }
}
/* phones and tablets: a row of tall cards you swipe; every card shows its details */
@media (max-width: 61.99rem) {
  .sig { height: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 0.25rem; touch-action: pan-x pan-y; }
  .sig::-webkit-scrollbar { display: none; }
  .sig__panel { flex: 0 0 min(78vw, 22rem); height: clamp(24rem, 62svh, 30rem); scroll-snap-align: start; }
  .sig__panel .sig__more { grid-template-rows: 1fr; opacity: 1; }
  .sig__more > div { width: auto; }
  .sig__photo { filter: none; }
}

/* the bar links straight to an item on the menu page */
.menu-item { scroll-margin-top: 8rem; }
.menu-item:target .menu-item__art { outline: 3px solid var(--saffron-400); outline-offset: 4px; }

/* ---------- Visit: each house as a tall photo card, in the same language as the bar ---------- */
.doors { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 48rem) { .doors { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); } }
.door {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(30rem, 72svh, 42rem);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--oxblood-900);
  color: var(--plaster-50);
}
.door__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, oklch(0.16 0.04 25 / 0.5), transparent 26%),
    linear-gradient(to top, oklch(0.16 0.04 25 / 0.94) 0%, oklch(0.16 0.04 25 / 0.6) 42%, transparent 72%);
}
.door__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.door__no { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--saffron-300); }
:root:lang(ar) .door__no { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
.door__status {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: oklch(0.16 0.04 25 / 0.55);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  font-size: var(--text-small);
  font-weight: 600;
}
.door__body { display: grid; gap: 1rem; }
.door__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; }
:root:lang(ar) .door__name { font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.door__desc { max-width: 30rem; font-size: var(--text-lead); line-height: 1.45; color: oklch(0.96 0.01 85 / 0.88); text-wrap: pretty; }
.door__lines { display: grid; gap: 0.5rem; color: oklch(0.96 0.01 85 / 0.8); }
.door__lines li { display: flex; align-items: flex-start; gap: 0.625rem; }
.door__lines .icon { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin-top: 0.2em; color: var(--saffron-300); }
.door__lines address { font-style: normal; }
.door__lines a { color: inherit; text-decoration: none; }
@media (hover: hover) { .door__lines a:hover { color: var(--plaster-50); text-decoration: underline; } }
.door .house__actions { margin-top: 0.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .door__photo { transition: scale 900ms var(--ease-out); }
  .door:hover .door__photo { scale: 1.04; }
}
@media (max-width: 47.99rem) { .door { min-height: 30rem; } }


/* ---------- Phones: long stacks become sideways rows; the next card peeks in from the edge ---------- */
@media (max-width: 47.99rem) {
  .swipe-row {
    display: flex;
    align-items: stretch;
    gap: 0.875rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.25rem;
    overflow-x: auto;
    /* a sideways row must never scroll up and down itself, or a vertical swipe moves the card instead of the page */
    overflow-y: hidden;
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  .swipe-row > * { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; }
  /* events: each one a card */
  .event-list.swipe-row { border-top: 0; }
  .swipe-row > .event {
    align-content: start;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-raised);
  }
  .swipe-row > .event[hidden] { display: none; }
  /* houses: two tall photo cards side by side */
  .doors.swipe-row > .door { flex-basis: min(86%, 24rem); min-height: 31rem; }
}

/* ---------- Phones: a quick bar slides up once the hero has scrolled away ---------- */
.quickbar { display: none; }
@media (max-width: 47.99rem) {
  .quickbar {
    position: fixed;
    z-index: 80;
    inset-inline: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.25rem;
    padding: 0.3125rem;
    border-radius: 999px;
    background: oklch(0.21 0.02 35 / 0.92);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px -14px oklch(0.15 0.04 25 / 0.6);
    translate: 0 calc(100% + 2rem);
    visibility: hidden;
    transition: translate 400ms var(--ease-out), visibility 0s linear 400ms;
  }
  .quickbar.is-on { translate: 0 0; visibility: visible; transition: translate 400ms var(--ease-out); }
  .quickbar a {
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    min-height: 2.875rem;
    border-radius: 999px;
    color: var(--plaster-50);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
  }
  .quickbar a:active { background: oklch(1 0 0 / 0.1); }
  .quickbar .icon { width: 1.125rem; height: 1.125rem; }
  .quickbar__wa { background: oklch(0.6 0.14 152); }
  .quickbar__wa:active { background: oklch(0.55 0.14 152) !important; }
}
@media (max-width: 47.99rem) and (prefers-reduced-motion: reduce) { .quickbar, .quickbar.is-on { transition: none; } }

/* ---------- Landing hero on phones and tablets: the courtyard photo fills the whole screen ---------- */
@media (max-width: 61.99rem) {
  .hero .hero-photo {
    position: absolute;
    inset: 0;
    order: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero .hero-photo img { object-position: 68% 50%; }
  .hero .hero-photo::after {
    background: linear-gradient(to bottom,
      oklch(0.24 0.07 22 / 0.72) 0%,
      oklch(0.24 0.07 22 / 0.42) 32%,
      oklch(0.22 0.06 22 / 0.6) 58%,
      oklch(0.18 0.05 22 / 0.94) 100%);
  }
  .hero__title, .hero__lead, .hero__arabic { text-shadow: 0 2px 18px oklch(0.12 0.03 22 / 0.55); }
}

/* ---------- Inner pages on phones and tablets: the photo fills the hero, text sits over the dark fade ---------- */
@media (max-width: 61.99rem) {
  .page-hero {
    min-height: clamp(34rem, 86svh, 48rem);
    justify-content: flex-end;
    padding-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
  }
  .page-hero__grid { padding-bottom: 0; }
  .page-hero .hero-photo {
    position: absolute;
    inset: 0;
    order: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .page-hero .hero-photo::after {
    background: linear-gradient(to bottom,
      oklch(0.24 0.07 22 / 0.7) 0%,
      oklch(0.24 0.07 22 / 0.25) 30%,
      oklch(0.22 0.06 22 / 0.7) 62%,
      oklch(0.18 0.05 22 / 0.95) 100%);
  }
  .page-hero__title, .page-hero__lead, .page-hero__ar { text-shadow: 0 2px 18px oklch(0.12 0.03 22 / 0.55); }
}

/* phones: the "What can we help with?" cards sit in a sideways row too */
@media (max-width: 47.99rem) { .say__grid.swipe-row > li { flex-basis: min(78%, 18rem); } }

/* ---------- Event photos ---------- */
/* on phones and tablets the photo runs across the top of the event */
.event__photo {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-sunken);
}
.event__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease-out); }
/* no photo: the event's colour with the khatam pattern, so the rows still line up */
.event__photo--blank {
  display: flex;
  align-items: flex-end;
  padding: 0.875rem;
  background-color: var(--photo-bg, var(--oxblood-700));
  background-image: var(--khatam);
  background-size: 40px;
  background-blend-mode: soft-light;
  color: var(--photo-fg, var(--plaster-50));
}
.event[data-tone="turq"] .event__photo--blank { --photo-bg: var(--turq-700); }
.event[data-tone="saffron"] .event__photo--blank { --photo-bg: var(--saffron-400); --photo-fg: var(--ink-900); }
.event[data-tone="violet"] .event__photo--blank { --photo-bg: var(--violet-600); }
.event[data-tone="sea"] .event__photo--blank { --photo-bg: var(--turq-500); --photo-fg: var(--ink-900); }
.event__photo-cat { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; }
:root:lang(ar) .event__photo-cat { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .event:hover .event__photo img { scale: 1.05; } }

/* phones (landing page): the photo bleeds to the edges of the swipe card */
@media (max-width: 47.99rem) {
  .swipe-row > .event .event__photo { margin: -1.25rem -1.25rem 0.25rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* desktop: a photo column between the date and the title */
@media (min-width: 62rem) {
  .event-list--photos .event { grid-template-columns: 8rem 12rem minmax(0, 1fr) 13rem auto; }
  .event-list--photos .event > * { grid-row: 1; }
  .event-list--photos .event__date { grid-column: 1; }
  .event-list--photos .event__photo { grid-column: 2; aspect-ratio: 4 / 3; }
  .event-list--photos .event__main { grid-column: 3; }
  .event-list--photos .event__meta { grid-column: 4; }
  .event-list--photos .event__actions { grid-column: 5; }
}

/* the cursor-follow card shows the event's photo when it has one */
.event-peek__card.has-photo {
  background-image: linear-gradient(to top, oklch(0.16 0.04 25 / 0.85), oklch(0.16 0.04 25 / 0) 60%), var(--peek-photo);
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  color: var(--plaster-50);
}

/* ---------- Photo viewer ---------- */
button.event__photo, .past-item__art--open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: zoom-in;
}
.past-item__art--open { background: var(--color-bg-sunken); }
.past-item__art--open img { transition: scale 700ms var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .past-item__art--open:hover img { scale: 1.05; } }
.lightbox {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: oklch(0.12 0.03 22 / 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__fig { display: grid; justify-items: center; gap: 1rem; margin: 0; pointer-events: none; }
.lightbox__img {
  display: block;
  max-width: min(100%, 72rem);
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px -30px oklch(0 0 0 / 0.7);
  pointer-events: auto;
}
.lightbox__cap { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem); color: var(--plaster-50); text-align: center; text-wrap: balance; }
:root:lang(ar) .lightbox__cap { font-weight: 700; }
.lightbox__close {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.5rem);
  inset-inline-end: clamp(0.75rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  color: var(--plaster-50);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
@media (hover: hover) { .lightbox__close:hover { background: oklch(1 0 0 / 0.18); } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__fig { animation: lightbox-in 320ms var(--ease-out) both; }
}
@keyframes lightbox-in { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
