/* Generated from tokens.json by build.mjs. Do not edit. */
:root {
  --c-bg: #11130e;
  --c-surface: #191c15;
  --c-surface-2: #21251b;
  --c-wall: #2c2d21;
  --c-border: #33372a;
  --c-border-input: #85886f;
  --c-text: #ece5d3;
  --c-text-muted: #b3ae98;
  --c-text-faint: #9c9981;
  --c-accent: #b4ba93;
  --c-on-accent: #14170e;
  --c-gold: #c9aa6b;
  --c-danger: #e69a8a;
  --c-success: #a9c79a;
  --c-todo: #e0b25c;
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --s-0: 0px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 176px;
  --r-none: 0px;
  --r-sm: 2px;
  --shadow-panel: 0 30px 60px rgba(0,0,0,.45);
  --shadow-plaque: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 24px rgba(0,0,0,.35);
  --m-fast: 200ms;
  --m-base: 600ms;
  --m-slow: 1400ms;
  --m-ease: cubic-bezier(.2,.7,.2,1);
}
/* amiraik.com
   Tokens (--c-*, --f-*, --s-*, --shadow-*, --m-*) are generated from design/tokens.json
   and prepended to this file by build.mjs. */

@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --wrap: 1320px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --header-h: 88px;
  --hair: 1px solid var(--c-border);
  --hair-gold: color-mix(in srgb, var(--c-gold) 34%, transparent);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html[data-motion='on'] { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem/1.7 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul[role='list'], ol[role='list'] { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--c-gold); color: var(--c-on-accent); }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--c-accent); color: var(--c-on-accent); text-decoration: none; font-size: 0.875rem; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 1.2rem + 4.2vw, min(5.2rem, 10.5svh)); line-height: 1; font-weight: 300; }
.display em { display: block; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 300; color: color-mix(in srgb, var(--c-text) 82%, var(--c-gold)); }
.h1 { font-size: clamp(2.7rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1; font-weight: 300; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.08; font-weight: 300; }
.h3 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.2; }
.lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); line-height: 1.7; color: var(--c-text-muted); max-width: 46ch; }
.prose { max-width: 62ch; color: var(--c-text-muted); }
.prose p + p { margin-top: 1.25em; }
.prose p:first-child { color: var(--c-text); }
.statement { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1.15rem + 2.1vw, 3rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: balance; max-width: 24em; }
.label { font: 400 0.6875rem/1.45 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-text-faint); }
.label--gold { color: var(--c-gold); }
/* The artist writes her name in lowercase, "amiraik" (Amira's request 6aefb5b3), even inside uppercase labels. */
.artist-name { text-transform: none; }
.label b { font-weight: 400; color: var(--c-text-muted); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 28px; min-height: 52px; padding: 14px 24px;
  background: var(--c-accent); color: var(--c-on-accent); border: 1px solid var(--c-accent); border-radius: var(--r-sm);
  font: 500 0.9rem/1.2 var(--f-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease), border-color var(--m-fast) var(--m-ease);
}
.btn::after { content: '↗' / ''; font-family: var(--f-mono); font-size: 0.95em; transition: transform var(--m-fast) var(--m-ease); }
.btn:hover { background: var(--c-text); border-color: var(--c-text); }
.btn:hover::after { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: color-mix(in srgb, var(--c-text) 38%, transparent); }
.btn--ghost:hover { background: transparent; border-color: var(--c-text); color: var(--c-text); }
.btn--plain::after { content: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.link { display: inline-flex; align-items: baseline; gap: 10px; font-size: 0.9rem; text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--hair-gold); transition: border-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
.link::after { content: '→' / ''; font-family: var(--f-mono); transition: transform var(--m-fast) var(--m-ease); }
.link:hover { border-color: var(--c-gold); color: var(--c-gold); }
.link:hover::after { transform: translateX(4px); }
.link--back::after { content: none; }
.link--back::before { content: '←' / ''; font-family: var(--f-mono); }

.todo { display: inline-block; padding: 2px 8px; border: 1px dashed color-mix(in srgb, var(--c-todo) 70%, transparent); color: var(--c-todo); font: 400 0.6875rem/1.5 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--r-sm); vertical-align: middle; }
.todo-block { padding: 20px 22px; border: 1px dashed color-mix(in srgb, var(--c-todo) 55%, transparent); color: var(--c-text-muted); font-size: 0.9rem; max-width: 62ch; }
.todo-block .todo { border: 0; padding: 0; margin-bottom: 6px; display: block; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
/* The blurred ground sits on a pseudo-element: a backdrop-filter on the header itself would trap the fixed small-screen menu inside it. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); opacity: 0; transition: opacity var(--m-base) var(--m-ease); }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); border-bottom: 1px solid color-mix(in srgb, var(--c-text) 13%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
/* Amiraik's own script wordmark, used as a mask so it takes the page's ivory. */
.brand__sig { display: block; flex: none; width: 124px; aspect-ratio: 720 / 215; background: currentColor; -webkit-mask: url('/assets/signature.ceddaae520.webp') center / contain no-repeat; mask: url('/assets/signature.ceddaae520.webp') center / contain no-repeat; }
/* Her signature again at the foot of every page, as a sign-off (Amira's request 095137b8). */
.brand__sig--foot { width: clamp(132px, 12vw, 168px); color: var(--c-text); }
.brand__sub { display: block; padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent); font: 400 0.5625rem/2.4 var(--f-mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-text-faint); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__link { position: relative; padding-block: 10px; font-size: 0.875rem; color: var(--c-text-muted); text-decoration: none; transition: color var(--m-fast) var(--m-ease); }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--c-gold); transform: scaleX(0); transform-origin: left; transition: transform var(--m-base) var(--m-ease); }
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--c-text); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.motion-toggle, .menu-toggle { min-height: 40px; padding: 8px 16px; background: transparent; border: 1px solid color-mix(in srgb, var(--c-text) 34%, transparent); border-radius: var(--r-sm); font: 400 0.6875rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text); cursor: pointer; white-space: nowrap; transition: border-color var(--m-fast) var(--m-ease); }
.motion-toggle:hover, .menu-toggle:hover { border-color: var(--c-text); }
.menu-toggle { display: none; }
/* Background music: a small square switch at the right end of the header, after the motion switch (or after Menu on
   a phone, where the nav is a fixed overlay). In the header's own flow, so it can never sit on another control. */
.brand { margin-right: auto; }
.music-toggle { display: none; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid color-mix(in srgb, var(--c-text) 34%, transparent); border-radius: var(--r-sm); font: 400 1.05rem/1 var(--f-display); color: var(--c-text); cursor: pointer; transition: border-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
html.js .music-toggle { display: grid; }
.music-toggle:hover { border-color: var(--c-text); }
.music-toggle[aria-pressed='true'] { color: var(--c-gold); border-color: var(--c-gold); }
.music-credit { margin-top: 18px; color: var(--c-text-faint); text-transform: none; letter-spacing: 0.04em; line-height: 1.6; }
.music-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html:not(.js) .music-credit { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: inline-block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 32px var(--gutter) 40px; background: var(--c-bg); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity var(--m-fast) var(--m-ease), visibility 0s linear var(--m-fast); }
  .site-header.is-open .nav { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__link { display: block; padding-block: 14px; font: 300 2.1rem/1.1 var(--f-display); color: var(--c-text); border-bottom: var(--hair); }
  .nav__link::after { content: none; }
  .brand__sub { display: none; }
}

/* ---------- walls ---------- */
.wall { position: relative; isolation: isolate; background: radial-gradient(90% 70% at 28% 0%, color-mix(in srgb, var(--c-gold) 13%, transparent), transparent 62%), linear-gradient(180deg, var(--c-wall) 0%, color-mix(in srgb, var(--c-wall) 55%, var(--c-bg)) 58%, var(--c-bg) 100%); }
.wall::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: 0.16; mix-blend-mode: soft-light; pointer-events: none; }
.wall--deep { background: radial-gradient(80% 60% at 70% 0%, color-mix(in srgb, var(--c-gold) 8%, transparent), transparent 60%), linear-gradient(180deg, var(--c-surface-2) 0%, var(--c-bg) 100%); }
.room { background: var(--c-bg); }
.room--raised { background: var(--c-surface); }
.section { padding-block: clamp(72px, 10vw, 168px); }
.wall.section { border-top: 1px solid color-mix(in srgb, var(--c-gold) 16%, transparent); }
.section--tight { padding-block: clamp(56px, 7vw, 112px); }
.rule { border: 0; border-top: var(--hair); margin: 0; }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 700px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- the hang: light, frame, wall label ---------- */
.hang { container-type: inline-size; position: relative; margin: 0; }
.hang__light { position: absolute; z-index: 0; left: -30%; right: -30%; top: -30%; height: 100%; background: radial-gradient(closest-side, rgba(255, 233, 186, 0.19), rgba(255, 233, 186, 0.07) 50%, transparent); pointer-events: none; }
.frame {
  --fk: 1; /* width of this frame's moulding relative to the standard one */
  --fw: calc(clamp(15px, 9.2cqw, 74px) * var(--fk));
  position: relative; z-index: 1; display: block; border: var(--fw) solid transparent;
  border-image: url('/assets/frame.7b1dbac0cc.webp') 150 / var(--fw) round;
  background: #0b0c08 padding-box;
  filter: drop-shadow(0 calc(var(--fw) * 0.42) calc(var(--fw) * 0.5) rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
  text-decoration: none;
}
.frame--slim { --fw: calc(clamp(13px, 8cqw, 48px) * var(--fk)); }
/* The frame family (tools/make-frame.mjs): each work hangs in one, neighbours never share (frameOf in src/site.mjs). */
.frame--v2 { border-image-source: url('/assets/frame-2.6c053e1e9e.webp'); --fk: 1.06; } /* champagne gold, ribbon frieze, corner rosettes */
.frame--v3 { border-image-source: url('/assets/frame-3.b257763525.webp'); --fk: 0.86; } /* old bronze gold, plain scoop and reeds */
.frame--v4 { border-image-source: url('/assets/frame-4.328ebc510f.webp'); --fk: 0.93; } /* black lacquer, gilded lip and pearl bead */
.frame--v5 { border-image-source: url('/assets/frame-5.871f8c770c.webp'); } /* antique silver gilt, carved acanthus */
.frame img { width: 100%; }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), inset calc(var(--fw) * 0.1) calc(var(--fw) * 0.14) calc(var(--fw) * 0.26) rgba(0, 0, 0, 0.42); }
.frame__blank { display: grid; place-items: center; padding: 12%; text-align: center; background: var(--noise), linear-gradient(160deg, #3a382c, #24241b); background-blend-mode: soft-light, normal; color: var(--c-text-muted); }
.frame__zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.frame__zoom:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

.plaque { display: grid; gap: 6px; margin-top: clamp(22px, 5cqw, 38px); padding-left: 16px; border-left: 1px solid var(--hair-gold); }
.plaque__title { font: 400 clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem)/1.2 var(--f-display); text-decoration: none; }
.plaque__h { margin: 0; font: inherit; }
.plaque__title::after { content: ''; position: absolute; inset: 0; z-index: 2; }
a.plaque__title:hover { color: var(--c-gold); }
.hang .frame { transition: filter var(--m-base) var(--m-ease); }
.hang:has(a.plaque__title:hover) .frame { filter: drop-shadow(0 calc(var(--fw) * 0.5) calc(var(--fw) * 0.62) rgba(0, 0, 0, 0.56)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) brightness(1.07); }
.plaque__meta { color: var(--c-text-faint); }
.plaque__sold { display: inline-flex; align-items: center; gap: 8px; color: var(--c-gold); }
.plaque__sold::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.matted { position: relative; z-index: 1; margin: 0; padding: clamp(8px, 1.2vw, 14px); border: 1px solid var(--hair-gold); background: var(--c-surface); box-shadow: var(--shadow-panel); }

/* ---------- hero ---------- */
.hero { min-height: min(100svh, 1040px); display: grid; align-items: end; padding-top: calc(var(--header-h) + clamp(24px, 3.4svh, 48px)); padding-bottom: clamp(36px, 6svh, 80px); overflow: clip; }
.hero__beam { position: absolute; inset: -10% -10% 0 -10%; z-index: -1; background: linear-gradient(118deg, transparent 18%, rgba(255, 236, 196, 0.075) 33%, rgba(255, 236, 196, 0.02) 47%, transparent 56%); pointer-events: none; }
html[data-motion='on'] .hero__beam { animation: beam 16s ease-in-out infinite alternate; }
@keyframes beam { from { opacity: 0.65; transform: translateX(-1.5%); } to { opacity: 1; transform: translateX(1.5%); } }
.hero__meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 6svh, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 104px); align-items: end; }
.hero__text { display: grid; gap: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(0px, 3vw, 44px); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.hero__art { width: min(100%, 560px, 56svh); justify-self: end; }
.hero__side { position: absolute; left: calc(var(--gutter) * 0.32); bottom: clamp(36px, 6svh, 80px); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
@media (max-width: 1100px) { .hero__side { display: none; } }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; justify-self: center; width: min(100%, 430px); }
  .hero__meta span:last-child { display: none; }
}

/* ---------- page head ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 128px)); padding-bottom: clamp(48px, 7vw, 104px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 88px); align-items: end; }
.page-head__title { display: grid; gap: 22px; }
.page-head__body { display: grid; gap: 18px; padding-bottom: 8px; }
@media (max-width: 860px) { .page-head__grid { grid-template-columns: 1fr; } }

/* ---------- venues ---------- */
.venues { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--hair); margin-top: clamp(40px, 6vw, 80px); }
.venues li { display: grid; gap: 10px; padding: 28px 28px 4px 0; }
.venues li + li { padding-left: 28px; border-left: var(--hair); }
.venues__name { font: 400 clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem)/1.2 var(--f-display); }
@media (max-width: 700px) { .venues { grid-template-columns: 1fr; } .venues li + li { padding-left: 0; border-left: 0; border-top: var(--hair); } .venues li { padding-bottom: 24px; } }

/* ---------- gallery walls ---------- */
.hanging { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 9vw, 150px) clamp(40px, 9vw, 150px); align-items: start; }
.hanging > :nth-child(even) { margin-top: clamp(0px, 10vw, 150px); }
.hanging > * { width: min(100%, 520px); justify-self: center; }
.hanging--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 80px); }
.hanging--three > :nth-child(even) { margin-top: 0; }
.hanging--three > :nth-child(3n + 2) { margin-top: clamp(0px, 6vw, 90px); }
.hanging--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px); }
.hanging--four > :nth-child(even) { margin-top: clamp(0px, 5vw, 72px); }
@media (max-width: 1000px) { .hanging--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hanging--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hanging--three > :nth-child(3n + 2) { margin-top: 0; } .hanging--three > :nth-child(even) { margin-top: clamp(0px, 8vw, 90px); } }
@media (max-width: 620px) { .hanging, .hanging--three, .hanging--four { grid-template-columns: 1fr; gap: 72px; } .hanging > *, .hanging--three > *, .hanging--four > * { margin-top: 0 !important; width: min(100%, 420px); } }
.hanging__note { grid-column: 1 / -1; width: 100%; margin-top: 0 !important; justify-self: stretch; }

/* ---------- the gallery hall: one long lit wall to walk along ----------
   The track scrolls sideways (swipe, trackpad, wheel, arrow keys, the walk buttons). Each bay carries the
   painting's proportions (--r) and its real-size scale (--k); site.js sets --p (-1 left ... 1 right of
   centre) and --a (its distance) so the work in front of you is the one in the light. Frames come from
   hang(), so each painting keeps its own frame of the family. */
.hall {
  --bar: 76px;
  --room: clamp(500px, calc(100svh - var(--header-h) - var(--bar)), 900px);
  --floor: calc(var(--room) * 0.2);
  --zone: calc(var(--room) - var(--floor));
  --art: min(calc(var(--zone) * 0.56), 500px);
  display: flex; flex-direction: column; padding-top: var(--header-h); background: var(--c-bg);
}
.hall__room { position: relative; height: var(--room); overflow: hidden; isolation: isolate; background: #15160f; }
.hall__wall {
  position: absolute; inset: 0 0 var(--floor) 0; z-index: -2;
  background:
    var(--noise),
    radial-gradient(70% 55% at 50% 38%, rgba(255, 234, 196, 0.07), transparent 70%),
    linear-gradient(180deg, #17180f 0%, #26271c 9%, var(--c-wall) 34%, #2a2b1f 78%, #222319 100%);
  background-size: 240px 240px, auto, auto;
  background-position: calc(var(--walk, 0) * -1px) 0, 0 0, 0 0;
  background-blend-mode: soft-light, normal, normal;
}
/* The ceiling track the lamps hang from, and the skirting board where wall meets floor. */
.hall__wall::before { content: ''; position: absolute; left: 0; right: 0; top: 4.5%; height: 3px; background: linear-gradient(180deg, #0c0d09, #1d1e15); box-shadow: 0 1px 0 rgba(201, 170, 107, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35); }
.hall__wall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(10px, 1.6vw, 16px); background: linear-gradient(180deg, #1c1c14, #101109); border-top: 1px solid rgba(201, 170, 107, 0.2); box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.28); }
/* Polished marble, as in the halls of the Louvre: no joints and no chequer, one great cream slab with
   its veins book-matched (each half mirrors the other), seen in perspective. It slides with your walk. */
.hall {
  --slab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='1600' height='1000'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0016' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .46 0 0 0 0 .39 0 0 0 .45 0'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0026 .0065' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .22 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 .02 .22 .85 .22 .02 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cg id='s'%3E%3Crect width='800' height='1000' fill='%23c4baa7'/%3E%3Crect width='800' height='1000' filter='url(%23c)'/%3E%3Crect width='800' height='1000' filter='url(%23v)'/%3E%3C/g%3E%3Cuse xlink:href='%23s' transform='matrix(-1 0 0 1 1600 0)'/%3E%3C/svg%3E");
}
.hall__floor {
  position: absolute; z-index: -2; left: -60%; right: -60%; top: var(--zone); height: calc(var(--floor) * 1.5);
  transform-origin: 50% 0; transform: perspective(calc(var(--floor) * 2.6)) rotateX(56deg);
  background:
    linear-gradient(180deg, rgba(255, 236, 205, 0.14), transparent 45%),
    var(--slab),
    #b3a995;
  background-size: auto, 1600px 1000px, auto;
  background-position: 0 0, calc(50% + var(--walk, 0) * -1px) 0, 0 0;
}
/* The polish: the room falling darker towards you; the lamps' pools come from each bay. */
.hall__floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 28, 22, 0.12), rgba(12, 12, 9, 0.6) 85%); pointer-events: none; }
/* The far ends of the room fall into shadow; the light is where you stand. */
.hall__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(9, 10, 7, 0.7), transparent 13%, transparent 87%, rgba(9, 10, 7, 0.7)), linear-gradient(180deg, rgba(9, 10, 7, 0.45), transparent 12%); }

.hall__track {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter);
  padding-inline: max(var(--gutter), calc(50% - 600px)) max(var(--gutter), calc(50% - 260px));
}
.hall__track::-webkit-scrollbar { display: none; }
.hall__track:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -6px; border-radius: 0; }
@media (pointer: coarse) { .hall__track { scroll-snap-type: x mandatory; } }

.hall__entrance, .hall__exit { position: relative; flex: none; height: var(--zone); display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; }
.hall__entrance { width: min(84vw, 560px); margin-right: clamp(24px, 6vw, 120px); }
.hall__intro { display: grid; gap: clamp(14px, 2.2svh, 22px); padding-top: calc(var(--zone) * 0.04); }
.hall__lead { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); }
.hall__prose { font-size: 0.95rem; }
.hall__hint { display: inline-flex; align-items: center; gap: 14px; color: var(--c-text-muted); }
.hall__hint::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, var(--c-gold), transparent); }
html[data-motion='on'] .hall__hint::after { animation: hall-hint 2.8s var(--m-ease) infinite; transform-origin: left; }
@keyframes hall-hint { 0%, 100% { transform: scaleX(0.45); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }
/* A low bench in front of the wall text, as at the door of a museum room. */
.hall__bench { position: absolute; left: 8%; top: calc(100% + var(--floor) * 0.26); width: min(62%, 300px); height: 14px; border-radius: 2px; background: linear-gradient(180deg, #4a3523, #2c1f14 70%, #1b130c); box-shadow: 0 1px 0 rgba(255, 226, 180, 0.14) inset, 0 18px 22px -6px rgba(0, 0, 0, 0.7); }
.hall__bench::before, .hall__bench::after { content: ''; position: absolute; top: 100%; width: 10px; height: calc(var(--floor) * 0.2); background: linear-gradient(90deg, #120d08, #24190f, #120d08); }
.hall__bench::before { left: 9%; }
.hall__bench::after { right: 9%; }
.hall__exit { width: min(70vw, 340px); gap: 18px; align-items: flex-start; margin-left: clamp(16px, 4vw, 80px); }
.hall__again { background: none; border: 0; border-bottom: 1px solid var(--hair-gold); border-radius: 0; cursor: pointer; padding: 6px 0; }

.hall__works { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.hall__bay, .hall__easel { position: relative; flex: none; height: var(--zone); display: flex; align-items: center; justify-content: center; padding: calc(var(--zone) * 0.05) clamp(34px, 6.5vw, 120px) 0; scroll-snap-align: center; }
/* Light from the lamp above: a soft cone on the wall and a pool on the floor. */
.hall__bay::before, .hall__easel::before { content: ''; position: absolute; z-index: -1; inset: 4% -14% -2% -14%; background: radial-gradient(50% 82% at 50% 0%, rgba(255, 232, 190, 0.2), rgba(255, 232, 190, 0.06) 55%, transparent 78%); opacity: calc(1 - var(--a, 0) * 0.5); pointer-events: none; }
.hall__bay::after, .hall__easel::after { content: ''; position: absolute; z-index: -1; left: 6%; right: 6%; top: calc(100% + var(--floor) * 0.04); height: calc(var(--floor) * 0.6); background: radial-gradient(closest-side, rgba(255, 232, 196, 0.2), transparent); opacity: calc(1 - var(--a, 0) * 0.55); pointer-events: none; }
.hall__lamp { position: absolute; top: calc(4.5% + 3px); left: 50%; width: 30px; height: 18px; transform: translateX(-50%); border-radius: 3px 3px 9px 9px; background: linear-gradient(180deg, #0d0e0a, #26271d 70%, #3a3423); box-shadow: 0 6px 16px rgba(255, 228, 180, 0.12); }
.hall__lamp::before { content: ''; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 4px; transform: translateX(-50%); border-radius: 50%; background: rgba(255, 238, 205, 0.75); filter: blur(1.5px); }
/* Width from the wall height: the image inside the moulding (about 82% of the hang) is --art tall. */
.hall__piece { width: min(calc(var(--art) * var(--k, 0.84) * var(--r, 1) / 0.816), 74vw, 820px); }
.hall__piece .hang { width: 100%; }
.hall__piece .hang__light { display: none; }
.hall__piece .plaque { margin-top: clamp(16px, 2.6svh, 28px); }
.hall__piece .plaque__title { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); }
html[data-motion='on'] .hall__piece { transform: perspective(1500px) rotateY(calc(var(--p, 0) * -8deg)) scale(calc(1 - var(--a, 0) * 0.05)); will-change: transform; }

/* A sculpture on a raised plinth, set a little way out from the wall on the marble: a charcoal museum plinth, its top
   face seen from slightly above, the sculpture standing in the middle of that top with its own soft contact shadow, and a
   small label card on the plinth front. Placed between paintings by gallery() in site.mjs. (Amira's requests a635b4e6,
   b2ff6a81, 8120043f.) Each plinth suits its piece (9c7d086b): --pk and --ph scale its width and height, .stand--column
   and .stand--drum change its shape, all from the piece's "plinth" entry in sculptures.json. */
.hall__stand { --pw: clamp(150px, calc(var(--zone) * 0.32), 220px); --top: calc(var(--pw) * 0.1); position: relative; flex: none; width: calc(var(--pw) * var(--pk, 1) + clamp(60px, 9vw, 190px)); height: var(--room); scroll-snap-align: center; }
.hall__stand::before { content: ''; position: absolute; z-index: -1; left: -10%; right: -10%; top: 4%; bottom: 0; background: radial-gradient(46% 70% at 50% 0%, rgba(255, 232, 190, 0.2), rgba(255, 232, 190, 0.05) 60%, transparent 80%); opacity: calc(1 - var(--a, 0) * 0.5); pointer-events: none; }
.hall__stand .hall__lamp { top: calc(var(--zone) * 0.045 + 3px); }
/* Small works hung together (Amira's request bd805219; src/content/groups.json, gallery() in site.mjs): one place on the
   wall, a salon cluster two above two, the top pair hanging down to a shared line and the bottom pair up from it. Each
   is about half the height of a full-size painting (--k from site.mjs) and keeps its frame, picture light and label.
   The group and its list stay unpositioned, so each painting's offsetLeft is still measured along the wall (the walk
   uses it); its light is a background, not a pseudo-element. site.js sets --p and --a on the group. */
.hall__group { flex: none; height: var(--zone); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--zone) * 0.09) clamp(34px, 6.5vw, 120px) 0; scroll-snap-align: center; background: radial-gradient(48% 70% at 50% 6%, rgba(255, 232, 190, calc(0.16 - var(--a, 0) * 0.08)), transparent 78%) no-repeat; }
.hall__group-label { display: none; }
.hall__cluster { display: grid; grid-template-columns: auto auto; column-gap: clamp(26px, 3vw, 48px); row-gap: clamp(24px, 3.6svh, 38px); margin: 0; padding: 0; list-style: none; }
.hall__group .hall__bay { height: auto; padding: 0; scroll-snap-align: none; }
.hall__group .hall__bay::after { display: none; }
.hall__group .hall__bay::before { inset: -4% -10% 30% -10%; }
.hall__bay--small:nth-child(odd) { justify-content: flex-end; }
.hall__bay--small:nth-child(even) { justify-content: flex-start; }
.hall__bay--small:nth-child(-n + 2) { align-items: flex-end; }
.hall__bay--small:nth-child(n + 3) { align-items: flex-start; }
.hall__bay--small .hall__piece { width: min(calc(var(--art) * var(--k, 0.4) * var(--r, 1) / 0.816), 34vw, 380px); }
.hall__bay--small .hall__piece .plaque { margin-top: clamp(10px, 1.6svh, 16px); }
.hall__bay--small .hall__piece .plaque__title { font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); }
.hall__bay--small .hall__piece .plaque { padding-left: 10px; }
/* A small painting's moulding keeps the same share of its width as a full-size one's (no 15px floor). */
.hall__bay--small .frame { --fw: calc(clamp(7px, 9.2cqw, 40px) * var(--fk)); }
.hall__bay--small .hall__piece .plaque .label { letter-spacing: 0.1em; }
.hall__bay--small .hall__piece .plaque .label--gold { white-space: nowrap; }
html[data-lights='off'] .hall__group { background: none; }
/* --ow is the sculpture's width: about the same area for each (--s squared, --sr from gallery()), never taller than
   --hmax, and narrow enough that its glass case, with the extra room a leaning piece needs (--pl, --pr), fits on the top. */
.stand {
  --s: calc(var(--zone) * 0.27); --hmax: calc(var(--zone) * 0.37);
  --ow: min(calc(var(--pw) * var(--pk, 1) * 0.72 / (1 + var(--pl, 0) + var(--pr, 0))), calc(var(--s) * var(--sr, 1)), calc(var(--hmax) * var(--r)));
  --air: calc(var(--ow) * 0.08 + 6px);
  --body: max(calc(var(--zone) * 0.36 * var(--ph, 1)), calc(150px * var(--ph, 1)));
  position: absolute; left: 50%; bottom: calc(var(--floor) * 0.34); width: calc(var(--pw) * var(--pk, 1)); margin: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
}
/* The contact shadow and the pool of light on the marble round the plinth. */
.stand::before { content: ''; position: absolute; z-index: -1; left: -24%; right: -24%; bottom: calc(var(--floor) * -0.13); height: calc(var(--floor) * 0.3); background: radial-gradient(50% 22% at 50% 44%, rgba(0, 0, 0, 0.62), transparent), radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16) 60%, transparent); }
/* The glass case (vitrine), sized to the piece with a little air round it: thin glass edges, a charcoal lid with the glass
   top seen from above, two soft reflections across the front. The piece's footprint (--f0..--f1) is centred under the lid:
   a piece leaning one way gets the extra room on the other side (--pl, --pr). CSS only, nothing to load. */
.stand__case {
  position: relative; z-index: 2; display: block; box-sizing: border-box;
  width: calc(var(--ow) * (1 + var(--pl, 0) + var(--pr, 0)) + var(--air) * 2);
  padding: calc(var(--air) * 1.5) calc(var(--air) + var(--ow) * var(--pr, 0)) calc(var(--top) * 0.45) calc(var(--air) + var(--ow) * var(--pl, 0));
  border: 1px solid rgba(226, 236, 236, 0.32); border-top: 4px solid #2f3033; border-bottom-color: rgba(226, 236, 236, 0.18);
  background:
    linear-gradient(90deg, transparent 5%, rgba(226, 236, 236, 0.14) 5%, rgba(226, 236, 236, 0.14) calc(5% + 1px), transparent calc(5% + 1px), transparent calc(95% - 1px), rgba(226, 236, 236, 0.14) calc(95% - 1px), rgba(226, 236, 236, 0.14) 95%, transparent 95%),
    linear-gradient(180deg, rgba(210, 228, 230, 0.07), rgba(210, 228, 230, 0.025) 40%, rgba(210, 228, 230, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -8px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.18);
}
/* The glass top, seen from slightly above, edged in the lid's charcoal. */
.stand__case::before { content: ''; position: absolute; left: -1px; right: -1px; bottom: calc(100% + 4px); height: calc(var(--top) * 0.8); background: linear-gradient(180deg, rgba(226, 236, 236, 0.06), rgba(226, 236, 236, 0.16)); border-top: 1px solid rgba(226, 236, 236, 0.3); clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%); }
/* Reflections on the front glass, over the piece. */
.stand__case::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(112deg, transparent 14%, rgba(255, 255, 255, 0.13) 17%, rgba(255, 255, 255, 0.035) 24%, transparent 27%, transparent 64%, rgba(255, 255, 255, 0.075) 67%, transparent 73%); transition: opacity 0.7s var(--m-ease); }
html[data-lights='off'] .stand__case::after { opacity: 0.45; }
.stand__obj { position: relative; z-index: 2; display: block; width: var(--ow); }
/* The contact shadow lies under the footprint, not under the whole image. */
.stand__obj::after { content: ''; position: absolute; z-index: -1; left: calc(var(--f0, 0.2) * 100% - 4%); right: calc((1 - var(--f1, 0.8)) * 100% - 4%); bottom: calc(var(--top) * -0.3); height: calc(var(--top) * 0.62); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.24) 62%, transparent); }
.stand__art { position: relative; display: block; width: 100%; max-width: none; height: auto; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 18px rgba(255, 228, 180, 0.08)); }
/* The plinth body (the figcaption): charcoal black, lit softly from the front, a little darker at the foot. (Amira's request b2ff6a81.) */
.stand__plaque { position: relative; z-index: 0; width: 100%; height: var(--body); margin: 0; padding: clamp(14px, 2.4svh, 24px) 0 0; border: 0; display: block; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.3)), linear-gradient(90deg, #17181a, #26272a 16%, #313235 46%, #2b2c2f 72%, #1b1c1e); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.3), 0 2px 0 rgba(0, 0, 0, 0.45); }
/* The top face of the plinth, seen from slightly above. */
.stand__plaque::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--top) * -1); height: var(--top); background: linear-gradient(180deg, #2e2f32, #393a3d 70%, #434447); clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%); }
.stand__plaque::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.08); }
/* A slim column for a tall piece: a shadow gap under a cap moulding and a darker skirting at the foot. */
.stand--column .stand__plaque { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0 2px, transparent 2px 4px, rgba(0, 0, 0, 0.22) 4px 6px, transparent 6px), linear-gradient(0deg, #141517 0 12px, rgba(0, 0, 0, 0.55) 12px 13px, transparent 13px), linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.3)), linear-gradient(90deg, #17181a, #27282b 18%, #333437 48%, #2a2b2e 74%, #1a1b1d); }
/* A round drum for a round base: shaded as a cylinder, an elliptical top and foot. */
.stand--drum .stand__plaque { border-radius: 0 0 50% 50% / 0 0 calc(var(--top) * 0.9) calc(var(--top) * 0.9); background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.3)), linear-gradient(90deg, #0f1011, #222326 12%, #34353a 40%, #3a3b3f 52%, #2a2b2e 76%, #121315); }
.stand--drum .stand__plaque::before { top: calc(var(--top) * -0.9); height: calc(var(--top) * 1.8); border-radius: 50%; clip-path: none; background: radial-gradient(60% 70% at 50% 60%, #45464a, #38393c 70%, #2e2f32); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); }
.stand--drum .stand__plaque::after { content: none; }
.stand--drum .stand__case { margin-bottom: calc(var(--top) * -0.1); }
/* The label: a small dark card fixed near the top of the plinth front. */
.stand__card { position: relative; display: inline-grid; justify-items: center; gap: 3px; max-width: 82%; padding: 9px 14px 10px; background: linear-gradient(180deg, #24251c, #1a1b14); box-shadow: 0 0 0 1px rgba(201, 170, 107, 0.28), 0 1px 2px rgba(0, 0, 0, 0.5); }
.stand__plaque .plaque__title { font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.12rem); }
.stand__plaque .plaque__title::after { content: none; }
.stand__plaque .label { font-size: 0.625rem; letter-spacing: 0.14em; }
/* "Don't touch please" (Amira's request dabe0408): a small ivory sign on the plinth front, below the label. */
.stand__sign { position: absolute; z-index: 1; left: 50%; bottom: calc(var(--body) * 0.13); transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; width: max-content; max-width: 88%; margin: 0; padding: 4px 9px 5px; background: linear-gradient(180deg, #e4ded0, #d3ccbc); color: #24231d; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.45); font: 500 0.6875rem/1.25 var(--f-sans); letter-spacing: 0.02em; text-align: center; }
.stand__sign-ar { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.6875rem; letter-spacing: 0; }
html[data-lights='off'] .stand__sign { filter: brightness(0.82); }

.hall__bar { display: flex; align-items: center; gap: 14px 24px; min-height: var(--bar); }
.hall__count { flex: none; min-width: 0; max-width: 40%; display: flex; align-items: baseline; white-space: nowrap; color: var(--c-text-muted); }
.hall__count [data-hall-now] { color: var(--c-gold); }
.hall__of { margin-left: 0.6em; }
.hall__name { overflow: hidden; text-overflow: ellipsis; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--c-border); color: var(--c-text-muted); }
.hall__name:empty { display: none; }
.hall__progress { flex: 1; height: 1px; background: var(--c-border); }
.hall__progress i { display: block; height: 100%; background: var(--c-gold); transform-origin: left; transform: scaleX(var(--prog, 0)); }
.hall__nav { display: flex; align-items: center; gap: 10px; }
.hall__step { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid color-mix(in srgb, var(--c-text) 34%, transparent); border-radius: 50%; font: 400 1rem/1 var(--f-mono); color: var(--c-text); cursor: pointer; transition: border-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
.hall__step:hover:not([disabled]) { border-color: var(--c-gold); color: var(--c-gold); }
.hall__step[disabled] { opacity: 0.35; cursor: default; }
.hall__view { min-height: 44px; margin-left: 6px; }
html:not(.js) .hall__bar { display: none; }
@media (max-width: 620px) {
  .hall { --bar: 68px; --floor: calc(var(--room) * 0.15); --art: calc(var(--zone) * 0.5); }
  .hall__piece .plaque { margin-top: 14px; gap: 4px; }
  .hall__bar { gap: 12px; }
  .hall__count { max-width: none; }
  .hall__name, .hall__progress { display: none; }
  .hall__nav { margin-left: auto; gap: 8px; }
  .hall__view { margin-left: 2px; padding-inline: 12px; }
  .hall__prose { font-size: 0.875rem; line-height: 1.6; }
  .hall__bay, .hall__easel, .hall__group { padding-inline: 11vw; }
  .hall__group .hall__bay { padding-inline: 0; }
  .hall__cluster { column-gap: 5vw; row-gap: 22px; }
  .hall__bay--small .hall__piece { width: min(calc(var(--art) * var(--k, 0.4) * var(--r, 1) / 0.816), 37vw); }
  .hall__entrance { width: 76vw; margin-right: 0; }
  .hall__stand { --pw: clamp(138px, 42vw, 190px); width: calc(var(--pw) * var(--pk, 1) + 22vw); }
  .stand { --body: max(calc(var(--zone) * 0.32 * var(--ph, 1)), calc(132px * var(--ph, 1))); }
  .stand__sign { padding: 3px 7px 4px; font-size: 0.625rem; }
  .stand__sign-ar { font-size: 0.625rem; }
  .stand__card { padding: 7px 10px 8px; }
  .stand__plaque .label { font-size: 0.5625rem; letter-spacing: 0.1em; }
}
@media (max-height: 640px) { .hall__prose p + p { display: none; } }

/* View all: the same works on one wall, row after row, to find a painting quickly. */
.hall.is-grid .hall__bar { order: -1; padding-top: 12px; }
.hall.is-grid .hall__step, .hall.is-grid .hall__progress, .hall.is-grid .hall__count { display: none; }
.hall.is-grid .hall__nav { margin-left: auto; }
.hall.is-grid .hall__room { height: auto; overflow: visible; background: radial-gradient(90% 40% at 30% 0%, color-mix(in srgb, var(--c-gold) 10%, transparent), transparent 62%), linear-gradient(180deg, var(--c-wall), var(--c-bg)); }
.hall.is-grid .hall__stand::before, .hall.is-grid .hall__wall, .hall.is-grid .hall__floor, .hall.is-grid .hall__shade, .hall.is-grid .hall__bench, .hall.is-grid .hall__exit, .hall.is-grid .hall__hint, .hall.is-grid .hall__lamp, .hall.is-grid .hall__bay::before, .hall.is-grid .hall__bay::after, .hall.is-grid .hall__easel::before, .hall.is-grid .hall__easel::after { display: none; }
.hall.is-grid .hall__track { position: static; display: block; overflow: visible; padding: clamp(24px, 4vw, 56px) 0 clamp(72px, 9vw, 140px); }
.hall.is-grid .hall__entrance { width: min(100% - var(--gutter) * 2, var(--wrap)); height: auto; margin: 0 auto clamp(48px, 6vw, 88px); }
.hall.is-grid .hall__intro { max-width: 46rem; padding: 0; }
.hall.is-grid .hall__works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 40vw), 1fr)); gap: clamp(48px, 6vw, 88px) clamp(20px, 3.4vw, 56px); width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; align-items: start; }
.hall.is-grid .hall__bay, .hall.is-grid .hall__easel { height: auto; display: block; padding: 0; }
.hall.is-grid .hall__piece { width: 100%; transform: none; }
/* View all: the small works stay together as one block two cells wide, two above two, each picture smaller than a cell. */
.hall.is-grid .hall__group { grid-column: span 2; height: auto; display: block; padding: 0; background: none; }
.hall.is-grid .hall__group-label { display: block; margin: 0 0 clamp(14px, 2vw, 22px); }
.hall.is-grid .hall__cluster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 56px); }
.hall.is-grid .hall__bay--small { display: block; }
.hall.is-grid .hall__bay--small .hall__piece { width: 100%; }
.hall.is-grid .hall__bay--small .hall__piece .frame { width: 62%; --fw: calc(clamp(6px, 5.7cqw, 30px) * var(--fk)); }
.hall.is-grid .plaque__title { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }
@media (max-width: 620px) { .hall.is-grid .plaque { padding-left: 10px; } .hall.is-grid .plaque .label { letter-spacing: 0.12em; font-size: 0.625rem; } }

/* ---------- the hall, furnished (26 November 2026) ----------
   Brass picture lights over every frame and the visitor's Lights switch (Amira's request 4755ce02), a few classic rugs on
   the floor (2f4fc058), and the sunflowers that stir and drop a petal (84d6c26a).
   All of it is decorative: aria-hidden, no pointer events. What moves is drawn by src/scripts/hall-life.js, only with
   motion on. html[data-lights='off'] (boot.js, hall-life.js) is the switch turned off. */
.hall__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hall__piece { position: relative; container-type: inline-size; }
/* The picture light: brass hood on an arm, its backplate fixed to the top of the frame. */
.plamp { position: absolute; z-index: 3; left: 50%; top: 0; width: clamp(64px, 52cqw, 250px); aspect-ratio: 240 / 64; transform: translate(-50%, -86%); pointer-events: none; }
.plamp__fix { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5)); transition: filter 0.7s var(--m-ease); }
/* The lit opening under the hood, and the warm wash it throws down the painting. */
.plamp::after { content: ''; position: absolute; left: 7%; right: 7%; top: 33%; height: 15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 240, 204, 0.95), rgba(255, 214, 150, 0.45) 60%, transparent); filter: blur(1.5px); transition: opacity 0.7s var(--m-ease); }
.plamp__wash { position: absolute; z-index: 2; left: -4%; right: -4%; top: -3%; height: calc(100cqw / var(--r, 1) * 0.86); background: radial-gradient(60% 100% at 50% 0%, rgba(255, 226, 172, 0.32), rgba(255, 220, 160, 0.11) 50%, transparent 80%); mix-blend-mode: screen; pointer-events: none; transition: opacity 0.7s var(--m-ease); }
.hall__bay::before, .hall__bay::after, .hall__easel::before, .hall__easel::after, .hall__stand::before, .hall__lamp::before { transition: opacity 0.7s var(--m-ease); }
.hall__wall, .hall__floor, .hall__rug, .hall__piece .frame img { transition: filter 0.7s var(--m-ease); }
/* Lights off: lamps dark, no pools of light, the room dimmer; the paintings stay easy to see. */
html[data-lights='off'] .plamp::after, html[data-lights='off'] .plamp__wash, html[data-lights='off'] .hall__lamp::before,
html[data-lights='off'] .hall__bay::before, html[data-lights='off'] .hall__bay::after, html[data-lights='off'] .hall__easel::before,
html[data-lights='off'] .hall__easel::after, html[data-lights='off'] .hall__stand::before { opacity: 0; }
html[data-lights='off'] .plamp__fix { filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5)) brightness(0.62); }
html[data-lights='off'] .hall__wall, html[data-lights='off'] .hall__floor { filter: brightness(0.52) saturate(0.85); }
html[data-lights='off'] .hall__rug { filter: brightness(0.55); }
html[data-lights='off'] .hall__piece .frame img { filter: brightness(0.84); }

/* The Lights switch, beside the walk buttons. Its name never changes; aria-pressed says whether the lights are on. */
.hall__lights { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 12px 14px; }
.hall__lights [lang='ar'] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.hall__switch { position: relative; flex: none; width: 30px; height: 16px; border-radius: 8px; background: color-mix(in srgb, var(--c-text) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-text) 40%, transparent); transition: background-color var(--m-fast) var(--m-ease); }
.hall__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-text-muted); transition: transform var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease); }
.hall__lights[aria-pressed='true'] .hall__switch { background: color-mix(in srgb, var(--c-gold) 42%, transparent); }
.hall__lights[aria-pressed='true'] .hall__switch::after { transform: translateX(14px); background: #ffe2a2; box-shadow: 0 0 8px rgba(255, 214, 140, 0.8); }
@media (max-width: 620px) {
  .hall__lights { padding-inline: 10px; }
  .hall__lights-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Rugs: separate classic rugs laid on the floor in front of a few paintings, in the floor's perspective. Each lies in its
   bay, so it slides with the floor as you walk, under the light from the lamp and clear of the wall label. */
.hall__rug { position: absolute; z-index: -1; left: 13%; right: 13%; top: calc(100% + var(--floor) * 0.1); height: calc(var(--floor) * 0.8); transform-origin: 50% 0; transform: perspective(calc(var(--floor) * 2.6)) rotateX(60deg); pointer-events: none; }
.hall__rug svg { display: block; width: 100%; height: 100%; }
.hall__rug::after { content: ''; position: absolute; inset: 0 2%; background: linear-gradient(180deg, rgba(24, 18, 10, 0.18), rgba(10, 8, 5, 0.5)), radial-gradient(60% 80% at 50% 0%, rgba(255, 226, 180, 0.12), transparent); }
.hall__rug::before { content: ''; position: absolute; z-index: -1; inset: 2% 1% -3%; background: rgba(0, 0, 0, 0.45); filter: blur(4px); }

/* .hall__ground lies along the whole wall inside the track, so what lies on it (the leaves) moves with the floor. */
.hall__ground { position: absolute; z-index: 2; left: 0; top: 0; height: 100%; overflow: hidden; pointer-events: none; }

/* The living vase: two copies of her photograph, masked to the flowers, sway a fraction of a degree about the vase's neck;
   the painting itself, the vase and the table never move. Petals (.petal) fall from the flowers to the floor. */
.vase-sway { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 62%); mask-image: linear-gradient(180deg, #000 50%, transparent 62%); }
.vase-sway--b { -webkit-mask-image: radial-gradient(30% 28% at 78% 30%, #000 50%, transparent); mask-image: radial-gradient(30% 28% at 78% 30%, #000 50%, transparent); }
.vase-sway img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transform-origin: 50% 62%; animation: vase-sway 7s ease-in-out infinite alternate; }
.vase-sway--b img { transform-origin: 72% 58%; animation-duration: 5.2s; animation-delay: -2.4s; }
@keyframes vase-sway { from { transform: rotate(-0.45deg) skewX(0.35deg); } to { transform: rotate(0.5deg) skewX(-0.4deg); } }
.petal { position: absolute; z-index: 4; left: 0; top: 0; width: clamp(7px, 0.8vw, 12px); aspect-ratio: 1 / 2; pointer-events: none; }
.petal svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
/* Paused while the tab is hidden, the hall is off screen or the vase is out of sight. */
.hall.is-paused .vase-sway img, [data-living-vase]:not(.is-near) .vase-sway img { animation-play-state: paused; }

/* Living paintings (src/scripts/living.js, src/content/living.json): a drawing laid exactly over the image, never the
   image itself. In a frame it shares the image's box; in the enlarged view both are contained in the stage alike. */
.living-host { position: relative; display: block; }
.living { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.hall__piece .frame .living { transition: filter 0.7s var(--m-ease); }
html[data-lights='off'] .hall__piece .frame .living { filter: brightness(0.84); }

.hall.is-grid .plamp, .hall.is-grid .plamp__wash, .hall.is-grid .hall__rug, .hall.is-grid .hall__ground, .hall.is-grid .petal, .hall.is-grid .hall__lights { display: none; }

/* ---------- split (text beside image) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__text { display: grid; gap: 26px; justify-items: start; }
.split__art { width: min(100%, 560px); justify-self: center; }
.split__art--narrow { width: min(100%, 440px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

/* ---------- invitation band ---------- */
.invite { display: grid; gap: 28px; justify-items: center; text-align: center; }
.invite .lead { max-width: 54ch; }

/* ---------- artwork page ---------- */
.work { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(72px, 9vw, 150px); }
.work__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 8vw, 136px); align-items: center; margin-top: clamp(36px, 5vw, 72px); }
.work__art { width: min(100%, 620px); justify-self: center; }
.work__info { display: grid; gap: 22px; justify-items: start; max-width: 30rem; }
.work__artist { color: var(--c-text-muted); }
.work__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 10px; }
@media (max-width: 900px) { .work__grid { grid-template-columns: 1fr; } .work__art { width: min(100%, 460px); } }

.spec { width: 100%; border-top: var(--hair); margin-top: 6px; }
.spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: var(--hair); font-size: 0.875rem; }
.spec dt { color: var(--c-text-faint); }
.spec dd { text-align: right; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair); }
.pager a { display: grid; gap: 10px; padding: clamp(28px, 4vw, 52px) 0; text-decoration: none; }
.pager a:last-child { text-align: right; padding-left: 24px; border-left: var(--hair); justify-items: end; }
.pager a:hover .pager__title { color: var(--c-gold); }
.pager__title { font: 300 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.15 var(--f-display); transition: color var(--m-fast) var(--m-ease); }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 400 0.6875rem/1.4 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); }
.field input, .field textarea { width: 100%; padding: 14px 0 13px; background: transparent; border: 0; border-bottom: 1px solid var(--c-border-input); border-radius: 0; color: var(--c-text); font-size: 1rem; transition: border-color var(--m-fast) var(--m-ease); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-color: var(--c-text); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--c-gold); box-shadow: 0 1px 0 0 var(--c-gold); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--c-text); box-shadow: 0 0 0 100px var(--c-surface) inset; }
.field [aria-invalid='true'] { border-color: var(--c-danger); }
.field__error { color: var(--c-danger); font-size: 0.8125rem; min-height: 1.2em; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 6px; }
.form__status { font-size: 0.9rem; color: var(--c-success); max-width: 44ch; }
.form__status--error { color: var(--c-danger); }
.form__status a, .form__note a { color: inherit; }
/* A field only robots fill in: off screen, out of the tab order, hidden from screen readers. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--c-text-faint); max-width: 60ch; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.contact-card { display: grid; gap: 28px; align-content: start; }
.contact-card dl { display: grid; gap: 22px; }
.contact-card dt { margin-bottom: 6px; }
.contact-card dd { font: 400 clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem)/1.3 var(--f-display); overflow-wrap: anywhere; }
.contact-card a { text-decoration-color: var(--hair-gold); }
.contact-card a:hover { color: var(--c-gold); }

/* ---------- footer ---------- */
.site-footer { border-top: var(--hair); background: var(--c-bg); padding-block: clamp(56px, 7vw, 104px) 36px; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer__line { font: 300 clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem)/1.2 var(--f-display); max-width: 15em; }
.site-footer__line em { font-style: italic; }
.site-footer h2 { margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; font-size: 0.9rem; color: var(--c-text-muted); }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--c-gold); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: var(--hair); }
@media (max-width: 800px) { .site-footer__top { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 3vw, 48px); border: 0; background: rgba(8, 9, 6, 0.96); color: var(--c-text); }
.lightbox::backdrop { background: rgba(8, 9, 6, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox__stage { min-height: 0; }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.lightbox__stage:has(.lit--fit) { container-type: size; display: grid; place-items: center; }

/* ---------- lights painted in a work (Amira's request 80057ad6) ----------
   .lit hugs the image exactly; each .lit__light is a lamp's box in percent of the image (artworks.json "lights").
   The glow is screened onto the paint and switches on and off like headlights: off, a quick fade up, held with a
   slight bloom, a softer fade down. Off when motion is off (the toggle or prefers-reduced-motion). */
.lit { position: relative; display: block; }
.lit--fit { width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); }
.lit__lights { position: absolute; inset: 0; pointer-events: none; }
.lit__light { position: absolute; opacity: 0; mix-blend-mode: screen; }
.lit__light::before, .lit__light::after { content: ''; position: absolute; border-radius: 50%; }
.lit__light::before { inset: -90% -38%; background: radial-gradient(closest-side, rgba(255, 238, 204, 0.5), rgba(255, 226, 172, 0.18) 46%, transparent); }
.lit__light::after { inset: 4% 6%; background: radial-gradient(closest-side, rgba(255, 253, 244, 0.95), rgba(255, 244, 216, 0.66) 42%, transparent 76%); }
html[data-motion='on'] .lit__light { animation: headlights 4s infinite; }
@keyframes headlights {
  0%, 36% { opacity: 0; transform: scale(0.94); animation-timing-function: var(--m-ease); }
  42% { opacity: 1; transform: scale(1); animation-timing-function: ease-in-out; }
  80% { opacity: 1; transform: scale(1.06); animation-timing-function: ease-out; }
  92%, 100% { opacity: 0; transform: scale(1.02); }
}

/* Chandelier bulbs and candles ("kind": "bulb"; Amira's request c641e1c1): a small warm point with a soft amber halo.
   With motion on they switch on one after another (--k), catching once as they light, then breathe and flicker
   gently, each to its own beat. With motion off they are simply lit, still. */
.lit__light--bulb { opacity: 1; }
.lit__light--bulb::before { inset: -115%; background: radial-gradient(closest-side, rgba(255, 210, 138, 0.4), rgba(255, 186, 104, 0.13) 55%, transparent); }
.lit__light--bulb::after { inset: 10%; background: radial-gradient(closest-side, rgba(255, 251, 236, 0.95), rgba(255, 226, 164, 0.58) 45%, transparent 78%); }
html[data-motion='on'] .lit__light--bulb { animation: bulb-on 1.4s var(--m-ease) calc(400ms + var(--k, 0) * 70ms) both; }
html[data-motion='on'] .lit__light--bulb::before,
html[data-motion='on'] .lit__light--bulb::after { animation: bulb-breathe 3.4s ease-in-out calc(var(--k, 0) * -0.61s) infinite; }
html[data-motion='on'] .lit__light--bulb:nth-child(3n + 2)::before,
html[data-motion='on'] .lit__light--bulb:nth-child(3n + 2)::after { animation-duration: 4.1s; }
html[data-motion='on'] .lit__light--bulb:nth-child(3n)::before,
html[data-motion='on'] .lit__light--bulb:nth-child(3n)::after { animation-duration: 2.9s; }
@keyframes bulb-on {
  0% { opacity: 0; transform: scale(0.94); }
  30% { opacity: 0.85; }
  42% { opacity: 0.35; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bulb-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  18% { opacity: 0.84; transform: scale(0.97); }
  34% { opacity: 0.95; }
  52% { opacity: 0.76; transform: scale(0.95); }
  70% { opacity: 0.93; transform: scale(0.99); }
  86% { opacity: 0.82; }
}

/* ---------- motion ---------- */
html.js[data-motion='on'] .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--m-slow) var(--m-ease), transform var(--m-slow) var(--m-ease); transition-delay: var(--d, 0ms); }
html.js[data-motion='on'] .reveal.is-in { opacity: 1; transform: none; }
html[data-motion='on'] .hang__light { animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0.82; } to { opacity: 1; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.7s; animation-timing-function: var(--m-ease); }
html[data-motion='off'] *, html[data-motion='off'] *::before, html[data-motion='off'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion='off']::view-transition-group(*), html[data-motion='off']::view-transition-old(*), html[data-motion='off']::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='on']) *, html:not([data-motion='on']) *::before, html:not([data-motion='on']) *::after { animation: none !important; transition: none !important; }
}

/* ---------- design-system page ---------- */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.ds-swatch { display: grid; gap: 8px; }
.ds-swatch i { display: block; height: 72px; border: var(--hair); }
.ds-block { display: grid; gap: 28px; padding-block: 48px; border-top: var(--hair); }
.ds-row { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }

.draft-flag { position: fixed; right: 12px; bottom: 12px; z-index: 60; padding: 6px 10px; background: color-mix(in srgb, var(--c-bg) 88%, transparent); border: 1px dashed color-mix(in srgb, var(--c-todo) 60%, transparent); color: var(--c-todo); font: 400 0.625rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }

@media (max-width: 620px) { .draft-flag { display: none; } }
@media print { .site-header, .site-footer, .draft-flag, .hang__light { display: none; } body { background: #fff; color: #000; } }

/* View all: a sculpture is one more cell on the wall, its label beneath it. */
.hall.is-grid .hall__stand { width: auto; height: auto; display: block; }
.hall.is-grid .stand { position: static; width: 100%; transform: none; align-items: stretch; }
.hall.is-grid .stand::before, .hall.is-grid .stand__plaque::before, .hall.is-grid .stand__plaque::after, .hall.is-grid .stand__obj::after { display: none; }
.hall.is-grid .stand__case { width: min(64%, calc(260px * var(--r) + 40px)); margin: 0 auto; padding: 22px 18px 12px; }
.hall.is-grid .stand__case::before { display: none; }
.hall.is-grid .stand__obj { width: 100%; }
.hall.is-grid .stand__sign { position: static; transform: none; margin: 12px auto 0; }
.hall.is-grid .stand__card { display: grid; justify-items: start; max-width: none; padding: 0; background: none; box-shadow: none; }
.hall.is-grid .stand__plaque { height: auto; min-height: 0; margin-top: clamp(12px, 2vw, 22px); padding: 0 0 0 16px; justify-items: start; text-align: left; background: none; box-shadow: none; border-radius: 0; border-left: 1px solid var(--hair-gold); }

/* ---------- the visitors' canvas in the Gallery hall (Amira's request 3ae8da8a) ----------
   A blank stretched canvas in a frame of the family, lit like the paintings. Opens the drawing room (a dialog). */
html:not(.js) .hall__easel { display: none; }
.easel__blank { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; background:
  repeating-linear-gradient(90deg, rgba(120, 110, 90, 0.035) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(0deg, rgba(120, 110, 90, 0.03) 0 1px, transparent 1px 3px),
  radial-gradient(120% 90% at 50% 0%, #fffdf8, #f3efe5 70%, #e9e3d5); box-shadow: inset 0 0 40px rgba(90, 76, 50, 0.16); }
.easel__invite { color: #8a7d62; letter-spacing: 0.3em; opacity: 0.85; }
html[data-motion='on'] .easel__invite { animation: easel-breathe 3.2s var(--m-ease) infinite; }
@keyframes easel-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
.easel__open { all: unset; cursor: pointer; font: 400 clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem)/1.2 var(--f-display); }
.hall__piece .easel__open { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); }
.easel__open:hover { color: var(--c-gold); }
.easel__open:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }
.hang:has(.easel__open:hover) .frame { filter: drop-shadow(0 calc(var(--fw) * 0.5) calc(var(--fw) * 0.62) rgba(0, 0, 0, 0.56)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)) brightness(1.07); }

/* The drawing room (creators sign in to draw since Amira's request d6cc8fda). On a wide screen the canvas takes the full height of
   the window, with the title and colours to its left and Close and the brushes to its right; "My drawings" is below. On a phone or an
   upright tablet the colours sit above the canvas and the brushes below it, so the canvas can use the full width. */
.easel { --side: clamp(128px, 11vw, 168px); width: min(100vw, 1440px); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); overscroll-behavior: contain; }
.easel::backdrop { background: rgba(8, 9, 6, 0.82); }
.easel[open] { display: flex; flex-direction: column; }
.easel__col { display: grid; align-content: start; gap: 22px; }
.easel__col--left { grid-area: left; }
.easel__col--right { grid-area: right; }
.easel__head { display: grid; gap: 6px; padding-top: 4px; }
.easel__head p { margin: 0; }
.easel__hint { color: var(--c-text-faint); }
.easel__close { justify-self: end; }
/* The site has no Arabic face of its own: the system's (SF Arabic, Segoe UI) reads well beside DM Sans and DM Mono. */
.easel__ar { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--c-text-muted); }
.easel__studio { display: grid; grid-template-columns: var(--side) auto var(--side); justify-content: center; grid-template-areas: 'left stage right' 'mine mine mine'; align-items: start; gap: 14px clamp(14px, 1.6vw, 26px); padding: 12px clamp(12px, 2vw, 28px) 28px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.easel__side { display: grid; align-content: start; gap: 12px; padding-top: 4px; }
.easel__side-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 0; font: inherit; }
.easel__tool { min-height: 40px; padding: 0 14px; background: none; border: 1px solid color-mix(in srgb, var(--c-text) 30%, transparent); border-radius: var(--r-sm); color: var(--c-text); font: 400 0.6875rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.easel__tool:hover:not([disabled]) { border-color: color-mix(in srgb, var(--c-gold) 70%, transparent); }
.easel__tool[aria-pressed='true'] { border-color: var(--c-gold); color: var(--c-gold); }
.easel__tool[disabled] { opacity: 0.4; cursor: default; }
.easel__save { background: var(--c-gold); border-color: var(--c-gold); color: #15160f; }
.easel__save[disabled] { opacity: 0.6; }
.easel__swatches { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 10px 8px; }
.easel__swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: var(--sw); cursor: pointer; transition: transform 140ms var(--m-ease, ease-out); }
.easel__swatch:hover { transform: scale(1.08); }
.easel__swatch[aria-pressed='true'] { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.easel__custom { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.easel__custom:focus-within { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.easel__custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.easel__brushes { display: grid; gap: 6px; }
.easel__brush { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; text-align: left; }
.easel__brush .easel__ar { font-size: 0.75rem; }
.easel__brush[aria-pressed='true'] .easel__ar { color: inherit; }
/* Each brush shows the mark it makes, drawn in CSS. */
.easel__brush-ico { justify-self: center; display: block; background: currentColor; }
.easel__brush-ico--pen { width: 20px; height: 3px; border-radius: 2px; transform: rotate(-30deg); }
.easel__brush-ico--nib { width: 18px; height: 8px; clip-path: polygon(0 100%, 30% 0, 100% 0, 70% 100%); }
.easel__brush-ico--spray { width: 18px; height: 18px; background: radial-gradient(circle, currentColor 1.1px, transparent 1.4px) 0 0 / 6px 6px, radial-gradient(circle, currentColor 1px, transparent 1.3px) 3px 3px / 6px 6px; border-radius: 50%; opacity: 0.9; }
.easel__brush-ico--eraser { width: 16px; height: 10px; border: 1px solid currentColor; background: none; border-radius: 2px; transform: rotate(-20deg); }
.easel__sizes { display: grid; gap: 8px; padding-top: 4px; }
.easel__presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.easel__preset { display: grid; place-items: center; height: 40px; padding: 0; background: none; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.easel__preset span { width: var(--d); height: var(--d); border-radius: 50%; background: var(--c-text); }
.easel__preset:hover span { background: var(--c-gold); }
.easel__preset[aria-pressed='true'] { border-color: var(--c-gold); }
.easel__preset[aria-pressed='true'] span { background: var(--c-gold); }
.easel__size { display: flex; align-items: center; gap: 10px; }
.easel__size input { flex: 1; min-width: 0; accent-color: var(--c-gold); }
.easel__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #1b1b18; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.easel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.easel__actions .easel__save { grid-column: 1 / -1; }
.easel__stage { grid-area: stage; display: grid; place-items: center; padding: 6px; background: #2a2b20; box-shadow: inset 0 0 0 1px var(--c-border); }
/* As tall as the window allows, less the studio's padding and the stage's own; the width follows from that (4:5),
   unless the side panels leave less room. */
.easel__canvas { display: block; width: min(calc((100dvh - 40px) * 0.8), calc(min(100vw, 1440px) - 2 * var(--side) - 120px)); height: auto; aspect-ratio: 4 / 5; background: #fbfaf6; touch-action: none; cursor: crosshair; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.easel__status { min-height: 1.4em; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--c-text-muted); }
.easel__status[data-bad] { color: var(--c-danger); }
.easel__mine { grid-area: mine; display: grid; align-content: start; gap: 12px; width: min(100%, 860px); justify-self: center; padding-top: 14px; border-top: 1px solid var(--c-border); }
.easel__mine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.easel__new { background: none; border: 0; border-bottom: 1px solid var(--hair-gold, var(--c-border)); color: var(--c-text); cursor: pointer; font-size: 0.85rem; }
.easel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.easel__item { display: grid; gap: 4px; }
.easel__thumb { padding: 0; border: 1px solid var(--c-border); background: #fbfaf6; cursor: pointer; }
.easel__item.is-current .easel__thumb { outline: 2px solid var(--c-gold); outline-offset: 1px; }
.easel__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.easel__del { min-height: 32px; background: none; border: 0; color: var(--c-text-faint); font: 400 0.625rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.easel__del:hover { color: var(--c-danger); }
.easel__empty { font-size: 0.8125rem; color: var(--c-text-faint); }
.easel__privacy { font-size: 0.8125rem; line-height: 1.6; color: var(--c-text-muted); border-left: 1px solid var(--hair-gold, var(--c-border)); padding-left: 14px; max-width: 70ch; }
.easel__privacy b { color: var(--c-text); font-weight: 500; }
.easel__delete summary { cursor: pointer; font: 400 0.625rem/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-danger); }
.easel__delete p { margin: 10px 0 8px; font-size: 0.8125rem; color: var(--c-text-muted); }
.easel__danger { background: none; color: var(--c-danger); border: 1px solid var(--c-danger); }
/* Share in «لوحات المبدعين في معرضنا» (Amira's request 56462c76): a quiet button under Save, and the consent panel that
   opens under the canvas. Nothing is published before the box is ticked. */
.easel__actions .easel__share-open { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-color: color-mix(in srgb, var(--c-gold) 60%, transparent); color: var(--c-gold); }
.easel__share-open .easel__ar { color: inherit; }
.easel__share-open[aria-expanded='true'] { background: color-mix(in srgb, var(--c-gold) 12%, transparent); }
.easel__share { display: grid; gap: 14px; padding: 18px clamp(16px, 2vw, 24px) 20px; background: var(--c-surface); border: 1px solid color-mix(in srgb, var(--c-gold) 30%, transparent); scroll-margin-top: 12px; }
.easel__share .easel__side-h { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; justify-content: flex-start; }
.easel__share-text { margin: 0; max-width: 70ch; font-size: 0.875rem; line-height: 1.65; color: var(--c-text-muted); }
.easel__share-text[lang='ar'] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.9375rem; line-height: 1.9; }
.easel__share-text a, .easel__share-status a { color: var(--c-text); text-decoration-color: var(--c-gold); }
.easel__share-form { display: grid; gap: 16px; }
.easel__share-name { max-width: 420px; }
.easel__share-name label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.easel__share-hint { font-size: 0.75rem; color: var(--c-text-faint); }
.easel__share-hint [lang='ar'] { display: block; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.8125rem; line-height: 1.7; }
/* Title, name and story under the painting (Amira's request 7ba174c5). */
.easel__share-story { max-width: 560px; }
.easel__share-story label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.easel__share-story textarea { min-height: 96px; }
.easel__share-count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.easel__share-count [data-share-story-count] { flex: none; font-variant-numeric: tabular-nums; }
.easel__share-count [data-share-story-count][data-near] { color: var(--c-gold); }
/* The signature step (Amira's request c0c14853): a pad to sign in, its preview on the drawing, Clear, and the name as a
   signature for those who cannot draw. The pad takes the finger, so the page does not scroll under it. */
.easel__sign { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 14px clamp(12px, 1.6vw, 18px) 16px; border: 1px solid color-mix(in srgb, var(--c-gold) 26%, transparent); }
.easel__sign legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 0 6px; }
.easel__sign-ar { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; color: var(--c-text); }
#easel-sign-hint [lang='ar'], #easel-sign-name-hint [lang='ar'] { display: block; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.8125rem; line-height: 1.7; }
.easel__sign-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.easel__pad { position: relative; flex: 1 1 260px; max-width: 460px; }
.easel__pad-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; background: linear-gradient(transparent calc(78% - 1px), rgba(27, 27, 24, 0.22) calc(78% - 1px) 78%, transparent 78%) #fbfaf6; border-radius: 2px; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.easel__pad-canvas:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.easel__pad-guide { position: absolute; left: 0; right: 0; bottom: 26%; padding-inline: 12px; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; font: italic 400 clamp(1.1rem, 0.9rem + 1vw, 1.6rem)/1 var(--f-display); color: rgba(27, 27, 24, 0.24); }
.easel__pad-guide[hidden] { display: none; }
.easel__preview { flex: none; display: grid; gap: 4px; justify-items: center; margin: 0; }
.easel__preview-canvas { display: block; width: clamp(88px, 22vw, 128px); height: auto; aspect-ratio: 4 / 5; background: #fbfaf6; box-shadow: 0 0 0 5px #161615, 0 4px 12px rgba(0, 0, 0, 0.45); }
.easel__preview figcaption { margin-top: 8px; white-space: nowrap; }
.easel__sign-actions .easel__ar { white-space: nowrap; }
.easel__sign-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.easel__sign-actions .easel__tool { display: inline-flex; align-items: center; gap: 8px; }
.easel__sign-actions .easel__ar { color: inherit; }
.easel__sign-state { margin: 0; font-size: 0.8125rem; color: var(--c-text-muted); }
.easel__sign-state [lang='ar'] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.easel__sign-state[data-ok] { color: var(--c-gold); }
.easel__consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; max-width: 60ch; cursor: pointer; }
.easel__consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-gold); cursor: pointer; }
.easel__consent > span { display: grid; gap: 2px; }
.easel__consent-ar { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--c-text); }
.easel__consent-en { font-size: 0.8125rem; color: var(--c-text-muted); }
.easel__share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.easel__share-actions .easel__save { display: inline-flex; align-items: center; gap: 8px; padding-inline: 18px; }
.easel__share-actions .easel__save .easel__ar { color: inherit; }
.easel__share-status { white-space: pre-line; }
/* Sign in to draw (Amira's request d6cc8fda; first only to publish, edc6a2c8): signed out, the dialog opens on this
   panel in place of the canvas; signed in, the canvas, with who is signed in above the drawings. */
.easel__gate { display: grid; grid-template-rows: auto 1fr; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.easel__gate-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(12px, 2vw, 28px); background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.easel__gate-bar p { margin: 0; }
.easel__gate-body { display: grid; align-content: start; gap: 20px; width: min(100%, 620px); justify-self: center; padding: clamp(20px, 4vh, 48px) clamp(16px, 3vw, 28px) 32px; }
.easel__gate .easel__account-form { padding-bottom: 20px; }
/* The phone layout names a grid area for the studio's status line; the panel's own status lines stay in the flow. */
.easel__gate .easel__status { grid-area: auto; }
.easel__gate .easel__account-form .easel__side-h { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
.easel__gate .easel__sign-ar { font-size: 1.375rem; }
.easel__gate .easel__privacy [lang='ar'] { display: block; margin-top: 6px; }
/* The account form and who is signed in (Amira's request edc6a2c8). */
.easel__account-form { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, var(--c-gold) 22%, transparent); }
.easel__account-form > .easel__share-hint, .easel__account-form > .easel__share-hint [lang='ar'] { max-width: 70ch; }
.easel__account-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.easel__account-modes .easel__tool, .easel__account-in .easel__tool { display: inline-flex; align-items: center; gap: 8px; }
.easel__account-modes .easel__ar, .easel__account-in .easel__ar { color: inherit; }
.easel__account-form .easel__save .easel__ar { color: inherit; }
.easel__account-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0 14px; border-bottom: 1px solid color-mix(in srgb, var(--c-gold) 22%, transparent); }
.easel__account-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; min-width: 0; }
.easel__account-who b { font-weight: 500; color: var(--c-text); overflow-wrap: anywhere; unicode-bidi: plaintext; }
.easel__account-who [data-account-email] { overflow-wrap: anywhere; }
.easel__shared { display: grid; gap: 8px; }
.easel__thumb--shared { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 6px; cursor: default; font-size: 0.6875rem; line-height: 1.3; text-align: center; color: #5d5a4f; }
.easel__mine-head .easel__gallery-link { margin-left: auto; font-size: 0.85rem; }
/* Phones and upright tablets: colours in one row above the canvas, brushes, sizes and Save in rows below it, the
   canvas as wide as the screen allows while those rows stay in view. */
@media (max-width: 899px), (orientation: portrait) {
  .easel { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; }
  .easel__studio { grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; grid-template-areas: 'head close' 'colours colours' 'stage stage' 'brushes brushes' 'status status' 'mine mine'; padding: 0 6px 24px; gap: 6px; }
  .easel__col { display: contents; }
  /* The title and Close make a bar across the top that stays in view. */
  .easel__head, .easel__close { position: sticky; top: 0; z-index: 2; align-self: stretch; }
  .easel__head { grid-area: head; display: flex; min-width: 0; align-items: center; gap: 12px; margin-left: -6px; padding: 8px 0 8px 14px; background: var(--c-bg); border-bottom: 1px solid var(--c-border); white-space: nowrap; }
  .easel__close { grid-area: close; margin: 0 -6px 0 -6px; padding-inline: 20px 14px; border-width: 0 0 1px; border-bottom-color: var(--c-border); border-radius: 0; background: var(--c-bg); }
  .easel__side--colours { grid-area: colours; }
  .easel__side--brushes { grid-area: brushes; }
  .easel__status { grid-area: status; }
  .easel__hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .easel__side { padding: 0; gap: 6px; }
  .easel__side-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .easel__swatches { grid-template-columns: repeat(8, 1fr); gap: 6px 4px; padding: 3px 0; }
  .easel__swatch, .easel__custom { width: 30px; height: 30px; }
  .easel__side--brushes { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .easel__brushes { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .easel__brush { grid-template-columns: 1fr; justify-items: center; gap: 2px; min-height: 48px; padding: 4px 2px; font-size: 0.625rem; letter-spacing: 0.08em; text-align: center; }
  .easel__brush .easel__ar { font-size: 0.6875rem; line-height: 1; }
  .easel__brush .easel__brush-ico { display: none; }
  .easel__sizes { padding: 0; }
  .easel__presets { grid-template-columns: repeat(4, 36px); }
  .easel__size { display: none; }
  .easel__actions { grid-template-columns: repeat(3, auto); padding: 0; border: 0; }
  .easel__actions .easel__save { grid-column: auto; }
  .easel__actions .easel__tool { padding: 0 10px; }
  .easel__stage { padding: 0; background: none; box-shadow: none; }
  .easel__canvas { width: min(100%, calc((100dvh - 276px) * 0.8)); }
  .easel__status { text-align: left; }
  .easel__mine { width: 100%; padding-inline: 4px; }
}
@media (max-width: 480px) { .easel__hint { display: none; } }

/* ---------- The Creators’ Gallery (Amira's requests 56462c76, 6aefb5b3) ---------- */
/* Arabic set large: the display serif has no Arabic, so a Naskh from the visitor's system carries it. */
.ar-display { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Amiri', 'Times New Roman', serif; font-weight: 400; letter-spacing: 0; }
.h2 .ar-display { font-size: 0.86em; line-height: 1.4; }
.creators__lead { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
.creators__lead-ar { max-width: 42ch; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.9; color: var(--c-text-muted); }
.creators__note { max-width: 56ch; font-size: 0.875rem; color: var(--c-text-faint); }
.creators__note [lang='ar'] { display: block; margin-top: 4px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.9375rem; }
.creators__state { margin: 0 auto; padding-block: clamp(40px, 8vw, 96px); max-width: 52ch; text-align: center; color: var(--c-text-muted); font-size: 0.9375rem; line-height: 1.8; }
.creators__state [lang='ar'] { display: block; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1rem; }
.creators__wall:empty { display: none; }
/* Visitors' drawings hang in a simple black frame (Amira's request b6f967e1): a plain matte black moulding, no ornament
   or gilding, with a narrow ivory mat. Her own paintings keep the gilded family (.frame, .frame--v2..v5). */
.frame--black { --fw: clamp(9px, 3.6cqw, 17px); border-image: none; border-color: #161615; border-style: solid; padding: clamp(10px, 5.5cqw, 26px); background: #f4f1e8 padding-box; box-shadow: 0 0 0 1px #0a0a09, inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.frame--black::after { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.18); }
.frame--black img { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); background: #fbfaf6; }
.creators__frame img { aspect-ratio: auto; }
.creators__name { margin: 0; font: 400 clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem)/1.25 var(--f-display); overflow-wrap: anywhere; }
.creators__name[dir='auto'] { unicode-bidi: plaintext; }
.creators__anon { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.8em; color: var(--c-text-muted); }
/* The museum label (Amira's request 7ba174c5): the title in the display face, the creator under it, then their story,
   three lines at most until "Read the story". Every line takes its direction from its own text, Arabic or English. */
.creators__work { margin: 0; font: 400 clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem)/1.25 var(--f-display); overflow-wrap: anywhere; unicode-bidi: plaintext; }
.creators__name--by { font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem); color: var(--c-text-muted); }
.creators__story { margin: 4px 0 0; max-width: 46ch; font-size: 0.9375rem; line-height: 1.7; color: var(--c-text-muted); white-space: pre-line; overflow-wrap: anywhere; unicode-bidi: plaintext; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.creators__story[data-open] { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.creators__read { justify-self: start; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--c-text); font-size: 0.8125rem; text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 4px; cursor: pointer; }
.creators__read[hidden] { display: none; }
.creators__read:hover { color: var(--c-gold); }
.creators__read:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.creators__read [lang='ar'] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.creators__more { margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.creators__more .motion-toggle { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding-inline: 22px; }
.creators__more [lang='ar'] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }

/* Leaves from "Silent Courtyard" (Amira's request 2f5189e5): hall-leaves.js drops them from the painting's tree onto the
   floor in .hall__ground, where they lie a while and fade away. Decorative: aria-hidden, no pointer events. */
.leaf { position: absolute; left: 0; top: 0; width: clamp(8px, 0.85vw, 14px); aspect-ratio: 20 / 32; pointer-events: none; }
.leaf svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
html[data-lights='off'] .leaf { filter: brightness(0.55) saturate(0.85); }

/* The security guard (Amira's request dbd320be), drawn in src/guard.mjs. He stands on the floor between the entrance
   and the first painting, so he never covers a work, and scales with the room (--zone, --floor). With motion on he
   breathes, shifts his weight, and every so often lifts the walkie-talkie to his mouth, its light turning red while he
   talks. With motion off he simply stands, the walkie-talkie at his chest. Pauses with the rest of the hall. */
.hall__post { position: relative; flex: none; width: calc(var(--zone) * 0.3); height: var(--zone); pointer-events: none; }
.guard { position: absolute; left: 50%; bottom: calc(var(--floor) * -0.2); height: calc(var(--zone) * 0.56); aspect-ratio: 120 / 280; transform: translateX(-50%); }
.guard::before { content: ''; position: absolute; left: -18%; right: -18%; bottom: -4%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.guard svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); transition: filter 0.7s var(--m-ease); }
html[data-lights='off'] .guard svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)) brightness(0.6) saturate(0.85); }
.guard__sway { transform-origin: 60px 294px; }
.guard__head { transform-origin: 60px 52px; }
.guard__upper { transform-origin: 24px 76px; }
/* Forearm from the elbow; the hand undoes the forearm's stretch so the fist and walkie-talkie keep their shape. */
.guard__fore { transform: translate(19px, 126px) rotate(52.7deg) scaleY(0.66); }
.guard__hand { transform: scaleY(1.515) rotate(-44.7deg); }
html[data-motion='on'] .guard__sway { animation: guard-sway 13s ease-in-out infinite; }
html[data-motion='on'] .guard__up { animation: guard-breathe 4.6s ease-in-out infinite alternate; }
html[data-motion='on'] .guard__head { animation: guard-head 15s ease-in-out -6s infinite; }
html[data-motion='on'] .guard__upper { animation: guard-upper 15s ease-in-out -6s infinite; }
html[data-motion='on'] .guard__fore { animation: guard-fore 15s ease-in-out -6s infinite; }
html[data-motion='on'] .guard__hand { animation: guard-hand 15s ease-in-out -6s infinite; }
html[data-motion='on'] .guard__led { animation: guard-led 15s steps(1) -6s infinite; }
.hall.is-paused .guard * { animation-play-state: paused; }
.hall.is-grid .hall__post { display: none; }
@keyframes guard-sway { 0%, 40%, 100% { transform: rotate(0); } 50%, 88% { transform: rotate(0.7deg); } }
@keyframes guard-breathe { from { transform: translateY(0); } to { transform: translateY(-0.9px); } }
@keyframes guard-upper { 0%, 62%, 90%, 100% { transform: none; } 68%, 84% { transform: rotate(-14deg) scaleY(0.84); } }
@keyframes guard-fore {
  0%, 62%, 90%, 100% { transform: translate(19px, 126px) rotate(52.7deg) scaleY(0.66); }
  68%, 84% { transform: translate(29.3px, 117.9px) rotate(27.4deg) scaleY(1.124); }
}
@keyframes guard-hand { 0%, 62%, 90%, 100% { transform: scaleY(1.515) rotate(-44.7deg); } 68%, 84% { transform: scaleY(0.89) rotate(-15.4deg); } }
@keyframes guard-head { 0%, 62%, 90%, 100% { transform: rotate(0); } 68%, 84% { transform: rotate(-4deg); } }
@keyframes guard-led { 0%, 69% { fill: #62d48c; } 70%, 72%, 74%, 76%, 78%, 80%, 82% { fill: #ff5a4a; } 71%, 73%, 75%, 77%, 79%, 81% { fill: #8a2a22; } 83% { fill: #62d48c; } }
