/* ============================================================
   JÂN PLAZA — SITE
   ------------------------------------------------------------
   Layout for every page. Editorial: asymmetric grid, oversized
   display type, generous whitespace, and sections separated by
   alternating ground rather than by colour.

   Every value comes from tokens.css. The only literals allowed
   are rgba(255,255,255,a) / rgba(0,0,0,a) scrims over imagery —
   the design system itself uses those in .hero and .venue-tag.
   No design-system class is redefined here; this file only lays
   out the wrappers the pages add.
   ============================================================ */

/* ---------- shell ---------- */

/* The [hidden] attribute is how this site opens and closes the mobile
   drawer and filters the menu, but the UA rule that implements it is a
   bare `display:none` on the element — any `display` declared in a class
   wins. Without this, every flex container that toggles [hidden] stays
   visible. Fixing the class of bug once, rather than each instance. */
[hidden] {
  display: none !important;
}

.site {
  overflow-x: hidden;
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--sp-4);
  z-index: 200;
  background: var(--c-brand);
  color: var(--c-on-brand);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
}
.skip:focus {
  inset-block-start: var(--sp-4);
}

/* ---------- header ---------- */

.hdr-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 80;
  background: var(--c-surface);
  border-block-end: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

/* Only the home page opens over a full-bleed hero, so only it starts
   transparent. Every other page has content directly under the bar and
   needs the solid ground from the first paint. */
.hdr-bar[data-transparent='true']:not(.is-solid) {
  background: transparent;
  border-block-end-color: transparent;
  box-shadow: none;
}
.hdr-bar[data-transparent='true']:not(.is-solid) .logo,
.hdr-bar[data-transparent='true']:not(.is-solid) .logo .mark,
.hdr-bar[data-transparent='true']:not(.is-solid) .btn-ghost {
  color: var(--c-text-inverse);
}
.hdr-bar[data-transparent='true']:not(.is-solid) .hdr-nav a {
  color: rgba(255, 255, 255, 0.82);
}
.hdr-bar[data-transparent='true']:not(.is-solid) .hdr-nav a:hover,
.hdr-bar[data-transparent='true']:not(.is-solid) .hdr-nav a.is-active {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.14);
}
.hdr-bar[data-transparent='true']:not(.is-solid) .hdr-cta {
  background: rgba(255, 255, 255, 0.16);
  color: var(--c-text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

.hdr-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}
.hdr-bar .logo {
  flex: none;
}
.hdr-bar .logo .mark {
  color: var(--c-brand);
}
.hdr-bar .logo-word {
  font-size: var(--fs-lg);
}
.hdr-nav {
  flex: 1;
  justify-content: center;
}
.hdr-nav a.is-active {
  color: var(--c-text-brand);
  background: var(--c-brand-subtle);
}
.hdr-burger {
  display: none;
}

.hdr-drawer {
  background: var(--c-surface);
  border-block-start: 1px solid var(--c-border);
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.hdr-drawer-nav {
  display: flex;
  flex-direction: column;
}
.hdr-drawer-nav a {
  padding: var(--sp-3) var(--sp-2);
  font-weight: var(--w-strong);
  border-block-end: 1px solid var(--c-border);
  color: var(--c-text);
  display: flex;
  align-items: center;
  min-height: 44px;
}
.hdr-drawer-nav a.is-active {
  color: var(--c-text-brand);
}
.hdr-drawer-nav a:last-child {
  border-block-end: 0;
}

/* ---------- page hero ---------- */

.phero {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-9);
  isolation: isolate;
  color: var(--c-text-inverse);
}
.phero.is-tall {
  min-height: 92vh;
  padding-block-end: var(--sp-10);
}
.phero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.phero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
/* Two scrims, not one. The vertical pass darkens the sky behind the nav and
   the ground behind the copy; the horizontal pass covers the right side,
   where the RTL headline sits over pale stone that white type would
   otherwise disappear into. */
.phero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.3) 44%, rgba(0, 0, 0, 0) 74%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.7) 100%);
}
.phero .overline {
  color: rgba(255, 255, 255, 0.74);
}
.phero-title {
  font-family: var(--font-display);
  font-size: var(--fs-d1);
  font-weight: var(--fw-black);
  /* Not tighter than this: Paykan's dots and descenders need the room. */
  line-height: 1.18;
  margin-block: var(--sp-3) var(--sp-4);
}
.phero-lead {
  font-size: var(--fs-h4);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
}
.phero.is-tall .phero-lead {
  font-size: var(--fs-h3);
  max-width: 34ch;
}
.phero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);
}
.phero .btn-secondary {
  color: var(--c-text-inverse);
  border-color: rgba(255, 255, 255, 0.45);
}
.phero .btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}
.phero .btn-inverse {
  background: var(--c-bg);
  color: var(--c-text);
}

/* Non-hero pages still need the bar's height reserved. */
.page-menu .menu-shell {
  padding-block-start: 0;
}

/* ---------- hero stats strip ---------- */

.hero-stats {
  position: relative;
  z-index: 1;
  margin-block-start: calc(var(--sp-9) * -1);
}
.hero-stats .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.hero-stats .stat {
  border: 0;
  border-inline-start: 1px solid var(--c-border);
  border-radius: 0;
  text-align: center;
}
.hero-stats .stat:first-child {
  border-inline-start: 0;
}

/* ---------- section rhythm ---------- */

.sec {
  position: relative;
  padding-block: var(--sp-10);
  isolation: isolate;
}

/* Sections are separated by alternating ground and whitespace, not by a
   colour wash. An earlier version bled each section's venue accent into the
   next with a green gradient; the client rejected it, and they were right —
   a tinted band reads as a rendering artefact on a page whose whole point is
   white plaster and daylight. The venue accent still identifies each space,
   but it does so on the venue's own card, where it means something.

   `--v-a` stays declared on the sections so any element inside can still
   reach its floor's accent. */
.sec:nth-of-type(even) {
  background: var(--c-bg-subtle);
}

/* A hairline where two sections share the same ground, so the rhythm never
   goes fully seamless. */
.sec + .sec:not(:nth-of-type(even)) {
  border-block-start: 1px solid var(--c-border);
}

.texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../img/detail-kufic-arch.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-d2);
  font-weight: var(--fw-black);
  line-height: 1.18;
}

/* Editorial heads sit at the start of the measure, not centred. */
.sec-head {
  text-align: start;
  margin-inline: 0;
  max-width: 54ch;
  margin-block-end: var(--sp-8);
}

/* ---------- split layout ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-7);
  align-items: start;
}
.split-head {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.split-body {
  grid-column: 6 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
}
.split-body p:first-child {
  color: var(--c-text);
}
.split-sticky .split-head {
  position: sticky;
  inset-block-start: calc(var(--header-h) + var(--sp-5));
}

.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
}
.prose p:first-child {
  color: var(--c-text);
  font-size: var(--fs-h4);
}

/* ---------- floor cards ---------- */

.floor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.floor-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  color: var(--c-text);
  transition: transform var(--dur-base) var(--ease);
}
.floor-card:hover {
  transform: translateY(-4px);
}
.floor-card.is-current {
  pointer-events: none;
}
/* Dimming the whole card would drop its text to ~3.4:1 on white, under the
   4.5:1 floor. Desaturate the photograph instead and say so in words. */
.floor-card.is-current .floor-card-media img {
  filter: grayscale(0.7);
}
.floor-card.is-current .floor-card-name {
  color: var(--c-text-muted);
}
.floor-card-here {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-full);
  background: var(--c-brand-subtle);
  color: var(--c-text-brand);
  font-size: var(--fs-xs);
  font-weight: var(--w-strong);
}
.floor-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-bg-inset);
}
.floor-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.floor-card-level {
  font-family: ui-monospace, monospace;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.floor-card-name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--w-heading);
}
.floor-card-stage {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-brand);
}

/* ---------- venue rows ---------- */

.venue-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}
.vrow {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-7);
  align-items: center;
}
.vrow-media {
  grid-column: span 5;
}
.vrow-text {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.vrow.is-flipped .vrow-media {
  order: 2;
}
.vrow.is-flipped .vrow-text {
  order: 1;
}
.vrow .venue-img {
  margin: 0;
  aspect-ratio: 4 / 5;
}
.vrow-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: 1.2;
}
.vrow-lead {
  font-size: var(--fs-h4);
  color: var(--c-text-brand);
  font-weight: var(--w-strong);
}
.vrow-hours {
  width: min(320px, 100%);
  margin-block: var(--sp-2);
}
.vrow-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.feat {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-block: var(--sp-2);
}
.feat-col {
  flex-direction: column;
  gap: var(--sp-2);
}
.feat li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.feat .xmark {
  color: var(--c-brand);
}

/* Photos must fill the arch frame. The design system leaves the inside of
   .venue-img to the page and it is a centred grid, so height:100% resolves
   against an auto row and the image overflows. Absolute positioning against
   the (already relative) frame is the only deterministic version. */
.venue-img img,
.gal-item img,
.news-media img,
.floor-card-media img,
.draw img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-item,
.news-media,
.draw a {
  position: relative;
  background: var(--c-bg-inset);
  overflow: hidden;
}

/* ---------- architecture chapters ---------- */

.chapters {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
  max-width: 92ch;
}
.chapter {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--sp-6);
  align-items: start;
}
.chapter-num {
  font-family: ui-monospace, monospace;
  font-size: var(--fs-h3);
  color: var(--c-border-strong);
  line-height: 1.1;
}
.chapter-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.chapter-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: 1.2;
}
.chapter-body p {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  max-width: 62ch;
}

/* ---------- drawings ---------- */

.draw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.draw {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.draw a {
  display: block;
  /* The drawings are A-series sheets; hold their proportion so the
     line-work is never cropped by a mismatched frame. */
  aspect-ratio: 1.414;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg);
}
.draw img {
  object-fit: contain;
}
.draw figcaption {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.draw-wide a {
  aspect-ratio: 1.414;
}
.draw-wide {
  max-width: 1000px;
  margin-inline: auto;
}

/* ---------- floor stage ---------- */

.stage-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.stage-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}
.stage-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: 1.2;
}
.stage-card p {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  max-width: 52ch;
}
.stage-rot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm) !important;
  color: var(--c-text-brand) !important;
}
.stage-rot .xmark {
  color: var(--c-brand);
}
.stage-rooms {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}

.yy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.yy-card {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.yy-card h3 {
  font-size: var(--fs-h4);
  color: var(--c-text-brand);
}
.yy-card p {
  color: var(--c-text-secondary);
}

/* ---------- spec table ---------- */

.spec {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.spec-row {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-block-end: 1px solid var(--c-border);
  font-size: var(--fs-md);
}
.spec-row:last-child {
  border-block-end: 0;
}
.spec dt {
  color: var(--c-text-muted);
}
.spec dd {
  margin: 0;
  font-weight: var(--w-strong);
  color: var(--c-text);
}

/* ---------- menu page ---------- */

.menu-shell {
  padding-block-end: var(--sp-9);
}

/* The filter bar sticks under the header so the category chooser is always
   one thumb away — the brief's main ask for this page. */
.menu-filters {
  position: sticky;
  inset-block-start: var(--header-h);
  z-index: 40;
  background: var(--c-surface);
  border-block-end: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
  padding-block: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.menu-filter-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.menu-filter-label {
  flex: none;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  width: 4.5rem;
}
.chip-row {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--sp-1);
  scroll-snap-type: x proximity;
}
.chip-row::-webkit-scrollbar {
  display: none;
}
.chip-row .chip {
  flex: none;
  scroll-snap-align: start;
  cursor: pointer;
}
.chip[aria-pressed='true'] {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-on-brand);
  font-weight: var(--w-strong);
}

.menu-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding-block: var(--sp-6) var(--sp-4);
}
.menu-note .xmark {
  color: var(--c-brand);
}

.menu-venue-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  padding-block: var(--sp-7) var(--sp-4);
}
.menu-venue-title .xmark {
  color: var(--c-brand);
}
.menu-group {
  scroll-margin-top: calc(var(--header-h) + 7rem);
  padding-block-end: var(--sp-7);
}
.menu-group-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-h4);
  padding-block-end: var(--sp-3);
  border-block-end: 2px solid var(--c-border-brand);
  margin-block-end: var(--sp-5);
  scroll-margin-top: calc(var(--header-h) + 7rem);
}
.menu-group-title .ico {
  color: var(--c-brand);
}
.menu-group-count {
  margin-inline-start: auto;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: var(--fw-regular);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.dish {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.dish:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}

/* No dish photography exists yet — not one plate in the 66 supplied files.
   An arch-framed panel carrying the Shamseh Chalipa is on-brand, weighs
   nothing, and is obviously a placeholder rather than a fake photo.

   Deliberately light rather than the venue's own accent: those run from
   charcoal to near-black, and a wall of black rectangles reads as broken
   images, not as "photo pending". */
.dish-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--c-brand-subtle);
  border-radius: var(--arch);
  margin: var(--sp-3) var(--sp-3) 0;
  overflow: hidden;
}
.dish-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 5 5'%3E%3Cpath fill='%230F2A12' fill-rule='evenodd' d='M2 0H3V1H4V2H5V3H4V4H3V5H2V4H1V3H0V2H1V1H2Z M2 2H3V3H2Z'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.06;
}
/* A thin band of the venue's own accent, so the card still says which
   kitchen it came from without swallowing the whole panel. */
.dish-media::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: var(--sp-1);
  background: var(--v-a, var(--green-700));
}
.dish-mark {
  position: relative;
  color: var(--c-brand);
  opacity: 0.28;
}
.dish-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  flex: 1;
}
.dish-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.dish-name {
  font-size: var(--fs-md);
  font-weight: var(--w-strong);
  font-family: var(--font-body);
}
.dish-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}
.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-block-start: auto;
  padding-block-start: var(--sp-3);
}
.dish-cat {
  font-weight: var(--fw-regular);
}

.menu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-9) var(--sp-5);
  color: var(--c-text-muted);
}
.menu-empty .xmark {
  color: var(--c-border-strong);
}

.menu-teaser {
  margin-block-end: var(--sp-5);
  flex-wrap: wrap;
  overflow: visible;
}

/* ---------- reservation ---------- */

.reserve-shell {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-7);
  box-shadow: var(--sh-1);
}
.reserve-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.reserve-band-inner p {
  color: var(--c-text-secondary);
  max-width: 56ch;
}
.band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-4);
}

/* ---------- gallery ---------- */

/* A real editorial mosaic on a repeating six-column rhythm: wide
   establishing shots next to narrow vertical details. */
.sec-gallery .gal {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: var(--sp-3);
}
.sec-gallery .gal-item {
  aspect-ratio: 3 / 4;
}
.sec-gallery .gal-item:nth-child(6n + 1) {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}
.sec-gallery .gal-item:nth-child(6n + 2),
.sec-gallery .gal-item:nth-child(6n + 3) {
  grid-column: span 2;
}
.sec-gallery .gal-item:nth-child(6n + 4) {
  grid-column: span 2;
  aspect-ratio: 3 / 5;
}
.sec-gallery .gal-item:nth-child(6n + 5) {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}
.sec-gallery .gal-item:nth-child(6n) {
  grid-column: span 6;
  aspect-ratio: 21 / 9;
}
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.gal-item {
  aspect-ratio: 3 / 4;
}

/* ---------- news, quotes, contact, social ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-media {
  aspect-ratio: 4 / 3;
  margin: var(--sp-3) var(--sp-3) 0;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block-end: var(--sp-3);
}
.news-title {
  font-size: var(--fs-h4);
  margin-block-end: var(--sp-2);
}
.news-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.quote blockquote p {
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-block-start: auto;
  padding-block-start: var(--sp-3);
  font-size: var(--fs-sm);
}
.quote-name {
  font-weight: var(--w-strong);
}
.quote-venue {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-brand);
}
.quote .xmark {
  color: var(--c-brand);
}
.quote .rating .ico {
  fill: currentColor;
  stroke: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-7);
  align-items: start;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.contact-line {
  display: flex;
  gap: var(--sp-4);
}
.contact-line .ico {
  color: var(--c-brand);
  flex: none;
}
.contact-line p {
  margin-block-start: var(--sp-1);
}
.map-ph {
  flex-direction: column;
  gap: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-wrap {
  margin-block-start: var(--sp-7);
}
.social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.social-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.social-item:hover {
  border-color: var(--c-border-brand);
  box-shadow: var(--sh-1);
}
.social-item .ico {
  color: var(--c-brand);
}
.social-label {
  font-weight: var(--w-strong);
}
.social-handle {
  margin-inline-start: auto;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* ---------- footer ---------- */

.site-ftr {
  padding-block: 0 var(--sp-7);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-7);
  position: relative;
}
.ftr-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}
.ftr-brand .mark {
  color: var(--c-footer-text);
  opacity: 0.9;
}
.ftr-tagline {
  font-weight: var(--w-strong);
}
.ftr-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.ftr-col h5 {
  opacity: 0.9;
}
.ftr-col a {
  display: block;
}
.ftr-credits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
}
.ftr-credit {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.ftr-credit-label {
  opacity: 0.7;
}
.ftr-credits .lnk {
  color: inherit;
}

/* ---------- reveal ----------
   The visible end state is a class, never an interpolated inline value, so
   a throttled or interrupted transition can only fail towards "fully
   visible". site.js adds .reveal, then .is-in when the element is in view;
   neither class is ever authored into the HTML. */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .dish-grid,
  .news-grid,
  .gal {
    grid-template-columns: repeat(3, 1fr);
  }
  .floor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  /* A 12-column grid keeps its 11 gaps no matter what the children span, so
     at --sp-7 it can never be narrower than 528px. Collapsing the track list
     — not just the children — is what actually makes these fit. */
  .split,
  .vrow {
    grid-template-columns: 1fr;
  }
  .split-head,
  .split-body,
  .vrow-media,
  .vrow-text {
    grid-column: 1 / -1;
  }
  .split-sticky .split-head {
    position: static;
  }
  .vrow.is-flipped .vrow-media,
  .vrow.is-flipped .vrow-text {
    order: 0;
  }
  .vrow .venue-img {
    aspect-ratio: 16 / 10;
  }
  .stage-grid,
  .draw-grid,
  .contact-grid,
  .ftr-grid,
  .yy-grid {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .dish-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sec-gallery .gal {
    grid-template-columns: repeat(4, 1fr);
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

@media (max-width: 900px) {
  .hdr-burger {
    display: inline-flex;
  }
  .hdr-nav {
    display: none;
  }
  .hdr-inner {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .sec {
    padding-block: var(--sp-8);
  }
  .phero {
    min-height: 46vh;
  }
  .phero.is-tall {
    min-height: 86vh;
  }
  /* The horizontal scrim exists to darken the right half of a wide viewport,
     where the RTL headline sits over pale stone. On a phone that "half" is
     the whole screen, so the two scrims stack and the photograph disappears
     into near-black. Below this breakpoint the vertical pass carries it. */
  .phero-media::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      rgba(0, 0, 0, 0.78) 100%
    );
  }
  .hero-stats {
    margin-block-start: var(--sp-6);
  }
  .hero-stats .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats .stat:nth-child(3) {
    border-inline-start: 0;
  }
  .hero-stats .stat:nth-child(n + 3) {
    border-block-start: 1px solid var(--c-border);
  }
  .floor-grid,
  .dish-grid,
  .news-grid,
  .social,
  .ftr-cols {
    grid-template-columns: 1fr;
  }
  .sec-gallery .gal,
  .gal {
    grid-template-columns: repeat(2, 1fr);
  }
  .chapter {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .reserve-shell {
    padding: var(--sp-4);
  }
  .hdr-cta {
    display: none;
  }
  .menu-filter-row {
    padding-inline: var(--sp-4);
  }
  .menu-filter-label {
    display: none;
  }
  /* The design system requires interactive targets of at least 44px. On a
     phone the logo and the dense footer lists fall under that, so they get
     the room there and only there. */
  .site .logo {
    min-height: 44px;
  }
  .site .ftr-col a {
    line-height: 44px;
  }
  .ftr-credits {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .sec-gallery .gal-item:nth-child(6n + 1),
  .sec-gallery .gal-item:nth-child(6n + 5),
  .sec-gallery .gal-item:nth-child(6n) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
  .sec-gallery .gal-item:nth-child(6n + 4) {
    aspect-ratio: 3 / 4;
  }
  .dish-media {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   MOTION
   ------------------------------------------------------------
   Two rules govern everything below.

   1. Motion never owns visibility. Every animation here moves
      transform or filter only — nothing fades content in — so a
      dropped frame or a killed animation can never leave text
      unreadable.
   2. Every interactive state is reachable by keyboard. Anything
      that responds to :hover responds identically to
      :focus-visible, because a hover-only affordance does not
      exist for someone tabbing through the page.
   ============================================================ */

/* ---------- hero: a very slow drift ----------
   The brief asked for a *very* small zoom. 4% over 24 seconds is
   below the threshold where the eye reads it as movement — it is
   felt as the image breathing rather than seen as an animation.
   It runs once and holds, so nothing drifts while someone reads. */

@keyframes hero-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.phero-media img {
  transform-origin: 50% 45%;
  animation: hero-drift 24s var(--ease) forwards;
  will-change: transform;
}

/* ---------- images: lift and zoom together ---------- */

/* The frame clips, the image scales inside it. Scaling the card
   itself would soften its text; scaling only the photo keeps every
   glyph on the pixel grid. */
.floor-card-media img,
.gal-item img,
.news-media img,
.venue-img img {
  transition: transform var(--dur-slow) var(--ease);
}
.floor-card:hover .floor-card-media img,
.floor-card:focus-visible .floor-card-media img,
.gal-item:hover img,
.news-card:hover .news-media img,
.vrow:hover .venue-img img {
  transform: scale(1.06);
}

.gal-item {
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.gal-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

/* ---------- cards ---------- */

.floor-card:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: var(--sp-2);
  transform: translateY(-4px);
}

.dish:focus-within {
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
/* The placeholder mark answers the pointer too, so a card without a
   photograph still feels alive rather than inert. */
.dish-mark {
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-base) var(--ease);
}
.dish:hover .dish-mark {
  transform: rotate(45deg) scale(1.15);
  opacity: 0.42;
}

.quote,
.social-item,
.stage-rooms,
.yy-card {
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}
.quote:hover,
.yy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.social-item:hover,
.social-item:focus-visible {
  transform: translateY(-2px);
}

.draw a {
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.draw a:hover,
.draw a:focus-visible {
  border-color: var(--c-border-brand);
  box-shadow: var(--sh-2);
}
/* Drawings are line-work: a scale would blur them, so the frame
   responds instead of the sheet. */
.draw a:hover img {
  transform: none;
}

/* ---------- links and chips ---------- */

.chip {
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover {
  transform: translateY(-2px);
}

.hdr-nav a,
.hdr-drawer-nav a,
.ftr-col a {
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.menu-venue-title .xmark,
.menu-group-title .ico {
  transition: transform var(--dur-base) var(--ease);
}
.menu-group:hover .menu-group-title .ico {
  transform: rotate(45deg);
}

/* ---------- reduced motion ----------
   Everything above is decoration. Under a reduced-motion request
   the page keeps every layout and colour and simply stops moving. */

@media (prefers-reduced-motion: reduce) {
  .phero-media img {
    animation: none;
    transform: none;
  }
  .floor-card:hover .floor-card-media img,
  .floor-card:focus-visible .floor-card-media img,
  .gal-item:hover img,
  .news-card:hover .news-media img,
  .vrow:hover .venue-img img,
  .dish:hover .dish-mark,
  .menu-group:hover .menu-group-title .ico {
    transform: none;
  }
  .gal-item:hover,
  .quote:hover,
  .yy-card:hover,
  .floor-card:hover,
  .floor-card:focus-visible,
  .dish:hover,
  .dish:focus-within,
  .chip:hover,
  .social-item:hover,
  .social-item:focus-visible {
    transform: none;
  }
}

/* ============================================================
   FLOOR LAYOUTS
   ------------------------------------------------------------
   The four levels share every token and component but not their
   composition. Each arrangement answers to what the level is.
   ============================================================ */

.stage-card.is-centred {
  align-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 68ch;
}
.stage-card.is-centred p {
  max-width: none;
}

/* ---------- −۱ · descent ----------
   Full-bleed bands stacked like steps down. Each image is a scene at
   the width of the viewport, not a thumbnail in a grid. */

.descent-bands {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  margin-block-start: var(--sp-7);
}
.band {
  margin: 0;
  position: relative;
}
.band-media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--c-bg-inset);
}
.band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.band:hover .band-media img {
  transform: scale(1.04);
}
.band-cap {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5) 0;
  max-width: var(--container);
  margin-inline: auto;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.band-num {
  font-family: ui-monospace, monospace;
  color: var(--c-text-brand);
  flex: none;
}
/* Each band sits a little deeper than the one before it — the page
   itself descends. */
.band:nth-child(2) .band-media {
  aspect-ratio: 2 / 1;
}
.band:nth-child(3) .band-media {
  aspect-ratio: 16 / 9;
}
.band:nth-child(4) .band-media {
  aspect-ratio: 3 / 2;
}

/* ---------- ۰ · embrace ----------
   Mirrored pairs. The only symmetric page in the set. */

.yy-rooms {
  margin-block-start: var(--sp-6);
  max-width: 46ch;
  margin-inline: auto;
}
.page-floors .yy-card {
  text-align: center;
  align-items: center;
}
.gal-even {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.gal-even .gal-item {
  aspect-ratio: 4 / 3;
}

/* ---------- +۱ · presence ----------
   The mihrab: the mirrored arch on the building's central axis. The
   design system reserves .arch-mihrab for one element per page, never
   repeated — this is the page it belongs to. */

.mihrab-wrap {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.mihrab-wrap .arch-mihrab {
  aspect-ratio: 1 / 1.7;
}
.mihrab-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}
.mihrab-copy p {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  max-width: 52ch;
}

/* Two venues sharing a floor are peers, not a sequence. */
.venue-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.vcard {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.vcard:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.vcard .venue-img {
  aspect-ratio: 16 / 10;
  margin: var(--sp-3) var(--sp-3) 0;
}
.vcard-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
}
.vcard-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-black);
  line-height: 1.2;
}

/* ---------- بام · light ----------
   Horizontal. The only panoramic composition, because the roof is the
   only level with no ceiling. */

.pano {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-6) max(var(--sp-5), calc((100vw - var(--container)) / 2 + var(--sp-5)));
  scrollbar-width: thin;
}
.pano-item {
  flex: 0 0 min(760px, 86vw);
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pano-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--c-bg-inset);
}
.pano-item figcaption {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.offer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.offer .ico {
  color: var(--c-brand);
}
.offer-title {
  font-size: var(--fs-h4);
}
.offer p {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.offer-rooms {
  margin-block-start: var(--sp-7);
  max-width: 46ch;
}

@media (max-width: 1024px) {
  .mihrab-wrap,
  .venue-pair,
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .mihrab-wrap .arch-mihrab {
    aspect-ratio: 2 / 1;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .band-media,
  .band:nth-child(2) .band-media,
  .band:nth-child(3) .band-media,
  .band:nth-child(4) .band-media {
    aspect-ratio: 4 / 3;
  }
  .gal-even {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .band:hover .band-media img,
  .vcard:hover,
  .offer:hover {
    transform: none;
  }
}
