/* Nahed Shahine - "Moments, kept in colour"
   Layout: a fixed WebGL canvas behind everything; six sticky beats walk through her night gallery to a candlelit wedding
   room; then chapters scroll over the parked room: a pinned gallery wall with museum labels, live painting, behind the
   lens, reels, about, and two doors into her Instagram messages. One dark theme: plum-black walls, terracotta rose, gilt,
   flamenco red and a raspberry rose. Copy over the scene sits on wall-label plates.
   Type: Syne (display, wide contemporary titling), Fraunces italic (emphasis), DM Sans (text and labels). */
:root {
  --night: #120b10;
  --plum: #1d1219;
  --plum-2: #2a1a24;
  --plum-3: #3a2431;
  --cream: #f6ece2;
  --rose: #d99a86;
  --gilt: #e2b56a;
  --red: #e23a2e;
  --pink: #c25079;
  --ink: #1a0d0b;

  --bg: var(--night);
  --fg: var(--cream);
  --fg-2: rgba(246, 236, 226, 0.8);
  --fg-3: rgba(246, 236, 226, 0.58);
  --accent: var(--gilt);
  --line: rgba(226, 181, 106, 0.2);
  --line-2: rgba(226, 181, 106, 0.44);
  --plate: rgba(18, 11, 16, 0.84);
  --chapter: rgba(18, 11, 16, 0.93);
  --field: rgba(246, 236, 226, 0.05);
  --field-focus: rgba(246, 236, 226, 0.09);
  --pop: #24161f;
  --danger: #ffb0a4;
  --shadow: rgba(0, 0, 0, 0.6);

  --display: 'Syne', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font: 'DM Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --side: max(28px, calc((100vw - 1280px) / 2 + 28px));
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
.chapter, .footer, .palette { --accent: var(--gilt); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; background: var(--night); overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(15px, 0.35vw + 13.4px, 17px);
  line-height: 1.62;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--red); color: var(--cream); }
[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--gilt); color: var(--ink); font-weight: 700; padding: 10px 16px; transition: top .3s; }
.skip:focus { top: max(12px, env(safe-area-inset-top, 0px)); }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: max(28px, var(--gutter-l)) max(28px, var(--gutter-r)); }
@media (max-width: 820px) { .wrap { padding-inline: var(--gutter-l) var(--gutter-r); } }

/* ---------- fixed layers ---------- */
.scene { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; z-index: 0; display: block; background: var(--night); }
.paint-trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; background-size: 160px 160px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; } 60% { background-position: -19px -13px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; } }
/* a brush tip: a small paint drop that grows into a soft blot over anything clickable */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 12px; height: 12px; background: var(--red); border-radius: 50% 50% 50% 8%; pointer-events: none; transform: translate(-50%, -50%) rotate(-45deg); opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), background-color .35s, border-radius .35s; mix-blend-mode: screen; }
.cursor.is-on { opacity: .95; }
.cursor.is-hover { width: 42px; height: 42px; border-radius: 50%; background: rgba(226, 58, 46, 0.35); }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--night); padding-inline: var(--gutter-l) var(--gutter-r); transition: opacity 1.1s var(--ease), visibility 1.1s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(300px, 100%); display: grid; justify-items: center; text-align: center; }
.loader-mark { width: 64px; height: 64px; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.97); } }
.loader-eyebrow { margin-block: 20px 22px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-3); }
.loader-bar { width: 100%; height: 3px; background: var(--line); overflow: hidden; border-radius: 3px; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gilt)); transition: width .35s var(--ease); }
.loader-hint { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--fg-2); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(to bottom, rgba(18, 11, 16, 0.7), rgba(18, 11, 16, 0)); pointer-events: none; }
.nav-inner { position: relative; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter-l) var(--gutter-r); padding-top: env(safe-area-inset-top, 0px); }
@media (min-width: 821px) { .nav-inner { padding-inline: var(--side); } }
.logo { display: inline-flex; align-items: center; }
.logo-img { width: 210px; height: auto; }
.nav-links { display: flex; gap: 30px; font-size: 13px; letter-spacing: .04em; color: var(--fg-2); }
.nav-links a { position: relative; padding-block: 6px; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 5px; background: var(--red); border-radius: 3px 6px 2px 5px; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; opacity: .8; }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(226, 181, 106, 0.1); }
.nav-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gilt), var(--pink)); transform: scaleX(0); transform-origin: left; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 820px) { .nav .logo-img { width: 160px; } }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.display em, .hero-line em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
.display-xl { font-size: clamp(42px, 5.6vw, 88px); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 6px; border-radius: 4px 7px 3px 6px; background: var(--red); }
.body { color: var(--fg-2); max-width: 48ch; }
.source { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--fg-3); max-width: 64ch; }
.inline-link { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; display: inline-flex; align-items: center; gap: 6px; transition: background-size .5s var(--ease); }
.inline-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.ar-line { font-size: clamp(20px, 1.6vw + 10px, 28px); line-height: 1.6; color: var(--rose); }
.ar-line.ar-sm { font-size: clamp(18px, 1vw + 10px, 22px); line-height: 1.4; }

/* line reveal: each line of a heading rises out of its own clip */
[data-lines] .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
[data-lines] .ln > span { display: block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-lines].is-in .ln > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons: a squared brush-swatch shape, red, pink or hairline ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding-inline: 24px; border-radius: 6px 14px 6px 14px; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s; }
.btn-red { background: var(--red); color: #fff7ef; box-shadow: 0 16px 40px -18px rgba(226, 58, 46, 0.9); }
.btn-pink { background: var(--pink); color: #22040f; box-shadow: 0 16px 40px -18px rgba(194, 80, 121, 0.9); }
.btn-red::after, .btn-pink::after { content: ""; position: absolute; inset: -2px; z-index: -1; background: var(--gilt); clip-path: polygon(0 0, 0 0, -10% 100%, -10% 100%); transition: clip-path .7s var(--ease); }
.btn-red:hover::after, .btn-pink:hover::after { clip-path: polygon(0 0, 110% 0, 100% 100%, -10% 100%); }
.btn-red:hover, .btn-pink:hover { color: var(--ink); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); background: rgba(18, 11, 16, 0.35); }
.btn-ghost:hover { border-color: var(--gilt); color: var(--gilt); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 13px; }
.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; color: inherit; }
.ico-lead { width: 19px; height: 19px; }
.ico-flip { transform: scaleX(-1); }

/* ---------- story beats ---------- */
.story { position: relative; z-index: 2; }
.beat { position: relative; height: 170vh; }
.beat-hero { height: 160vh; }
#b-red { height: 190vh; }
.beat-last { height: 180vh; }
.beat-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* the dark floor under the hero copy, from the left on wide screens and from the bottom on phones */
.beat-hero .beat-sticky::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 11, 16, 0.86) 0%, rgba(18, 11, 16, 0.55) 34%, rgba(18, 11, 16, 0) 58%); }
@media (max-width: 820px), (max-aspect-ratio: 82/100) {
  .beat-hero .beat-sticky::before { background: linear-gradient(0deg, rgba(18, 11, 16, 0.95) 0%, rgba(18, 11, 16, 0.75) 40%, rgba(18, 11, 16, 0) 64%); }
}

/* hero: her name in wide capitals, the framed artist stands on the right in the 3D panel */
.hero-copy { position: absolute; left: var(--side); top: 50%; transform: translateY(-46%); width: min(720px, 54vw); display: grid; gap: 18px; z-index: 2; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.hero-name { display: grid; font-family: var(--display); font-weight: 800; line-height: .86; letter-spacing: -0.03em; font-size: clamp(44px, 4.8vw, 92px); }
.hero-name .nm { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-name .nm-2 { color: transparent; -webkit-text-stroke: 1.5px var(--cream); }
.hero-name .ch { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(600ms + var(--i) * 55ms); }
.nm-2 .ch { transition-delay: calc(900ms + var(--i) * 55ms); }
html.is-intro .hero-name .ch { transform: none; }
.hero-line { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.hero-line em { color: var(--gilt); }
.hero-lede { color: var(--fg-2); max-width: 46ch; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-label { position: absolute; right: calc(var(--side) + 2vw); bottom: 13vh; display: grid; gap: 2px; padding: 12px 16px; max-width: 280px; background: #f4eadf; color: #2a1a1f; border-radius: 2px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); z-index: 2; }
.hl-t { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.hl-d { font-size: 12px; line-height: 1.4; color: #5b4249; }
.scroll-cue { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: .01em; color: var(--gilt); z-index: 2; transition: color .3s; }
.scroll-cue:hover { color: var(--fg); }
.scroll-cue .ico { width: 18px; height: 18px; }
.scroll-cue .ico { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }
html:not(.is-intro) [data-intro] { opacity: 0; }

@media (max-width: 820px), (max-aspect-ratio: 82/100) {
  .hero-copy { left: var(--gutter-l); right: var(--gutter-r); width: auto; top: auto; bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 56px)); transform: none; gap: 12px; }
  .hero-name { font-size: clamp(40px, 12.6vw, 78px); }
  .hero-line { font-size: 24px; }
  .hero-lede { font-size: 15px; }
  .hero-label, .kicker { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .scroll-cue { bottom: max(12px, env(safe-area-inset-bottom, 0px)); font-size: 15px; gap: 2px; grid-auto-flow: column; align-items: center; gap: 8px; }
}
@media (max-width: 820px) and (max-height: 760px) { .hero-lede { display: none; } }

/* beat copy: a museum wall label (a pale plate with a hard shadow) low on the left; on phones, a plate across the bottom */
.beat-copy { position: absolute; left: var(--side); bottom: 11vh; width: min(500px, 42vw); padding: 26px 28px 28px; background: var(--plate); border-left: 3px solid var(--red); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); display: grid; gap: 14px; z-index: 2; }
html[data-phase="wedding"] .beat-copy-last { border-left-color: var(--gilt); }
.label-no { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.beat-copy .display { font-size: clamp(30px, 2.9vw, 46px); }
/* a brush stroke paints itself under the emphasised words as the label arrives */
.brush { position: relative; display: inline; --wipe: 1; background-image: linear-gradient(100deg, rgba(226, 58, 46, 0) 0%, rgba(226, 58, 46, 0.55) 6%, rgba(226, 58, 46, 0.45) 94%, rgba(226, 58, 46, 0) 100%); background-repeat: no-repeat; background-position: 0 88%; background-size: calc(var(--wipe) * 100%) .28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.beat-copy .body { font-size: 15.5px; }
@media (max-width: 820px), (max-aspect-ratio: 82/100) {
  .beat-copy { left: var(--gutter-l); right: var(--gutter-r); width: auto; bottom: max(18px, env(safe-area-inset-bottom, 0px)); padding: 18px 18px 20px; gap: 10px; }
  .beat-copy .display { font-size: clamp(26px, 7.4vw, 36px); }
  .beat-copy .body { font-size: 14.5px; }
  .beat-copy .hero-cta .btn { flex: 1 1 auto; height: 48px; padding-inline: 16px; }
}

/* ---------- chapters over the parked floor ---------- */
.chapter { position: relative; z-index: 3; background: var(--chapter); padding-block: clamp(80px, 10vw, 140px); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.ch-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 4vw, 56px); }
.ch-head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 40px; }
@media (max-width: 820px) { .ch-head-split { grid-template-columns: 1fr; gap: 22px; } }
.rail-btn { width: 50px; height: 50px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, color .3s, background-color .3s; }
.rail-btn:hover { border-color: var(--gilt); color: var(--gilt); }

/* the gallery wall: plum wall, canvases in gilt frames, a pale museum label under each; pinned and walked on desktop */
.chapter-wall { padding-block: 0; background: linear-gradient(180deg, #24151e, #1a0f16); }
.gallery-wall { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: clamp(22px, 2.6vw, 38px); padding-block: calc(var(--nav-h) + 12px) 28px; overflow: hidden; }
.wall-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: end; gap: 40px; }
.wall-side { display: grid; gap: 18px; justify-items: start; }
.wall-nav { display: none; gap: 10px; }
.wall-track { justify-self: start; display: flex; align-items: flex-end; gap: clamp(36px, 4.5vw, 72px); padding-inline: var(--side); width: max-content; will-change: transform; }
.work { flex: none; display: grid; gap: 16px; justify-items: start; }
/* a slim gallery frame in fine gold: a bright outer bead, a satin face, a thin dark sight edge, a soft shadow on the wall */
.work-fig { position: relative; padding: 7px; background: linear-gradient(135deg, #f6dda4, #c99a52 26%, #f4dca6 50%, #b0823f 76%, #ecca8a); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 240, 205, 0.55), inset 0 0 0 2px rgba(120, 82, 34, 0.45); }
.work-fig::after { content: ""; position: absolute; inset: 7px; box-shadow: inset 0 0 0 1px rgba(60, 38, 12, 0.6), inset 0 3px 8px rgba(0, 0, 0, 0.3); pointer-events: none; }
.work-fig img { height: clamp(220px, 40vh, 440px); width: auto; }
.work-label { width: min(260px, 100%); padding: 10px 14px 12px; background: #f4eadf; color: #2a1a1f; border-radius: 2px; }
.work-label h3 { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.work-label h3 [lang="ar"] { display: block; font-weight: 400; font-size: 15px; color: #6b4a52; margin-top: 2px; }
.wl-m { font-size: 12px; color: #6b4a52; margin-top: 2px; }
.wl-d { font-size: 13px; line-height: 1.45; color: #3c2a2f; margin-top: 6px; font-family: var(--serif); font-style: italic; }
.wl-ar { font-size: 15px; line-height: 1.6; color: #6b4a52; margin-top: 4px; }
.work-label h3[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; font-size: 19px; line-height: 1.5; }
.work-end { align-self: center; }
.work-cta { width: min(340px, 80vw); display: grid; gap: 16px; justify-items: start; padding: 28px; border: 1px dashed var(--line-2); }
.work-cta .display { font-size: clamp(34px, 3vw, 48px); }
.wall-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
/* the rail under the wall: a hint, a count and a progress bar so it is clear there is more to see */
.wall-rail { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.wall-hint { display: none; align-items: center; gap: 10px; color: var(--gilt); transition: opacity .6s var(--ease); }
.wall-hint .ico { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.wall-rail.is-swiped .wall-hint { opacity: 0; }
.wall-count { font-variant-numeric: tabular-nums; }
.wall-bar { flex: 1; max-width: 360px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wall-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gilt)); transform: scaleX(0.06); transform-origin: left; transition: transform .25s linear; }
@media (max-width: 820px) {
  .wall-head { grid-template-columns: 1fr; gap: 20px; }
  .wall-nav { display: flex; }
  .wall-hint { display: inline-flex; }
  /* the rail fills the column and scrolls natively under the finger; the next canvas always peeks in at the edge */
  .wall-track { justify-self: stretch; width: auto; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--gutter-l); padding-inline: var(--gutter-l) var(--gutter-r); padding-bottom: 12px; scrollbar-width: none; gap: 22px; }
  .wall-track::-webkit-scrollbar { display: none; }
  .work { scroll-snap-align: start; }
  .work-fig { padding: 6px; }
  .work-fig::after { inset: 6px; }
  .work-fig img { height: auto; width: auto; max-height: min(52vh, 380px); max-width: calc(78vw - 24px); }
  .work-label { width: min(260px, 78vw); }
}
html.rm .wall-head { grid-template-columns: 1fr; gap: 20px; }
html.rm .wall-nav, html.rm .wall-hint { display: flex; }
html.rm .wall-track { justify-self: stretch; width: auto; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--side); padding-inline: var(--side); padding-bottom: 12px; scrollbar-width: none; }
html.rm .wall-track::-webkit-scrollbar { display: none; }
html.rm .work { scroll-snap-align: start; }
@media (max-width: 820px) { html.rm .wall-track { scroll-padding-inline-start: var(--gutter-l); padding-inline: var(--gutter-l) var(--gutter-r); } }

/* live painting */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.live-copy { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--nav-h) + 20px); }
.steps { display: grid; gap: 0; width: 100%; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.st-n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--red); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.steps p { color: var(--fg-3); font-size: 15px; margin-top: 4px; }
.live-media { display: grid; gap: 22px; }
.ba-item { position: relative; overflow: hidden; border-radius: 4px; }
/* the finished canvas and the artist, shown whole, never cropped */
.ba { max-width: 560px; }
.ba-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--plum-2); }
.ba figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; color: var(--fg-3); font-size: 15px; }
.sketches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sketches img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
@media (max-width: 820px) { .live-grid { grid-template-columns: 1fr; } .live-copy { position: static; } }

/* live painting prices: two service cards and the full package (highlighted), English above her Arabic in each, a note */
.prices { margin-top: clamp(64px, 8vw, 110px); display: grid; gap: 28px; }
.prices-head { display: grid; gap: 12px; justify-items: start; }
.prices-title { font-size: clamp(30px, 3.2vw, 46px); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line-2); border-radius: 4px; background: rgba(36, 22, 31, 0.94); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.price-card .orn { width: 30px; height: 30px; color: var(--gilt); }
.price-en, .price-ar { display: grid; gap: 10px; align-content: start; }
.price-no { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--rose); }
.price-t { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.price-t small { display: block; margin-top: 2px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 17px; letter-spacing: 0; color: var(--rose); }
.price-list { display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.price-list b { color: var(--fg); font-weight: 600; }
.price-amt { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; color: var(--gilt); }
.price-amt span { display: block; margin-bottom: 6px; font-family: var(--body, inherit); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.price-was { display: block; margin-top: 8px; font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.price-was s { text-decoration-thickness: 1px; }
.price-ar { padding-top: 16px; border-top: 1px solid var(--line); text-align: right; font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; }
.price-ar .price-t { font-family: inherit; font-size: 20px; line-height: 1.5; letter-spacing: 0; }
.price-ar .price-list { font-size: 16px; line-height: 1.75; }
.price-ar-amt { color: var(--gilt); font-weight: 700; }
.price-card .btn { justify-self: start; }
.price-card.is-package { border-color: rgba(226, 181, 106, 0.7); background: linear-gradient(160deg, rgba(70, 42, 44, 0.96), rgba(36, 22, 31, 0.96)); box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(226, 181, 106, 0.22); }
.price-flag { position: absolute; top: -11px; left: 22px; padding: 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--gilt); border-radius: 2px; }
.price-note { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; align-items: start; padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: 4px; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.price-note .orn { width: 22px; height: 22px; color: var(--gilt); }
.price-note b { color: var(--fg); font-weight: 600; }
.price-note [lang="ar"] { text-align: right; font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; font-size: 16px; line-height: 1.7; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: 1fr; max-width: 560px; } .price-note { grid-template-columns: auto minmax(0, 1fr); } .price-note [lang="ar"] { grid-column: 2; } }

/* behind the lens */
.lens-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.lens-copy { display: grid; gap: 20px; justify-items: start; }
.lens-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.lens-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 1; }
.lens-photos img:first-child { grid-row: 1 / span 2; aspect-ratio: auto; }
@media (max-width: 820px) { .lens-grid { grid-template-columns: 1fr; } }

/* reels: tall cards, muted previews, a coloured tag per world */
.reels-side { display: grid; gap: 18px; justify-items: start; }
.reels-nav { display: flex; gap: 10px; }
.reels-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--side); padding-inline: var(--side); padding-bottom: 14px; scrollbar-width: none; cursor: grab; }
.reels-track::-webkit-scrollbar { display: none; }
.reels-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel { position: relative; flex: none; width: clamp(220px, 21vw, 290px); aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; scroll-snap-align: start; background: var(--plum-2); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { opacity: 0; transition: opacity .6s; }
.reel.is-playing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 5, 8, 0.88) 0%, rgba(10, 5, 8, 0) 46%); pointer-events: none; }
.reel-tag { position: absolute; z-index: 2; left: 12px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; background: var(--gilt); color: var(--ink); }
.reel-live .reel-tag { background: var(--red); color: #fff7ef; }
.reel-meta { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.reel-cap { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.reel-ig { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 820px) { .reels-track { padding-inline: var(--gutter-l) var(--gutter-r); scroll-padding-inline-start: var(--gutter-l); } .reel { width: 62vw; } }

/* about: the cutout stands in a gilt oval on the rose of her rooms */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-figure { position: relative; display: grid; justify-items: center; align-items: end; padding-top: 4%; }
.about-oval { position: absolute; left: 50%; top: 0; bottom: 0; width: 82%; transform: translateX(-50%); border-radius: 50% 50% 46% 46% / 40% 40% 4% 4%; background: radial-gradient(circle at 50% 35%, #e7b09c, var(--rose) 50%, #8a4f4a 100%); box-shadow: inset 0 0 0 5px #d8b06a, inset 0 0 0 6px #8a6430, 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.about-figure img { position: relative; width: 82%; height: auto; border-radius: 0 0 4px 4px; }
.about-copy { display: grid; gap: 20px; justify-items: start; }
.spec { width: 100%; display: grid; }
.spec div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.spec dd { color: var(--fg-2); }
.link-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.link-pills a { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding-inline: 16px; border: 1px solid var(--line-2); border-radius: 6px 12px 6px 12px; font-size: 14px; font-weight: 600; transition: border-color .3s, color .3s; }
.link-pills a:hover { border-color: var(--gilt); color: var(--gilt); }
.lp-sub { font-weight: 400; font-size: 12px; color: var(--fg-3); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-figure { max-width: 420px; margin-inline: auto; width: 100%; } .spec div { grid-template-columns: 1fr; gap: 2px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; justify-items: start; }
.contact-note { font-size: 13px; color: var(--fg-3); }
/* two doors into her Instagram messages: one for paintings and live painting, one for wedding photography */
.dm-cards { display: grid; gap: 16px; }
.dm-card { position: relative; display: grid; gap: 10px; justify-items: start; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line-2); border-top: 3px solid var(--red); border-radius: 4px; background: rgba(36, 22, 31, 0.97); transition: transform .5s var(--ease), border-color .3s, background-color .3s; }
.dm-lens { border-top-color: var(--pink); }
.dm-card:hover, .dm-card:focus-visible { transform: translateY(-3px); border-color: var(--gilt); background: rgba(44, 27, 38, 0.98); }
.dm-wells { display: flex; gap: 6px; }
.dm-kicker { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.dm-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; letter-spacing: -0.02em; }
.dm-text { color: var(--fg-2); font-size: 15.5px; max-width: 46ch; }
.dm-go { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gilt); }
.dm-go .ico:last-child { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.dm-card:hover .dm-go .ico:last-child { transform: translate(3px, -3px); }
.well { flex: none; width: 18px; height: 18px; border-radius: 50% 46% 52% 44%; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18); }
.well-red { background: var(--red); }
.well-gold { background: var(--gilt); }
.well-rose { background: var(--pink); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.footer { position: relative; z-index: 3; background: #0d080b; border-top: 1px solid var(--line); padding-block: 56px max(34px, calc(env(safe-area-inset-bottom, 0px) + 24px)); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer-meta { margin-top: 16px; font-size: 13px; color: var(--fg-3); max-width: 56ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--fg-2); }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.footer-links a:hover { color: var(--gilt); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-legal { font-size: 12px; color: var(--fg-3); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a { transition: color .3s; }
.footer-legal-links a:hover { color: var(--gilt); }
.plain .footer-id { margin: 0 0 18px; }

/* the palette button: her face in a painter's palette with three wells of paint, a small menu above it */
.palette { position: fixed; z-index: 45; right: max(18px, var(--gutter-r)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); display: grid; justify-items: end; gap: 10px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.palette.is-on { opacity: 1; transform: none; pointer-events: auto; }
.palette-menu { display: grid; gap: 4px; padding: 8px; min-width: 240px; background: var(--pop); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 26px 60px -18px var(--shadow); }
.palette-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 5px; font-size: 14px; font-weight: 600; transition: background-color .3s; }
.palette-menu a:hover, .palette-menu a:focus-visible { background: var(--field-focus); }
.palette-note { padding: 4px 12px 6px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.palette-btn { display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; background: rgba(36, 22, 31, 0.96); border: 1px solid var(--line-2); border-radius: 999px 999px 999px 999px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.palette-shape { position: relative; width: 58px; height: 52px; border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%; background: #e9d7c2; display: block; }
.palette-shape img { position: absolute; left: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.pw { position: absolute; width: 11px; height: 11px; border-radius: 50%; }
.pw-1 { right: 4px; top: 6px; background: var(--red); }
.pw-2 { right: 7px; top: 22px; background: var(--gilt); }
.pw-3 { right: 16px; bottom: 3px; background: var(--pink); }
.palette.is-open .pw, .palette-btn:hover .pw { animation: well 1s var(--ease) infinite alternate; }
.pw-2 { animation-delay: .15s !important; } .pw-3 { animation-delay: .3s !important; }
@keyframes well { to { transform: scale(1.25); } }
.palette-label { font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .palette-label { display: none; } .palette-btn { padding: 5px; } }

/* ---------- the full gallery (/gallery/): a long walk along one wall, a label that follows, then the index ---------- */
.gw-intro { position: relative; z-index: 2; height: 100vh; height: 100svh; display: grid; align-items: end; padding-bottom: clamp(56px, 12vh, 120px); }
.gw-intro::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(18, 11, 16, 0.92) 0%, rgba(18, 11, 16, 0.55) 38%, rgba(18, 11, 16, 0) 70%); }
.gw-intro .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.gw-title { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 104px); line-height: .92; letter-spacing: -0.03em; max-width: 14ch; }
.gw-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gilt); letter-spacing: -0.01em; }
.gw-intro .body { font-size: clamp(16px, 0.5vw + 13px, 19px); max-width: 52ch; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.gw-count { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 18px; }
.gw-walk { position: relative; z-index: 2; height: calc(var(--n, 40) * 62vh + 100vh); }
@media (max-width: 820px) { .gw-walk { height: calc(var(--n, 40) * 52vh + 100vh); } }
/* the label plate: a pale museum card low on the left (bottom on phones) that follows the visitor along the wall */
.gw-plate { position: fixed; z-index: 4; right: var(--side); bottom: 9vh; width: min(380px, 40vw); padding: 18px 20px 20px; color: #2a1a1f; border-radius: 4px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
  /* frosted ivory: the room shows softly through; 84 % ivory over the blurred room keeps every line above 4.5:1 even where the room is darkest */
  background: rgba(246, 238, 228, 0.84); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 250, 240, 0.7);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(201, 160, 90, 0.3); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gw-plate { background: #f4eadf; } }   /* no blur: the solid card */
.gw-plate.is-on { pointer-events: auto; }
/* the dissolve of a direct jump to a work (painting list, index): night colour, under the nav and the list button */
.gw-fade { position: fixed; inset: 0; z-index: 39; background: #0b0609; opacity: 0; pointer-events: none; transition: opacity .16s ease-out; }
.gw-fade.is-on { opacity: 1; transition-duration: .15s; }
/* the directory: a round button bottom right (under the label on desktop, just above it on phones) opening every work */
.gw-dir { position: fixed; z-index: 46; right: max(18px, var(--gutter-r)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px)); display: grid; justify-items: end; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), bottom .45s var(--ease); }
html.is-intro .gw-dir { opacity: 1; pointer-events: auto; }
.gw-dir-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--gilt); background: rgba(36, 22, 31, 0.94); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(226, 181, 106, 0.22); cursor: pointer; transition: transform .4s var(--ease), background-color .3s; }
.gw-dir-btn:hover, .gw-dir.is-open .gw-dir-btn { background: rgba(54, 33, 45, 0.98); transform: translateY(-2px); }
.gw-dir-btn .ico { width: 22px; height: 22px; }
.gw-dir-panel { width: min(340px, calc(100vw - 36px)); max-height: min(66vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; background: var(--pop); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 70px -20px var(--shadow); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gw-dir-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 8px 4px; font-family: var(--display); font-weight: 700; font-size: 16px; }
.gw-dir-head span { font-family: var(--body, inherit); font-weight: 400; font-size: 12px; color: var(--fg-3); }
.gw-dir-group { position: sticky; top: -6px; z-index: 1; padding: 12px 8px 6px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); background: var(--pop); }
.gw-dir-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; text-align: left; font: inherit; color: var(--fg); background: none; cursor: pointer; transition: background-color .25s; }
.gw-dir-item:hover, .gw-dir-item:focus-visible, .gw-dir-item.is-current { background: var(--field-focus); outline: none; }
.gw-dir-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; background: var(--plum-2); box-shadow: 0 0 0 1px rgba(226, 181, 106, 0.45); }
.gw-dir-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gw-dir-t[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; font-size: 15px; text-align: right; }
.gw-dir-n { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
@media (min-width: 821px) { .gw-plate { bottom: max(9vh, 90px); } }
@media (max-width: 820px) {
  html.plate-on .gw-dir { bottom: calc(var(--plate-h, 0px) + max(14px, env(safe-area-inset-bottom, 0px)) + 12px); }
  html.plate-on .gw-dir-panel { max-height: min(560px, calc(100vh - var(--plate-h, 0px) - 215px)); max-height: min(560px, calc(100svh - var(--plate-h, 0px) - 215px)); }
}
.gw-dir-panel { max-height: min(560px, calc(100vh - 110px)); }
.gw-plate.is-on.is-in { opacity: 1; transform: none; }
.gw-plate-no { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--red); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.gw-plate h3, .gw-cap h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.gw-plate h3[lang="ar"], .gw-cap h3[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', 'Tahoma', sans-serif; font-size: 22px; line-height: 1.5; letter-spacing: 0; }
.gw-plate .wl-d { font-size: 15px; }
.gw-src { margin-top: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8a6a70; }
.gw-plate-cta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.gw-plate-cta .btn { height: 42px; padding-inline: 16px; font-size: 13px; }
@media (max-width: 820px), (max-aspect-ratio: 82/100) {
  .gw-plate { left: var(--gutter-l); right: var(--gutter-r); width: auto; top: auto; bottom: max(14px, env(safe-area-inset-bottom, 0px)); padding: 14px 16px 16px; }
  .gw-plate h3 { font-size: 17px; }
  .gw-plate .wl-d { font-size: 14px; }
  .gw-plate-cta { margin-top: 10px; }
}
.gw-all { padding-top: clamp(80px, 10vw, 130px); }
.gw-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 20px; }
.gw-item { display: grid; gap: 12px; align-content: start; }
.gw-thumb { display: block; width: 100%; padding: 5px; background: linear-gradient(135deg, #f6dda4, #c99a52 26%, #f4dca6 50%, #b0823f 76%, #ecca8a); box-shadow: 0 22px 36px -22px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 240, 205, 0.55), inset 0 0 0 2px rgba(120, 82, 34, 0.4); transition: transform .5s var(--ease); }
.gw-thumb:hover { transform: translateY(-4px); }
.gw-thumb img { width: 100%; height: auto; aspect-ratio: auto; background: var(--plum-2); }
.gw-cap { color: var(--fg); }
.gw-cap h3 { font-size: 16px; }
.gw-cap h3[lang="ar"] { font-size: 19px; }
.gw-cap .wl-ar { color: var(--rose); font-size: 15px; }
.gw-cap .wl-m { color: var(--fg-3); font-size: 12px; margin-top: 2px; }
.gw-cap .wl-d { color: var(--fg-2); font-size: 14px; line-height: 1.45; margin-top: 4px; font-family: var(--serif); font-style: italic; }
.gw-cap .gw-src { color: var(--fg-3); }
.gw-plate .wl-ar { color: #6b4a52; }
.gw-plate .gw-src { color: #6a4c53; }
.gw-plate .gw-plate-no { color: #a8261b; }
.gw-plate .wl-m { font-size: 12px; color: #6b4a52; margin-top: 2px; }
.gw-plate .wl-d { line-height: 1.45; color: #3c2a2f; margin-top: 6px; font-family: var(--serif); font-style: italic; }
@media (max-width: 560px) { .gw-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .gw-cap .wl-d { display: none; } }
.gw-end { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 18px; justify-items: start; padding: clamp(24px, 3vw, 40px); border: 1px dashed var(--line-2); }
/* the way home: a small pill that stays on screen for the whole visit (desktop bottom left, phones under the nav) */
.gw-home { position: fixed; z-index: 39; left: var(--gutter-l); bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 14px)); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--fg); background: rgba(18, 11, 16, 0.62); border: 1px solid rgba(226, 181, 106, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); transition: background .3s, border-color .3s, color .3s, opacity .6s; }
.gw-home .ico { width: 16px; height: 16px; color: var(--gilt); }
.gw-home:hover, .gw-home:focus-visible { background: rgba(18, 11, 16, 0.85); border-color: var(--gilt); }
html:not(.is-intro) .gw-home { opacity: 0; }
@media (max-width: 820px), (max-aspect-ratio: 82/100) {
  .gw-home { bottom: auto; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 10px); height: 36px; font-size: 12px; transition: background .3s, border-color .3s, color .3s, opacity .6s, top .6s var(--ease); }
  /* while the nav is tucked away the pill rises into its place, above the canvas */
  .nav.is-hidden + .gw-home { top: calc(env(safe-area-inset-top, 0px) + 12px); }
}

/* ---------- legal and error pages (no scene) ---------- */
.plain { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--night); }
.plain-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.plain main { flex: 1; }
.legal { max-width: 760px; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal-updated { font-size: 12px; letter-spacing: .08em; color: var(--fg-3); }
.legal h1 { margin-top: 10px; font-family: var(--display); font-weight: 800; line-height: 1.02; font-size: clamp(42px, 5.4vw, 68px); letter-spacing: -.02em; }
.legal-intro { margin-top: 18px; font-size: clamp(17px, 1.2vw + 10px, 20px); color: var(--fg-2); }
.legal section { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.01em; }
.legal p, .legal li { margin-top: 12px; color: var(--fg-2); }
.legal ul { list-style: disc; padding-left: 20px; }
.notfound { display: grid; gap: 22px; justify-items: start; padding-block: clamp(60px, 12vw, 140px); }
.notfound .display { font-size: clamp(48px, 7vw, 104px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-lines] .ln > span, .hero-name .ch { transform: none; }
}
